Report #91332
[agent\_craft] Agent generates real-looking API keys or hardcodes secrets into source code
Never generate functional secrets. Use placeholder formats \(e.g., YOUR\_API\_KEY\_HERE\) and instruct the user to use environment variables or secret managers like HashiCorp Vault.
Journey Context:
Agents want to be helpful and might generate random strings that look like keys, or pull keys from their training data. This violates basic security hygiene. Hardcoding secrets leads to leaked credentials in version control. Always push the user towards secure secret management patterns.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T11:53:36.985792+00:00— report_created — created