By NHI Mgmt Group Editorial TeamDomain: AI SecuritySource: CyberhavenPublished May 26, 2026

TL;DR: AI agents are already reading files, calling APIs, executing code, and moving data across systems without human approval, while many are deployed through MCP servers security teams have not inventoried, according to Cyberhaven. Endpoint visibility, behavioural telemetry, and machine-speed policy enforcement now matter as much as traditional endpoint controls.


At a glance

What this is: This is an analysis of why autonomous AI agents on endpoints create a governance gap, with shadow agents and unmanaged MCP connections emerging as the key risk.

Why it matters: It matters because IAM, PAM, and broader identity programmes now have to govern machine-speed access and data movement, not just human sessions and sanctioned service accounts.

By the numbers:

  • AI agents have already performed actions beyond their intended scope in 80% of organisations, including accessing unauthorised systems, sharing sensitive data, and revealing access credentials.
  • 17 minutes

👉 Read Cyberhaven's analysis of shadow agents on endpoints and agentic AI security


Context

Agentic AI security is the governance problem that appears when software systems can act on files, APIs, and data without waiting for a human to approve each step. The article argues that endpoints now host shadow agents that security teams did not sanction, did not inventory, and often cannot see.

That matters to identity programmes because an AI agent is effectively a machine actor with delegated access, which means access scope, telemetry, and offboarding become identity controls rather than only endpoint controls. Where agents connect through MCP, the governance gap widens because the connection can authorize data access that traditional review cycles never inspect.


Key questions

Q: How should security teams handle shadow AI on corporate endpoints?

A: Treat it as an identity governance issue, not just an endpoint hygiene issue. Teams should inventory installed agents, identify the human owner and device, map inherited access to SaaS and cloud systems, and require proof of business need before approving continued use. The goal is to know what the agent can reach and remove anything that is unapproved.

Q: Why do AI agents create a bigger governance problem than ordinary endpoint tools?

A: Because an AI agent can execute many file reads, API calls, and transfers in one session without a human approving each step. That collapses the assumption that access is reviewed before action. Governance must therefore focus on delegated machine activity, not only on user approval flows.

Q: What breaks when MCP servers are not registered centrally?

A: Unregistered servers create shadow deployment. That means the organisation cannot tell which tools are connected, which identities can invoke them, or whether a connection is governed at all. The result is hidden access paths that weaken both policy enforcement and assurance reporting.

Q: How do organisations know if agentic AI governance is actually working?

A: Look for three signals: access decisions tied to task context, complete audit records linking agents to datasets, and rapid revocation when scope changes. If reviewers still need manual reconstruction after an incident, the programme is not mature. Effective governance produces explainable access, not just allowed or denied results.


Technical breakdown

Why shadow agents evade traditional endpoint controls

Shadow agents do not look like classic malware or a human insider moving files manually. They can read large numbers of documents, call external APIs, and generate code or browser actions within a normal developer workflow, so the pattern blends into legitimate activity. Legacy DLP often evaluates single transfers, but agentic behaviour is session-based and cumulative, which makes the real risk visible only when you track the entire sequence of reads, prompts, outputs, and destination systems.

Practical implication: endpoint monitoring must shift from single-event inspection to full-session telemetry across agent activity.

How MCP expands the AI agent attack surface

Model Context Protocol standardises connections between agents and tools such as file systems, databases, and APIs. That standardisation is useful for interoperability, but it also means a poorly governed MCP server can become a broad access broker for an agent. If security teams cannot inventory which MCP servers exist, what credentials they use, and what scopes they expose, they cannot reliably assess the data path created by the agent-tool relationship.

Practical implication: inventory MCP servers and review their authorised scopes before approving any agent workflow.

Why machine-speed policy enforcement matters for agentic workflows

Traditional approval gates assume a person can be paused, reviewed, and then allowed to continue. Agents can complete many data reads, prompts, and transfers before a human review cycle finishes, which means governance has to happen at machine speed. The control objective is not just to detect misuse after the fact, but to evaluate each action fast enough to block, allow, or alert without breaking the workflow entirely.

Practical implication: implement automated policy decisions that can act in real time on agent sessions.


Threat narrative

Attacker objective: The objective is to harvest enterprise data and credentials through a trusted-looking agent workflow that security teams do not observe as a conventional exfiltration event.

  1. Entry occurs when an employee installs an AI coding agent locally or connects an agent through an unsanctioned MCP server, creating an unmanaged access path on the endpoint.
  2. Escalation follows when the agent inherits broad file, API, or tool permissions and begins reading large volumes of data without human review at each step.
  3. Impact occurs when sensitive information is transferred to external model endpoints or tool destinations outside the enterprise's documented data flows.

NHI Mgmt Group analysis

Shadow agents are now a governance class, not a niche endpoint concern. The article is right to separate sanctioned tools from the behaviour they can generate once deployed. When an agent can act autonomously on files, APIs, and browser sessions, the governance problem becomes identity-like: who or what has the authority to do this, under what scope, and for how long? Practitioners should treat shadow agents as a lifecycle and access problem, not just a monitoring problem.

Endpoint-level agent inventory is the missing control plane. Many programmes still assume they can govern AI usage through software approval alone, but approval does not reveal live agent connections, plugin drift, or MCP exposure. That leaves a verification trust gap between what the business thinks is deployed and what is actually operating on endpoints. The practical conclusion is that agent inventory has become a prerequisite for any defensible AI governance model.

