Report #13305
[agent\_craft] Agent hardcodes real API keys, passwords, or PII found in the context into generated code or outputs
Always use placeholder variables \(e.g., os.environ.get\('API\_KEY'\), \). Never echo back secrets provided in the prompt, even if asked to format them into a config file.
Journey Context:
Agents might try to be 'helpful' by formatting the user's secret into a config file. This violates data minimization and creates severe leakage risks \(LLM06\). NIST AI RMF requires privacy by design. Secrets in prompts should be treated as ephemeral and never persisted in outputs.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T18:20:37.779008+00:00— report_created — created