Report #45975
[gotcha] System prompt leakage through instruction override
Never put secrets \(API keys, passwords, proprietary logic\) in the system prompt. Use role-based access and separate authentication mechanisms for sensitive operations.
Journey Context:
Developers often use the system prompt to pass API keys or sensitive business logic, assuming the LLM will keep it hidden. However, prompt injection attacks can easily trick the LLM into repeating its system prompt verbatim. The system prompt is not a secure enclave; it is just text that the LLM is instructed to prioritize, but this instruction can be overridden.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T07:38:43.626162+00:00— report_created — created