MCP Security: What It Is, Key Risks and Enterprise Best Practices
In September 2025, developers using an npm package called postmark-mcp thought they had installed an ordinary email connector for their AI agents. The package had no connection to Postmark. Its publisher had impersonated the company and built trust over 15 clean versions. Then version 1.0.16 added a backdoor that quietly BCC'd every email sent through it to an outside server. Koi Security, which found it, called it the world's first real-world malicious MCP server.
That package would have passed a security review on the day it was installed. This is the problem MCP security has to solve. The servers your AI agents depend on can change after you approve them, and most security tools don't watch the moment an agent decides which tool to call. In May 2026, the NSA's AI Security Center warned that MCP adoption has outpaced the safeguards the protocol's designers expected.
This guide explains what MCP security covers and what changed in 2026. It goes through the risks that matter and how to score any MCP server before you trust it. Then it looks at what real incidents teach, sets out eight enterprise best practices, and shows how to choose a solution.
Worried about the MCP servers your agents connect to today?
Talk to our team about what your AI agents can reach, and how LangProtect Vector quarantines unknown MCP servers until an administrator approves them.
What is MCP security?
MCP security is the set of controls that decide which Model Context Protocol (MCP) servers your AI agents can connect to, which tools they're allowed to call, what data passes through those calls, and how every call is logged. It covers two kinds of servers: the ones your teams build, and the ones they install from vendors, open-source projects and public registries.
The Model Context Protocol is a standard Anthropic introduced in November 2024. It defines how AI applications connect to external tools, data sources and services. That standard is what lets a coding assistant open a pull request, a support agent update a ticket, or an analyst's copilot query a database, all through one common interface instead of a custom integration for each. It's also why MCP security has become its own discipline. An agent with real tools no longer just answers questions; it acts with real credentials on real systems.
How does MCP work inside an enterprise?
MCP has three parts. The host is the AI application the user works in, such as Cursor, VS Code, Claude Desktop or an agent runtime. Inside the host, an MCP client holds one connection to each MCP server. Each server exposes three kinds of capability: tools the agent can call, resources it can read, and prompts it can reuse. Servers connect in one of two ways. Local servers run on the user's machine over standard input/output (stdio), and remote servers run over Streamable HTTP.
One detail changes how you should think about risk. The model sees the tool descriptions from every connected server in its context. A description written by one server's publisher can therefore influence how the agent uses every other server in the same session. That's the root of the attacks that cross from one server to another, covered later in this guide.

