Skip to content

AAK-INDIA-PII-002: PAN (Permanent Account Number) in source / config

Severity
HIGH
Category
Secret Exposure (secret-exposure)
Scanner
agent_audit_kit/scanners/india_pii.py
Auto-fixable
No.
SARIF name
IndiaPanInCode

What it detects

A 10-char PAN (5 letters + 4 digits + 1 letter) was detected. PAN is tax-linked personal data under DPDP ยง8(4).

How to fix

Remove the PAN. If needed for processing, tokenize it and store tokens, not raw PANs.

To confirm the finding is gone, report only this rule:

agent-audit-kit scan . --rules AAK-INDIA-PII-002

Limitations

Reads a PAN written in capitals: five letters, four digits and a letter. The same PAN in lower case (abcde1234f) is not reported.

References


All rules. This page is generated from the rule registry when the documentation is built; to change it, change the rule in agent_audit_kit/rules/builtin.py. To give the rule a hand-written write-up, add docs/rules/AAK-INDIA-PII-002.md: the page then shows that text, with the registry reference appended under it.