US Passport Number
Detects US passport numbers in exactly two accepted formats: a nine-digit numeric value (older US passports), or a single uppercase letter followed by exactly eight digits (newer passport books and cards). Bare eight-digit values and letter-plus-nine-digit values are not valid US passport numbers. Due to the relatively simple format, corroborative keyword proximity is strongly recommended to reduce false positives. Keywords are US-scoped (passport / US passport / State Department); foreign-passport labels are not treated as US passport evidence.
- Type
- regex
- Engine
- boost_regex
- Confidence
- medium
- Confidence justification
- The US passport number format is short and loosely structured, consisting of an optional letter followed by 8-9 digits. This simplicity means the pattern can match many unrelated numeric strings such as reference codes, invoice numbers, and account identifiers. Medium confidence is appropriate; strong corroborative keyword proximity is essential for reliable detection.
- Detection quality
- Verified
- Jurisdictions
- us
- Regulations
- CCPA/CPRA, HIPAA, State Breach Laws (US)
- Frameworks
- ISO 27001, ISO 27701
- Data categories
- pii, government-id
- Scope
- narrow
- Risk rating
- 5
- Platform compatibility
- Purview: Compatible, GCP DLP: Compatible, Macie: Compatible, Zscaler: Compatible, Palo Alto: Compatible, Netskope: Unsupported
Pattern
\b(?:[A-Z]\d{8}|\d{9})\b
Corroborative evidence keywords
passport, passport number, passport no, travel document, US passport, ID number, identification, ID card, license, permit, registration, certificate
Proximity: 300 characters
Should match
A12345678— Letter-prefixed 8-digit US passport number (newer format)123456789— Nine-digit numeric US passport number (older format)C03005988— Letter-prefixed 8-digit US passport number (next-generation book)
Should not match
AB12345678— Two-letter prefix is not a valid US passport number format1234567— Only 7 digits, which is below the minimum length for a US passport number12345678— Bare eight-digit value is the unsupported short cross-product (only letter + 8 digits or 9 digits are valid)A123456789— Letter plus nine digits is the unsupported long cross-productAustralian passport A12345678— AU-labelled passport number is excluded by foreign-passport noise NOT-group (AU passport is a different SIT)
Known false positives
- Other 8-9 digit numbers such as order IDs, reference codes, phone numbers, and account identifiers Mitigation: Require strong corroborative keyword proximity (e.g., 'passport', 'travel document') within 300 characters to confirm the match as a genuine passport number
- Reference codes and serial numbers with an optional single-letter prefix Mitigation: Cross-reference with document context and additional entity detection to distinguish passport numbers from generic alphanumeric identifiers