An attacker files a routine billing ticket and hides instructions for the agent below the signature, in white text. The support agent reads the ticket, pulls other customers’ tickets and emails them to the attacker. No alert fires, and no line of code was wrong (Anaconda’s poll write-up).
That was a staged demo, run on November 18 against a fictional agent. The audience polls around it are harder to shrug off. Of 98 respondents whose agents use MCP servers, 63% rely on a manual review or no test at all (Anaconda’s poll write-up).
This checklist is for the engineer who signs off on an agent before it ships. It splits the audit into seven groups of checks, names the file, tool or metric each one produces, and ends with the order to run them.
What the Audit Gap Looks Like Before Deployment
The first poll set the baseline. Of 110 respondents, 12 said their agents do not use MCP servers yet. Among the 98 who do, 37% scan servers before approval and again on every change, 33% review the code or tool list by hand, and 31% do not test them yet (Anaconda).
The servers themselves are not clean. Enkrypt AI by Anaconda had scanned 64,753 MCP servers in its MCP Vulnerability Scan Hub as of November 24, 2026. Of those, 48% had at least one vulnerability and 8% (4,904 servers) had a critical-risk finding (Anaconda).
The third poll is the sharpest. Asked which test would have caught the ticket attack first, 35% of 88 respondents chose code review and 33% chose manual prompt testing, 68% in total. Only 27% picked an automated red-team scan, and 5% said they would find out in production (Anaconda). Code review looks for bugs, and the demo agent had none. It did exactly what it was built to do.
Limits of the Poll Data Behind These Checks
Read these percentages as a signal from one room, not an industry rate. Anaconda ran four Zoom polls during the live session, and 173 attendees answered at least one. Each poll drew between 88 and 110 answers, respondents chose themselves, and Anaconda says the results describe that audience only (Anaconda).
The 48% figure has its own boundary. It comes from one vendor’s scanner and one corpus of servers, counted on one date (Anaconda). A different scanner, rule set or server list would give a different rate.
The other three sources are not surveys. Use them for the mechanics of each check, not for how common a problem is.
Inventory Every Server, Owner and Token Scope
The demo agent, called Relay, read each new support ticket and drafted a reply. It connected to two MCP servers: a helpdesk server that could read every customer’s tickets, and an email server that could send to any address (Anaconda).
Simon Willison calls this mix the “lethal trifecta”: access to private data, exposure to untrusted content and a way to send data out. Remove any one and the ticket attack fails (Anaconda).
The output is one inventory file next to the MCP client config each agent loads. For every server it records the agent that calls it, a named owner, the approved version and the scopes its token carries. Each agent row also marks which of the three trifecta legs it holds.
Anaconda’s advice is to list what each token can reach and test with the broadest one (Anaconda). If Relay could see only the customer on the ticket and reply only to the sender, the hidden instructions would have failed.
Put an Automated Scan in Front of Every Change
Only 37% of MCP users in the poll scan before approval and on every change (Anaconda). An approved server can change its tool descriptions or behavior in a later version, so approval-time review covers only the server you saw.
In the second run of the demo, an automated scan attacked Relay and its two servers the way an attacker would. It flagged three problems: hidden instructions could enter through the helpdesk tool, the helpdesk token reached every customer’s tickets, and customer data could leave through the email tool (Anaconda). Each finding maps to one leg of the trifecta.
Wire the scan as a CI job, not a calendar reminder. Trigger it when the MCP config file changes, when a pinned server version moves and when any tool description changes, since the model reads every description. Scan the code and the live server, keep the report as a build artifact, and fail the job on any critical finding.
Plant Hidden Instructions in Every Source the Agent Reads
Of 101 respondents in the second poll, 23 said their agents do not read outside content. Among the 78 whose agents do, 27% test for hidden instructions on every release, 56% have tried it once or twice by hand, and 17% have not tested yet (Anaconda).
The attack does not succeed every time. The session’s MCP Security Checklist says to repeat each test at least 10 times (Anaconda).
Build the test as a fixture set: in each source the agent reads, plant one marker instruction, such as a request to email a canary address. Run the full agent flow 10 times per source and log which attempts fired. The metric is the fire rate per source, tracked per release.
Test the actions as one sequence too. Anaconda’s advice is to run read, then write, then send as a single flow, because each call in the demo looked harmless on its own (Anaconda).
Inspect Tool Returns and Block Unneeded Actions
The fourth poll asked what respondents would add first. Of 88 respondents, 41% would block actions the task does not need, 30% would check tool returns for hidden instructions, 22% chose a stronger system prompt, and 8% chose human approval for every outbound email (Anaconda).
The top two choices are the controls that stopped the attack in the third run. Through the open-source Secure MCP Gateway, the hidden instructions were flagged before the agent read them, the email to an outside address was blocked, and both decisions were logged (Anaconda). In Anaconda’s view, a stronger prompt helps a little, but attackers can write around it.
For the audit, the gateway policy file is the artifact. Per agent, it lists the tools the agent may call, the recipients each sending tool may reach, and a rule to scan every tool return before the model sees it. The metric is blocked and flagged decisions per week, read from the gateway log.
Confine Paths, Ports and Owner-Only Routes
pendpost, an MCP server that drafts and publishes social posts, audited itself in November 2026 and found 10 gaps. Most were ways a connected agent could reach a file or an action it should never touch, and none needed a protocol bug. All shipped as fixes in pendpost 2.13.0 on November 12, 2026 (pendpost’s audit).
The 2026-07-28 MCP spec sets four rules for servers using Streamable HTTP. Validate the Origin header (a MUST, with 403 for an invalid value), bind to 127.0.0.1 when local, authenticate connections, and keep a human able to deny tool calls (pendpost).
With PENDPOST_HOST=0.0.0.0 and no PENDPOST_AUTH_TOKEN, only the Host allowlist was left. A script on the network sent Host: 127.0.0.1:8090 and got every REST route, every MCP tool and the Studio owner token (pendpost). The server now refuses to start in that state.
Path arguments were the second pattern. asset_upload took a filePath and could copy any local file, including a client’s signing key, into the media folder for download. A YouTube captionPath could upload a client’s .env as captions. The fix checks file type by content, refuses dot folders and paths outside the workspace, and checks again at use time (pendpost).
MCP roots will not do this for you; the spec calls them guidance and deprecates them. Owner-only actions such as credentials and billing sit behind a Studio token the agent never sees, and pendpost answers owner_token_required without it (pendpost).
The author closes with three tests to copy. Start a server on 0.0.0.0 without a token and it should refuse to boot. Send a forged Host header or a foreign Origin and both should be refused. Pass ../.env or a dot folder to any tool that takes a path and the call should fail (pendpost).
Treat Agent-Facing Endpoints as Permission Boundaries
On November 25, Cloudflare introduced Search for Agents, a dashboard toggle that creates an AI Search instance for a zone, indexes its content and serves a search API from the customer’s own domain (Cloudflare’s announcement). It is open to all customers, including Free, with limits.
To make the index findable, Cloudflare adds agent: meta tags to every page. The endpoint takes the form /.well-known/search?q={query}, and results come back as Markdown, not generated answers (Cloudflare). Because it remains an AI Search instance, you can also enable a public REST API or an MCP endpoint on it.
Once indexing finishes, any agent on the internet can use the search, subject to your bot management settings, AI Crawl Control and WAF configuration (Cloudflare). Treat the toggle as a permission change, not a content setting.
Before enabling the index, list which paths it will crawl and confirm none hold drafts, internal docs or customer data. Then read the Bot Management, AI Crawl Control and WAF rules that apply to /.well-known/search and any MCP endpoint. The endpoint also supports the new HTTP QUERY method, published as RFC 10008 in June 2026, so test those rules against QUERY as well as GET (Cloudflare).
Rank Fixes by Exploitability Evidence
At re:Invent, OpenAI said it will connect AWS Continuum, an AWS service for code vulnerabilities, with Daybreak, its program for cyber models on Amazon Bedrock. Continuum uses evidence from the customer’s AWS environment, including network paths and access permissions, to validate which vulnerabilities are exploitable before ranking them (OpenAI’s re:Invent post).
OpenAI’s example: a flaw in a public-facing service with access to customer records may warrant an immediate fix. The same flaw may be unreachable in an isolated test environment.
Developers can bring a finding and its evidence into Codex through Daybreak, adapt the proposed patch and test that it closes the flaw. Before deciding whether to merge, they see why the fix matters and what the tests showed (OpenAI).
You can copy the method without that stack. Join your scan report to the inventory from the first group, and record for each finding the network path to the server and the token scope it runs with. A critical finding on a localhost server with a read-only token can wait behind a medium one on a public server that can send email anywhere.
Keep a person on the merge. In the JPMorgan Chase example OpenAI gives, the bank’s security team decides what changes to make (OpenAI). Name that engineer in the triage ticket.
Primary Sources Behind These Checks
- Anaconda: MCP Security: Live Attack Demo Poll Results, published 2026-12-01.
- OpenAI: OpenAI and AWS expand partnership at re:Invent, published 2026-12-01.
- Cloudflare: Introducing Search for Agents, published 2026-11-25.
- pendpost: MCP server security checklist: what our audit found, published 2026-12-01.
The Order to Run This Audit Checklist
Run the groups in the order above: inventory, scan gate, injection tests, runtime guardrails, path and port limits, endpoint exposure, then evidence-based ranking. Ranking comes last because it needs the scan report and the token scopes.
Week One
- List every MCP server each agent calls in one inventory file next to the MCP client config, with a named owner, the approved version and the scopes its token carries.
- Mark each agent that holds all three trifecta legs, and remove one where the task allows it.
- Add a CI job that runs the MCP scan when the config file, a pinned server version or a tool description changes, and fail it on any critical finding.
- Start each server you run on 0.0.0.0 without a token and confirm it refuses to boot, then confirm a forged Host header and a foreign Origin both get refused.
Before the Next Release
- Hide a canary instruction in every source the agent reads, run each flow 10 times, and log the fire rate per source in the release notes.
- Run read, write and send as one test sequence with the broadest token in the inventory.
- Write the gateway policy with allowed tools per agent, allowed recipients per sending tool and a scan of every tool return, then confirm the gateway log records both blocks and flags.
- Pass
../.env, a dot folder and a renamed text file to every tool that takes a path, and fail the build if any call succeeds.
Every Quarter
- Check the Bot Management, AI Crawl Control and WAF rules in front of
/.well-known/searchand any MCP endpoint before you enable or widen an agent search index. - Rank open findings by network path and token scope, and record in each triage ticket the named engineer who decided the merge.
- Track three numbers each quarter: the share of servers scanned on every change, the hidden-instruction fire rate per source, and gateway blocks per agent.
