AI Agent Security — Tool Use, MCP Servers, and the Confused Deputy Problem

Manish Garg
Manish Garg Associate of (ISC)² · RingSafe
Apr 29, 2026
10 min read
Read as
Agents are LLMs given the ability to call tools — search the web, run code, send email, update databases. Every tool the agent can call, the prompt-injection attacker can call. This module covers the unique security model of agents (capabilities, confused deputy, MCP supply chain), and the seven controls that materially reduce risk.

In 2024-2025 the LLM industry pivoted from chatbots to agents. Frameworks like LangGraph, AutoGen, CrewAI, and the Model Context Protocol (MCP) standardised tool use. Anthropic’s computer-use Claude can move your mouse. ChatGPT can browse the web. Cursor and Cline run code on your machine. Every capability granted to the agent is a capability granted to whoever can prompt-inject it — including content from any web page, email, or document the agent processes.

The agent threat model in one sentence

“An LLM agent should be modelled as a confused deputy: it acts with the permissions of the developer/user, but its instructions can come from any text it ingests.” Every other security property follows. If the agent reads a webpage and the page contains injected instructions, the agent might execute those instructions with your AWS credentials, email account, calendar, or filesystem. The classic confused deputy from operating-systems literature (1988) is now production reality.

Need help with this?

Book a free 30-minute scoping call

Our senior consultants will review your stack and tell you honestly what to fix first. No slide deck. No obligation. Indian businesses only.

Book scoping call Replies in 4 working hrs · India-only · Senior consultants