Skip to main content
Mallory
← Back to News
ai-platform-securityopen-source-dependency-vulnerabilitywidely-deployed-product-advisoryinitial-access-method

AI Agent Prompt-Injection and Web-to-Agent Takeover Risks in Developer Tooling

Emerging Technology Risk · 20 sources · Updated 5mo ago · First seen Feb 27, 2026

AI Agent Prompt-Injection and Web-to-Agent Takeover Risks in Developer Tooling

Security research highlighted web-to-agent takeover and prompt-injection risks in modern AI developer tooling. Oasis Security reported a “complete vulnerability chain” in the open-source AI agent OpenClaw that allowed a malicious website a developer merely visited to silently seize control of the local agent—without plugins, browser extensions, or additional user interaction—leveraging the agent’s ability to execute system commands and manage workflows. The OpenClaw maintainers rated the issue High severity and issued a patch within 24 hours of disclosure.

Separate research described RoguePilot, a scenario in which a passive prompt injection can abuse highly privileged AI assistance inside GitHub Codespaces. The write-up emphasizes that Codespaces environments commonly expose a repository-scoped GITHUB_TOKEN with write permissions and provide AI “tools” such as terminal execution and file operations (e.g., run_in_terminal, file_read, create_file), creating “God Mode” conditions where untrusted text can be interpreted as instructions and lead to repository compromise. A third item (a Smashing Security podcast episode) primarily covers unrelated stories (alleged CAPTCHA-based DDoS activity tied to an archiving service and other news) and does not materially contribute to the AI agent takeover/prompt-injection topic.

Why it matters

Impact assessment

OpenClaw users, especially developers running local AI agents with access to shells, files, messaging platforms, source repositories, CI/CD, and OAuth-backed services, face high risk from multiple takeover, privilege-escalation, prompt-injection, and data-exfiltration flaws. The impact ranges from repository compromise and credential theft to full workstation compromise and unauthorized administrative control of agent sessions and connected nodes.

Exposure is broad for OpenClaw deployments because several issues affect default or common configurations, including localhost WebSocket trust, webhook routing, Matrix/Discord/Telegram integrations, and desktop workspace handling. The GitHub Codespaces RoguePilot scenario is narrower but severe for repositories using Copilot agent mode in Codespaces, because compromise of a write-scoped GITHUB_TOKEN can directly enable malicious commits and CI/CD manipulation.

Known exploitation in the wild is not firmly established in the provided material, but researchers demonstrated end-to-end exploit chains for ClawJacked and RoguePilot. The reporting also cites active abuse of the OpenClaw ClawHub ecosystem to distribute malicious skills and infostealer delivery chains.

Affected populations

  • Developers running OpenClaw locally on workstations
  • Organizations allowing self-hosted AI agents with access to internal tools and credentials
  • Teams using OpenClaw integrations with Discord, WhatsApp, Telegram, Matrix, Gmail, Synology Chat, and webhook-driven workflows
  • Repositories using GitHub Codespaces with Copilot agent mode and default repository-scoped GITHUB_TOKEN

Severity and business impact

  • Credential theft: OAuth tokens, API keys, repository tokens, and agent configuration secrets
  • Operational disruption: unauthorized admin actions, session deletion, monitoring disablement, workflow manipulation
  • Data loss: exfiltration of logs, config, host files, chat history, source code, and secrets
  • Supply-chain risk: malicious commits, CI/CD abuse, poisoned skills, and repository takeover
  • Endpoint compromise: arbitrary code execution and persistence on developer workstations

Scope and exploitation notes

  • Widespread risk for OpenClaw due to multiple flaws across gateway, webhook, prompt, and desktop execution paths
  • Several issues require only low privileges, passive user interaction, or standard messaging/webhook access
  • ClawJacked and RoguePilot were demonstrated by researchers as practical attack chains
  • ClawHub abuse and malicious skill distribution indicate adjacent ecosystem threat activity

Structured facts by reference

