Skip to content
IAM Insights

Vendors · Boston Identity

Invariant Labs

What IAM Insights has published on Invariant Labs: 16 briefings and 5 findings that name it.

What we found

Findings that name Invariant Labs, the strongest first. Each links to the briefing and the evidence behind it.

  1. Beurer-Kellner and Fischer hid instructions in the description of a fake MCP tool called add, text the model reads but many clients never show the user. The hidden text tells the model to read ~/.cursor/mcp.json and ~/.ssh/id_rsa and pass their contents in an extra sidenote argument, to give "detailed reasoning about how adding two numbers" works while it reads, and not to mention the file reads to the user. In the Cursor transcript they show, the user asked the agent to add 5 and 1; the agent read mcp.json and an SSH key file, called add, and answered with an explanation of the sum. That config file can hold credentials for the user's other MCP servers. The prose speaks of SSH private keys, but the screenshot shows the agent reading id_rsa.pub, the public key. A second screenshot, the approval dialog for a call with different numbers, prints the opening of the sidenote and cuts the rest off at the edge of the window; the authors say even Cursor's extended view "does not show the full tool input (e.g. the included SSH key is completely hidden)".

    BI-FIND-2025-0617 · In Invariant Labs' Cursor test, hidden text in an MCP tool description got the agent to send out the user's MCP config

  2. The authors argue that approving an MCP server at installation does not settle what it can do later. The server supplies its own tool descriptions, so it can change them after the client has approved it; they call this a rug pull and compare it with the Python Package Index (PyPI), where malicious packages can be uploaded and later modified to include harmful code. Their fix is for clients to pin the server and tool versions and check a hash or checksum of each tool description before running it. Neither of the post's two experiments tests a rug pull or any of the fixes. For the third fix, controls on data passing between servers, the post names the Invariant stack as an example.

    BI-FIND-2025-0619 · In Invariant Labs' Cursor test, hidden text in an MCP tool description got the agent to send out the user's MCP config

  3. The survey's clearest case from a shipped product is Invariant Labs' Toxic Agent Flow against GitHub's MCP server. An attacker plants an issue in a public repository; the user's agent reads it while fixing that repository, pulls private-repository data into its context and leaks it in an open pull request. The authors say the attack shows model alignment and prompt-injection defences failing, and they restate Invariant's fixes: granular permission controls and continuous security monitoring. We read the leak as a problem of reach, since one GitHub access covered both the public repository and the private one.

    BI-FIND-2025-0576 · A survey of MCP and A2A attacks pairs each identity threat with a fix, and tests none of them

  4. The paper motivates MCP Guardian with eight attack classes from earlier reports — including Invariant Labs' tool-poisoning and shadowing examples, look-alike server names such as tavily-mcp versus mcp-tavily, tampered installers, unpinned updates, token theft, sandbox escape, and Equixly's finding that "43% of MCP server implementations tested were susceptible to injection" — and claims in Section 2.6 to address threats "from tool poisoning to command injection, by blocking suspicious calls before they reach critical internal APIs." Because Guardian hooks invoke_tool inside the server and checks call arguments with basic pattern matching, the authors concede in Section 5.4 that "MCP Guardian cannot fully protect against a compromised server or malicious code within an MCP tool itself" and that when multiple LLMs share one Guardian instance, "tracking distinct agent identities and usage quotas becomes non-trivial." Sandboxing, signed tool registries, OAuth 2, mutual TLS, and Open Policy Agent Rego policies are left as complementary controls or future protocol extensions alongside Open WebUI's mcpo proxy.

    BI-FIND-2025-0447 · MCP Guardian wraps tool calls in token and regex checks, leaving poisoned servers and agent IDs open

  5. Invariant Labs' mcp-scan flagged possible tool poisoning in 5.5% of the 73 servers it scanned, roughly four of them. Tool poisoning hides instructions for the model in a tool's description and needs no change to the tool's executable logic, and the authors read the rate as a sign that general tools see only part of the risk. They call it more common than credential exposure. That compares two tools on samples of 73 and 583 servers, and the smaller sample was sized for a 10% margin of error. The paper shows none of the flagged descriptions. Because it reads only descriptions, mcp-scan also missed what the authors found by hand: apple-notes-mcp needs full disk access, and godot-mcp came with auto-approval for sensitive operations.

    BI-FIND-2025-0383 · A code scanner's top find in 583 MCP servers was hard-coded keys; tool poisoning needed an MCP-specific scanner

