Skip to main content

Press ESC to close

73% of Scanned MCP Servers Had Vulnerabilities. Are Your AI Agents Exposed?

Penetration Testing & AppSec9 minute readEvidence-led guidance

You can tell whether an AI agent is exposed through a connector by tracing one tool call from the agent’s active configuration to the system that carries out the action. Start with a connection that can change records, send messages or reach sensitive data. Find the identity it uses, establish which resources it can access, and verify that a denied or unapproved action leaves the downstream system unchanged. Use that evidence to decide whether to keep, restrict or remove the connection.

What the 73% scan measured

Enkrypt AI reported at least one vulnerability in 73% of the 25,000 Model Context Protocol (MCP) servers it scanned in the two months before August 2026. The scan covered more than 268,000 tools. An MCP server is a type of connector that exposes callable tools to an AI application, such as searching a repository or updating a ticket. One server can expose several tools, so the 73% figure uses servers as its denominator. Enkrypt AI sourced servers from public places such as GitHub and npm. The published aggregate leaves the severity distribution and representativeness of private deployments uncertain.

Anaconda’s scan announcement · Enterprise Buyer’s Guide to Agent Red Teaming · Enkrypt AI’s sampling description

1. Inventory the connections your agents can actually use

Start with one real workflow and its owner. For example, a support agent needs to read assigned tickets and request a status change after a person reviews it. Look at the running agent’s enabled tools, its managed connector settings and any project or developer overrides that apply to that workflow. Where a gateway is involved, review the gateway’s active policy as well. Compare what the agent can see with the approved list and review invocations over a defined period. A connection with no recent calls can still be available.

Use one inventory row per meaningful combination of agent, tool, acting identity and resource scope. A single “ticketing MCP server” row will hide the distinction between a lookup in one queue and a state-changing action across every queue. Record each part of the connection.

  • Owner and purpose. Name the team accountable for the connector and the workflow that needs the tool.
  • Source and deployment. Record the package, repository or service endpoint, its version or comparable revision, the environment and whether it runs locally or remotely. For a hosted connector whose exact build is unavailable, record the provider’s release identifier or observed tool catalog and the limits of what you can verify.
  • Tool and effect. Record what the tool can read or change, the approved resource boundary, whether the call can trigger downstream effects, and which calls require approval.
  • Identity and enforcement. Record who starts the call, the identity used by the connector and the downstream API or process identity where these differ. Identify the policy that can deny the call and the log that would prove the denial.
See also  OWASP API Security Top 10 Testing Guide

Compare the deployed tool catalog with the reviewed baseline when a connector changes. A renamed tool, a new operation or a larger set of permitted resources can change the exposure while the connection name stays the same. The MCP tools specification describes named tools, discovery through tools/list and support for changes to the catalog. Where the client supports it, use the ordinary catalog surface from the intended account and environment.

An MCP tool call passes through a policy check before it reaches the connected system. A denied call stops at the check.
Record the agent, tool, live identity and downstream system for each connection. Capture denials at the policy boundary.

2. Check privileges at the system that performs the action

Take the ticketing example. The agent serves the synthetic queue helpdesk-test. The connector exposes get_ticket for assigned tickets and update_ticket_status for an approved status change. A second synthetic queue, finance-test, gives you an out-of-scope control. This is an illustrative setup. Adapt the names to a staging tenant you control and populate it with fabricated tickets.

Ask the ticketing administrator to show the access granted to each downstream identity. Use a read-only identity for lookups where your integration supports separate credentials, and scope it to the intended queue and applicable user permissions. Constrain the write identity to the smallest required action and resource. If the ticket API grants permissions only at queue level, document that granularity and enforce the narrower decision in the component that executes the write. Confirm that downstream permissions remain as narrow as the platform supports.

Inspect both sides of the connection. For a remote HTTP MCP server that uses the protocol’s authorization mechanism, confirm that the server validates the token for the intended resource and requests suitable scopes. Check separately how it authenticates to the ticketing service. The MCP authorization specification describes token audience binding and scope. The MCP security guidance also covers token passthrough and local servers. For a local connector, include the process account, accessible files, inherited environment and permitted network destinations in the review.

A broad service identity can make a carefully scoped agent interface misleading. Compare the visible action list with the actual permissions and inspect alternate entry points that are part of your own deployment, such as a background retry worker. Controls should apply to that call path as well. When a requested permission has no owner or business justification, restrict the connection until the owner can produce one.

3. Bind approval to the exact write

Give the reviewer a specific decision. Show the requested tool, ticket, queue and state transition. For this exercise, show a change from open to resolved for TEST-102 in helpdesk-test. Display the expected effect and a rollback owner if a real workflow warrants one. Require the approval service and executor to agree on the same request, acting identity, authorized target and relevant parameters. A generic consent to use the ticket connector leaves the scope of a specific later write unresolved.

See also  Broken Access Control Testing Checklist

At execution, check that the approval remains valid and the ticket is still in the state the reviewer saw. If the target or requested change differs, or the approval expires, hold the write for a new decision. When workers retry requests, use the downstream system’s supported duplicate handling where available, and confirm through read-back that the outcome was applied once. The goal is a saved record that shows which person approved which action and what actually happened.

