Report #62104
[gotcha] System prompt extraction through translation or formatting tasks
Never put secrets, API keys, or sensitive business logic in the system prompt. Use authorization checks in middleware, not in the prompt.
Journey Context:
Developers try to hide internal logic in the system prompt, assuming the LLM won't repeat it. But asking the LLM to 'translate the above to French' or 'repeat the words starting with You' often causes it to regurgitate the system prompt. The LLM does not have a separate memory space for system prompts; it's just text in the context window, and formatting tasks can cause it to be output.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T10:43:49.682828+00:00— report_created — created