The diagram shows three trust boundaries. Agent to tool is where the agent trusts a server's tool descriptions and results. Tool to data is where a server acts on enterprise systems with its own credentials, which are often broader than the user's. Agent to agent is where one agent's output becomes another agent's instructions. Every MCP control in this guide works at one or more of these boundaries.
Is MCP secure by default?
No. The specification states that the protocol cannot enforce its own security principles at the protocol level, so every security decision falls to the team implementing it. Authorization is optional in the protocol. Authentication, per-tool permissions, checks that a tool's definition hasn't changed, and audit logging all have to be added by whoever deploys MCP.
That isn't a flaw unique to MCP. HTTP doesn't enforce access control either. The difference is what sits on the other end of the connection: an AI model that follows natural-language instructions, some of which come from content nobody in your organization wrote. The protocol's own security best practices and the OWASP MCP Security Cheat Sheet describe the controls. Putting them in place is your job.
How is MCP security different from API security and AI agent security?
MCP security includes API security but goes further. Traditional API security assumes predictable, human-driven requests. MCP adds autonomous agents that chain actions and call tools without anyone watching.
| API security | AI agent security | MCP security | |
|---|---|---|---|
| What it protects | Known endpoints called by predictable applications | The agent's goals, reasoning and outputs | The connection between agents and the tools and data they can reach |
| Main controls | Authentication, rate limits, schema validation, TLS | Prompt filtering, output checks, guardrails | Server approval, per-tool permissions, tool-definition integrity, checks before each call, identity-linked logs |
| What it misses on its own | Why an agent is calling and on whose behalf | Which server and tool the agent is about to use, and with what credentials | Nothing at the tool layer, but it still relies on API and agent controls for their own layers |
In practice, enterprises need all three layers. MCP security is the one most teams don't have yet, because it sits exactly where an agent's decision turns into an action.
What changed for MCP security in 2026?
MCP security moved from "bring your own controls" to formal guidance in 2026. The NSA published design guidance, OWASP released an MCP-specific Top 10, the 2026-07-28 specification changed how sessions and authorization work, and a wave of CVEs exposed unsafe defaults in local MCP servers. For security teams, this means MCP no longer has to be judged on vendor claims alone. There are now public reference points that auditors, architects and procurement teams can all point to.
The NSA's MCP security guidance (May 2026)
In May 2026, the National Security Agency published Model Context Protocol (MCP): Security Design Considerations for AI-Driven Automation. It's one of the first government documents written specifically about MCP. Its central finding is direct: "MCP's rapid proliferation has outpaced the development of its security model." The NSA describes MCP's design as flexible but underspecified, so its security depends mainly on how each team builds and runs it.
The concerns it lists map closely to what enterprises see in practice:
- authentication is optional, and many implementations lack role-based permissions
- a trusted server's capabilities can change without the user reviewing them
- the specification doesn't require token lifecycle management, which leaves room for replay and session hijacking
- many implementations log too little to support incident response
Its recommendations include:
- treat every tool and model output as untrusted
- log every tool and model call and send those logs to security monitoring
- keep an inventory of deployed agents and tools
- regularly scan networks for unauthenticated or unauthorized MCP servers
Read the full NSA guidance. Every one of these recommendations appears as a practice later in this guide.
What is the OWASP MCP Top 10?
The OWASP MCP Top 10 is OWASP's list of the ten most critical security risks in systems built on MCP. It sits alongside the better-known OWASP Top 10 for LLM Applications. The project is currently in its beta and pilot-testing phase, led by Vandana Verma Sehgal, so expect the wording to change before a final release.
| ID | Risk | What it means in practice |
|---|---|---|
| MCP01 | Token Mismanagement & Secret Exposure | Credentials stored, passed or logged where an attacker can reach them |
| MCP02 | Privilege Escalation via Scope Creep | A server or agent slowly gains more access than its task needs |
| MCP03 | Tool Poisoning | Hidden instructions in a tool's description steer the agent |
| MCP04 | Software Supply Chain Attacks & Dependency Tampering | A malicious or compromised package or server enters your environment |
| MCP05 | Command Injection & Execution | Agent-supplied input reaches a shell or system command |
| MCP06 | Prompt Injection via Contextual Payloads | Instructions hidden in content the agent reads through a tool |
| MCP07 | Insufficient Authentication & Authorization | Servers or tools reachable without proper identity checks |
| MCP08 | Lack of Audit and Telemetry | No record of which agent called which tool, or why |
| MCP09 | Shadow MCP Servers | Servers connected outside security review |
| MCP10 | Context Injection & Over-Sharing | Context leaking between users, tasks or tenants |
The list gives security and GRC teams a shared vocabulary for evaluating vendors, writing policy and reporting MCP risk to leadership.
What did the 2026-07-28 MCP specification change for security?
The 2026-07-28 revision is, in the maintainers' words, the largest revision of the protocol since launch. Most of its changes target scale, but four directly affect how you secure MCP.
| Change | Before | After (2026-07-28) | What security teams should do |
|---|---|---|---|
| Stateless core | Protocol-level sessions and an initialize handshake | Sessions and the initialize handshake removed; each request carries its own context | Tie identity and policy to each request, not to a session your gateway assumes still exists |
| Client registration | Dynamic Client Registration (DCR) was the usual mechanism | DCR deprecated; Client ID Metadata Documents preferred | Plan to move off DCR. The spec notes the confused-deputy attack still applies to MCP proxy servers that support it |
| Issuer validation | Optional in practice | Clients must validate the iss value in authorization responses | Check that your clients and gateway reject tokens from the wrong authorization server |
| Deprecated features | Roots, Sampling and Logging were part of the core spec | All three deprecated | Re-check threat models and tooling that relied on them |
If your MCP gateway, identity provider integration or internal servers were built against an earlier revision, re-test them against 2026-07-28 before assuming your authorization flow still behaves as designed. The specification changelog lists every change.
The STDIO design-flaw CVE wave (April 2026)
In April 2026, OX Security published research tracing a set of remote code execution vulnerabilities to one root cause. Unsanitized input reached the configuration of local (STDIO) MCP servers, and the attacker-supplied command and args values were run as subprocesses. The OX advisory lists 17 affected entries, 15 of them rated Critical, across projects including LiteLLM, LangChain, LangFlow, Flowise and LettaAI.
The most serious case was Windsurf (CVE-2026-30615). There, attacker-controlled HTML could inject prompts that edited the local MCP configuration and registered a malicious STDIO server, which then ran commands without any further user interaction. OX lists the MCP SDK itself among the disclosures its maintainers declined to patch. By May 2026, the Cloud Security Alliance counted at least seven confirmed high- or critical-severity CVEs across MCP Inspector, LiteLLM, Cursor, LibreChat and Windsurf.
The lesson for enterprise teams: a local MCP server isn't automatically a safe one. MCP configuration files are now part of the attack surface, and an agent that can edit its own configuration can install a server nobody approved.
Taken together, these four developments explain why the tools most enterprises already own struggle to see MCP threats at all.
Why can't traditional security tools see MCP threats?
Traditional security tools inspect packets, files, endpoints and known API patterns. MCP attacks arrive as natural-language instructions inside tool calls that are technically legitimate. The traffic is authenticated, encrypted and well-formed, and it goes to services your organization already trusts, so every control built before AI agents existed sees nothing wrong. The NSA made the same point from the other direction: MCP's security depends on how each team implements it, not on anything the network layer can enforce.
Why MCP attacks look like normal traffic
An MCP attack doesn't break a protocol. It persuades a model. A poisoned tool description, a support ticket with hidden instructions, or a server update that quietly changes what a tool does all produce the same thing: a valid tool call, made with valid credentials, to a service that's allowed. Network and API defences check whether a request is well-formed and authorized. They don't check whether the agent should have made it. As Runlayer puts it, API security judges each request on its own, but in MCP a single action only makes sense in the context of what came before it.
Here's a simplified example of one call as each tool records it. It's illustrative, but it's modelled on the GitHub incident covered later.
# What the security stack records (illustrative)
14:02:11 laptop-0231 → api.github.com:443 TLS 1.3 200 OK 4.1 KB # firewall / proxy: allowed domain
14:02:11 token=ghp_**** scope=repo user=dev-priya # API gateway: valid token, valid scope
14:02:11 process=cursor.exe child=node no file written # EDR: known app, normal behavior
# What actually happened
Agent read a public issue containing hidden instructions →
called get_file_contents on a private repo →
called create_pull_request on a public repo with the file's contents
Every line in the first block is true, and none of them is suspicious. The attack only becomes visible when you can see which tool the agent called, on whose behalf, and why.
What do DLP, WAF, SIEM, CASB and EDR each miss?
Proofpoint notes that EDR, CASB and DLP tools weren't designed to detect MCP servers. The gap is wider than detection, though. Each control looks at a layer the attack never touches.
| Control | What it was built to see | What it sees in an MCP call | What it misses |
|---|---|---|---|
| Firewall / secure web gateway | Destinations, ports, domains | An HTTPS connection to an allowed SaaS domain, or no traffic at all for a local server | Which tool was called and what instruction triggered it |
| WAF / API gateway | Malformed requests, known attack signatures, token validity | A well-formed, authenticated API request | That the request came from a manipulated agent; HTTP metadata, not the agent's intent or tool choices |
| DLP | Sensitive files and patterns leaving known channels | Small structured payloads inside an API call | Data moved by an agent through a write tool to a legitimate destination, such as a public pull request |
| CASB | Sanctioned vs. unsanctioned SaaS apps and user activity | An approved app being used | Shadow MCP servers added through a few lines of IDE configuration, with no new SaaS sign-up |
| EDR | Malicious processes, binaries and system behavior | A trusted IDE or runtime spawning a normal child process | A local MCP server doing exactly what a poisoned instruction told it to do |
| SIEM | Correlated logs from all of the above | Whatever those tools sent, all marked allowed | The tool-call record that was never produced |
Local servers make this harder still. Most MCP servers run as local processes that never cross the network boundary; older shadow-IT tools were built to watch. When UpGuard reviewed documented MCP incidents, it found that no firewall rule, signature-based endpoint tool or SIEM alert covered the attack surface.
None of this means you should remove these tools. They still protect their own layers, and they're where MCP alerts should end up. They just need a source of MCP-aware events that they currently don't have. For the wider argument, see why AI needs its own security layer.
What does an MCP security control need to see instead?
To catch what the existing stack misses, a control has to sit at the point where the agent's decision becomes an action, and it has to see five things before the call runs:
- Which MCP server the agent is calling, and whether that server was approved
- Which tool, and whether that tool is allowed for this user or runtime
- On whose behalf: the human user or the named agent identity behind the call
- What content goes in and comes out: arguments and tool results, checked for secrets, sensitive data and injected instructions
- Whether the tool is still the one that was approved: its definition compared with the approved baseline
These five checks line up with the three trust boundaries in the diagram earlier, and with the risks the next section covers one by one.
What are the biggest MCP security risks?
The biggest MCP security risks are tool poisoning, rug pulls, tool shadowing, indirect prompt injection, over-privileged access, exposed tokens and secrets, command injection, supply chain compromise, shadow MCP servers, and context leakage without an audit trail. All ten map to the OWASP MCP Top 10. What separates them is when they strike: at install, at runtime, or after a server has already been approved. That timing decides which control catches each one.

