Report #58841
[counterintuitive] system prompts securely control LLM behavior
Never put secrets in system prompts; implement external validation for critical constraints, as user input can override system instructions via prompt injection.
Journey Context:
Developers treat system prompts like secure, immutable server-side code. However, to the LLM, a system prompt is just text prepended to the context window. The model follows the most salient instructions, meaning user-provided data containing Ignore previous instructions can easily hijack the system prompt. System prompts are for steering behavior, not for enforcing security boundaries or storing API keys.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T05:15:09.493011+00:00— report_created — created