Prompt secrecy does not solve prompt injection

Hiding the system prompt does not stop anybody attacking it.

System prompts leak routinely, and injection does not require knowing what the instructions say in the first place. Somebody does not have to read your prompt to write text that overrides it. Secrecy is at best a small obstacle, and relying on it means the actual defences, permissions and boundaries, never get built.

More on Prompt injection