Tool poisoning
Tool poisoning hides malicious instructions inside a tool's description or parameters. The model reads them as trusted configuration and follows them. It's OWASP's MCP03. Nothing has to execute for the attack to work: the model simply reads the description when it loads the tool, and it does that in every session.
The measured success rates are high. The MCPTox benchmark tested agents against 45 live MCP servers and 353 real tools; o1-mini was fooled 72.8% of the time. A 2026 Dynatrace study across twelve agent frameworks measured 22.9% overall, ranging from 0.4% to 49.7% depending on the model.
It also found that scanning tool metadata catches only part of the problem. Two practical conclusions follow. The model you put behind an agent changes your exposure, and checking tool descriptions at install time isn't enough on its own. A close is tool shadowing: when several servers are connected, a malicious server's tool can override or imitate a trusted one, as HashiCorp's threat model for its own Vault MCP server warns. Allowlisting servers and giving each approved tool a unique name removes the ambiguity.
What is an MCP rug pull?
An MCP rug pull is an attack in which a tool that was reviewed and approved is later changed to behave maliciously, without triggering any new approval. It works because MCP clients don't alert users when a tool's definition changes. The Cloud Security Alliance considers rug pulls arguably more dangerous than tool poisoning, because they defeat point-in-time security review: the tool was clean on the day you checked it.
The clearest real case is MCPoison (CVE-2025-54136), found by Check Point Research. Cursor approved an MCP configuration entry once, then kept running whatever command was attached to it every time the project opened, even after that command had been swapped for a malicious one. Cursor patched it in version 1.3. The defence for every rug pull is the same: record a fingerprint of each approved tool definition, and block or re-review any tool that no longer matches it. Read the CSA's research on rug pulls.
Tool shadowing and name collision
Tool shadowing happens when several MCP servers are connected to one agent and a malicious server's tool overrides or imitates a trusted one. HashiCorp's threat model for its own Vault MCP server lists exactly this: a malicious server overriding tools from a trusted one. Because the model sees every server's tools together, a tool named like send_email or read_file on an unvetted server can intercept calls meant for the approved one. Allowlisting servers and giving each approved tool a unique name per server removes the ambiguity.
Indirect prompt injection through tool outputs
Indirect prompt injection hides instructions in content a tool returns, such as an issue, a support ticket, a web page or a document. The agent reads that content as part of its task and follows what's in it. OWASP lists it as MCP06. Unlike tool poisoning, the attacker doesn't need to publish a server: they only need to put text somewhere an agent will read it. That's why tool output should be treated as untrusted and checked before it's reused. For the mechanics, see our guide to prompt injection and the glossary entry on indirect prompt injection.
Over-privileged access and the confused deputy problem
Over-privileged access means an MCP server holds credentials that reach far more than any single task needs. A support agent connected through a server with admin rights can reach the whole database, not just the support queue. OWASP covers this as MCP02 (privilege escalation via scope creep) and MCP07 (insufficient authentication and authorization). The MCP specification describes a sharper version, the confused deputy problem. A proxy server acting as one OAuth client to a third-party API can be tricked into getting authorization codes without proper user consent. The fix is to grant access per tool, not per server, and to require consent per client.
Token and secret exposure
Token and secret exposure, OWASP's MCP01, is the most common weakness in practice. According to Astrix Security's 2025 analysis:
- 88% of MCP servers require credentials
- 79% pass API keys through plain environment variables
- 53% rely on static API keys or personal access tokens
- only 8.5% use OAuth
A long-lived key in a config file on a developer laptop is one stolen file away from full access, which is why the spec now pushes toward short-lived, audience-bound tokens.
Command injection in server code
Command injection, OWASP's MCP05, happens when input from an agent or a configuration file reaches a shell command. The STDIO vulnerabilities from April 2026, covered in the previous section, are the largest example. Because many MCP servers wrap command-line tools, one unsanitized argument can turn a tool call into code execution on the host. Patching servers promptly, sandboxing local ones and locking down who can edit MCP configuration files close most of this risk.
Supply chain compromise
Supply chain compromise, OWASP's MCP04, means installing a server that's malicious, cloned or typosquatted. postmark-mcp, from the introduction, built trust over 15 clean versions before turning malicious. In February 2026, SmartLoader cloned the Oura Ring MCP server, an attack that combined registry poisoning with social engineering. Verifying the publisher, pinning versions and approving servers before first use are the baseline controls. For how a supply chain attack spreads through OAuth, see our analysis of OAuth supply chain attacks on AI infrastructure.
Shadow MCP servers and unowned agent identities
OWASP defines shadow MCP servers (MCP09) as unapproved or unsupervised MCP deployments running outside the organization's formal security governance. They're easy to create. A developer adds three lines to a JSON configuration file in Cursor or VS Code, and a new server is live, with no approval step, no install log and no request to IT. A CSA writeup cited by WorkOS found that 79% of organizations still lack visibility into the AI agents and MCP-connected systems already running in their environment.
We saw the same pattern in our own environment. When we connected LangProtect Vector's platform connectors in our own workspace, discovery surfaced AI agents we had never formally reviewed and ranked them by risk.
Two were rated Critical: a Microsoft Copilot agent and an n8n automation connected to Jira. ChatGPT was rated High, with five users consented and no owner. Notion MCP and Cursor were also rated High. A Teams bot, also unowned, sat at Medium alongside Claude and Gemini. None of these tools is unusual, and that's the point: agents arrive through everyday tools, not through a security review.