OpenClaw web-to-agent takeover / ClawJacked
  • Entity: OpenClaw
  • Entity: Oasis Security
  • Technique: browser-to-localhost WebSocket access
  • Technique: password brute force against localhost-exempt rate limiting
  • Technique: silent trusted-device registration from localhost
  • Impact: admin takeover, config/log access, node enumeration, command execution on paired nodes, workstation compromise
  • Fixed versions reported: 2026.2.25 and 2026.2.26 depending on source reporting
OpenClaw authorization and privilege flaws
  • GHSA-C28G-VH7M-FM7V: admin command authorization bypass via Discord/WhatsApp wildcard sender configuration
  • GHSA-52Q4-3XJC-6778: unauthorized access to agent functionality/data, CVSS 8.1, network, low privileges, no UI
  • GHSA-H4JX-HJR3-FHGC: privilege escalation via hardcoded syntheticScopes: [ADMIN_SCOPE]
  • GHSA-9HJH-FR4F-GXC4: WebSocket pairing scope escalation via loopback/BACKEND trust bypass
  • GHSA-X49Q-FHHM-R9JF: self-declared operator.admin scope over WebSocket with valid shared token/password
OpenClaw prompt-injection and routing flaws
  • GHSA-57R2-H2WJ-G887: webhook-to-system-event trust elevation via missing trusted: false
  • GHSA-2XCP-X87W-Q377: webhook session hijack via allowRequestSessionKey bypass before 2026.4.20
  • GHSA-JF56-MCCX-5F3F: untrusted JSON/webhook data concatenated into System prompt
  • GHSA-RG8M-3943-VM6Q: Matrix reply/thread prompt injection through trusted relational context
  • GHSA-MF5G-6R6F-GHHM: Synology Chat webhook token brute-force weakness
OpenClaw host compromise and data exfiltration
  • GHSA-MJ59-H3Q9-GHFH: malicious workspace arbitrary code execution, CVSS 7.8
  • GHSA-CFP9-W5V9-3Q4H: host file exfiltration through image/PDF tools and bridged mounts
  • CVE-2026-34511: OAuth PKCE code_verifier exposed in callback URL, token theft risk
  • CVE-2026-25253: earlier token leak via crafted gatewayURL parameter
GitHub Codespaces RoguePilot
  • Entity: GitHub Codespaces
  • Entity: GitHub Copilot agent mode
  • Entity: Orca Security
  • Technique: passive prompt injection via hidden HTML comments in GitHub Issue markdown
  • Technique: symlink-based workspace guardrail bypass to read /workspaces/.codespaces/shared/user-secrets-envs.json
  • Technique: token exfiltration via VS Code JSON schema auto-fetch
  • Impact: theft of write-scoped GITHUB_TOKEN, repository takeover, malicious commits, CI/CD manipulation
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.

