Skip to content

PCI DSS v4.0 Req 3.2-3.4: PAN to last 4 only, full CVV redaction

Source: 03-pci-dss-scope-reduction.phisql

PhiSQL

-- PCI DSS v4.0 Req 3.2-3.4: PAN to last 4 only, full CVV redaction.
-- Demonstrates a WHERE predicate using CONFIDENCE.
-- Compiles to 03-pci-dss-scope-reduction.json.

POLICY pci_dss_scope_reduction
  DESCRIPTION 'PCI DSS v4.0 Req 3.2-3.4: PAN to last 4, full CVV redaction.';

REDACT CREDIT_CARD WITH LAST_4 WHERE CONFIDENCE > 0.85;

Compiles to

{
  "identifiers": {
    "creditCard": {
      "creditCardFilterStrategies": [
        {
          "strategy": "LAST_4",
          "conditions": "confidence > 0.85"
        }
      ]
    }
  }
}