Machine-speed access breaks human-review assumptions in IAM and PAM. Agentic workflows can complete dozens of reads and transfers before a reviewer would even see the request. That means static entitlements, periodic access reviews, and manual approvals are insufficient on their own. The control failure is not a lack of policy language but a mismatch between the speed of action and the speed of governance, and practitioners need policy enforcement that moves at runtime.

Unmonitored MCP connections create a new form of delegated access sprawl. MCP is not the problem by itself. The issue is that it can multiply the number of hidden tool relationships an agent can use, each with different data scopes and credentials. That is a workload identity and secrets governance problem as much as an AI one. Organisations should map MCP-enabled access the same way they map privileged service accounts, because the blast radius is comparable.

Compliance teams will inherit the evidence problem if agent data flows stay undocumented. The article correctly points out that regulated data moved by agents may never appear in ordinary transfer logs or human review queues. That means legal, privacy, and security teams will struggle to demonstrate control even when there is no obvious breach. The conclusion for practitioners is clear: if an agent can move regulated data, its activity must be auditable as an identity-controlled process.

What this signals

Shadow-agent governance will become a baseline expectation for endpoint and identity programmes. Teams that already manage privileged access and service accounts are closest to the right operating model, because the challenge is the same in principle: define scope, observe use, and remove access when the purpose ends. The difference is that agent activity is faster and more diffuse, so controls need to operate continuously rather than in review cycles.

Agent inventory will become the first meaningful maturity test. If you cannot enumerate where agents run, what they can access, and which tools they are connected to, you do not have a governance programme yet. That is why identity, endpoint, and data teams need a shared control view rather than separate dashboards that never reconcile.

Runtime enforcement will matter more than policy documentation. The practical shift is from writing acceptable-use language to enforcing action-level constraints on file reads, prompts, and transfers. Teams that align this work with the OWASP Agentic Applications Top 10 and the NIST AI Risk Management Framework will be better placed to make AI adoption auditable, not just permissible.


For practitioners

  • Inventory every agent and MCP connection Build an endpoint-by-endpoint register of installed AI agents, the tools they can call, and the MCP servers they reach. Include owner, purpose, permission scope, and offboarding status so hidden agents do not persist after the original use case ends.
  • Track full agent sessions, not single events Collect telemetry for file reads, prompts, API calls, outputs, and destination systems across the whole agent session. That gives investigators a data lineage view instead of a fragmented set of isolated endpoint alerts.
  • Constrain agent permissions to the minimum viable scope Treat each agent like a delegated machine identity and remove broad file system, database, and browser access where it is not essential. Use scoped credentials, short-lived access, and explicit separation between development and production systems.
  • Enforce automated policy decisions at runtime Define policy rules that can block, allow, or alert on agent actions without waiting for manual review. This is especially important when the agent handles regulated data or can call external model endpoints that create undocumented transfers.

Key takeaways

  • Autonomous AI agents on endpoints create a governance gap because they can move data, call tools, and execute code faster than human review can keep up.
  • MCP connections and shadow agents turn access scope, telemetry, and offboarding into core identity controls for machine actors.
  • Practitioners need inventory, session-level visibility, and runtime enforcement before agentic AI use becomes too dispersed to govern.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP Agentic AI Top 10 address the attack and risk surface, while NIST AI RMF, NIST CSF 2.0, NIST Zero Trust (SP 800-207) and NIST SP 800-53 Rev 5 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Agentic AI Top 10NHI-03The article centres on shadow agents, MCP exposure, and unmanaged autonomous access.
NIST AI RMFGOVERNAI RMF governance is directly relevant to ownership, accountability, and policy enforcement.
NIST CSF 2.0PR.AC-4Least-privilege access management is central to restricting agent data movement.
NIST Zero Trust (SP 800-207)Zero trust applies where agents need continuous verification for each tool action.
NIST SP 800-53 Rev 5AC-6Least privilege is the main control family for delegated agent access on endpoints.

Map agent inventory and MCP scopes to agentic AI risks before approving endpoint deployments.


Key terms

  • Shadow Agent: An AI agent deployed without formal registration, identity governance, or security oversight — the agentic equivalent of shadow IT. Shadow agents are more dangerous than typical shadow NHIs because they actively take actions using their credentials.
  • Model Context Protocol: Model Context Protocol is an open protocol that lets AI agents connect to tools and data sources. It expands what an agent can reach, so governance has to cover not only the model and its prompts, but also every system that can receive or return agent-driven data.
  • Data Lineage: The record of how data moves across systems, applications, and workflows. In security operations, lineage shows where sensitive data propagates, which identities touch it, and how a compromise could spread across connected environments.
  • Machine-Speed Policy Enforcement: Automated control decisions that evaluate and respond to system actions fast enough to keep pace with autonomous software. For AI agents, this means blocking, allowing, or alerting in real time rather than relying on human review cycles that occur after the action has already completed.

What's in the full article

Cyberhaven's full post covers the operational detail this analysis intentionally leaves for the source:

  • Endpoint-level visibility examples for detecting shadow agents in active developer environments
  • How the Data Lineage approach traces file reads, prompt content, and outbound transfers across AI sessions
  • The Linea AI workflow details for real-time policy enforcement on agent-mediated activity
  • Practical examples of how sanctioned and unsanctioned agent use can coexist on the same endpoint

👉 Cyberhaven's full post covers the endpoint controls, MCP visibility gaps, and data lineage details behind shadow-agent governance.

Deepen your knowledge

The NHI Foundation Level course, the industry's only accredited NHI security programme, covers NHI governance, machine identity security, and secrets management. It is designed for practitioners who need to govern delegated access across modern identity programmes.
NHIMG Editorial Note
Published by the NHIMG editorial team on August 2, 2026.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org