Hi,
I am quite sure of remembering a detailed article about customs inspections and skill checks for travellers seeking to introduce illegal items on the planet (weapons, drugs,...)
It was taking in account TL of the starport, type of detection available (X-Ray scanners, Chemical scanners)...