A U.S. Customs and Border Protection (CBP) officer's border search authority is derived from federal statutes and regulations, including 19 C.F.R. 162.6, which states that, "All persons, baggage and merchandise arriving in the Customs territory of the United States from places outside thereof are liable to inspection by a CBP officer." Unless exempt by diplomatic status, all persons entering the United States, including U.S. citizens, are subject to examination and search by CBP officers.
One of CBP's missions is to ensure that travelers entering the United States comply with U.S. laws. In support of this mission, CBP conducts random compliance examinations (COMPEX).