Eight in Ten LLMs Leak System-Prompt Secrets: Nevan, an Agentic Capture-the-Flag Study
Ana Clara Zoppi Serpa, Anderson Rocha, H\'elio Pedrini
Key points
From the paper's conclusion- We audit instruction-hierarchy enforcement across 363 text-in/text-out models from the OpenRouter catalog.
Abstract
We audit instruction-hierarchy enforcement across 363 text-in/text-out models from the OpenRouter catalog. The research question we answer with this experiment is which models disclose a protected secret embedded in the system prompt, and through which techniques. Each model guards a secret 16-character flag set in its system prompt, while an artificial intelligence (AI) agent (OpenCode, powered by DeepSeek V4.1 Flash), steered by a human researcher, tries to persuade it to emit the flag. The flag was exfiltrated from 296 of the 363 models, plus four models released after the initial catalog freeze, for 300 captures in total. Of these, 170 involved a non-English language pivot, most often French. Each capture shows that a model ranked a user request above its system instruction at least once. It does not show that the model provably resists untested attacks, nor that it would consistently leak semantically sensitive data, nor that it is vulnerable to harmful-content jailbreaks. For practitioners, we draw three lessons: do not store secrets in system prompts, enforce critical behavior outside the model with output validation and deterministic checks, and do not let a large language model (LLM) judge be the sole decider of consequential outcomes.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Red-Teaming a Sovereign LLM, Its Reasoning and Its Training StagesarXiv · 2026
- The Devil is in the Context: Nine Dimensions of Prompt Injection AttacksarXiv · 2026
- Detecting and Mitigating Query-Based System Prompt Leakage AttacksarXiv · 2026
- Prompt-Based Jailbreaking of Leading LLM Chatbots: A Survey of Attacks and DefensesIEEE Transactions on Artificial Intelligence · 2026
- CredLeakBench: Evaluating Credential Leakage and Recovery in LLM AgentsarXiv · 2026
- Inadvertent Context Leakage in Language ModelsarXiv · 2026