← Lab /AI/ML

Most LLMs leak system-prompt secrets when coaxed by an AI agent

LLMs will disclose a 16-character secret embedded in their system prompt when persuaded by an agent

AI/ML arXiv 16 Nov 2026 Measurement Real-world evidence

Published as “Eight in Ten LLMs Leak System-Prompt Secrets: Nevan, an Agentic Capture-the-Flag Study”

Why it matters

Practitioners should avoid storing any secrets in system prompts and enforce critical policies outside the model with output validation and deterministic checks.

Summary

The audit captured a secret 16-character flag from 296 of 363 OpenRouter models (plus four post-freeze models) for a total of 300 leaks, showing that a substantial fraction of deployed LLMs will expose system-prompt secrets under adaptive prompting. The evidence comes from a single, fixed capture-the-flag game using a synthetic flag and an AI-agent red-team, covering a large, real-world catalog but limited to that snapshot and to semantics-free secrets.

What they found 2

  1. 296 of 363 catalog models leaked the secret flag, with four additional post-freeze models also captured, for 300 total captures.

    “Of the 363 catalog entries, 296 had their flag exfiltrated. Four models released after the initial catalog freeze are bonus captures2 giving us 300 total unique captures.”

  2. 170 of the 300 captures (56.7%) used a language-based pivot, with French accounting for 119 of them.

    “170 of the 300 captures (56.7%) involved a language; the other 130 were from English-based techniques.”

Caveats 5

  • Fifty entries remain pending and 17 were discarded, indicating that not all models in the catalog leaked the flag.
  • The authors state that a capture does not imply vulnerability to harmful-content jailbreaks or leakage of semantically sensitive data.
  • The catalog was frozen on 6 October 2026; models are updated, deprecated, or replaced, so the results describe that snapshot rather than the current or future catalog.
  • The probe uses a single synthetic, semantics-free flag, so it does not measure guardrails that depend on the meaning of the protected content.
  • Fifty entries remain pending and 17 were discarded, and we make no claim about them.

What’s new here 4

  • A catalog-wide audit of instruction-hierarchy enforcement across 363 text-in/text-out models, far larger than prior studies that examined only a handful of models.
  • Use of an autonomous AI agent (OpenCode + DeepSeek V4.1 Flash) steered by a human to adaptively discover leakage techniques.
  • Systematic reporting of language-pivot techniques, revealing that 56.7% of captures involved non-English prompts, especially French.
  • Release of the full harness, SQLite ledger, and session transcripts as reproducible artifacts.