17 events · Jan 31, 2026 – Apr 29, 2026
  1. Apr 29, 20267mo ago

    OpenClaw admin command authorization bypass is disclosed

    A newly reported OpenClaw vulnerability in command resolution allows unauthenticated attackers to execute restricted administrative bot commands through supported messaging channels such as Discord or WhatsApp when specific permissive settings are enabled. The flaw stems from fallback authorization logic that can incorrectly approve attacker-supplied admin commands and return sensitive outputs such as configuration dumps or debugging statistics.

    GHSA-C28G-VH7M-FM7V: GHSA-C28G-VH7M-FM7V: Improper Authorization and Privilege Escalation in OpenClaw Command Resolution | CVEReports
  2. Apr 25, 20267mo ago

    OpenClaw templated webhook session-routing auth bypass is disclosed

    A newly reported OpenClaw vulnerability allowed external webhook payload data used in templated hook mappings, such as {{payload.id}}, to influence routing to AI agent sessions without proper enforcement of the allowRequestSessionKey control. The flaw affected openclaw versions before 2026.4.20 and could enable session hijacking, particularly in deployments using built-in routing presets like the Gmail integration.

    GHSA-2XCP-X87W-Q377: GHSA-2xcp-x87w-q377: Incorrect Authorization Bypass via Templated Hook Mappings in OpenClaw | CVEReports
  3. Apr 25, 20267mo ago

    OpenClaw isolated cron awareness-event trust-boundary flaw is disclosed

    A newly reported OpenClaw vulnerability allows attacker-controlled messages from external webhook integrations tied to isolated cron jobs to be promoted into the main session as trusted system events. Because the awareness-event path omits a flag marking the content untrusted, malicious instructions can be treated as authoritative by the LLM and displayed in the UI with system-level indicators despite originating externally.

    GHSA-57R2-H2WJ-G887: GHSA-57R2-H2WJ-G887: Trust Boundary Violation in OpenClaw Isolated Cron Awareness Events | CVEReports
  4. Apr 25, 20267mo ago

    OpenClaw MCP server env-var injection RCE is disclosed

    A high-severity OpenClaw vulnerability was disclosed in which opening a malicious workspace can inject environment variables into MCP server execution and trigger arbitrary code execution with the user's privileges. The issue affects major desktop platforms and could let attackers access files, establish persistence, and pivot to reachable network resources.

    GHSA-MJ59-H3Q9-GHFH: GHSA-MJ59-H3Q9-GHFH: Arbitrary Code Execution via Environment Variable Injection in OpenClaw MCP Servers | CVEReports
  5. Apr 9, 20268mo ago

    OpenClaw webhook system-prompt injection flaw is disclosed

    A newly reported OpenClaw vulnerability in src/agents/system-prompt.ts allows untrusted webhook JSON payloads and dynamic context variables to be appended directly into the System role prompt. The design can let attacker-controlled input be interpreted as authoritative instructions, enabling indirect prompt injection and potential agent compromise.

    GHSA-JF56-MCCX-5F3F: GHSA-JF56-MCCX-5F3F: Indirect Prompt Injection and Agent Compromise in OpenClaw Webhooks | CVEReports
  6. Apr 4, 20268mo ago

    OpenClaw Google OAuth PKCE verifier exposure flaw is disclosed

    A newly reported OpenClaw vulnerability, CVE-2026-34511, exposes the OAuth PKCE code_verifier in the state parameter during the Google OAuth callback flow. If an attacker captures the callback URL, they can redeem the authorization code and verifier at Google’s token endpoint to obtain the victim’s access and refresh tokens.

    GHSA-9JPJ-G8VV-J5MF: CVE-2026-34511: PKCE Verifier Exposure via OAuth State Parameter in OpenClaw | CVEReports
  7. Apr 2, 20268mo ago

    OpenClaw Matrix extension reply-context auth bypass is disclosed

    A newly reported vulnerability in OpenClaw's Matrix integration allows prompt injection and authorization bypass when an authorized user replies to or starts a thread from an attacker’s message in the same room. OpenClaw can follow the trusted reply context, retrieve the attacker-controlled content, and execute embedded instructions within the authorized user’s operational scope despite sender allowlist checks.

    GHSA-RG8M-3943-VM6Q: GHSA-RG8M-3943-VM6Q: Authorization Bypass in OpenClaw Matrix Extension via Reply Context | CVEReports
  8. Mar 29, 20268mo ago

    OpenClaw Google Chat integration auth bypass flaw is disclosed

    A newly reported vulnerability in OpenClaw's Google Chat integration allows authorization bypass through mutable metadata, potentially giving attackers unauthorized access to agent functionality and connected data. The issue was described as network-exploitable with low privileges and high confidentiality and integrity impact, especially where agents are integrated with backend systems, databases, or CI pipelines.

    GHSA-52Q4-3XJC-6778: GHSA-52Q4-3XJC-6778: Authorization Bypass via Mutable Metadata in OpenClaw Google Chat Integration | CVEReports
  9. Mar 29, 20268mo ago

    OpenClaw Synology Chat plugin token brute-force flaw is disclosed

    A newly reported OpenClaw vulnerability in the Synology Chat integration allowed attackers to brute-force a webhook token and send arbitrary messages that the server would treat as coming from a trusted Synology source. The report said this could let attackers inject prompts into the AI assistant to extract sensitive context, trigger backend actions, or manipulate assistant behavior, and noted a patched implementation added invalid-token rate limiting.

    GHSA-MF5G-6R6F-GHHM: GHSA-MF5G-6R6F-GHHM: Pre-Authentication Rate-Limit Bypass in OpenClaw Synology Chat Plugin | CVEReports
  10. Mar 26, 20268mo ago

    Filesystem sandbox bypass in OpenClaw agent media tools is disclosed

    A newly reported OpenClaw vulnerability allows attackers to exfiltrate sensitive host files through vulnerable image or PDF processing tools when sandbox bridge mounts expose host directories. By using prompt injection or parameter manipulation, an attacker can make the agent read bridged files such as config files or SSH keys and send their contents to external vision model APIs for extraction.

    GHSA-CFP9-W5V9-3Q4H: GHSA-CFP9-W5V9-3Q4H: Filesystem Sandbox Bypass in OpenClaw Agent Media Tools | CVEReports
  11. Mar 20, 20268mo ago

    OpenClaw WebSocket auth bypass privilege-escalation issue is documented

    A later report documented a separate OpenClaw gateway flaw in WebSocket authentication and authorization handling, where an attacker with a valid shared token or password could self-assign the operator.admin scope and gain administrative RPC access. The issue could allow actions such as disabling monitoring via heartbeat controls.

  12. Feb 28, 20269mo ago

    Microsoft warns self-hosted AI agent runtimes should be isolated

    Microsoft issued guidance that self-hosted agent runtimes such as OpenClaw should be treated as untrusted code execution and evaluated only in isolated environments with non-privileged credentials and monitoring. The advisory came amid reporting on OpenClaw vulnerabilities and broader ecosystem abuse.

  13. Feb 27, 20269mo ago

    RoguePilot prompt-injection attack on GitHub Codespaces is disclosed

    Research described 'RoguePilot,' a passive prompt-injection chain in GitHub Codespaces with Copilot agent mode, where hidden instructions in GitHub Issues could drive terminal and file operations, steal a repository-scoped GITHUB_TOKEN via a symlink and schema-fetch trick, and enable repository compromise. Orca Security said it responsibly disclosed the issue and that Microsoft/GitHub patched it.

  14. Feb 27, 20269mo ago

    Researchers publicly disclose 'ClawJacked' OpenClaw vulnerability

    Oasis Security publicly disclosed the ClawJacked vulnerability chain, showing that a visited website could hijack a locally running OpenClaw agent, access logs and configuration, enumerate nodes, and potentially execute commands or exfiltrate data. Coverage emphasized the issue as a 'shadow AI' risk for unmanaged local agents.

  15. Feb 26, 20269mo ago

    OpenClaw releases fix for 'ClawJacked' localhost takeover flaw

    After responsible disclosure by Oasis Security, OpenClaw patched the high-severity 'ClawJacked' vulnerability that allowed malicious websites to brute-force the localhost WebSocket gateway password and silently register as a trusted device. Multiple reports place the fix on February 26, 2026, in versions 2026.2.25/2026.2.26.

  16. Feb 13, 202610mo ago

    OpenClaw patches log-poisoning prompt-injection issue

    OpenClaw addressed a separate log-poisoning vulnerability that could enable indirect prompt injection through agent log-reading behavior. The issue was patched in version 2026.2.13.

  17. Jan 31, 202610mo ago

    OpenClaw patches earlier token-leak hijack flaw (CVE-2026-25253)

    An earlier OpenClaw hijack issue, identified by Ethiack and Depthfirst, was patched in version 2026.1.29. The flaw reportedly leaked an authentication token via a crafted URL parameter and was fixed on January 31, 2026.

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 →

Malware

1 linked

Affected products

2 linked
Github CopilotOpenclaw

Organizations

2 linked
GitHubOpenclaw

Observables

4 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.