Context leakage and missing audit trails
The last two OWASP categories often show up together. MCP10, context injection and over-sharing, is data leaking between users, tasks or tenants. The CSA cites Asana's cross-tenant MCP exposure in June 2025. MCP08, lack of audit and telemetry, is when nobody can reconstruct which agent called which tool, for whom, and why. The NSA flagged the same gap, noting that many implementations log too little to support incident response. Without identity-linked logs, every other risk on this list becomes harder to detect and impossible to investigate. For what a good log contains, see our guide to AI audit logs and forensic visibility.
Are MCP servers safe?
MCP servers are not safe by default. How risky one is depends on four things:
- who controls its code,
- what actions its tools can take,
- where it runs,
- and whether its tool definitions can change after you approve it.
A read-only documentation server your own team wrote carries a very different risk from a write-capable payments server published by an anonymous account on a public registry. Both, though, start from the same position: the protocol doesn't secure either of them for you.
The question matters because of who's publishing. CData describes the MCP ecosystem as dominated by experimental projects published anonymously or semi-anonymously on open marketplaces. Many organizations already run a mix of all four types at once, often without knowing which is which.

Are public MCP servers safe to use in an enterprise?
Public MCP servers are safe to use in an enterprise only after four controls are in place:
- the publisher and code have been reviewed
- the version is pinned
- the server runs with narrowly scoped credentials
- every tool call passes through runtime policy
The reason is control. With a public server, the publisher decides when the code changes, and your approval doesn't stop them from shipping a new version tomorrow. That's how rug pulls and cloned listings work, and it's why a single review at install time isn't enough.
Start by confirming the listing really belongs to the vendor it names, since cloned and typosquatted servers copy trusted names. Then check what scopes the server asks for against what the task needs. A server for reading tickets shouldn't need permission to delete them. Pin the exact version you reviewed, and treat any update as a new approval. Finally, route its calls through a control that checks each tool call before it runs. That's the only layer that still protects you if the server changes after approval.
How do you secure a custom or private MCP server?
Secure a custom or private MCP server the way you would any privileged internal service:
- authentication on every request
- permissions scoped per tool
- tokens that are never passed through to downstream APIs
- logs that record the user and agent behind every call
Keeping a server private reduces its exposure, but it doesn't make it secure by default. Internal servers are often the least reviewed in an organization, precisely because everyone assumes the network boundary protects them.
Four specific mistakes cause most problems with servers teams build themselves:
- Binding a local server to every network interface. 1. MongoDB warns that binding its MCP server to 0.0.0.0 exposes it to the entire local network, where other devices can reach it. Bind local servers to 127.0.0.1, and put remote access behind an authenticated gateway.
- Leaving write access on by default. MongoDB's own MCP server allows write operations unless you turn on read-only mode. Default to read-only, and grant write or execute tools only where a task needs them.
- Accepting tokens meant for something else. The MCP specification says servers must not accept any token that wasn't explicitly issued for that server. Validate the token's audience on every request, and never forward a client's token to a downstream API.
- Treating tool descriptions as documentation. A description is an instruction the model will follow, so review it with the same care as code.
Authentication gaps in self-hosted servers are common enough that we've covered them on their own in MCP servers without authentication.
How safe are open-source MCP servers?
Open-source MCP servers are as safe as the code you actually run, and the volume makes that hard to judge. Trend Micro analysed over 19,000 open-source MCP server repositories that appeared in just a few months. Academic work points the same way: a 2026 study of 222 public Python MCP servers found that many contain exploitable weaknesses affecting confidentiality, integrity and availability.
Open source gives you one advantage over public hosted servers: you choose when to update. Use it. Scan servers in CI before they're deployed, read the changes before upgrading, pin versions in your configuration, and follow the advisories for every server you depend on. Treat an unmaintained server with broad permissions as a liability, even if its code looks clean today.
Local or remote: which MCP server is safer?
Neither is safer across the board. A local (stdio) server limits how many people one server can affect, but puts the user's files and credentials one bad configuration away from an attacker. A remote (Streamable HTTP) server is easier to manage centrally, but MongoDB notes it becomes a single point of failure. Sandbox local servers and restrict who can edit MCP configuration files; put remote servers behind OAuth 2.1 with audience-bound tokens and a gateway that checks every call.
Knowing a server's type tells you where to start. Deciding whether one specific server belongs in production takes a consistent way to score it.
How do you assess an MCP server's risk?
Assess every MCP server on the same eight factors before approval: who publishes it, how it authenticates, what actions its tools can take, how sensitive the data it touches is, where it runs, how it updates, whether its tool definitions are pinned, and who owns it internally. Scoring each factor the same way turns "should we allow this server?" from a judgement call into a decision a security team can repeat, defend to an auditor, and hand to a platform team.
Most MCP risk scores on the market only exist inside a vendor's product. Researchers take the same basic approach. The MCP-in-SoS framework, for example, combines threats using multiple metrics for likelihood and impact. The rubric below follows that structure, and you can use it on any server with no tooling at all. It also answers a question security leaders ask about MCP gateways: which risk categories to size first. Size by impact first, then by how likely misuse is to go unnoticed.

