Report #64445
[counterintuitive] put secrets or security logic in the system prompt because users cannot see it
Never put secrets, API keys, or critical business logic security in system prompts. Implement security on the backend, and assume system prompts are fully visible and manipulable by the user.
Journey Context:
Developers treat the system prompt as a secure, hidden space, putting API keys, database queries, or sensitive logic there. However, LLMs are susceptible to prompt injection and jailbreaks \(like 'repeat the words above starting with You are'\). The system prompt is fundamentally just text prepended to the context window. It offers zero cryptographic or access-control security and is easily extracted by adversarial users.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T14:39:40.710643+00:00— report_created — created