paper-with-me

Papers

PromptArmor: Simple yet Effective Prompt Injection Defenses

2025-07-21 · Tianneng Shi, Kaijie Zhu, Zhun Wang, Yuqi Jia, Will Cai, Weida Liang, Haonan Wang, Hend Alzahrani, Joshua Lu, Kenji Kawaguchi, Basel Alomair, Xuandong Zhao, William Yang Wang, Neil Gong, Wenbo Guo, Dawn Song arxiv

Despite their potential, recent research has demonstrated that LLM agents are vulnerable to prompt injection attacks, where malicious prompts are injected into the agent's input, causing it to perform an attacker-specified task rather than the intended task provided by the user. In this paper, we present PromptArmor, a simple yet effective defense against prompt injection attacks. Specifically, PromptArmor prompts an off-the-shelf LLM to detect and remove potential injected prompts from the input before the agent processes it. Our results show that PromptArmor can accurately identify and remove injected prompts. For example, using GPT-4o, GPT-4.1, or o4-mini, PromptArmor achieves both a false positive rate and a false negative rate below 1% on the AgentDojo benchmark. Moreover, after removing injected prompts with PromptArmor, the attack success rate drops to below 1%. We also demonstrate PromptArmor's effectiveness against adaptive attacks and explore different strategies for prompting an LLM. We recommend that PromptArmor be adopted as a standard baseline for evaluating new defenses against prompt injection attacks.

📄 PDF Abstract BibTeX arXiv:2507.15219

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

LongPIBench: A Long-Context Benchmark for Prompt Injection

2026-08-28 · Yupei Liu, Yuqi Jia, Neil Zhenqiang Gong, Jinyuan Jia arxiv

Prompt injection attacks pose a serious security risk to large language models in real-world applications. However, existing prompt injection benchmarks primarily focus on short-context inputs, leaving the attacks and de…

RL Is a Hammer and LLMs Are Nails: A Simple Reinforcement Learning Recipe for Strong Prompt Injection

2025-10-06 · Yuxin Wen, Arman Zharmagambetov, Ivan Evtimov, Narine Kokhlikyan 외 arxiv

Prompt injection poses a serious threat to the reliability and safety of LLM agents. Recent defenses against prompt injection, such as Instruction Hierarchy and SecAlign, have shown notable robustness against static atta…

Reinforcement Learning

Formalizing and Benchmarking Prompt Injection Attacks and Defenses

2023-10-19 · Yupei Liu, Yuqi Jia, Runpeng Geng, Jinyuan Jia 외

A prompt injection attack aims to inject malicious instruction/data into the input of an LLM-Integrated Application such that it produces results as an attacker desires. Existing works are limited to case studies. As a r…

Benchmarking

A Critical Evaluation of Defenses against Prompt Injection Attacks

2025-05-23 · Yuqi Jia, Zedian Shao, Yupei Liu, Jinyuan Jia 외

Large Language Models (LLMs) are vulnerable to prompt injection attacks, and several defenses have recently been proposed, often claiming to mitigate these attacks successfully. However, we argue that existing studies la…

PIArena: A Platform for Prompt Injection Evaluation

2026-04-09 · Runpeng Geng, Chenlong Yin, Yanting Wang, Ying Chen 외 arxiv

Prompt injection attacks pose serious security risks across a wide range of real-world applications. While receiving increasing attention, the community faces a critical gap: the lack of a unified platform for prompt inj…