Skip to content
IAM Insights

Briefing · Paper · source · published · Boston Identity

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

Yixuan Yang, Daoyuan Wu and Yufan Chen built MCPSecBench, a harness of 17 attacks on the Model Context Protocol (MCP), and ran them 15 times per host on Claude Desktop, GPT-4.1 and Cursor. Claude Desktop and GPT-4.1 refused a prompt asking for credentials in some or all runs, and Cursor never did. Poisoned tools, look-alike server names and servers that changed behaviour mostly got through. Many of the perfect scores, though, measure flaws the authors built into the harness.

arXiv · Yixuan Yang, Daoyuan Wu, Yufan Chen · August 17, 2025 · read

share
3 findings6 sectionsAgentic identity
6,739 words. With Yixuan Yang, author, University of Twente; Daoyuan Wu, author, Lingnan University; Yufan Chen, author, CityU Shenzhen Research Institute.
01

What's happening

Finding3
BI-FIND-2025-0333Lead finding

In the authors' test harness, the MCP hosts refused some attacks typed into the prompt and almost never refused attacks that came through a tool or server.

In the authors' test harness, the MCP hosts refused some attacks typed into the prompt and almost never refused attacks that came through a tool or server. Claude Desktop refused a request to show credentials in all 15 runs and GPT-4.1 in 33.3%, while Cursor never refused it; all three hosts refused a deliberately misdescribed tool in 46.7% to 60% of runs. Across the other 15 attacks in Table 1, the only refusals are GPT-4.1's 20% on tool shadowing, Cursor's 40% on tool-name squatting and one rug-pull block by Claude Desktop; tool poisoning, data exfiltration and indirect prompt injection succeeded in every run on Claude Desktop and GPT-4.1. The authors credit Claude Desktop's refusal to "strong prompt filtering", but their screenshot shows it citing the tool's own description, which told it not to use that function. They put Cursor's lower success on several server attacks down to its workflow, file paths and workspace limits rather than to detection.

medium confidencebest source: independent researchobserved Aug 2025EvidenceSection 3Section 4Section 5
Also reported in +1 briefing
flag a problem with BI-FIND-2025-0333
BI-FIND-2025-0335

MCPSecBench's 100% rows are best read as proof that its attacks work in the authors' playground; they give no rate for MCP deployments in use.

We read MCPSecBench's 100% rows as proof that its attacks work in the authors' playground, not as rates for MCP deployments in use. Nine of the 16 attacks run on all three hosts succeeded in every run on every host, and in five of them, by our reading, the flaw was one the authors built in. The client is mcp-remote v0.0.15, deployed because it contains CVE-2025-6514, a flaw that lets a malicious server run operating-system commands through the client. Schema inconsistencies are tested with outdated schema definitions, the sandbox escape runs against a server they wrote with a command-injection flaw, and the man-in-the-middle and DNS-rebinding scripts demonstrate the risks of unencrypted, unauthenticated transport. Configuration drift is scored 100%, though the results section describes no test of it. The paper never shows how it counted the abstract's "over 85%" of attacks compromising a platform; in Table 1, all 17 succeeded at least once on at least one host.

high confidencebest source: independent researchobserved Aug 2025EvidenceSection 3Section 2Section 5
flag a problem with BI-FIND-2025-0335
BI-FIND-2025-0334

In the harness, a look-alike tool or server name, or a server that changed partway through, got past the hosts tested in most runs.

In the harness, a look-alike name or a server that changed partway through got past the hosts in most runs. A malicious tool named like a benign one won every run on Claude Desktop and GPT-4.1 and 60% on Cursor, and a server mimicking a benign server's name won every run on all three hosts. In Cursor, a custom slash command that overlapped a default one showed credentials in every run while still resetting the context. A server that began leaking data after several interactions succeeded in 93.4% of runs on Claude Desktop and GPT-4.1 and 73.3% on Cursor. The paper tests no defence; one fix it cites against squatting and rug pulls, ETDI, uses OAuth-enhanced tool definitions and policy-based access control.

medium confidencebest source: independent researchobserved Aug 2025 – Oct 2025EvidenceSection 5Section 4Section 6
Also reported in +1 briefing
flag a problem with BI-FIND-2025-0334
02

Section by section

6

showing 6 of 6

[1]

