X-ray view of a star system