Report #49729
[counterintuitive] Can I hide logic in the system prompt from users
Never put secrets, API keys, or sensitive business logic in system prompts assuming they are hidden. Treat system prompts as user-visible. Use server-side validation and backend logic for security.
Journey Context:
Developers treat the system prompt like backend code, assuming the LLM acts as a secure sandbox. In reality, prompt injection, jailbreaks, and direct probing can easily extract the system prompt verbatim. System prompts are instructions to the model, not access control mechanisms.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T13:57:19.688473+00:00— report_created — created