Taxonomy: 17 attack types across four MCP attack surfaces

Yixuan Yang, University of Twente · Daoyuan Wu, Lingnan University · Yufan Chen, CityU Shenzhen Research Institute

Agentic identity

Yang, Wu and Chen claim the first systematic MCP security taxonomy: 17 attack types over four surfaces (user interaction, client, transport, server), each with a short formal definition. It is argued from the MCP architecture and cited incidents such as CVE-2025-6514 in mcp-remote; nothing is measured in this section.

technical artifactfrom published text + figures

[2]

MCPSecBench: four components of the playground

Yixuan Yang, University of Twente · Daoyuan Wu, Lingnan University · Yufan Chen, CityU Shenzhen Research Institute

MCPSecBench bundles a prompt dataset, hosts for Claude, OpenAI and Cursor, a deliberately vulnerable client (mcp-remote v0.0.15, which carries CVE-2025-6514), malicious and shadow servers, and transport attacks (man-in-the-middle and DNS rebinding). The authors call it modular and extensible and link the code at github.com/AIS2Lab/MCPSecBench; we did not open the repository.

technical artifactfrom published text + figures

[3]

Evaluation setup and the Table 1 headline numbers

Yixuan Yang, University of Twente · Daoyuan Wu, Lingnan University · Yufan Chen, CityU Shenzhen Research Institute

The authors ran 17 attacks on Claude Desktop v0.12.28, OpenAI's GPT-4.1 and Cursor v1.2.2, 15 times per attack and host. In Table 1, nine attacks succeeded in every run on all three hosts; the text names four of them as universally successful and drops them from discussion. The abstract's claim that over 85% of attacks compromise at least one platform is never counted. Prompt and tool-selection attacks varied most from host to host.

technical artifactfrom published text + figures

[4]

Prompt, tool-description and slash-command attacks: results differ by host

Yixuan Yang, University of Twente · Daoyuan Wu, Lingnan University · Yufan Chen, CityU Shenzhen Research Institute

Agentic identity

Three attacks that come in through the user's side gave results that varied by host. A prompt asking for credentials succeeded 0% of the time on Claude Desktop, 66.7% on OpenAI and 100% on Cursor. A tool misdescribed in the prompt ("Confused AI") was misused in 40% to 53.3% of runs on all three. In Cursor, a slash command that overlapped a default one exposed credentials in every run, though the tool's description said not to share them.

technical artifactfrom published text + figures

[5]

Server-side attacks and why Cursor's lower rates are not defences

Yixuan Yang, University of Twente · Daoyuan Wu, Lingnan University · Yufan Chen, CityU Shenzhen Research Institute

Agentic identity

Server-side attacks mostly succeeded: data exfiltration, server-name squatting, sandbox escape and tool poisoning hit 100% on all three hosts. The authors put Cursor's lower rates (tool shadowing 26.7%, vulnerable server 53.3%, indirect injection 73.3%) down to its workflow, file paths and workspace limits rather than to detection. Only Claude Desktop blocked a rug pull, once in 15 runs.

technical artifactfrom published text + figures

Terms used

Model Context Protocol
Model Context Protocol: an open standard, originated by Anthropic, for connecting AI assistants to tools and data.
Claude Desktop
Anthropic desktop host app for MCP servers.
Tool poisoning
Hiding malicious instructions in the description or parameters of a tool an AI agent can call, so the model is steered into leaking data or taking actions its user never intended.
Data exfiltration
Unauthorised transfer of data out of a system.
Prompt injection
Hiding instructions in text an AI model reads, such as an email or a web page, so the model does something its operator never asked for.
Rug pull attack
A tool or MCP server is benign at install, then updated to carry malicious behavior or descriptions.
Enhanced Tool Definition Interface (ETDI)
Proposed MCP extension: cryptographically signed tool manifests, immutable versions, and OAuth-scoped tool definitions to stop tool squatting and rug pulls.
OAuth
The web's standard framework for delegated authorization — letting one application act at another on a user's (or machine's) behalf without sharing passwords.

Cited in our columns

Read next

Was this briefing useful?

Share this briefing

Every finding, forecast and open question on this site has a permanent ID. If we reword one, its ID stays the same, so a citation keeps pointing to the same claim.

Follow us on LinkedInRSS feed

Working on an identity problem this research touches? Talk to Boston Identity