Skip to content

DataSentinel: A game-theoretic detection method for prompt injection attacksDataSentinel: A Game-Theoretic Detection of Prompt Injection Attacks

arXiv· arXiv:2504.11358· IEEE S&P 2025· Yupei Liu, Yuqi Jia, Jinyuan Jia, Dawn Song, Neil Zhenqiang Gong·Indexed by this site · 27 days ago· Originally publishedDefenses
AI summary

The researchers propose DataSentinel, a game-theoretic method for detecting prompt injection attacks; evaluations on multiple benchmark datasets and LLMs show that it can effectively detect existing and adaptive attacks. The paper's motivation is that existing detection methods have limited effectiveness against state-of-the-art attacks and are even less able to cope with adaptive attacks in which the injected prompt is strategically adjusted to evade detection. Methodologically, DataSentinel fine-tunes an LLM to identify inputs contaminated by injected prompts, models detection as a minimax optimization problem with the goal of enabling the LLM to detect strong adaptive attacks, and proposes a gradient-based method that alternately solves the inner and outer layers.

Related events and news

2 events · 2 news mentions

News that mentions this paper

研究测量简历筛选中的真实提示注入攻击

伯克利提出提示注入防御方案PromptArmor

Read originalIEEE S&P 2025