As a bag scanned goes through the scanner, it absorbs radiation energy from the X-ray. The density of contraband such as drugs is very well known, and is easy to spot by airport security. Once a detector identifies an object with a suspicious density, the bag will be flagged for the additional inspection.