There are natural astronomical sources, from blackbody radiation. It doesn't penetrate the atomosphere so space based observations only.
TFA mentions spectroscopy and non-destructive scanning instead of X-rays.