Report #75723
[gotcha] Assuming the system API role is an impermeable defense against user role overrides
Do not rely solely on the system message role for security. Implement an external, separate LLM-based guardrail or classifier to evaluate the intent of the final generated output before it reaches the user.
Journey Context:
API providers offer 'system', 'user', and 'assistant' roles. Developers assume the LLM strictly prioritizes the system role. In reality, LLMs are trained on data where user instructions often override system context, and adversarial prompts can easily jailbreak the model by ignoring the role hierarchy. Security must be enforced outside the LLM's context window.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T09:41:41.289806+00:00— report_created — created