Agent and MCP security

Tool poisoning, prompt injection, permission scoping and the checks to run before you connect a server.

An agent that can call tools can be steered by anything it reads, including tool descriptions and the content those tools return. These guides explain the main attack patterns with their primary sources and end with a checklist you can run against a server before you connect it.

Read in this order

  1. MCP tool poisoning: how a tool description hijacks your agent

    A poisoned MCP server hides orders for the model inside its tool definitions. Here is what that text looks like, why approving a server once doesn't catch it, and what to check and configure instead.

  2. Prompt injection against coding agents: attack paths and defenses

    Coding agents read issues, files, web pages and tool output, and any of it can carry instructions. This guide maps where injected text gets in and which documented settings limit what a hijacked agent can do.

  3. MCP server security checklist: what to check before you ship

    The requirements the MCP specification puts on server authors, plus the project's guidance for local installs, as a list you can run before each release.

  4. Shadow MCP servers: finding the servers developers added themselves

    Developers add MCP servers in one command, and nobody is asked first. Here is where each client keeps its MCP config, how to build an inventory, and how each client's managed allowlist blocks the rest.

Audit log, Human-in-the-loop (HITL), Least privilege for agents, MCP rug pull, Non-human identity (NHI), Prompt injection, Shadow MCP, SIEM export, Token passthrough, Tool allow-list, Tool poisoning