LeakSealer: A Semisupervised Defense for LLMs Against Prompt Injection and Leakage Attacks
On the map: LLM safety and security → Jailbreaking
Abstract (arXiv)
The generalization capabilities of Large Language Models (LLMs) have led to their widespread deployment across various applications. However, this increased adoption has introduced several security threats, notably in the forms of jailbreaking and data leakage attacks. Additionally, Retrieval Augmented Generation (RAG), while enhancing context-awareness in LLM responses, has inadvertently introduced vulnerabilities that can result in the leakage of sensitive information. Our contributions are twofold. First, we introduce a methodology to analyze historical interaction data from an LLM system, enabling the generation of usage maps categorized by topics (including adversarial interactions). This approach further provides forensic insights for tracking the evolution of jailbreaking attack patterns. Second, we propose LeakSealer, a model-agnostic framework that combines static analysis for forensic insights with dynamic defenses in a Human-In-The-Loop (HITL) pipeline. This technique identifies topic groups and detects anomalous patterns, allowing for proactive defense mechanisms. We empirically evaluate LeakSealer under two scenarios: (1) jailbreak attempts, employing a public benchmark dataset, and (2) PII leakage, supported by a curated dataset of labeled LLM interactions. In the static setting, LeakSealer achieves the highest precision and recall on the ToxicChat dataset when identifying prompt injection. In the dynamic setting, PII leakage detection achieves an AUPRC of 0.97, significantly outperforming baselines such as Llama Guard.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in Jailbreaking, one of 12 directions in LLM safety and security. Builds on 22 of its 43 references that are in the map. First posted on arXiv 1 Aug 2025.
Builds on
22 of 43 references.
Closest ancestors · 7
Same direction, newest first
- 2024Defending Large Language Models Against Jailbreak Attacks via Layer-specific Editing28 May
- 2024WordGame: Efficient & Effective LLM Jailbreak via Simultaneous Obfuscation in Query and Response22 May
- 2024PARDEN, Can You Repeat That? Defending against Jailbreaks via Repetition13 May
- 2024Don't Listen To Me: Understanding and Exploring Jailbreak Prompts of Large Language Models26 Mar
- 2024Play Guessing Game with LLM: Indirect Jailbreak Attack with Implicit Clues14 Feb
- 2023MasterKey: Automated Jailbreak Across Multiple Large Language Model Chatbots16 Jul
- 2023Jailbroken: How Does LLM Safety Training Fail?5 Jul
Other references · 15
- 2017Attention Is All You Needcited by 60,361
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,626
- 2018UMAP: Uniform Manifold Approximation and Projection for Dimension Reductioncited by 2,898
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,411
- 2023Retrieval-Augmented Generation for Large Language Models: A Surveycited by 2,212
- 2023Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injectioncited by 1,443
- 2023Llama Guard: LLM-based Input-Output Safeguard for Human-AI Conversationscited by 1,207
- 2023Harnessing the Power of LLMs in Practice: A Survey on ChatGPT and Beyondcited by 411
- 2024StruQ: Defending Against Prompt Injection with Structured Queriescited by 375
- 2022A Holistic Approach to Undesired Content Detection in the Real Worldcited by 356
- 2020A Review of Generalized Zero-Shot Learning Methodscited by 159
3 more
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2025Scalable Defense against In-the-wild Jailbreaking Attacks with Safety Context Retrieval
- 2025Paper Summary Attack: Jailbreaking LLMs through LLM Safety Papers
- 2025Context Misleads LLMs: The Role of Context Filtering in Maintaining Safe Alignment of LLMs
- 2024Jailbreak Attacks and Defenses Against Large Language Models: A Survey
- 2024Jailbreaking and Mitigation of Vulnerabilities in Large Language Models
- 2025Exploring Jailbreak Attacks on LLMs through Intent Concealment and Diversion
- 2026SoK: Robustness in Large Language Models against Jailbreak Attacks
- 2024A Comprehensive Study of Jailbreak Attack versus Defense for Large Language Models