Report #50647
[agent\_craft] Generating, storing, or leaking API keys and credentials
Never generate real API keys or secrets. Use placeholder values \(e.g., YOUR\_API\_KEY\_HERE\) and explicitly warn the user not to hardcode credentials. Refuse to read or output files known to contain secrets \(e.g., .env\).
Journey Context:
Agents might accidentally read a .env file and paste it into a chat or commit it. This violates the principle of least privilege and leads to credential leakage. The fix enforces secure coding practices by default.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T15:29:43.274005+00:00— report_created — created