The rubric works in three steps:
- Score impact as the higher of two factors: what the tools can do, and how sensitive the data they reach is.
- Score likelihood as the average of six factors: the publisher, authentication, where the server runs, how it updates, whether its definitions are pinned, and whether it has an owner.
- Combine the two in the matrix to get a tier. Each tier comes with a decision, from "approve with standard logging" for Low to "block or quarantine until fixed" for Critical.
Read, write and execute: why tool actions set the baseline
What a server's tools can do matters more than any other factor, because it sets the ceiling on the damage. A read-only server can leak data, but it can't delete a branch, send an email or move money. A server with write or execute tools can do all of that, as fast as the agent can call it.
Simon Willison's "lethal trifecta" is the quickest test for whether a server tips into high impact. An agent is dangerous when it has three things at once: access to private data, exposure to untrusted content, and a way to send data out. Many incidents need several servers to put all three together, but some single servers provide all three on their own. The same idea shows you what to fix. Willison notes that configuring a server as read-only removes one leg of the trifecta, the agent's ability to send data back out. Before approving any server, check which of the three legs it adds to the agents that will use it.
Scoring once isn't enough
A score at approval describes the server you reviewed, not the one running next month. Treat the first score as a static baseline, then keep a dynamic score that changes when the server does. Re-score whenever:
- the server adds new tools
- an existing tool's definition changes
- a new version ships
- the server's credentials gain access to new data
This is how the rubric deals with rug pulls. Those attacks work because approval happens once and is never checked again. Tying the score to the "definitions and scope pinned" factor means any change to an approved server pushes its likelihood score up automatically, until someone reviews it.
A real example, scored
The rubric applies to any identity an agent can act through, not only MCP servers. When we connected LangProtect Vector to our own platforms, one finding stood out: a HubSpot Sales identity with admin consent for all users to read and write email and calendars. It hadn't signed in for 293 days and had no owner.
| Factor | Score | Why |
|---|---|---|
| Tool actions | 3 | Read and write email and calendars |
| Data sensitivity | 3 | Every user's email and calendar |
| Impact | High (3) | |
| Publisher | 1 | A well-known SaaS vendor |
| Authentication | 3 | Tenant-wide admin consent |
| Where it runs | 2 | Vendor-hosted |
| How it updates | 3 | The vendor controls changes |
| Scope pinned | 3 | Granted scopes never reviewed |
| Owner and activity | 3 | No owner; unused for 293 days but still holds access |
| Likelihood | High (2.5) | |
| Tier | Critical | Revoke the tenant-wide grant, or replace it with scoped permissions and a named owner |
Nothing about this identity was malicious. Someone approved it once, the access never expired, and nobody looked again. That's the same gap a rug pull exploits on an MCP server.
Want the same in your env.?
Want the rubric applied to the MCP servers and agent identities in your environment?
What do real MCP security incidents teach us?
Every documented MCP incident so far follows the same pattern: an agent with real permissions acted on text it had no reason to trust, and nothing between the agent and the tool checked the call before it ran. None of these incidents needed a zero-day in the model. They used the gaps described earlier in this guide: untrusted content, credentials that were too broad, servers that changed after approval, and packages nobody verified.

