Report #53521
[gotcha] Using system prompts to enforce access control and authorization
Implement authorization and access control in deterministic, traditional application code outside the LLM. Never rely on the LLM to decide if a user is allowed to see data based on prompt instructions.
Journey Context:
Developers put rules like 'Only show the user their own files' in the system prompt. Prompt injection easily overrides this, causing the LLM to expose other users' data. System prompts are suggestions, not security boundaries. The LLM cannot cryptographically enforce access control; it merely predicts text. Access control must be enforced by the backend.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T20:19:48.124244+00:00— report_created — created