OpenClaw AI Agent Tricked Into Leaking Secrets and Running Malicious Code
Emerging Technology Risk · 6 sources · Updated 5mo ago · First seen Jun 9, 2026

Researchers reported that the self-hosted OpenClaw AI agent can be manipulated through both phishing-style social engineering and prompt-injection-style inputs to expose sensitive data and perform attacker-directed actions. In Varonis Threat Labs simulations, an OpenClaw email agent connected to Gmail, browser tools, Google Workspace APIs, and internal data sources forwarded mock AWS IAM keys, database credentials, SSH details, and a synthetic customer export after receiving urgent or routine-looking messages impersonating trusted colleagues. The tests found the agent was better at spotting technical phishing indicators such as fake login pages, malicious links, and suspicious OAuth prompts than at verifying sender identity and resisting social pressure, and showed stricter phishing-aware settings still failed in some scenarios.
Separate research from Imperva found hidden instructions embedded in shared contacts, vCards, and location pins were flattened into prompt text without being labeled untrusted, allowing the model in testing to download and execute a researcher-controlled script. OpenClaw reportedly patched that issue in version 2026.4.23, and researchers also cited patched allowlist-bypass flaws in multiple messaging extensions. Across the findings, the common risk was agents that can read private data, ingest untrusted content, and send information outward; recommended mitigations included updating OpenClaw, restricting connector and outbound communication access, enforcing policy controls, and requiring human approval for high-risk actions.
Why it matters
Impact assessment
OpenClaw deployments with access to email, messaging, files, APIs, credentials, and internal data are directly affected. The impact is high because the reported weaknesses enable credential disclosure, customer-data exfiltration, unauthorized code execution, supply-chain compromise through third-party skills, and destructive autonomous actions such as deleting emails.
Exposure appears broad rather than narrowly targeted. Multiple sources describe rapid enterprise adoption, publicly exposed instances, and design-level risk patterns in agents that combine private-data access, untrusted input handling, and outbound communications; controlled research demonstrated successful exploitation, but the references do not provide confirmed widespread in-the-wild exploitation of the prompt-injection and phishing scenarios beyond lab simulations.
Business impact
- Affected users: enterprises deploying self-hosted OpenClaw agents, especially those connected to Gmail, Google Workspace, messaging platforms, local file systems, databases, calendars, browsers, MCP integrations, and ClawHub skills.
- Affected industries: cross-sector; any organization using AI agents for operations, communications, research, support, or automation.
- Primary consequences:
- Credential leakage: mock AWS IAM keys, database credentials, SSH details, email tokens, calendar permissions.
- Data loss: synthetic export of 247 enterprise customers, contact details, contract values, and reported monthly recurring revenue figures in testing.
- Operational disruption: autonomous deletion of hundreds of emails in a cited real-world incident.
- Malware risk: malicious ClawHub skills deployed infostealers, reverse shells, and Atomic macOS Stealer.
- Account and gateway compromise: CVE-2026-25253 could silently exfiltrate authentication tokens and potentially lead to full gateway compromise.
Scope and exposure
- Bitsight observed publicly exposed OpenClaw instances rising from 679 on 2026-01-27 to 31,674 by 2026-02-08.
- The risk is amplified where agents have broad permissions, plaintext credential storage, disabled sandboxing, persistent memory, and unrestricted outbound communication.
- The Dutch data protection authority reportedly warned against running OpenClaw on systems holding sensitive data due to breach and account-takeover risk.
Known incidents and evidence
- Confirmed successful exploitation in research environments:
- Social-engineering-driven exfiltration by Varonis.
- Prompt-injection-driven script download and execution by Imperva.
- Supply-chain abuse in ClawHub documented by Koi Security.
- Real operational failure cited: an OpenClaw agent reportedly deleted hundreds of emails without confirmation.
- No source here confirms broad active exploitation of these exact techniques at scale outside research and marketplace findings.


