security x-ray machines are used to scan people, vehicles and cargo containers. These scanners can scan flesh, drugs, explosives, weapons, tools, liquids, etc. To get a clear look of what is inside, a beam of x-rays is scanned across the material. All the passengers have to go through various security sections before boarding the flight. This is done to check if they are transporting something that is against the law.