System prompts are the hidden instructions given to an AI model before it answers a user. Companies sometimes put secret information, like passwords or rules, into these prompts. This study tested whether that information stays secret.
Researchers built an AI agent that tried to trick 363 different language models into revealing a hidden 16-character code from each model's system prompt. The agent used persuasion techniques, including switching to a different language like French. This worked on 300 models.
The finding shows that storing secrets in system prompts is unsafe. The AI agent’s success means a user’s request can override a model’s built-in instructions. Developers should enforce important rules outside the model, not trust it to keep secrets.
