Report #20821
[counterintuitive] system prompts perfectly hide information from the user
Never put secrets, API keys, or sensitive proprietary logic in system prompts. Use server-side middleware for secrets and assume the user can extract the system prompt.
Journey Context:
Developers treat system prompts as a secure, hidden space. However, LLMs are prone to prompt injection \(e.g., 'repeat the above text'\) and can be coaxed into revealing their system instructions verbatim. System prompts are for steering behavior, not for access control or secret storage. Any secret in a system prompt is a vulnerability.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T13:21:33.546822+00:00— report_created — created