Enhancing security in LLM applications: a performance evaluation of early detection systems
Valerii Gakh, Hayretdin Bahsi
Key points
From the paper's conclusion- We revealed that, thanks to their detection policies, Vigil is optimal for cases when a minimal false positive rate is required, and Rebuff is the most optimal for the highest detection rate.
Abstract
Prompt injection (PI) attacks threaten novel software applications, which have LLM-based functionality. Prompt leakage, a variant of prompt injection, constitutes a serious confidentiality risk to those applications. Existing defenses against PI attacks currently cannot identify prompt leaks precisely. Moreover, an attacker can construct leakage attacks, which could evade most of these defenses. This prevents the ubiquitous adoption of LLMs in software applications. Meanwhile, there is a lack of practical investigations into the effectiveness of prompt injection (PI) detection tools. There is a gap in practical knowledge on how precisely existing tools detect PI attacks, and how they should be further improved. We evaluated the capabilities of early prompt injection detection systems, focusing on the performance of detection techniques implemented in several open-source solutions. We tested the solutions against prompt leak attacks that employed widespread injection techniques such as context-ignoring and context-manipulation. We present an analysis of distinct PI detection techniques and a comparative analysis of LLM Guard, Vigil, and Rebuff. We concluded that the designs of canary word-based detection techniques in Vigil and Rebuff were weak against our prompt leak attacks. We propose improvements for them. We found an evasion weakness in Rebuff’s secondary model-based technique and proposed a mitigation. We revealed that, thanks to their detection policies, Vigil is optimal for cases when a minimal false positive rate is required, and Rebuff is the most optimal for the highest detection rate.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Prompt Injection Attacks on Large Language Models: A Survey of Attack Methods, Root Causes, and Defense StrategiesComputers, materials & continua/Computers, materials & continua (Print) · 2025
- Detecting Prompt Injection Attacks in Generative AI Systems: A Hybrid SIEM and One-Class SVM FrameworkElectronics · 2026
- Detecting and Mitigating Query-Based System Prompt Leakage AttacksarXiv · 2026
- Passing the Test You Trained On: Re-evaluating Prompt-Injection Detectors for LLM AgentsarXiv · 2026
- The Devil is in the Context: Nine Dimensions of Prompt Injection AttacksarXiv · 2026
- Context-Aware Prompt Injection Detection via Small Language Models in RAG Pipelines: nokast-secureRAGarXiv · 2026