Report #75232
[gotcha] System prompt leakage and secret exposure
Never put secrets \(API keys, internal logic, PII\) in the system prompt. Treat the system prompt as public knowledge. Use backend validation for logic, not prompt instructions.
Journey Context:
Developers treat the system prompt as a secure 'backend' configuration. However, prompt injection \(direct or indirect\) can trick the model into regurgitating the system prompt verbatim. Once the system prompt is leaked, any API keys or internal business logic encoded in it are exposed. The system prompt is frontend code to the LLM, not a secure vault.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T08:52:23.017634+00:00— report_created — created