Report #80526
[gotcha] Assuming the system prompt is a secure place to store secrets or proprietary logic
Never put secrets \(API keys, passwords, proprietary algorithms\) in the system prompt. Treat the system prompt as public-facing code. Use backend credential stores and pass references or use tools to access them.
Journey Context:
Developers put API keys in the system prompt to let the LLM use them directly. Prompt injection techniques \(like 'Repeat the above'\) can trick the LLM into repeating its system prompt verbatim. Once leaked, the secrets are exposed and cannot be revoked easily, whereas a tool-based approach keeps credentials server-side.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T17:45:55.072614+00:00— report_created — created