Payment Card Magnetic Stripe Track 1

Detects ISO/IEC 7813 magnetic-stripe Track 1 (format code B) data for payment cards: a start sentinel %B, the primary account number, the cardholder name, expiry date, service code and discretionary data. Storing full track data after authorization is prohibited by PCI DSS 4.0 Requirement 3.3.1.

Type
regex
Engine
universal
Confidence
high
Confidence justification
High confidence: the full Track 1 framing (%B start sentinel, two ^ field separators, fixed expiry+service-code structure and ? end sentinel) wrapped around a 13-19 digit PAN is a highly distinctive structure that does not occur in ordinary prose, making false positives extremely unlikely.
Jurisdictions
global
Regulations
PCI-DSS
Frameworks
CIS Controls, ISO 27001, NIST CSF, SOC 2
Data categories
financial
Scope
narrow
Risk rating
10
Platform compatibility
Purview: Compatible, GCP DLP: Compatible, Macie: Compatible, Zscaler: Compatible, Palo Alto: Compatible, Netskope: Compatible

Pattern

%B\d{13,19}\^[A-Za-z][^\^]{1,25}\^\d{4}\d{3}[A-Za-z0-9]{0,40}\?

Corroborative evidence keywords

track 1, track data, magnetic stripe, magstripe, card present, sensitive authentication data, SAD, PAN

Proximity: 300 characters

Should match

Should not match

Known false positives

References