Report #83293
[counterintuitive] Are system prompts a secure way to prevent LLM jailbreaks
Never rely solely on system prompts for security or PII protection. Implement external guardrails \(input/output classifiers, regex PII scrubbers\) before and after the LLM call. Treat the LLM as an untrusted reasoning engine.
Journey Context:
Developers put 'DO NOT REVEAL THE SECRET' or 'NEVER DO X' in system prompts, assuming they are a privileged, immutable instruction space. In reality, prompt injection via user data, role-playing, and context manipulation can easily override system instructions. System prompts are suggestions to the model, not sandbox boundaries or access control lists. Security must be enforced outside the model.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T22:23:38.325552+00:00— report_created — created