By NHI Mgmt Group Editorial TeamDomain: Breaches & IncidentsSource: VirtueAIPublished May 26, 2026

TL;DR: OpenClaw’s rapid adoption has increased exposure to malicious skills, prompt injection, and token or credential abuse as the agent takes on more real-world actions across apps, according to VirtueAI. The governance problem is that tool-enabled autonomy expands attack surface faster than most identity and execution controls can keep up.


At a glance

What this is: This is an analysis of how OpenClaw’s tool access and installable skills create security exposure, especially when untrusted content can trigger code execution or credential theft.

Why it matters: It matters because agentic AI that can act across real systems behaves like a high-risk non-human identity, so IAM, PAM, and security teams need runtime controls, not just model-level trust.

By the numbers:

👉 Read VirtueAI's analysis of OpenClaw security risks and controls


Context

OpenClaw is a good example of the security problem that appears when an agent moves from chat to action. Once an AI system can install skills, call tools, and execute workflows, the question shifts from model quality to permission scope, provenance, and runtime containment. In identity terms, the agent starts to resemble a non-human identity that needs governance across every step it takes.

The article focuses on a familiar pattern in agent security: trust is being placed in inputs that are not trustworthy. README files, community skills, and web content can all become delivery channels for malicious commands, which means policy has to sit between the agent and the action, not only around the model. That is now the typical failure mode for fast-growing agent platforms.


Key questions

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

A: Security teams should govern AI agents as non-human identities with explicit ownership, scoped privileges, and continuous monitoring. The control set should include inventory, task-bound credentials, audit trails, and revocation paths. If an agent can call tools or touch production systems, it belongs in the same governance model as service accounts and other machine identities.

Q: When do AI agent credentials create more risk than they reduce?

A: They create more risk when they are long-lived, over-scoped, hard to revoke, or copied into code and prompts. At that point the credential becomes a standing trust asset with unclear ownership. Security teams should reject any pattern that cannot be traced to a specific agent, environment, and revocation process.

Q: What breaks when agent skills or setup guides are trusted blindly?

A: Malicious content can inherit legitimate execution paths. A poisoned skill or README can trigger script execution, shell spawning, or secret theft even when the underlying model is behaving as designed. The failure is not just the prompt. It is the absence of provenance checks and command gating at the execution layer.

Q: Who is accountable when an agent leaks credentials from a snapshot?

A: Accountability sits with the team that designed the bootstrap and lifecycle controls, not with the snapshot itself. If secrets are present in a reusable image or long-lived UI store, the failure is governance, not just execution. Frameworks such as OWASP NHI and NIST CSF align well to that accountability model.


Technical breakdown

Why tool access turns an agent into a control-plane risk

An agent becomes materially riskier when it can invoke tools with real side effects, because each call is both a decision and an execution event. That creates a control plane made of skills, prompts, tokens, shell commands, and network requests. If provenance is weak, the agent cannot distinguish an approved workflow from a poisoned instruction embedded in a README or plugin. The result is not just bad output, but unauthorized execution, data movement, or privilege use. Practical implication: separate reasoning from execution and gate every tool call through policy enforcement.

Practical implication: separate reasoning from execution and gate every tool call through policy enforcement.

How malicious skills and prompt injection achieve code execution

Malicious skills work because they package hostile behaviour as normal functionality, while prompt injection works by smuggling instructions into content the agent trusts. In practice, an agent that follows installation guidance can be redirected into curl | bash, shell spawning, or unintended downloads if content is not treated as untrusted. This is an application-layer supply-chain problem as much as an AI problem, because the real weakness is unchecked transitive trust. Practical implication: require pre-install scanning, content provenance checks, and command allowlisting for any agent-facing workflow.

Practical implication: require pre-install scanning, content provenance checks, and command allowlisting for any agent-facing workflow.

Why credential exposure is the most damaging agent failure mode

Credential theft is more damaging than a single bad command because it extends the blast radius beyond the agent session. If an agent can read SSH keys, API tokens, or cloud credentials, the attacker inherits standing access that can persist after the prompt is closed. That makes secrets management, session scoping, and detection of suspicious read-and-post patterns central to agent security. In identity terms, the agent is effectively handling non-human credentials on behalf of the user, so the lifecycle of those secrets matters. Practical implication: isolate high-value credentials from agent runtime contexts and monitor for exfiltration paths.

Practical implication: isolate high-value credentials from agent runtime contexts and monitor for exfiltration paths.


Threat narrative

Attacker objective: The attacker wants the agent to convert trusted automation into unauthorized execution or credential exfiltration.

  1. Entry occurs when an attacker places malicious instructions inside a seemingly legitimate README, skill package, or setup guide that the agent is likely to process.
  2. Escalation follows when the agent executes those instructions with shell access, tool permissions, or filesystem access that were broader than the task required.
  3. Impact occurs when the attacker uses the resulting code execution or credential theft to compromise the workstation, move laterally, or exfiltrate sensitive data.

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


NHI Mgmt Group analysis

OpenClaw security is really a non-human identity governance problem in disguise: once an agent can execute tasks across email, chat, and workflow tools, it needs lifecycle controls, not just model safety checks. The article shows why runtime decisions must be tied to scoped authority, provenance, and revocation. In identity terms, the agent behaves like a high-impact NHI, so the programme owner must treat it as a governed identity object rather than a clever interface.

Tool trust is becoming the new attack surface: the most dangerous path is not a broken model, but a trusted action path fed by untrusted content. That mirrors long-standing identity failures where broad permissions and weak provenance let malicious inputs inherit legitimate access. The practical lesson is that prompt hygiene alone is insufficient when the execution layer still trusts whatever the agent reads.