Discussed in 16 briefings

Every briefing in which Invariant Labs is part of the analysis, newest first.

  1. The Agent Authenticator draft asks IANA for an OAuth token type for agent assertions

    Draft · · IETF Datatracker · Harish Santhanalakshmi Ganesan · Nov 15, 2026

  2. In one author's MCP benchmark, a confirmation prompt on every call still let 6 of 10 attacks through

    Paper · · arXiv · Ting Liu, SymbolicLight · Jun 27, 2026

  3. Wisconsin researchers check each agent action against its history, in small tests with hand-written rules

    Paper · · arXiv · Nils Palumbo et al. · Feb 18, 2026

  4. Refuse the risky action when its plan relies on untrusted input, a Beihang survey of agent attacks proposes

    Paper · · arXiv · Guanquan Shi et al. · Dec 7, 2025

  5. A poisoned MCP tool got an agent to copy the client's config file without asking; deleting a file did ask

    Paper · · arXiv · Yongjian Guo et al. · Aug 18, 2025

  6. In a test harness, two of three MCP hosts refused a prompt asking for credentials; none refused a poisoned tool

    Paper · · arXiv · Yixuan Yang et al. · Aug 17, 2025

  7. A 'provable' bound on agent-memory injection assumes independent layers and fills in none of its detection rates

    Paper · · arXiv · Ken Huang et al. · Aug 17, 2025

  8. MCP-Guard's classifier alone came within half a point of its best full pipelines' F1 on the authors' test set, and ran faster

    Paper · · arXiv · Wenpeng Xing et al. · Aug 14, 2025

  9. A survey of MCP and A2A attacks pairs each identity threat with a fix, and tests none of them

    Paper · · arXiv · Mohamed Amine Ferrag et al. · Jun 29, 2025

  10. Each of eight AI models fell for at least one jailbreak planted in a simulated MCP server

    Paper · · arXiv · Junfeng Fang et al. · Jun 16, 2025

  11. A code scanner's top find in 583 MCP servers was hard-coded keys; tool poisoning needed an MCP-specific scanner

    Paper · · arXiv · Mohammed Mehedi Hasan et al. · Jun 16, 2025

  12. Meta's LlamaFirewall cut agent attacks to 1.75% in a replay that counts late catches as defended

    Paper · · arXiv · Sahana Chennabasappa et al. · May 6, 2025

  13. OWASP's multi-agent threat guide finds the hop where a user's permission check drops out, but names no fix

    Article · · OWASP GenAI Security Project · OWASP Agentic Security Initiative · Apr 22, 2025

  14. MCP Guardian wraps tool calls in token and regex checks, leaving poisoned servers and agent IDs open

    Paper · · arXiv · Sonu Kumar et al. · Apr 17, 2025

  15. In Invariant Labs' Cursor test, hidden text in an MCP tool description got the agent to send out the user's MCP config

    Article · · Invariant Labs · Luca Beurer-Kellner et al. · Apr 1, 2025

  16. AgentDojo's best defence against prompt injection was a tool list fixed before the agent reads anything

    Paper · · arXiv (NeurIPS 2024 Datasets and Benchmarks) · Edoardo Debenedetti et al. · Jun 19, 2024

Keeps company with

The standards, products and vendors that appear alongside Invariant Labsin our briefings.

MCP-ScanJSON-RPC 2.0Claude DesktopMCP GuardianTencentMCP TypeScript SDKMCPToxFIDES