<- Back to Blog
Blog

MCP Turns Two. What’s an Agent’s Tool Worth to an Attacker?

Introducing MCP(T), Alt’s new capability for targeted offensive security testing of MCP servers. Our agentic attacker and researchers used it to uncover dozens of vulnerabilities. This post examines five that maintainers have fixed across AWS, the official MCP project, and a popular open-source agent platform.

The MCP logo as a bronze relief. A thin line of light enters from the lower left, runs through the channels of the logo, and leaves through a gap in its wall as an arrow.
AltX

“Working tree clean.”

That’s what the official MCP Git server told Peter, our agentic attacker, when he checked a repository for uncommitted changes. The answer was accurate. What it didn’t show was that the status check had also triggered a command on the host, with all the permissions of the account running the server.

Two years ago, Anthropic introduced the Model Context Protocol (MCP). Today, “the agent checked the repo” sounds routine. MCP helped make that possible. An agent can read a support ticket, inspect the code it refers to, and query the cloud account where that code runs, all through one open standard. Developers can give other agents those same tools without rebuilding each integration. That’s one of MCP’s biggest contributions to the agentic revolution.

In December 2025, Anthropic donated MCP to the Agentic AI Foundation, where it became a founding project. To the maintainers who built MCP and the community that put it to work, happy second birthday.

Peter’s Git result brings us back to a question every security team approving these tools faces: When you give an agent permission to use a tool, what have you actually authorized?

Today we’re introducing MCP(T) for targeted pentesting of MCP servers and the tools they expose. Working with Alt researchers, Peter used MCP(T) to find five vulnerabilities across the AWS API MCP Server, Ruflo, and the official MCP Git server.

How MCP(T) follows a tool call from query to impact

Peter starts with the MCP servers your team puts in scope. For each tool, he maps what it’s supposed to do, who can call it, and whose permissions it uses when it runs. In the Git example, the agent asked a read-only question, but the server answered it using an account that could run commands on the host.

Those permissions and connections shape what Peter tests. He checks whether a caller can use a tool to do more than its stated purpose suggests, drawing on prior MCP vulnerability research by Alt researcher Yuval Elbar. When Peter finds a gap, he validates the impact in a controlled test and records both what the tool reported and what happened on the system behind it.

The AWS finding in the Alt platform: the attack path from a Support Desk token to the Cloud Ops MCP server and the AWS account, with the validated exploitation evidence.
Figure 1: The finding in the Alt platform: an AWS MCP server accepting a token minted for another app.

For the security team, each validated finding answers three questions. What has to be true for this to affect us? What could someone do with the access they gain? What change closes that path?

Once the fix is in place, Peter can retest it.

What we found in production software

Our findings fell into three categories. In the official MCP Git server, three flaws let a repository run commands as the server’s user. In AWS, an authentication flaw let a caller use a token issued for a different application. In Ruflo, a network access flaw let a visitor reach internal services through a chat window. None of the five required anyone to trick the model.

Five findings, three categories
Figure 2. One square per finding. Each was rated High, and each has been fixed in the version shown.

All five vulnerabilities detailed below were rated High and have been fixed by their maintainers. Alt’s research team has also responsibly disclosed dozens more MCP-related vulnerabilities, many of which are still awaiting fixes.

Server What it’s for What went wrong Impact Fixed in
mcp-server-git Gives AI agents git tools Three gaps in its repository hardening Commands run as the server’s user 2026.11.18
AWS API MCP Server Runs AWS CLI commands for AI agents Accepted access tokens issued to other apps AWS commands run with the server’s AWS identity 1.6.0
Ruflo (ruvocal chat app) Connects chat sessions to MCP servers User-supplied URLs could resolve to internal addresses When chat login was disabled, anonymous visitors could reach internal services through the server 3.71.4

A Git status check that ran code

The official MCP servers repository includes mcp-server-git, which allows agents to inspect a working tree (the project’s files as they sit on the machine right now), compare changes and merge branches. Checking status is about as routine as it gets. A developer might reasonably approve that action every time.

Git itself is more complicated. A repository’s local configuration can tell Git to run other programs as part of its work. The MCP server’s maintainers had already taken steps to account for this. Version 2026.11.11 inspected the repository’s configuration before each tool call and disabled settings known to run external programs.

