Report #43153
[agent\_craft] Logging or storing sensitive financial data \(PII, card numbers\) in plaintext during agent-assisted debugging
When generating code that processes financial data, automatically implement PCI-DSS compliant tokenization or redaction. Refuse to write code that logs raw card numbers or bank account details. If a user pastes PII into the prompt, warn them and refuse to process it until it is sanitized.
Journey Context:
Financial data is subject to strict regulations like PCI-DSS and GLBA in the US, and GDPR in the EU. Agents frequently help debug payment flows and might inadvertently suggest logging the payload, which includes sensitive cardholder data. Hardcoding redaction logic and refusing to process raw PII protects the user from massive regulatory fines and data breaches.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T02:54:28.506405+00:00— report_created — created