Credential exposure window is the concept practitioners should watch: agent workflows compress the time between reading a secret and using it, which makes traditional review and detection too slow. This is where NHI governance, secrets management, and PAM must converge. If a secret can be read, copied, and reused inside one autonomous session, the control has already failed.

Agent security will increasingly look like identity governance plus supply-chain control: OpenClaw’s risk profile combines plugin provenance, command execution, and access scope in one runtime. That means CISOs and IAM leaders should stop treating agent controls as a separate niche and instead fold them into NIST-CSF, OWASP-NHI, and zero trust governance. The field is moving toward policy at execution time, not confidence in model behaviour.

Vendors and practitioners will keep discovering the same governance gap unless they change the default trust model: autonomous tools are being granted real privileges before teams have inventory, policy, or offboarding discipline. That is why agent adoption without identity governance creates the same structural weakness seen in service account sprawl. Teams should assume every new agent class needs ownership, scope, and revocation from day one.

From our research:

  • Only 5.7% of organisations have full visibility into their service accounts, leaving most machine identities partially unmanaged, according to the Ultimate Guide to NHIs.
  • 79% of organisations have experienced secrets leaks, and 77% of those incidents resulted in tangible damage.
  • Forward pivot: For teams building agent governance, the Ultimate Guide to NHIs explains why visibility, rotation, and offboarding are the controls that matter first.

What this signals

OpenClaw-style agents push enterprise programmes toward identity-aware runtime controls because access decisions now happen inside the workflow, not just at login. That means IAM teams, PAM teams, and AI security leads need a common policy model for tool use, secret access, and revocation across the agent lifecycle.

Credential exposure window: the shortest gap between secret disclosure and misuse is becoming the decisive metric for agent governance. When a workflow can read a key and act on it immediately, classic review cycles are too slow, so teams should align controls to runtime evidence rather than post-event inspection.

The governance signal is clear. Agent adoption will keep exposing the same failure pattern until organisations inventory every agent, define its authority, and connect it to revocation and audit workflows that are as mature as those for human identities.


For practitioners

  • Classify each agent as a governed non-human identity Assign named ownership, purpose, scope, and revocation criteria before the agent is allowed to touch email, chat, files, or workflow systems.
  • Block untrusted skills and setup instructions by default Treat README files, plugin manifests, and community skills as untrusted inputs until provenance checks, static review, and behavioural analysis clear them for execution.
  • Enforce command-level allowlisting for agent actions Require policy decisions before shell execution, downloads, credential reads, or network posts, especially where the action could turn into curl | bash or file exfiltration.
  • Isolate secrets from agent runtime contexts Keep SSH keys, API tokens, and service credentials out of directories and environments the agent can inspect, and monitor for read-and-send patterns that indicate exfiltration.
  • Log the full agent trajectory for incident response Record prompts, tool calls, command arguments, and external destinations so security teams can reconstruct what the agent saw, decided, and executed.

Key takeaways

  • OpenClaw raises the same control question as NHI sprawl: who owns the agent, what can it touch, and how quickly can access be withdrawn?
  • Malicious skills, prompt injection, and credential theft matter because they turn agent autonomy into executable trust abuse, not just inaccurate output.
  • The practical response is runtime governance, provenance checks, and secrets isolation, because model trust alone cannot contain an agent with real permissions.

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

FrameworkControl / ReferenceRelevance
OWASP Agentic AI Top 10The article focuses on tool misuse, prompt injection, and agent autonomy risks.
OWASP Non-Human Identity Top 10NHI-03The piece is fundamentally about lifecycle governance for an agent acting as an NHI.
NIST AI RMFGOVERNAgent oversight and accountability are central to the article's control model.
NIST CSF 2.0PR.AC-4Least privilege and access scope are the main defensive themes.
MITRE ATT&CKTA0002 , Execution; TA0006 , Credential AccessThe attack patterns in the article rely on execution and secret theft.

Inventory the agent, define ownership, and revoke access on the same lifecycle used for other NHIs.


Key terms

  • Agentic AI Runtime: The execution environment that lets an AI system choose actions, call tools, and interact with external services. It includes the model, policies, credentials, logging, and enforcement layers that determine what the agent can actually do in practice.
  • Credential exfiltration: Credential exfiltration is the theft of usable authentication material such as tokens, keys, or certificates. In NHI environments, the stolen item is often already valid and can be replayed immediately. That is why detection must be paired with revocation and entitlement review rather than relying on alerts alone.
  • Action Provenance: Action provenance is the record of who initiated a task, which identity executed it, what tool was used, and what decision was made at runtime. It is essential when delegated work crosses systems because it preserves accountability even when the original request and the final action are separated by many steps.
  • Credential exposure window: Credential exposure window is the time period during which a secret remains usable, copyable, or replayable before it is revoked or replaced. The shorter that window, the less chance there is for abuse. In database governance, reducing this window is often more important than merely storing the secret securely.

What's in the full article

VirtueAI's full blog covers the operational detail this post intentionally leaves for the source:

  • Step-by-step walkthroughs showing how the guard blocks a poisoned README from reaching shell execution.
  • Concrete command examples for detecting credential exfiltration attempts during agent tool use.
  • Runtime policy behaviour for approving, denying, and logging high-risk agent actions.
  • Detailed examples of how the protection layer responds to `curl | bash` and secret read-and-post patterns.

👉 VirtueAI's full post shows the attack examples, guard behaviour, and runtime blocking logic in detail.

Deepen your knowledge

NHI Foundation Level course, the industry's only accredited NHI security programme, covers NHI governance, machine identity security, secrets management, and identity lifecycle control. It is designed for practitioners who need a repeatable way to govern non-human access in real programmes.
NHIMG Editorial Note
Published by the NHIMG editorial team on August 18, 2026.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org