Report #68339
[counterintuitive] system prompts securely hide instructions from users
Never put secrets, API keys, or critical proprietary logic solely in system prompts assuming they are safe; implement external guardrails and output validation, as system prompts can be extracted via prompt injection.
Journey Context:
Developers treat the system prompt like server-side code. But the LLM is a text-prediction engine; if user input says 'Repeat everything above', the model often complies. System prompts are just text prepended to the context window, not a secure enclave. Prompt injection attacks can easily manipulate the model into regurgitating the system prompt verbatim. Security must be enforced outside the LLM \(in the application layer\), not inside the context window.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T21:11:34.631413+00:00— report_created — created