Skip to main content
Mallory
← Back to News
ai-platform-securityidentity-impersonation-fraudleaked-secret-api-keydata-exfiltration-method

OpenClaw AI Agent Tricked Into Leaking Secrets and Running Malicious Code

Emerging Technology Risk · 6 sources · Updated 5mo ago · First seen Jun 9, 2026

OpenClaw AI Agent Tricked Into Leaking Secrets and Running Malicious Code

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.
New surface, new adversariesTrack how attackers are adapting to this technology.
Track this risk
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

4 events · Feb 8, 2026 – Jun 11, 2026
  1. Jun 11, 20266mo ago

    OpenClaw patches prompt-injection issue in version 2026.4.23

    The prompt-injection issue identified by Imperva was patched by OpenClaw in version 2026.4.23. The reporting also notes additional allowlist-bypass flaws across multiple OpenClaw messaging extensions were patched.

    New Attacks Trick OpenClaw AI Agent Into Running Code and Leaking Secrets
  2. Jun 11, 20266mo ago

    Imperva finds prompt-injection path to code execution in OpenClaw

    Separate research by Imperva showed that hidden instructions embedded in shared contacts, vCards, and location pins could be flattened into prompt text by OpenClaw without being marked untrusted, enabling attacker-controlled actions. In Imperva's tests, this let Gemini 3.1 Pro download and run a researcher-controlled script.

    New Attacks Trick OpenClaw AI Agent Into Running Code and Leaking Secrets
  3. Jun 9, 20266mo ago

    Varonis demonstrates phishing-driven data leakage in OpenClaw

    Varonis Threat Labs tested the OpenClaw AI email agent in a simulated enterprise environment and showed it could be socially engineered by phishing-style emails into disclosing sensitive data, including AWS IAM keys, database credentials, SSH details, and customer or CRM exports. The research also found stricter phishing-aware configuration still failed in some identity-verification scenarios, though the agent performed better against technical phishing indicators such as malicious links and OAuth prompts.

    OpenClaw AI agent found falling for phishing attacks, spills user data
  4. Feb 8, 202610mo ago

    Bitsight reports surge in publicly exposed OpenClaw instances

    Bitsight researchers observed publicly exposed OpenClaw instances rise from 679 on 2026-01-27 to 31,674 by 2026-02-08, indicating rapid enterprise adoption and a sharply expanding internet-facing attack surface.

    The OpenClaw security risks every CISO needs to know | TechTarget
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, breaches, and observables Mallory has linked to this story. Indicator values are masked here and available in full in the app.

Open in app →

Affected products

1 linked
Openclaw

Organizations

1 linked
Openclaw

Observables

3 linked

Indicator values are masked on this page. See the values in Mallory Domains, IPs, hashes, and URLs are exportable to your SIEM.

Do you run this?Follow how adversaries are adapting to this technology, and where it touches your stack today.
Track This Risk
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.