Sentinel: SOTA model to protect against prompt injections
Abstract
Sentinel, a detection model based on ModernBERT-large, effectively identifies prompt injection attacks with high accuracy and outperforms existing baselines.
Large Language Models (LLMs) are increasingly powerful but remain vulnerable to prompt injection attacks, where malicious inputs cause the model to deviate from its intended instructions. This paper introduces Sentinel, a novel detection model, qualifire/prompt-injection-sentinel, based on the \answerdotai/ModernBERT-large architecture. By leveraging ModernBERT's advanced features and fine-tuning on an extensive and diverse dataset comprising a few open-source and private collections, Sentinel achieves state-of-the-art performance. This dataset amalgamates varied attack types, from role-playing and instruction hijacking to attempts to generate biased content, alongside a broad spectrum of benign instructions, with private datasets specifically targeting nuanced error correction and real-world misclassifications. On a comprehensive, unseen internal test set, Sentinel demonstrates an average accuracy of 0.987 and an F1-score of 0.980. Furthermore, when evaluated on public benchmarks, it consistently outperforms strong baselines like protectai/deberta-v3-base-prompt-injection-v2. This work details Sentinel's architecture, its meticulous dataset curation, its training methodology, and a thorough evaluation, highlighting its superior detection capabilities.
Community
As jailbreaks become more specific to a client use case the case for a fast "inference time" filtering for malicious inputs is obvious. This paper describes out efforts of creating the STOA model based on ModernBERT to ensure blazing fast verdicts while keeping extremely high accuracy.
This is an automated message from the Librarian Bot. I found the following papers similar to this paper.
The following papers were recommended by the Semantic Scholar API
- CAPTURE: Context-Aware Prompt Injection Testing and Robustness Enhancement (2025)
- Robustness via Referencing: Defending against Prompt Injection Attacks by Referencing the Executed Instruction (2025)
- Is Your Prompt Safe? Investigating Prompt Injection Attacks Against Open-Source LLMs (2025)
- Defending against Indirect Prompt Injection by Instruction Detection (2025)
- OET: Optimization-based prompt injection Evaluation Toolkit (2025)
- Implicit Jailbreak Attacks via Cross-Modal Information Concealment on Vision-Language Models (2025)
- One Model Transfer to All: On Robust Jailbreak Prompts Generation against LLMs (2025)
Please give a thumbs up to this comment if you found it helpful!
If you want recommendations for any Paper on Hugging Face checkout this Space
You can directly ask Librarian Bot for paper recommendations by tagging it in a comment:
@librarian-bot
recommend
Models citing this paper 1
Datasets citing this paper 0
No dataset linking this paper
Spaces citing this paper 0
No Space linking this paper