Testing that protection with Peter, we found three gaps:

  • Filter names. Git accepted a filter (a setting that runs a program on file contents) with an empty name, and the server’s check overlooked it.
  • Timing. A merge could introduce configuration that hadn’t existed when the check ran.
  • Fetching missing data. Even an operation that only displays changes can cause Git to retrieve a missing object, a piece of repository data it doesn’t have locally. The repository could influence which program handled that request.
One status check, seen from both sides

The maintainers fixed all three issues in 2026.11.18.

Figure 3. The status check from the opening of this post. Select a gap to see where it got past the server’s protection.

Each gap allowed a repository to run a command as the user running the MCP server. Two could be triggered by read-only tools. The output could still look entirely routine, including a clean working tree or a message that a merge had been aborted.

Which deployments were exposed? The repository’s local configuration had to arrive on the machine. An ordinary git clone does not copy the source repository’s .git/config, the file that holds this configuration. An archived project, copied workspace or CI artifact can carry it. For a team that accepts those workspaces, the consequences depend on what the server’s operating-system account can access, including any source code or credentials available to it.

The maintainers fixed all three issues in 2026.11.18. All three advisories list Peter’s GitHub account as the reporter. Filter names advisory · Timing advisory · Fetching missing data advisory

AWS accepted a valid token for the wrong app

The AWS API MCP Server allows agents to run AWS CLI commands using the AWS identity configured on the host. In deployments using streamable HTTP with OAuth, where callers connect over the network and sign in with a token, the server also needs to decide who can ask it to use that identity.

Picture a shared mailroom. A letter arrives with a valid stamp, a real postmark and today’s date. The clerk checks all three and hands it over without reading the name on the envelope.

Versions 1.3.0 through 1.5.x treated access tokens much the same way. The server checked the signature, issuer and expiry. It skipped the audience, the field identifying the application a token was issued for. A company’s identity provider often serves several applications. A caller with local access to the affected server could present a token issued for a different application in the same tenant (the company’s own account with that identity provider), and the server would accept it.

The same token, two server versions

Figure 4. What the server checked on an access token before and after the fix. Switch versions to compare.

What did that buy the caller? In our lab, a token intended for another app was enough to create an AWS Lambda function and run code inside the account. Lambda is AWS’s service for running code on demand. The caller needed no AWS credentials of their own. The server supplied the authority, and its AWS permissions set the limit. In a second demonstration, an agent working an ordinary ticket reached the same outcome by presenting the wrong token.

AWS fixed CVE-2026-115413 in 1.6.0. Operators using OAuth must now configure the expected token audience or client ID. AWS acknowledges Yuval Elbar for the coordinated disclosure.

Ruflo put an internal network within reach of a chat session

Ruflo is an open source platform for orchestrating AI agents. Its ruvocal chat app lets a session connect to an MCP server by URL. A visitor supplies an address, but the chat server makes the connection. Those two parties can have very different views of the network.

Ruvocal checked user-supplied addresses before connecting. Its rules allowed some local destinations, and its checks on private IP addresses missed hostnames that resolved to an internal address. The MCP connection also bypassed the network component designed to keep the address that was checked and the address actually contacted in sync.

One address, two views of the network

Figure 5. How a visitor’s address became a request from inside the network, and what the fix checks. Switch versions to compare.

What could a visitor see? In a deployment with login disabled and the chat page exposed, an anonymous visitor could make requests from the server’s position on the network. Responses or error messages came back through the chat. An internal service could therefore be reachable to someone whose only direct access was to a public chat window. Which services and data were exposed depended on the deployment.

Ruflo fixed this in 3.71.4 and attributed it to our security researcher. Addresses supplied in requests must now use public HTTPS, and the destination is checked when the connection is made. Operators can still configure trusted local MCP servers themselves.

Could your MCP servers be an attacker’s way in?

In our tests, one tool could run a command on a developer’s machine. Another could act with the server’s AWS permissions. A third could reach an internal service from a public chat window. The value depended on where the tool ran, whose authority it carried, and what it could reach.

Two teams can approve the same tool and take on different risks. MCP(T) gives each team evidence of what that approval means in its own environment.

Talk to Alt about testing your AI apps and MCP servers