TL;DR: Cyera Research identified four chainable vulnerabilities in OpenClaw that can expose secrets, escalate privileges, and enable persistence through agent-mediated entry paths such as prompt injection and malicious plugins, with a highest CVSS of 9.6 and about 65,000 to 180,000 public instances cited. The security model for autonomous agents now has to treat the runtime itself as privileged infrastructure, not just another integration layer.
At a glance
What this is: Cyera Research found four patched OpenClaw flaws that let attackers chain sandbox escapes, secret exposure, privilege escalation, and persistence in autonomous agent runtimes.
Why it matters: IAM and NHI teams need to treat AI agent runtimes as privileged identities with their own lifecycle, access scope, and blast-radius controls.
By the numbers:
- The highest CVSS score was 9.6 for CVE-2026-44112.
👉 Read Cyera's research on chainable OpenClaw vulnerabilities and AI agent risk
Context
OpenClaw is an autonomous AI agent platform that connects models to filesystems, SaaS applications, credentials, and execution environments. That makes it a Non-Human Identity problem as much as an application security problem, because the agent inherits access, acts on behalf of systems, and can be abused through the same trust paths that enable automation.
The core governance gap is simple: traditional IAM assumes a bounded application or service account, while agentic systems can validate one action and execute another, expand secrets at runtime, or carry out privileged operations through a compromised workflow. In this case, the article's subject is typical of where the market is heading, not an edge case.
Key questions
Q: How should security teams reduce risk when AI agents can access secrets and execute commands?
A: Security teams should limit each agent to the smallest possible execution scope, then separate read, write, and scheduling permissions so one foothold cannot become persistence. Rotate any secrets the agent can reach, and require server-side approval for privileged actions. Treat the agent runtime as a privileged non-human identity, not a generic app integration.
Q: Why do AI agent runtimes create more governance risk than ordinary service accounts?
A: AI agent runtimes can combine decision-making, tool use, and secret access in one execution path, so a single trust failure can cause data exposure and operational change. Unlike ordinary service accounts, agents may validate one action and perform another at runtime. That makes blast-radius control and lifecycle governance more important than simple credential issuance.
Q: What breaks when sandbox validation does not match actual execution in agent systems?
A: When validation and execution diverge, attackers can exploit race conditions, shell expansion, or client-trusted flags to cross boundaries the system thought were protected. The result can be file escape, privilege escalation, or backdoor persistence. Security teams should test the real execution context, not just the command or path that passes initial checks.
Q: What should teams do in the first 24 to 72 hours after discovering a compromised AI agent runtime?
A: Contain the instance, disable external access, rotate all reachable secrets, and review whether any scheduling, configuration, or file-write paths were abused. Then hunt for adjacent instances using the same plugin chain or access pattern. The first response objective is to stop the agent from continuing to act as an attacker-controlled identity.
Technical breakdown
How TOCTOU sandbox escapes turn agent writes into persistence
A time-of-check/time-of-use, or TOCTOU, flaw appears when a system validates a path or action and then later operates on something that has changed in the meantime. In OpenClaw, the write escape allows an attacker to redirect a supposedly safe write outside the sandbox boundary. That matters because agent runtimes are highly automated: once the agent is allowed to write configuration or artifacts, a race condition can become host tampering, backdoor placement, or durable control. This is not just file handling failure. It is a privilege boundary failure inside an execution layer that was expected to be constrained.
Practical implication: Practitioners should assume any agent runtime write path can become a persistence mechanism unless path validation and enforcement are atomic.
Why command validation is not enough for secrets exposure
The env-var disclosure issue shows a common weakness in agent tooling: commands can appear safe at validation time but expand sensitive values later during shell execution. Environment variables often hold API keys, bearer tokens, and other secrets that are invisible to superficial allowlisting. If the execution layer expands those values inside heredocs or other shell constructs, the runtime itself becomes a disclosure channel. The control failure is architectural, not just syntactic. Validation must cover the actual execution context, not only the command string presented for review.
Practical implication: Teams should treat shell expansion and runtime interpolation as part of the attack surface, then test whether secrets can leak after validation.
MCP loopback privilege escalation and the danger of client-trusted ownership flags
The MCP loopback flaw illustrates a broader agentic risk: if a runtime trusts a client-controlled ownership or session flag without binding it to the authenticated identity, privilege becomes easy to forge. That can let a locally executing process with a valid bearer token move from ordinary execution to owner-level control over configuration, scheduling, and environment management. For NHI governance, this is a lifecycle problem because the agent's effective privilege no longer matches its intended role. Once the identity boundary is weak, access review and segregation controls lose precision.
Practical implication: Security teams should verify that ownership, session, and privilege decisions are server-side assertions tied to authenticated identity, not client-provided claims.
Threat narrative
Attacker objective: The attacker uses the agent runtime to steal secrets, expand control, and establish durable access while blending into normal agent behaviour.
- Entry via malicious plugin, prompt injection, or compromised external input that gains code execution inside the OpenShell sandbox.
- Escalation through TOCTOU read escape and environment-variable disclosure that expose credentials, secrets, and internal artifacts beyond intended scope.
- Privilege escalation through the MCP loopback flaw that promotes the compromised process to owner-level control of the agent runtime.
- Impact through the TOCTOU write escape that enables configuration tampering, backdoor placement, and persistent control of the host.
Breaches seen in the wild
- Moltbook AI agent keys breach — Moltbook breach exposed 1.5M AI agent keys.
- MongoBleed breach — MongoBleed exposed secrets across 87K MongoDB servers.
Read our 52 NHI Breaches Analysis report for a comprehensive view of breaches impacting Non-Human Identities including AI Agents.
NHI Mgmt Group analysis
Agent runtimes are becoming privileged identities, not just application components. Once an AI agent can read files, call tools, and act on behalf of connected systems, it inherits the governance burden of a service account plus the execution risk of a code runner. That combination creates a broader blast radius than traditional app integrations because the identity and the action surface are fused. Practitioners should govern the agent runtime as a high-risk non-human identity.
Ephemeral prompt trust still produces standing privilege risk when the runtime is broad. A malicious plugin or injected instruction does not need permanent credentials to cause lasting damage if the agent can write configuration, schedule jobs, or access secrets in real time. That is the new identity blast radius problem: the breach window is short, but the operational impact can persist. Security teams should reduce the scope of every agent execution path before they chase finer-grained detection.
Agentic AI security is converging with classic NHI governance, but the control stack is not yet aligned. The article reinforces a pattern already visible across NHI programs: access scope, secret exposure, and lifecycle control matter more than model novelty. Organisations that still separate AI governance from IAM will miss the runtime privilege issues that matter most. The practical conclusion is to fold agent runtimes into existing NHI and PAM governance, not build a parallel exception process.
Claw chain is a useful concept for the field because it links validation gaps, ownership flaws, and persistence in one attack path. Each step can look normal in isolation, which is why point controls miss the full picture. The discipline now has to measure chainability, not just vulnerability count. Practitioners should test whether a single foothold can move from execution to exfiltration to persistence without leaving the agent boundary.
From our research:
- The average estimated time to remediate a leaked secret is 27 days, despite 75% of organisations expressing strong confidence in their secrets management capabilities, according to The State of Secrets in AppSec.
- Only 44% of developers are reported to follow security best practices for secrets management, exposing a significant developer behaviour gap.
- For a broader identity context, Top 10 NHI Issues shows how overprivilege, sprawl, and weak lifecycle control converge in real programmes.
What this signals
Claw chain exposes a programme-level gap that many teams are underestimating: once an agent can expand secrets and alter runtime state, traditional incident response is already late. With 75% of organisations expressing strong confidence in secrets management yet taking an average of 27 days to remediate a leaked secret, the governance mismatch is already visible in ordinary environments, not only in novel AI stacks. That is why NHI and IAM teams should collapse AI agent governance into their existing privileged identity model, supported by the OWASP Non-Human Identity Top 10.
Identity blast radius will become the metric that matters more than vulnerability count: a single agent foothold can move from execution to exfiltration to persistence if access scope is broad enough. Teams should start measuring whether an agent can reach secrets, alter configuration, or schedule future actions from one compromised runtime. That operational question is more useful than counting exposed endpoints, because it tells you whether the environment can absorb a single failure without spreading it.
Practical governance now needs two linked views: what data the agent can touch, and what authority it can exercise while touching it. That is where NIST AI Risk Management Framework governance and NHI lifecycle controls meet. Organisations that build those views now will be better positioned to contain agentic failures before they become persistent identity abuse.
For practitioners
- Patch exposed agent runtimes first Apply the vendor's fixed versions, then inventory any internet-facing deployments and put them behind authentication or network controls before deeper tuning. The highest-risk pattern is not the vulnerability alone but the combination of public exposure and autonomous execution.
- Rotate secrets reachable by the agent Assume environment variables, bearer tokens, API keys, and credentials accessible to the runtime are compromised and rotate them immediately. Focus on the secrets the agent could expand during shell execution, not just the ones stored in a vault.
- Treat agent access like privileged identity Map every data source, command path, and scheduling or configuration capability the agent can reach, then reduce scope aggressively. Apply the same access review and lifecycle controls you would use for a high-risk service account.
- Test for chainable failure modes Validate whether a single prompt injection or plugin foothold can combine read escape, privilege escalation, and write escape into one workflow. The goal is to break the chain before persistence, not just patch each flaw in isolation.
Key takeaways
- Autonomous AI agents can turn a single execution foothold into data exposure, privilege escalation, and persistence when runtime controls are weak.
- The article's numbers point to broad exposure, with tens of thousands of public instances and a critical flaw rated 9.6 CVSS.
- Practitioners should govern agent runtimes as privileged non-human identities and test for chainable failure modes, not isolated bugs.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP Non-Human Identity Top 10 and OWASP Agentic AI Top 10 address the attack and risk surface, while NIST AI RMF set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Non-Human Identity Top 10 | NHI-03 | Secret exposure and rotation gaps are central to the OpenClaw attack chain. |
| OWASP Agentic AI Top 10 | Prompt injection and tool misuse are part of the entry path into the agent runtime. | |
| NIST AI RMF | Agent governance and accountability are core AI RMF concerns for autonomous systems. |
Apply agentic app controls to constrain tool use, validate inputs, and separate execution from trust.
Key terms
- Agent Runtime: The execution environment where an AI agent runs, calls tools, and processes inputs on behalf of a workflow. In security terms, it is both compute and identity surface, because the runtime can hold secrets, make decisions, and perform actions that affect other systems.
- Time-Of-Check/Time-Of-Use Flaw: A race condition where a system validates something, then later acts on a value that can change in the meantime. In agent systems, this can turn a trusted file path or command into an unsafe action, creating escapes, tampering, or persistence.
- MCP Loopback Privilege Escalation: A failure pattern where a client or local process gains higher privileges by abusing assumptions inside a Model Context Protocol connection. If the runtime trusts client-provided ownership or session state, a valid token can become broader control than intended.
- Identity Blast Radius: The amount of damage a compromised identity can cause before it is contained. For AI agents and other NHIs, blast radius depends on secrets, tool access, scheduling rights, and write permissions, not just on whether the identity has a password or token.
Deepen your knowledge
OpenClaw sandbox escapes, MCP privilege boundaries, and agent runtime governance are core topics in our NHI Foundation Level course, the industry's only accredited NHI security programme. If you are mapping AI agent access to existing identity controls, it is worth exploring.
This post draws on content published by Cyera: Claw Chain, Cyera Research's analysis of four chainable vulnerabilities in OpenClaw. Read the original.
Published by the NHIMG editorial team on 2026-05-19.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org