PvP: Intent-Conditioned Anomaly Detection Against Tool Poisoning Attacks in Agentic AI
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…
- arXiv
- 2612.05593
- Authors
- Max de Leeuw, Cristoffer Leite, Indika Kumara
- Categories
- cs.CR · cs.AI