By NHI Mgmt Group Editorial TeamPublished 2026-02-02Domain: Agentic AI & NHIsSource: Astrix Security

TL;DR: OpenClaw’s rapid adoption exposed tens of thousands of users to critical misconfigurations, with public scans finding 42,665 exposed instances and 93.4% carrying authentication bypass flaws, according to Astrix Security. Shadow AI agents are now an NHI governance problem, not just a tooling concern.


At a glance

What this is: OpenClaw is a case study in how a locally run AI agent can turn employee enthusiasm into exposed credentials, unsafe integrations, and persistent access paths.

Why it matters: IAM and NHI teams need governance models that can inventory, constrain, and monitor autonomous agents before they inherit corporate credentials and workspace access.

By the numbers:

👉 Read Astrix Security's analysis of OpenClaw shadow AI agent exposure


Context

OpenClaw sits in the growing category of autonomous AI agents, software that can execute commands, use tools, and maintain persistent access on behalf of a user. That changes the IAM problem from simple app access to ongoing control over non-human identities, secrets, and delegated privileges.

The security gap is familiar: employees adopt useful tools faster than governance teams can inventory them. In this case, the issue is not only the agent itself, but the OAuth apps, API keys, cloud credentials, and MCP connections it can inherit once it is allowed to operate on a corporate endpoint. That starting position is increasingly typical for shadow AI adoption, which is exactly why it is so hard to contain.


Key questions

Q: How should security teams govern autonomous AI agents that can access corporate systems?

A: Treat each agent as a non-human identity with its own lifecycle, scoped entitlements, and revocation path. Require explicit approval for tool access, shorten token lifetimes, log every action, and review the agent whenever it can reach email, source control, chat, or cloud systems. If the agent can persist state, it needs the same control discipline as any privileged service account.

Q: What is the difference between an AI assistant and a shadow AI agent?

A: An AI assistant answers prompts, while a shadow AI agent can execute actions, store credentials, and connect to business systems without central oversight. That difference matters because the agent creates a hidden access layer, not just a user-facing interface. Once it can authenticate to corporate services, it becomes part of the organisation's identity and access risk surface.

Q: When does an AI agent create more risk than it reduces?

A: Risk rises when the agent can act across multiple systems, hold long-lived secrets, or operate through weakly governed integrations. A tool that saves time but expands privilege, persistence, or data reach without review is usually a net security loss. The threshold is reached when the agent's blast radius is larger than the task it is supposed to automate.

Q: What is the difference between MCP access and ordinary app integration?

A: MCP connects an agent to tools and data sources in a way that can support autonomous action, so it must be treated as a privileged integration channel rather than a simple API connection. Ordinary app integration is usually static and user-scoped. MCP becomes riskier when it inherits broad scopes, writes back to systems, or can chain actions across services.


Technical breakdown

Shadow AI agents and NHI trust expansion

A shadow AI agent becomes an NHI risk the moment it receives credentials, browser access, or a local trust exception that was never formally reviewed. Unlike a standard application account, the agent can chain actions across systems, which means one unsafe deployment can expose multiple services at once. Local execution makes the risk worse because reverse proxies, localhost trust assumptions, and endpoint permissions often collapse into a single approval path. Once the agent is treated as trusted software, its access tends to outlive the business case that justified it.

Practical implication: Inventory every locally run agent and treat its access as a governed identity, not a productivity experiment.

MCP connections and delegated tool access

Model Context Protocol connects an agent to tools and data sources, but the protocol itself does not create governance. The risk comes from what is attached to the agent: files, shell commands, calendars, SaaS apps, and other systems that can be reached through those tool sessions. If the agent is granted broad scopes, the resulting blast radius resembles a privileged integration rather than a simple assistant. That is why MCP visibility matters. Security teams need to know which tools are attached, which scopes they inherit, and whether those scopes are justified.

Practical implication: Track every MCP-connected service and review scopes as if they were privileged app entitlements.

Authentication bypass and persistent access paths

