Report #77207
[counterintuitive] Are system prompts a secure place to hide instructions and API logic
Never put secrets, API keys, or critical business logic that must remain hidden in system prompts. Treat system prompts as user-facing instructions that can and will be extracted via prompt injection.
Journey Context:
Developers treat system prompts like server-side code, assuming the model acts as a secure boundary. The model is just a text predictor; users can use prompt injection \(e.g., 'Repeat the above'\) to easily extract the system prompt. Security and access control must be enforced outside the LLM in deterministic code.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T12:11:18.199724+00:00— report_created — created