GitHub MCP toxic agent flow (May 2025)
What happened. In May 2025, Invariant Labs disclosed a critical vulnerability in the official GitHub MCP server, which had about 14,000 stars at the time. An attacker opened an issue on a public repository with hidden instructions in its text. When the repository owner asked their agent to check the open issues, the agent followed those instructions. It pulled data from the owner's private repositories into its context and leaked it into a pull request on the public repository, where the attacker could read it.
Why it worked. The agent's token covered every repository the user could access, and the agent treated the issue text as instructions rather than data. Invariant was clear that the vulnerability can't be fixed with server-side patches; it needs architectural controls. This is the attack behind the log example in the section on traditional tools.
What would have stopped it. A token scoped to the one repository the task needed, and a policy that blocks writes to a public repository in a session that has read private data.
Supabase and Cursor: the "lethal trifecta" (demonstrated July 2025)
What happened. Researchers at General Analysis demonstrated an attack against a realistic setup: a developer asks Cursor, connected to Supabase's MCP server, to list the latest support tickets. Simon Willison wrote it up on July 6, 2025. The agent ran with the service_role key, which bypasses all row-level security, while reading support tickets submitted by customers. One ticket contained instructions that led the agent to expose a table of integration tokens.
What Supabase said. Supabase responded that this is not an MCP-specific vulnerability but a property of how LLMs interact with tools. It also said no Supabase customer has reported a data leak through MCP. That's an important correction to how this case is usually retold: it was a demonstration of a real risk, not a confirmed breach.
What would have stopped it. Willison notes that configuring the MCP server as read-only removes one leg of the trifecta, the agent's ability to send data out. And no agent that reads customer-submitted content should hold a key that bypasses row-level security.
mcp-remote, CVE-2025-6514 (July 2025)
What happened. mcp-remote connects local clients such as Claude Desktop, VS Code and Cursor to remote MCP servers. JFrog found a critical flaw (CVE-2025-6514, CVSS 9.6) in a package with more than 437,000 downloads: an unsanitized authorization_endpoint from a malicious server could execute commands on the client machine before any tool was called.
What would have stopped it. Patching to 0.1.16, and connecting only to approved servers. As UpGuard points out, the packages to audit include every proxy, adapter, SDK and transport layer, not just the servers.
MCPoison, CVE-2025-54136 (2025)
What happened. Check Point Research showed that Cursor approved an MCP configuration entry once, then kept running whatever command was attached to it every time the project opened, even after that command was swapped for a malicious one. Cursor patched CVE-2025-54136 in version 1.3.
What would have stopped it. Approval tied to the entry's contents, not its name: fingerprint each approved definition and require re-approval whenever it changes.
postmark-mcp: the first malicious MCP server in the wild (September 2025)
What happened. The package from this guide's introduction was uploaded on September 15, 2025, turned malicious in version 1.0.16 on September 17, and reached 1,643 downloads before it was deleted (The Hacker News).
What would have stopped it. Verifying the publisher, pinning the reviewed version, and treating every update as a new approval.
Across all five cases, the fix is the same: check every tool call against an approved server, an allowed tool and content policy before it runs. The next section turns that fix into eight practices you can put in place.
Stop unapproved MCP servers before the first tool call
LangProtect Vector checks every MCP tool call against an approved server, an allowed tool and content policy, and quarantines unknown servers until an administrator approves them.
What are MCP security best practices for enterprises?
Enterprise MCP security best practices come down to eight controls: inventory every server, quarantine unknown ones, pin tool definitions, grant access per tool, keep tokens away from clients, inspect calls before they execute, require approval for high-impact actions, and log every call with identity. Each one closes a gap that at least one incident in the previous section went through.
MCP security practices at a glance
| # | Practice | What it stops | OWASP MCP |
|---|---|---|---|
| 1 | Inventory every agent and server | Shadow MCP, unowned identities | MCP09 |
| 2 | Quarantine unknown servers | Malicious and typosquatted servers | MCP04 |
| 3 | Pin and fingerprint tool definitions | Rug pulls, silent tool changes | MCP03 |
| 4 | Grant access per tool | Over-privileged agents | MCP02 |
| 5 | Keep tokens away from clients | Token theft, confused deputy | MCP01, MCP07 |
| 6 | Inspect inputs and outputs | Data leaks, indirect prompt injection | MCP06, MCP10 |
| 7 | Approve only high-impact actions | Destructive actions, approval fatigue | MCP02 |
| 8 | Log every call with identity | Untraceable incidents | MCP08 |
1. Inventory every agent and MCP server, including shadow MCP
Why: You can't secure a server you don't know exists, and adding one takes a few lines of IDE configuration.
How to do it:
- Pull agents, OAuth grants and service identities from your identity provider and SaaS admin consoles.
- Collect MCP server entries from IDE and agent-runtime configuration files.
- Record an owner for every agent and server; anything without one goes to review.
- Re-run discovery on a schedule, not once.
Backed by: The NSA recommends keeping an inventory of deployed agents and tools, and regularly scanning networks for unauthorized MCP servers. For the identity side, see our non-human identity governance playbook.
2. Allowlist approved servers and quarantine unknown ones
Why: "Allowed until noticed" is how shadow and malicious servers get in. "Blocked until reviewed" closes that window.
How to do it:
- Keep an approved list of servers, with exact versions.
- Block or quarantine any server that isn't on the list.
- Score every new server with the risk rubric before approval.
- Give users a request path, so they don't work around the block.
Backed by: Palo Alto Networks recommends that new servers start disabled by default and need explicit admin approval before agents can connect.
3. Pin and fingerprint tool definitions to stop rug pulls
Why: A server that was safe at approval can change tomorrow, and clients won't warn you.
How to do it:
- Store a hash of every approved tool name, description and schema.
- Compare it on every connection.
- Block or re-review any tool whose definition drifts.
- Treat newly added tools as unapproved until reviewed.
Backed by: The CSA recommends hashing and baselining tool descriptions to detect rug pulls and poisoning. Microsoft calls the risk a "silent swap", where a tool's metadata changes and the client keeps trusting it.
4. Grant access per tool, not per server
Why: Approving a server shouldn't approve every tool on it.
How to do it:
- Allow read tools broadly.
- Allow write, delete and send tools only for the users and runtimes that need them.
- Block everything else by default.
From our own workspace: An agent's call to notion-ai-search was blocked with the reason "Tool not allowed". The Notion server was approved, but that tool wasn't in the user's policy.
5. Keep tokens away from clients
Why: A long-lived key in an IDE config file is one stolen laptop away from full access.
How to do it:
- Use OAuth 2.1 with short-lived, audience-bound tokens.
- Keep upstream credentials in a gateway or vault, never in client configs.
- Reject any token not issued for the server receiving it.
- Never pass a client's token through to a downstream API.
- Re-test your authorization flow against the 2026-07-28 spec changes.
Backed by: The MCP specification requires clients to send the RFC 8707 resource parameter, and it forbids token passthrough.
6. Inspect tool inputs and outputs before execution
Why: Arguments can carry secrets out, and results can carry injected instructions in.
How to do it:
- Scan tool arguments for secrets and sensitive data before the call reaches the server.
- Scan tool results for injected instructions before the model reads them.
- Block or redact; don't just alert after the fact.
Backed by: The NSA recommends treating every tool and model output as untrusted and inspecting it between pipeline stages. See also [runtime protection for LLM applications]https://www.langprotect.com/blog/runtime-protection-for-llm-applications).
7. Require approval only for write and execute actions
Why: Asking about every call trains users to click "approve" without reading.
How to do it:
- Require human approval for actions that write, delete, send externally or execute code.
- Let read-only calls run under policy.
- Show the user the exact tool and arguments before they approve.
Backed by: The MCP spec says a human must be able to deny tool calls. Supabase warns that per-call approval leads to user fatigue.
8. Log every call with user and agent identity
Why: Network logs show a connection, not which tool an agent called or why.
What every log entry needs:
| Field | Example from our Vector workspace |
|---|---|
| Who | The user, or the named agent and runtime |
| Server and tool | notion · notion-ai-search |
| Decision | Blocked |
| Why | Tool not allowed |
| When | Timestamp |
How to do it:
- Log allowed calls as well as blocked ones.
- Send the logs to your SIEM.
- Use metadata-only logging where prompt content can't be stored.
Backed by: The NSA recommends logging all tool and model calls and connecting them to security monitoring. See AI audit logs and forensic visibility.
A four-stage MCP security maturity path
| Stage | Goal | Practices | Ready to move on when… |
|---|---|---|---|
| 1. Visibility | Know what's connected | 1, 8 | Every agent and server is listed, and every call is logged |
| 2. Control | Decide what's allowed | 2, 4 | Unknown servers are blocked, and tools are approved one by one |
| 3. Enforcement | Stop bad calls as they happen | 5, 6, 7 | Tokens are out of clients, content is checked, high-impact actions need approval |
| 4. Continuous verification | Catch change after approval | 3 + re-scoring | Drift triggers review, and servers are re-scored on change |
The CSA's Agentic MCP Security Best Practices uses a similar four-level model. Use it as the detailed reference for each level.
MCP security checklist
| Control | Owner | How to verify | Pass when |
|---|---|---|---|
| Agent and server inventory | Security + platform | Compare with IDE configs and admin consoles | No server in use is missing |
| Unknown servers blocked | Platform | Connect an unregistered test server | Blocked or quarantined |
| Definitions fingerprinted | Platform | Change a test tool's description | Flagged before the next call |
| Per-tool permissions | Security | Call a tool outside a user's policy | Blocked with a reason |
| No tokens in client configs | Platform + developers | Scan IDE and agent configs | No long-lived tokens found |
| Token audience checked | Developers | Send a token for another resource | Rejected |
| Inputs and outputs inspected | Security | Put a test secret in a tool argument | Blocked or redacted |
| Approval for write and execute | Security + app owners | Trigger a write tool | User asked first |
| Identity-linked logs | Security operations | Pull the log for one call | Who, server, tool, decision, why, when all present |
| Re-scoring on change | Security | Update a test server's version | Server returns to review |
How do MCP controls map to governance and compliance?
No regulation names MCP yet. But the controls in this guide produce exactly the evidence AI governance frameworks ask organizations to keep: tool-call logs, access records and server approval decisions. Treat MCP as part of your AI governance program, not a separate project. The same evidence then supports several frameworks at once.
The short version:
- No framework requires "MCP security" by name.
- Several require you to know which AI systems you run, control what they can access, and keep records of what they did.
- Your MCP inventory, approvals and call logs are how you show that for AI agents.
Mapping MCP controls to NIST AI RMF, ISO/IEC 42001 and the EU AI Act
| Framework | What it asks for | MCP evidence that supports it |
|---|---|---|
| NIST AI RMF | Govern, Map, Measure and Manage AI risk across the AI lifecycle | Agent and server inventory (Map), risk scores per server (Measure), quarantine and per-tool policy (Manage), named owners and an approval process (Govern) |
| ISO/IEC 42001 | An AI management system with defined responsibilities, risk treatment and records | Approval records, owner assignments, risk treatment decisions, and change reviews when a server is re-scored |
| EU AI Act | For systems classed as high-risk, automatic logging of events over the system's lifetime (Article 12) | Identity-linked tool-call logs with server, tool, decision and time |
| OWASP MCP Top 10 | Controls for the ten MCP risk categories | The practice-to-OWASP mapping in the previous section |
These controls support evidence for each framework; they don't make an organization compliant on their own. Whether the EU AI Act's high-risk logging duties apply depends on how your AI system is classified, so confirm that with your legal team. OWASP also notes that shadow MCP servers can put an organization out of line with regulations such as GDPR, PCI DSS and SOC 2, which makes inventory a compliance task as well as a security one.
What should you have ready for an audit?
Keep these five records for every MCP server in production:
- Inventory entry: the server, version, transport, and the agents that use it
- Approval record: who approved it, when, and its risk score at approval
- Access policy: which users and runtimes can call which tools
- Change history: version updates, new tools, definition changes, and each re-review
- Call logs: who called which tool, the decision and the reason, kept for your retention period
If you can produce these five records for any server on request, you can answer most of the questions an auditor will ask about AI agents. For the wider picture, see our guide to AI governance requirements in 2026.
Who owns MCP governance?
MCP sits between teams, so ownership needs to be written down.
| Responsibility | Security | Platform / engineering | GRC / AI governance |
|---|---|---|---|
| Inventory and discovery | Owns | Supports | Reviews |
| Server approval and risk scoring | Owns | Supports | Reviews |
| Gateway, tokens and configuration | Reviews | Owns | — |
| Per-tool access policy | Owns | Supports | Reviews |
| Logging and monitoring | Owns | Supports | Uses as evidence |
| Framework mapping and audits | Supports | Supports | Owns |
The most common gap is the second row. Engineers add servers, nobody in security approves them, and governance teams find out during an audit. A single named owner for server approvals fixes most of that.
How do you choose an MCP security solution?
Choose an MCP security solution by where it enforces policy, not by how many risks it lists. The check has to happen before a tool call reaches the server, and it has to cover servers your team never registered. Plenty of tools can tell you what an agent did yesterday. The ones worth buying stop the call before it runs.
The three questions that decide it:
- Does it check the call before it reaches the server?
- What happens when an agent connects to a server nobody approved?
- Can it block one tool on an otherwise approved server?
If a vendor can't give a clear answer to all three, the other features don't matter.

