Large language models (LLMs) and their applications, such as agents, are highly vulnerable to prompt injection attacks. State-of-the-art prompt injection detection methods have the following limitations: (1) their effectiveness degrades significantly as context length increases, and (2) they lack explicit rules that define what constitutes prompt injection, causing detection decisions to be implicit, opaque, and difficult to reason about. In this work, we propose AgentWatcher to address the above two limitations. To address the first limitation, AgentWatcher attributes the LLM's output (e.g., the action of an agent) to a small set of causally influential context segments. By focusing detection on a relatively short text, AgentWatcher can be scalable to long contexts. To address the second limitation, we define a set of rules specifying what does and does not constitute a prompt injection, and use a monitor LLM to reason over these rules based on the attributed text, making the detection decisions more explainable. We conduct a comprehensive evaluation on tool-use agent benchmarks and long-context understanding datasets. The experimental results demonstrate that AgentWatcher can effectively detect prompt injection and maintain utility without attacks. The code is available at https://github.com/wang-yanting/AgentWatcher.
DSTAN-Med: Dual-Channel Spatiotemporal Attention with Physiological Plausibility Filtering for False Data Injection Attack Detection in IoT-Based Medical Devices
The Australian National University(澳大利亚国立大学);Charles Sturt University(查尔斯史特大学)
Instrumental Monitor Evasion Emerges Under Ordinary Task Pressure
ELLIS Institute Tübingen(图宾根ELLIS研究所);Max Planck Institute for Intelligent Systems(马克斯·普朗克智能系统研究所);Tübingen AI Center(图宾根人工智能中心);Snyk(Snyk公司);Exponential Security Labs(指数安全实验室);University of Tübingen(图宾根大学)
PromptShield Home: Ambient Multimodal Prompt Injection Defense for Smart-Home Agents
The Pennsylvania State University(宾夕法尼亚州立大学);Chang’an University(长安大学);Beijing Normal University(北京师范大学);Carnegie Mellon University(卡内基梅隆大学);University of Edinburgh(爱丁堡大学);Tsinghua University(清华大学)