Operations: Dump Compliance
This page is the practical runbook for validating SQL dumps against plaintext PII leakage.
What this checks
Rule ID
Detects
Quick start (standalone script)
{
"description": "Dump compliance policy. Any match above maxAllowed fails the check.",
"maxFindingsPreview": 20,
"rules": [
{
"id": "email-plaintext",
"description": "Detect plaintext email addresses",
"regex": "\\b[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}\\b",
"maxAllowed": 0
},
{
"id": "phone-e164-fr-like",
"description": "Detect phone numbers likely in E.164/FR formats",
"regex": "(\\+\\d{6,15}|\\b0[1-9](?:[ .-]?\\d{2}){4}\\b)",
"maxAllowed": 0
},
{
"id": "iban-like",
"description": "Detect IBAN-like values",
"regex": "\\b[A-Z]{2}\\d{2}[A-Z0-9]{11,30}\\b",
"maxAllowed": 0
},
{
"id": "credit-card-like",
"description": "Detect possible card numbers",
"regex": "\\b(?:\\d[ -]*?){13,19}\\b",
"maxAllowed": 0
},
{
"id": "ssn-like",
"description": "Detect SSN-like US format",
"regex": "\\b\\d{3}-\\d{2}-\\d{4}\\b",
"maxAllowed": 0
}
],
"exclusions": [
{
"id": "token-prefix",
"description": "Ignore Veilio tokenized values",
"regex": "\\btok_[A-Za-z0-9_-]{10,}\\b"
}
]
}Exit codes
Code
Meaning
Suggested CI gate
Incident handling
Customizing the policy
Last updated
Was this helpful?
