LS-PII-001: Credit Card Number¶
| Severity | MEDIUM |
| Blast radius | Cardholder data exposure (PCI scope) |
| Rotate at | https://www.pcisecuritystandards.org/ |
| Validation | luhn_ok (matches that fail are dropped) |
If this leaks¶
A Luhn-valid card number was found. If real, it is cardholder data covered by PCI DSS and may be usable for fraud.
What to do¶
- Rotate or revoke the credential at https://www.pcisecuritystandards.org/.
- Check the provider's audit logs for use you don't recognise.
- Remove it from git history (
leakscan purge --help) and load it from an environment variable or secret manager instead.
Pattern¶
(?i)(?:card|credit|cc[_-]?(?:num|number|no)?|\bpan\b|visa|mastercard|amex|payment)[^\n]{0,40}?\b((?:4[0-9]{3}|5[1-5][0-9]{2}|2[2-7][0-9]{2}|3[47][0-9]{2}|6011)(?:[ -]?[0-9]{4}){2}[ -]?[0-9]{3,4})\b
Suppress¶
On one line: # leakscan:ignore LS-PII-001. For the whole project:
disable_rules: [LS-PII-001]