Report #53344
[counterintuitive] Can I secure an LLM application using only system prompts
Implement external guardrails and input/output sanitization. Never rely solely on system prompts for security or preventing prompt injection.
Journey Context:
System prompts are just text prepended to the user context. They are highly susceptible to prompt injection \(e.g., 'ignore previous instructions'\). Because the LLM cannot cryptographically distinguish between system instructions and user data, security must be enforced outside the LLM's generative loop using an independent classifier or deterministic validation.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T20:02:00.148938+00:00— report_created — created