When an agent gateway auto-trusts localhost or weakly validates a proxy-forwarded request, the authentication boundary can disappear. That creates a path where exposed API keys, OAuth tokens, or cloud credentials become the real control plane. Attackers do not need to defeat the agent if they can hijack its session or reach its admin interface. The persistence risk is especially serious when the agent stores long-lived credentials and can re-authenticate to corporate systems after the initial compromise.

Practical implication: Test agent gateways for proxy trust failures and eliminate any default path that grants unauthenticated control.


Threat narrative

Attacker objective: The attacker wants to hijack the agent's trust relationship so stolen credentials and session access can be reused for persistent corporate compromise.

  1. Entry via exposed OpenClaw instances reachable through a public port and discovered with simple internet scans.
  2. Credential harvesting from misconfigured deployments that exposed API keys, Telegram bot tokens, Slack OAuth credentials, and chat histories.
  3. Escalation through stolen agent access that could be reused to reach corporate systems such as Salesforce, GitHub, and Slack.
  4. Impact through persistent control of employee-linked sessions and the potential to establish durable footholds in sensitive corporate environments.

Read our 52 NHI Breaches Analysis report for a comprehensive view of breaches impacting Non-Human Identities including AI Agents.


NHI Mgmt Group analysis

Shadow AI is now an identity problem before it is a tooling problem. OpenClaw shows that the first security decision is not whether the agent is useful, but whether it has been granted a durable identity with access to corporate systems. Once that identity can hold secrets, call tools, and persist state, conventional app approval processes are too late. Practitioners should treat agent onboarding as an identity governance event, not a software install.

Ephemeral usage does not eliminate trust debt. A local assistant can feel temporary while the credentials behind it are anything but. If an agent inherits OAuth apps, cloud keys, or workspace tokens, the organisation has created a hidden access layer that is difficult to audit and even harder to revoke cleanly. The governance question is whether the agent's privileges are explicitly bounded and time-limited. If not, the risk accumulates as trust debt.

Model Context Protocol expands the attack surface when it is treated as a convenience layer. MCP is an integration pattern, not a security boundary. The real control issue is whether connected tools are individually approved, continuously monitored, and constrained to the minimum scope needed for the task. When MCP links agents to email, chat, source control, and cloud systems, one compromise can cascade across the enterprise. Practitioners should manage MCP as a privileged integration channel.

Open-source virality can outpace enterprise control faster than traditional SaaS adoption. OpenClaw gained traction because users could install it locally and connect it to familiar services without central approval. That pattern weakens perimeter assumptions and bypasses procurement checkpoints that usually catch risky software. The lesson is not to ban experimentation. It is to detect it early, classify it accurately, and bring it under governance before credentials and business data are involved.

Identity blast radius is the right metric for shadow AI governance. The important question is not how many agents exist, but how many systems each one can reach if compromised. An agent with one high-value token may be more dangerous than dozens of low-risk automations. Practitioners should measure and reduce blast radius by shortening token lifetimes, limiting scope, and separating human and agent permissions wherever possible.

From our research:

  • 80% of organisations report their AI agents have already performed actions beyond their intended scope, including accessing unauthorised systems (39%), inappropriately sharing sensitive data (31%), and revealing access credentials (23%), according to AI Agents: The New Attack Surface report.
  • 52% of companies can track and audit the data their AI agents access, leaving 48% with a complete blind spot for compliance and breach investigation.
  • For a broader view of where agents fit into the NHI control problem, see OWASP NHI Top 10 for the current agentic risk model.

What this signals

Identity blast radius is the governance metric that matters most for shadow AI. If one locally run agent can reach Salesforce, GitHub, Slack, and cloud credentials, the control problem is no longer app discovery. It is containment. Program teams should assume that unmanaged agents will appear first at the endpoint layer and then spread through delegated access paths unless detection is tied to identity, not just software inventory.

