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

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.adminscope 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
allowRequestSessionKeybypass 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_verifierexposed in callback URL, token theft risk - CVE-2026-25253: earlier token leak via crafted
gatewayURLparameter
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


