SWIFT BIC
Detects ISO 9362 SWIFT Business Identifier Codes (BICs), the 8- or 11-character bank and branch codes used to route international payments. SWIFT/BIC or banking context lifts a match to 85. TestPattern's own detection logic: the Microsoft Purview built-in SWIFT Code is catalogued separately as global-swift-bic-builtin.
- Type
- regex
- Engine
- universal
- Confidence
- high
- Confidence justification
- High confidence: structurally constrained pattern with corroborative keyword support reduces false positive rates significantly. Added context gating and exclusion rules improve precision and reduce incidental matches.
- Detection quality
- Verified
- Jurisdictions
- global
- Regulations
- PSD2
- Frameworks
- ISO 27001, ISO 27701, PCI-DSS, SOC 2
- Data categories
- financial
- Scope
- narrow
- Risk rating
- 4
- Platform compatibility
- Purview: Compatible, GCP DLP: Compatible, Macie: Compatible, Zscaler: Compatible, CrowdStrike DLP: Compatible, Palo Alto: Adapted from Purview, Netskope: Adapted from Purview
Pattern
(?-i)(\b[A-Z]{6}[A-Z0-9]{2}[A-Z0-9]{3}\b|\b[A-Z]{6}[A-Z0-9]{2}\b)
Corroborative evidence keywords
bank account, account number, account no, BSB, routing number, sort code, IBAN, SWIFT, BIC, [object Object], [object Object], data record, database record, record set, data extract, data export, database table, spreadsheet, data registry, registry entry (+14 more)
Proximity: 300 characters
Should match
DEUTDEFF— Deutsche Bank 8-character SWIFT/BICBNPAFRPP— BNP Paribas 8-character SWIFT/BICCHASUS33XXX— JPMorgan Chase 11-character SWIFT/BICBeneficiary bank SWIFT code: DEUTDEFF— Labelled BIC in payment instructions (85 tier)
Should not match
DEUT1EFF— Contains a digit in the first 6 characters (must be all letters)DEUTDE— Only 6 characters instead of minimum 8DEUTDEFFXXXX— 12 characters instead of maximum 11sample data row, a test value not a real bank code— Template/sample context with no 8-character all-letter token to match the BIC structure
Known false positives
- Financial terminology appearing in published reports, accounting textbooks, regulatory guidance, or template documents without actual transaction data. Mitigation: Require corroborative evidence keywords within the proximity window. Cross-reference with structured financial identifiers to confirm actual sensitive data.
- In English (as the primary international business language), standard business terminology overlapping with financial detection keywords in routine correspondence and documentation. Mitigation: Increase confidence threshold when scanning business correspondence. Layer with transaction-specific patterns for higher precision.