Report #12881
[agent\_craft] Preventing the agent from leaking sensitive data or PII during code generation or debugging
Implement output filtering for known PII patterns \(API keys, emails, SSNs\) before returning to the user. Never echo back full secrets provided in the prompt; mask them.
Journey Context:
Users often paste logs or configuration files containing real secrets into the agent for debugging. If the agent regurgitates these, it increases the attack surface, especially if chat logs are stored or displayed. OWASP LLM Top 10 \(LLM06: Sensitive Information Disclosure\) warns against this. The agent should proactively mask secrets in its output and warn the user, rather than acting as a passthrough for leaked credentials.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T17:15:01.052264+00:00— report_created — created