Use scoped credentials and enforce the decision at the executor or downstream policy boundary. A visible approval prompt is part of the user experience. The component capable of changing the ticket must also require the applicable approval before it acts. OWASP’s guidance on tool misuse recommends per-tool least privilege, authorization for tool invocations and human confirmation for high-impact actions. Put the approval requirement where the write can actually be held.

4. Run four synthetic checks in staging

Use an isolated test tenant and dedicated test identities. Set up TEST-101 and TEST-102 in helpdesk-test, plus TEST-201 in finance-test. Give the tester read access to the synthetic records through an independent administrative or observation path. Keep outbound customer notifications and production automation outside the exercise. Capture the current ticket state, the connector revision and the policy version before running the cases. Issue each request through the supported staging workflow.

Synthetic staging test matrix showing an allowed read, denied out-of-scope read, blocked unapproved write and one approved write.
Require evidence both at the decision point and in the synthetic ticket system after each test.
Synthetic case Expected result Evidence to save
Read TEST-101 in the assigned queue Allowed. Only the permitted ticket fields are returned. Allowed tool decision linked to the expected ticket identifier.
Read TEST-201 outside the assigned queue Denied. No ticket data appears in the response. Policy denial and a response check confirming that the test record stayed undisclosed.
Request a status change to TEST-102 without approval Held or denied under the configured policy. The ticket stays open. Decision event and independent downstream read-back of the open ticket.
Approve the exact change to TEST-102 Allowed once. The ticket becomes resolved. Matching approval, execution and independent ticket audit entries for the same request.

Give all four requests separate identifiers. Verify the positive read first so a broken connector cannot make the denial case appear to pass. For the pending write, check the ticket after the applicable processing window and confirm that no write is still queued for later execution. Once the normal approval succeeds, recheck the ticket history for one recorded change. If your executor uses retries or queued execution, add a documented staging case for a replay and another for an expired or cancelled approval. The expected outcomes are no further mutation and an observable reason for the decision.

The policy record and the ticket history answer different questions. “Denied” at a gateway tells you what the gateway decided for that request. The ticket history tells you whether the system recorded a change. Keep a timestamp, request ID, agent and tool identifier, actor or service identity reference, policy version, decision reason and a downstream receipt where available. Use identifiers and synthetic data in the evidence record. Keep access tokens and full sensitive payloads out of the logs. For an expanded verification workflow, see how to verify security fixes with Codex, deployment checks and synthetic alerts.

See also  Penetration Retesting: Verify Remediation

5. Decide what to keep, restrict or remove

Keep a connection when the owner can show a current business need, a reviewed tool catalog, a bounded identity and observable allow and deny results for the approved scope. Record the scope in the change ticket, including any write actions that need a separate approval. Give the owner a retest trigger, such as a tool update, identity change, policy edit or new downstream system.

Restrict when a useful connection has uncertain or unnecessarily broad permissions. Functions that can safely remain read-only can stay available within the verified scope. Hold sensitive writes when the owner cannot reconcile the approval with a downstream event, or when a staging timeout makes the outcome inconclusive. Give the corrective action to the owner of the failing layer. Route a broad grant to the identity administrator, an unapproved write to the integration owner, and missing evidence to the logging owner. Repeat the failed and matching positive checks after the change.

Remove a connection when the workflow has no accountable owner, the tool is unused and unnecessary, or the integration cannot support the required access boundary. Disable the connection where it is distributed, revoke its dedicated grants through the owning system and check that it no longer appears in the relevant active catalog. Check credential dependencies before revocation if an identity is shared. Retain the evidence and the approved record of the change for the next review.

A version update can invalidate the earlier evidence even when the vendor and endpoint stay the same. Review tool additions and changes to resource scope before enabling them. Save the observed connector and policy revisions alongside the allowed and denied cases. If the production environment differs in identity, gateway rules or tool set, record the difference explicitly and decide which verification must follow the change. For related controls such as handling instructions from retrieved content, see the broader AI agent security checklist. Teams that want to practice collecting evidence across their broader staging environment can use the controlled security self-testing guide.

Choose one connector to review

Pick one connector with write access and put the owner, identity and allowed resource in the same record. Run the staging cases and review the downstream evidence. Record what the agent can act on, which calls the controls stopped, and which permissions still need to change. Those observations answer whether this connection exposes the systems it can reach.

Access ControlAI Securityapplication securityMCP integrationsSoftware Supply Chain Security

Jamieson-Don Consultants

Jamieson-Don Consultants publishes EncryptCentral to help business owners, security leaders, and technical teams turn cybersecurity evidence into decisions they can implement and verify. Our work draws on official advisories, recognized standards, vendor documentation, and attributable technical research. We explain what a control is for, who owns it, how to deploy it, where it can fail, and what evidence demonstrates that it is working. EncryptCentral is educational and independent: commercial relationships are disclosed, verified facts are separated from judgment, and our content does not replace legal, compliance, incident-response, or professional security advice.