← Lab /Security & privacy

Over 80% of real-world LLM apps leak system prompts, but AREA defense improves usability

Most deployed LLM applications expose system prompts and that their AREA defense matches leakage resistance while boosting usability by 33% and cutting overhead by 3×

Security & privacy arXiv 17 Jun 2026 Measurement Real-world evidence

Published as “Understanding and Mitigating Prompt Leaking Attacks in Real-World LLM-Based Applications”

Why it matters

Developers can adopt AREA to substantially lower prompt-leakage risk while preserving application usability and keeping deployment costs low.

Summary

Over 80% of real-world LLM applications leak their system prompts when faced with realistic adversarial queries. Existing defenses either fail to stop leakage or hurt usability, but the proposed AREA defense re-anchors attention with a soft prompt, achieving comparable leakage resistance while boosting average usability by more than 33% and cutting optimization time by about three-fold. The evidence comes from a 1,200-app measurement, a mechanistic analysis of attention drift, and extensive benchmarks showing a better effectiveness-usability trade-off, though some residual similarity scores remain.

What they found 3

  1. More than 80% of evaluated applications leak system prompts under realistic adversarial queries.

    “revealing that over 80% of deployments leak system prompts under realistic adversarial queries”

  2. AREA matches the leakage resistance of defenses while improving average usability by over 33% and reducing optimization overhead by nearly 3×.

    “AREA matches the leakage resistance of defenses while improving average usability by over 33% and reducing optimization overhead by nearly 3×.”

  3. AREA requires substantially less deployment-time optimization than PromptObfuscation and SysVec.

    “AREA consistently incurs significantly lower deployment-time optimization cost than both PromptObfuscation and SysVec”

Caveats 4

  • On Llama-2-7B-chat-hf and Mistral-7B-Instruct, AREA yields very low PLS but slightly higher SS values, indicating residual similarity to leaked prompts.
  • AREA is a mitigation strategy rather than a complete solution and does not provide absolute security guarantees; adaptive attackers may still degrade its effectiveness.
  • First, it requires offline optimization of a soft prompt for each system prompt before deployment, introducing additional deployment overhead.
  • Second, AREA is a mitigation strategy rather than a complete solution and does not provide absolute security guarantees; as with other defenses, sufficiently adaptive attackers may still degrade its effectiveness.

What’s new here 4

  • A large-scale measurement of prompt leakage across 1,200 applications on six commercial platforms.
  • Identification of a "attention drift" phenomenon that explains why defensive instructions are ignored.
  • A soft-prompt based defense (AREA) that re-anchors attention without modifying model weights.
  • Demonstration that AREA improves usability by >33% and reduces optimization overhead by ~3× compared to prior defenses.