The eight evaluation criteria
| # | Criterion | Ask the vendor | Good answer | Weak answer |
|---|---|---|---|---|
| 1 | Where it enforces | Is the call checked before it reaches the server? | Inline, before execution | Logs or alerts after the call |
| 2 | Server registry and quarantine | What happens with an unknown server? | Blocked or quarantined until approved | Allowed, flagged later |
| 3 | Per-tool policy | Can one tool on an approved server be blocked? | Allow and block per tool, user and runtime | Server-level on or off only |
| 4 | Credential custody | Where do upstream tokens live? | In the gateway, never in clients | In IDE or agent config files |
| 5 | Content inspection | Are arguments and results both scanned? | Both directions, before execution | Prompts only, or nothing |
| 6 | Drift detection | What happens when an approved tool changes? | Mismatch flagged for review | Nothing until someone notices |
| 7 | Discovery of agents and NHIs | Can it find agents nobody registered? | Connectors to identity and SaaS platforms | Only sees traffic already routed to it |
| 8 | Coverage and evidence | Which IDEs and runtimes; how do logs reach the SIEM? | IDEs and runtimes; identity-linked logs exported | One client; logs stuck in a console |
Use the OWASP MCP Top 10 as your test plan. Ask each vendor which of the ten categories it covers, and how you can see that during a trial.
What is an MCP gateway?
An MCP gateway is a proxy between AI agents and MCP servers. It applies one policy layer to every tool call that passes through it: authentication, allowed servers, allowed tools, content inspection and logging. Without a gateway, each MCP server is its own policy island, configured differently by whichever team set it up.
A gateway is not an API gateway with a new label.
| Traditional API gateway | MCP gateway | |
|---|---|---|
| Traffic | Predictable, app to app | Unpredictable, agent to system |
| Authentication | Static API keys, fixed IP ranges | Short-lived, user-delegated OAuth |
| Audit log | HTTP request and response metadata | Full agent trajectory: intent, tool choices, blocked attempts |
What can't an MCP gateway fix?
A gateway centralizes enforcement, but it doesn't close every risk on its own. Maxim's comparison of enterprise MCP gateways against the OWASP MCP Top 10 found that none closes every risk. Supply chain attacks, command injection and shadow servers need controls beyond the gateway.
What a gateway can't fix:
- Vulnerable server code. A command injection bug in the server still runs once the call is allowed through. Patching is still your job.
- Servers that bypass it. A client configured to reach a server directly never touches the gateway. You need discovery to find those.
- Malicious packages installed locally. Supply chain review has to happen before installation.
- Over-broad credentials on the server side. The gateway limits which tools are called, but the server's own access to downstream systems still needs scoping.
As Composio puts it, the MCP specification says the protocol can't enforce its own security principles, so every security decision falls to the implementation team unless a gateway takes some of that on. The best setup pairs a gateway with discovery, so the gateway covers what it sees and discovery finds what it doesn't.
To see how LangProtect compares with other AI security vendors, visit our comparisons page.
How does LangProtect Vector secure MCP?
LangProtect Vector is a remote MCP gateway and agent inventory. Every MCP tool call routed through Vector is checked for an approved server, an allowed tool and content policy before it's forwarded. Unknown MCP servers are quarantined until an administrator approves them. Vector does two jobs: it finds the AI agents and non-human identities across your platforms, and it controls the MCP tool calls those agents make.
How Vector maps to the eight best practices
| Best practice | How Vector handles it |
|---|---|
| 1. Inventory every agent and server | Platform connectors build an inventory of AI agents, apps and service identities across Microsoft 365, Google Workspace, Okta, GitHub, Salesforce, Slack, AWS, Google Cloud and more |
| 2. Quarantine unknown servers | Unknown MCP servers are quarantined for review; users without a policy are blocked by default |
| 3. Pin tool definitions | The tool catalog is fingerprinted, and drift from the approved baseline is detected |
| 4. Per-tool access | Allow and block lists for each server and tool, per user or agent API key |
| 5. Keep tokens away from clients | Vector holds upstream tokens, so IDEs and agents never see them |
| 6. Inspect content | Policy scanners, such as Secrets Protection, check tool calls where configured |
| 7. Approve high-impact actions | Write tools can be limited to named users or runtimes through tool-level policy |
| 8. Log with identity | Activity and blocked-call records show who called which server and tool, the decision and why; logging can be metadata-only |
Where Vector works
- IDEs: Cursor, VS Code with GitHub Copilot and Claude Desktop sign in to Vector with OAuth.
- Agent runtimes: LangChain agents, support bots and CI pipelines each get their own agent API key, tied to an access policy, named in audit logs and revocable at any time.
- MCP servers: GitHub, Jira and Confluence, Notion, Linear, Asana, Sentry, Stripe, AWS and others are reached through Vector URLs, with upstream tokens held by Vector.
What Vector doesn't cover
- Calls that bypass Vector. The gateway only protects calls that use Vector URLs. A client configured to reach an MCP server directly goes around it, which is why discovery matters as much as the gateway.
- Platforms you haven't connected. The inventory reflects connected platforms only.
Where to go next
| Your role | Your next step |
|---|---|
| CISO or security leader | Book a 30-minute MCP security review to map what your agents can reach today |
| Security architect | See how the Vector gateway enforces policy and the agentic AI security use case |
| Platform or AI engineering lead | Start a free trial and route one IDE through Vector |
| Identity and IAM | Review non-human identity security and the NHI governance playbook |
| GRC or AI governance | Compare controls against NIST AI RMF, ISO/IEC 42001 and the EU AI Act |
Frequently asked questions about MCP security
Does MCP include built-in security?
No. The Model Context Protocol defines how AI agents discover and call tools but leaves enforcement to whoever deploys it, and authorization is optional in the protocol. Authentication, per-tool permissions, tool-definition integrity checks and audit logging have to be added by the organization, usually through an MCP gateway.
Can an approved MCP tool turn malicious later?
Yes. That is an MCP rug pull: a reviewed and approved tool is later changed to behave maliciously, without any new approval, because MCP clients don't alert users when a tool's definition changes. Fingerprint every approved definition and block or re-review any tool that drifts. See what an MCP rug pull is.
What do we need in place before allowing a public MCP server?
Four controls: a verified publisher, a pinned version, narrowly scoped credentials, and runtime policy on every tool call. A public server can change after approval, so treat every update as a new approval rather than relying on one review at install time.
How do we find shadow MCP servers already in use in our organization?
Check identity providers and SaaS admin consoles for AI agents and OAuth grants, and check IDE and agent-runtime configuration files for MCP server entries. OWASP lists shadow MCP servers as MCP09 because they can be added with a few lines of configuration. See our non-human identity governance playbook.
Can our existing DLP, CASB or SIEM detect MCP threats?
Not on their own. They see authenticated traffic to approved services, or nothing at all for local servers, but not which tool an agent called or why. Keep them, and feed them tool-call events from an MCP-aware control. Read why AI needs its own security layer.
How do we assess the risk of a public MCP server before approving it?
Score impact (what its tools can do and how sensitive the data is) and likelihood (publisher, authentication, where it runs, how it updates, whether definitions are pinned, and ownership). Combine them into a Low, Medium, High or Critical tier, and re-score whenever the server adds tools or changes version.
Does giving an AI tool access to business data through MCP carry different risks than a dashboard?
Yes. A dashboard shows data to a person who decides what to do with it. An MCP connection lets an AI agent read and act on that data itself, often with write access and while following instructions from untrusted content. That requires per-tool permissions and inspection before each call, not just read access controls.
Do we need an MCP gateway, or can we secure each MCP server on its own?
Most enterprises need a gateway once they run more than a handful of servers, because per-server security creates a different policy for every team. A gateway applies one policy for authentication, allowed tools, content inspection and logging, but it doesn't replace patching server code or discovering servers that bypass it. See MCP gateway.
How do we choose an MCP security solution for an enterprise AI deployment?
Start with three must-haves: it checks each call before it reaches the server, it quarantines servers nobody approved, and it can block a single tool on an approved server. Then compare credential custody, two-way content inspection, drift detection, agent and NHI discovery, and SIEM-ready logs.
How should enterprises govern MCP servers used by AI agents?
Give every server a named owner, a risk score and approval before first use, tool-level access policies, a change review on every update, and identity-linked call logs. Security usually owns approvals, platform teams own the gateway, and GRC uses the records as evidence. See AI governance requirements in 2026.
Does MCP security help with EU AI Act, NIST AI RMF or ISO/IEC 42001 compliance?
MCP controls produce evidence these frameworks ask for (an AI inventory, risk treatment decisions, access records and event logs), but they don't make an organization compliant on their own. Whether EU AI Act logging duties apply depends on how your system is classified. Compare NIST AI RMF, ISO/IEC 42001 and the EU AI Act.
What changed in the MCP 2026-07-28 specification for security teams?
The revision made the protocol stateless (no sessions or initialize handshake), deprecated Dynamic Client Registration in favour of Client ID Metadata Documents, required clients to validate the authorization server's issuer, and deprecated Roots, Sampling and Logging. Re-test gateways and authorization flows built against earlier revisions.
Start with what's already connected
Most organizations can't yet list the MCP servers their AI agents use today, let alone score them. That's the place to start. Inventory what's connected, quarantine what nobody approved, and get identity-linked logs flowing before you build anything more advanced. The rest of this guide gets far easier once you can see the whole picture.
The bar will keep rising. The NSA's guidance, the OWASP MCP Top 10 and the 2026-07-28 specification have turned MCP security from an open question into a set of expectations auditors and customers will ask about. Teams that put the eight practices in place now will be answering those questions with evidence rather than intentions.
See every MCP server your agents connect to
Talk to our team about what your AI agents can reach, and how LangProtect Vector quarantines unknown MCP servers until an administrator approves them.
Tags
Related articles
AI Agent DLP: How to Stop Data Leaking Through Agent Tool Calls and MCP
AI Coding Assistant Security: Controlling Source Code, Secrets, and Agent Permissions