PCI DSS v4.0.1
Map PCI DSS v4.0.1 controls for cardholder data, testing, change management, encryption and logs.
What it checks
| Policy | On | Checks | Action |
|---|---|---|---|
| prompt-injection | Request | Detects jailbreak and prompt-injection signals | Block |
| rbac | Request | Requires the X-User-ID and X-Org-ID headers | Block |
| pii-detector | Request | Payment-card data (PCI mode) | Redact |
| dlp-filter | Request | 4 custom patterns | Block |
| quality-scorer | Response | Accuracy ≥ 0.80; combined score ≥ 0.80 | Block |
| audit-logger | Request | Adds an allow-only audit marker to the decision | Record |
Policy YAML
pack:
id: "fw_pci_dss_baseline"
name: "pci-dss-baseline"
version: "0.1.0"
enabled: true
author: "verdictan"
description: "PCI DSS baseline starter for payment identifiers, blocking, and audit evidence."
policies:
chain:
- "prompt-injection"
- "rbac"
- "pii-detector"
- "dlp-filter"
- "quality-scorer"
- "audit-logger"
policy:
prompt-injection: {}
rbac:
deny_if_missing: ["X-User-ID", "X-Org-ID"]
pii-detector:
pci_mode: true
action: redact
detect_patterns: []
dlp-filter:
detect_patterns: ["(?i)\\bcardholder\\s+data\\b", "\\b(?:\\d[ -]*?){13,19}\\b", "(?i)\\btrack[_\\s-]+data\\b", "(?i)\\bpin\\s+block\\b"]
action: block
quality-scorer:
thresholds:
min_aggregate: 0.80
min_accuracy: 0.80
audit-logger: {}