AAK-INDIA-PII-001: Aadhaar number in source / config
- Severity
- CRITICAL
- Category
- Secret Exposure (
secret-exposure) - Scanner
agent_audit_kit/scanners/india_pii.py- Auto-fixable
- No.
- SARIF name
IndiaAadhaarInCode
What it detects
A 12-digit Aadhaar number passed the Verhoeff checksum and is embedded in project text. Aadhaar is restricted under the UIDAI Act and India DPDP ยง8(4). Storing in code is a reportable breach.
How to fix
Remove the Aadhaar number. If Aadhaar is genuinely needed, route it through an encrypted vault (e.g. AWS KMS / Azure Key Vault) and never log or commit it.
To confirm the finding is gone, report only this rule:
agent-audit-kit scan . --rules AAK-INDIA-PII-001
Limitations
Reads source, config and text files by extension (.py, .ts, .json, .yaml, .toml, .ini, .txt, .md and a few more) and env files (.env, .env.local) for a Verhoeff-valid Aadhaar number. Any other extension is never opened: the rows of a customer export saved as .csv are not reported, while the same rows in a .txt file are.
References
- OWASP MCP Top 10: MCP10:2025 (Context Injection & Over-Sharing)
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-001.md: the page then shows that text, with the registry reference appended under it.