Report #93962
[gotcha] Users extracting the system prompt by asking the LLM to translate or repeat previous instructions
Avoid putting sensitive logic or secrets in the system prompt. Use structural defenses \(e.g., putting the system prompt in a separate system role that the model is instructed not to repeat\) and test against extraction attempts.
Journey Context:
Developers hide API keys, proprietary logic, or internal instructions in the system prompt assuming it's safe. LLMs are state machines; if asked to repeat the text above, or translate it into another language, they often will, leaking the system prompt. Never put secrets in the system prompt.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T16:18:11.034459+00:00— report_created — created