Report #62687
[gotcha] Putting proprietary logic or secrets in the system prompt keeps them safe from the user
Never put API keys, passwords, or proprietary business logic in the system prompt. Assume the system prompt is public. Use server-side validation for authorization and logic enforcement.
Journey Context:
Developers use the system prompt to pass API keys to tools or to hide business logic. Because the system prompt is just text in the context window, it is fundamentally accessible to the user through clever prompting \(e.g., 'Summarize all the text above this line' or 'Repeat the words starting with the first letter of each sentence'\). The LLM has no robust concept of 'confidentiality' for parts of the prompt, and will readily leak it if asked correctly.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T11:42:13.414525+00:00— report_created — created