Exploitation of OpenClaw and Moltbot AI Coding Agents
AI coding assistants including OpenClaw, Moltbot, and Clawdbot are being weaponized via malicious 'ClawHub' registry skills to execute unauthorized system commands and exfiltrate cryptocurrency and credential data.
AI-assisted coding agents, specifically OpenClaw (formerly known as Clawdbot) and its rebranded iteration Moltbot, are being actively exploited by attackers who distribute malicious "skills" through the ClawHub registry. These agents, which operate as Node.js applications, are designed to execute shell commands to assist users with development tasks. Attackers leverage prompt injection techniques or malicious skill code to trigger unintended command execution on the host machine. Once initial access via the agent is achieved, attackers utilize common system binaries (LOLBins) and scripting interpreters to perform download-and-execute operations. These campaigns primarily target cryptocurrency wallets and sensitive credentials stored on the developer's workstation. This threat highlights the security risks inherent in the extensible plugin and skill ecosystems of AI developer tools, where third-party code is executed with the privileges of the user.
Attack Chain
- Attacker develops or compromises a "skill" available in the ClawHub registry.
- The target developer installs the malicious skill into their OpenClaw or Moltbot AI coding environment.
- The agent executes the malicious skill code within the Node.js process context.
- The malicious code triggers prompt injection or direct system command execution.
- The Node.js process spawns a child process, such as bash, powershell.exe, or curl, to execute commands.
- The child process downloads additional obfuscated payloads from attacker-controlled infrastructure.
- The downloaded payload executes, targeting and exfiltrating cryptocurrency wallet files or system credentials.
Impact
Successful exploitation allows attackers to gain unauthorized command execution on the host system, leading to the theft of cryptocurrency assets and local credentials. Multiple instances of malicious skill distribution have been observed in the ClawHub ecosystem, impacting users across Windows, macOS, and Linux platforms. The shift from Clawdbot to Moltbot has also been accompanied by increased impersonation campaigns, widening the potential victim pool to include users searching for legitimate coding assistants.
Recommendation
- Audit the use of OpenClaw, Moltbot, and Clawdbot within the development environment and establish a blocklist if these tools are not approved for use.
- Implement endpoint detection to monitor for suspicious child processes spawned by Node.js, specifically targeting shells and network-fetching binaries.
- Block network traffic to identified malicious typosquatted domains (moltbot.you, clawbot.ai, clawdbot.you) at the organizational DNS resolver or firewall.
- Deploy the provided Sigma rule to detect unauthorized shell execution initiated by AI agent processes.
- Rotate secrets, API keys, and cryptocurrency wallet keys if an infected workstation is identified.
Immediate actions
Block moltbot.you, clawbot.ai, and clawdbot.you at DNS level.
Threat Hunt
Search for child processes spawned by node processes containing 'openclaw', 'moltbot', or 'clawdbot' in command line.
Data: Endpoint process logs
Mitigations
Remove unauthorized AI coding agents from developer workstations.
Detection coverage 1
Detect Execution via OpenClaw AI Agent
mediumDetects suspicious child processes (shells/LOLBins) spawned by OpenClaw, Moltbot, or Clawdbot AI agents running via Node.js.
Detection queries are available on the platform. Get full rules →
Indicators of compromise
3
domain
| Type | Value |
|---|---|
| domain | moltbot.you |
| domain | clawbot.ai |
| domain | clawdbot.you |