Report #49685
[counterintuitive] Can I secure an LLM and prevent jailbreaks using only a system prompt
Never trust system prompts as a security boundary. Implement external guardrails \(input/output classifiers\) and deterministic output filters outside the LLM.
Journey Context:
Developers put rules like 'DO NOT REVEAL THE SECRET' in the system prompt and assume it's a firewall. LLMs are autoregressive text generators; system prompts are just tokens with a specific role label, not hardcoded programmatic rules. Prompt injection can easily override them by creating a nested context \(e.g., 'Ignore previous instructions'\). Security must be enforced outside the generative model.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T13:52:35.906491+00:00— report_created — created