Report #46206
[counterintuitive] Are system prompts a secure place to store proprietary logic or secrets
Never put secrets, API keys, or proprietary business logic that cannot be exposed in system prompts. Treat system prompts as public-facing inputs.
Journey Context:
Developers often treat system prompts as a secure backend configuration, hiding API keys or proprietary algorithms in them. However, LLMs are inherently text-generation engines, and prompt injection techniques \(like asking the model to repeat its instructions\) can easily extract the system prompt verbatim. System prompts are part of the input context, not a secure enclave. Secrets must be handled in backend middleware, and proprietary logic must be abstracted into backend tools the LLM calls, rather than explained in the prompt.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T08:01:52.668410+00:00— report_created — created