The practical response is to connect endpoint visibility with identity controls and to treat agent permissions as time-bound entitlements. That means narrowing token scopes, enforcing rapid revocation, and requiring service-by-service approval for tool connections. The programme that gets ahead of this will have a better chance of containing agent drift before it becomes credential sprawl.

With 98% of companies planning to deploy even more AI agents within the next 12 months, the access model has already outgrown manual review. The next phase is not more enthusiasm for automation, but more discipline around who can connect agents to privileged systems and how quickly those permissions can be removed when the use case changes.


For practitioners

  • Inventory all locally run agents Map where employees can run autonomous assistants on endpoints and classify each one as a non-human identity with potential corporate reach. Include browser access, shell execution, and persistent storage in the review.
  • Review every attached secret and token Identify OAuth apps, API keys, cloud credentials, and certificates that the agent can access, then shorten lifetimes and remove any scope not required for the task.
  • Validate proxy and localhost trust paths Test whether reverse proxies, local callbacks, or gateway defaults can bypass authentication. Remove auto-trust assumptions and require explicit authentication for every control plane action.
  • Monitor MCP-linked tools as privileged integrations Track which services an agent can reach through MCP and review those scopes like any other elevated application entitlement. Prioritise chat, source control, and SaaS connections first.
  • Add shadow AI detection to endpoint controls Look for characteristic process names, network fingerprints, and anomalous credential use so that unmanaged agents surface before they become a persistent access path.

Key takeaways

  • OpenClaw shows that shadow AI becomes an NHI problem as soon as an agent receives credentials and tool access.
  • The exposed-instance and authentication-bypass findings show that fast adoption can outpace even basic control validation.
  • Security teams need identity-based containment, not just software bans, if they want to govern autonomous agents at scale.

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 and OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST CSF 2.0 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Agentic AI Top 10NHI-01Agent identity exposure and tool misuse map directly to agentic application risks.
OWASP Non-Human Identity Top 10NHI-03Credential exposure and weak rotation are central to the OpenClaw misconfiguration pattern.
NIST CSF 2.0PR.AC-4Least privilege and access review are required for agent-linked corporate systems.

Inventory autonomous agents, then constrain tool access and session scope before rollout.


Key terms

  • Shadow AI: Shadow AI is any autonomous or semi-autonomous AI system operating without formal oversight, inventory, or approval. In practice, it becomes a governance gap when employees connect it to corporate data, secrets, or tools that security teams cannot see or control.
  • Non-Human Identity: A non-human identity is a credentialed machine entity such as a service account, API key, token, certificate, bot, workload, or AI agent. These identities can authenticate and act, which means they need lifecycle, privilege, and revocation controls similar to human identities but with tighter automation.
  • Model Context Protocol: Model Context Protocol is an open protocol that connects AI agents to tools and data sources. It is not a security boundary. When used without strong access control and scope review, it can turn a capable agent into a privileged integration with a much larger blast radius.
  • Identity Blast Radius: Identity blast radius is the amount of damage possible if an identity is compromised or misused. For AI agents, it is shaped by token scope, session lifetime, attached tools, and the number of systems the agent can reach. Smaller blast radius means lower containment risk.

What's in the full article

Astrix Security's full post covers the operational detail this post intentionally leaves for the source:

  • The exposed-instance scanning approach used to identify OpenClaw deployments across the internet.
  • The specific misconfiguration pattern behind the localhost trust bypass and how the gateway approved proxy-forwarded traffic.
  • The inventory of credentials and histories exposed in affected deployments, including API keys, OAuth apps, and chat logs.
  • The detection signals Astrix used for MCP-related agent activity on enterprise endpoints.

👉 Astrix Security's full post covers the OpenClaw attack chain, exposed credentials, and endpoint detection details.

Deepen your knowledge

OpenClaw, shadow AI, and non-human identity governance are core topics in our NHI Foundation Level course, the industry's only accredited NHI security programme. If you are building a control model for autonomous agents that can reach corporate systems, it is worth exploring.
NHIMG Editorial Note
Published by the NHIMG editorial team on 2026-02-02.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org