Assume the system prompt can eventually be extracted, so never place secrets, credentials or critical business logic that must stay private in it.
Move sensitive logic and data access into server-side code and tools with proper authorization; keep the prompt to behavior guidance.
Add output filters for verbatim prompt text, canary strings to detect leaks, and instructions not to reveal the prompt, as a weak extra layer rather than the main defense.
Loading…