Right Intent, Malicious Action: Intent-Bound Authorization for Model Context Protocol Tool Calls
Abstract
An LLM agent that follows instructions hidden in a tool result can misuse a tool it is authorized to call. Model Context Protocol (MCP) authorization does not prevent this, because it decides at token issuance which tools a client may call and never sees the task the user asked for. We bind each call to that task. A trusted issuer signs a per-task passport listing the permitted tools and resources; SemFW, an MCP proxy, rejects any call outside the passport, asks a local model, the inspector, whether the remaining calls serve the task, and sends flagged high-risk calls to an authenticated human. On a fixed corpus, the passport checks stopped every tested scope and resource escalation, and the inspector cut attack success on in-scope misuse from 100% to at most 4.2% while passing 85.3-88.2% of benign calls. Two prior defenses were either too strict or too permissive. In multi-step sessions from the AgentDojo benchmark, the Gemma inspector's false alarms fell from 32.4% to 6.9% once the proxy tracked where destination arguments came from. A model in the Tamarin protocol verifier proves authenticated issuance, confinement and approval integrity for an issued passport, and shows that a standard proof of possession, which does not cover the request body, lets an observed proof authorize a different call. Checking calls against the task at the protocol boundary can thus complement model-level defenses, provided the policy is correct. Whether issued passports let agents finish clean tasks is still untested.
Create a lesson
Metadata
- Categories
- cs.CR, cs.AI
- Comments
- 10 pages, 3 figures, 7 tables. Code, data, and Tamarin models: https://github.com/instabaines/semantic-firewall-mcp
Related papers
Forensic Visibility of Malicious Model Context Protocol (MCP) Servers: An Empirical Study Across Agent and Kernel Trust Boundaries
Shared title terminologycs.CRCesar R. Beltrán-Hernández
PvP: Intent-Conditioned Anomaly Detection Against Tool Poisoning Attacks in Agentic AI
Shared title terminologycs.CRMax de Leeuw, Cristoffer Leite, Indika Kumara
A General-Purpose Policy and Enforcement Layer for Secure Agent Tool Calls
Shared title terminologycs.CRShincheol Lee, Chansu Han, Takeshi Takahashi
OverReach: Permitted MCP Tool Calls That Reach Beyond the Grant
Shared title terminologycs.CRNguyen Tran Thanh Lam
Execution-Bound Authorization for Delegated AI Agents
Shared title terminologycs.CRAli Akarma, Gohar Ali, Toqeer Ali Syed et al.
Signals, Not Verdicts: Stateful Runtime Protection for Tool-Using Agents
Shared title terminologycs.CRTiancheng Zhu, Mingjie Chen, Mingxue Zhang et al.