PvP: Intent-Conditioned Anomaly Detection Against Tool Poisoning Attacks in Agentic AI
Abstract
Agentic Artificial Intelligence (AI) has shifted from text generators to autonomous systems that can run unsupervised; calling external tools to retrieve information and executing tasks to achieve user-defined goals. While bringing unprecedented automation, they also introduce new security risks. Current defence approaches are insufficient against tool poisoning in the agent's planning phase, which derives a tool/task execution plan: Simple filters (e.g., regular expressions) miss context, agent isolation patterns trust metadata during plan creation, and attack detection methods need access to model weights. To improve the detection of tool poisoning attacks, this work introduces the first contextual anomaly detection approach for agentic AI planning by building on the Plan-then-Execute (Plan-and-Act) pattern, which separates task planning from its step-by-step execution. We first operationalise user intent using sentence embeddings and k-NN clustering, allowing the contextualisation of user prompts and execution plans. We then evaluate multiple features to quantify tool-name semantics, tool relevance, coherence, and tool frequency in agentic planning. We create a dataset of tool plans with anomalies by building on existing benchmarks and grafting attacks based on the MITRE ATLAS framework. After testing multiple candidate detectors, our selected approach achieves 91.7% True Positive Rate (TPR) at 5.1% False Positive Rate (FPR) with robust generalisation even to new prompts. This shows its viability for detecting tool poisoning in an Agentic AI environment and introduces an architecture that can serve as a foundation for more secure agentic systems.
Create a lesson
Metadata
- Categories
- cs.CR, cs.AI
- Comments
- This work has been submitted to the Journal of Information Security and Applications (JISA) for review. For associated repository, see https://github.com/imperador/anomaly-detection-agentic-ai
Related papers
Signals, Not Verdicts: Stateful Runtime Protection for Tool-Using Agents
Shared title terminologycs.CRTiancheng Zhu, Mingjie Chen, Mingxue Zhang et al.
A General-Purpose Policy and Enforcement Layer for Secure Agent Tool Calls
Shared title terminologycs.CRShincheol Lee, Chansu Han, Takeshi Takahashi
GenWebSec: Adaptive Web Application Firewall Hardening with Co-Evolving LLM Attack and Defense Agents
Shared title terminologycs.CRVahid Babaey, Arun Ravindran
Multi Surface Attack: An Agent Is Only as Safe as Its Weakest Surface
Shared title terminologycs.CRMd Touhidul Islam, Khan Thamid Hasan, Md Shah Imran Shovon et al.
Right Intent, Malicious Action: Intent-Bound Authorization for Model Context Protocol Tool Calls
Shared title terminologycs.CRRidwan Amure, Precious Sanni
Intelligent Event-Safe Cyber-Physical Attack Detection and Localization in Critical Water Infrastructure: A Cross-Dataset Study of SWaT and WADI
Shared title terminologycs.CRVictor Kebande