# ShadowPrompt: Zero-Click Prompt Injection Chain via DOM XSS in Arkose Labs CAPTCHA and Claude Chrome Extension Origin Allowlist Bypass

> A chained vulnerability dubbed ShadowPrompt combines a DOM-based XSS flaw in an Arkose Labs CAPTCHA component hosted on a-cdn.claude.ai with an overly permissive origin allowlist (*.claude.ai) in the Anthropic Claude Chrome Extension. This enables zero-click prompt injection — visiting a malicious webpage silently hijacks the AI assistant, enabling Gmail token theft, Google Drive exfiltration, and chat history export. Over 3 million users were exposed before patches were deployed in extension version 1.0.41.

- **Author:** Threadlinqs Team
- **Published:** 2026-03-27T12:00:00Z
- **Last updated:** 2026-03-27T12:00:00Z
- **Canonical:** https://intel.threadlinqs.com/threat/TL-2026-0291
- **Card image:** https://intel.threadlinqs.com/og/threat/threat-intel-claude-extension-prompt-injection-tl-2026-0291.webp?v=4e0a1d6c (Threadlinqs threat intel: ShadowPrompt Claude Zero-Click XSS Chain: Detection & IOCs (TL-2026-0291) — High severity, 15 IOCs, 9 detection rules.)
- **ID:** TL-2026-0291
- **Severity:** HIGH (CVSS 8.1)
- **Category:** VULNERABILITY
- **Status:** PATCHED
- **Detections:** 9 (1 shown free below) · **IOCs:** 15 (1 shown free below)

## Description

ShadowPrompt is a high-severity chained vulnerability affecting the Anthropic Claude Chrome Extension, discovered by security researcher Oren Yomtov of Koi Security. The attack chain exploits two distinct weaknesses that, when combined, enable zero-click prompt injection against any user with the Claude Chrome Extension installed.

The first vulnerability is a DOM-based Cross-Site Scripting (XSS) flaw in an Arkose Labs CAPTCHA component hosted on the a-cdn.claude.ai subdomain. Arkose Labs provides bot-detection and CAPTCHA services used across many platforms, and in this case, the CAPTCHA widget's JavaScript failed to properly sanitize DOM inputs before rendering them, allowing arbitrary JavaScript execution within the a-cdn.claude.ai origin context.

The second vulnerability is an overly permissive origin allowlist in the Claude Chrome Extension. The extension accepted postMessage communications from any subdomain matching the pattern *.claude.ai, rather than enforcing a strict match to the primary claude.ai domain. This design flaw meant that any code executing on any subdomain of claude.ai — including the attacker-controlled XSS context on a-cdn.claude.ai — could send prompts directly to the extension.

The attack chain works as follows: An attacker crafts a malicious webpage that embeds the vulnerable Arkose Labs CAPTCHA component inside a hidden iframe pointing to a-cdn.claude.ai. When a victim visits this page, the XSS payload executes silently within the a-cdn.claude.ai context. Since a-cdn.claude.ai matches the *.claude.ai allowlist pattern, the injected JavaScript can send postMessage commands to the Claude Chrome Extension. These messages arrive in Claude's sidebar as if they were legitimate user requests from an authorized domain. The victim sees nothing — no popups, no prompts, no indication of compromise.

Once the attacker has prompt injection capability, the hijacked Claude assistant can be instructed to perform actions using its granted permissions, including: stealing Gmail OAuth access tokens, accessing and exfiltrating Google Drive files, exporting the user's entire conversation history with Claude, performing actions on behalf of the victim such as sending emails or making data requests, and accessing any other services the extension has permission to interact with.

The vulnerability is particularly dangerous because it is zero-click — the victim only needs to visit a malicious webpage. No additional user interaction is required. The attack is silent and leaves minimal forensic traces in the browser. With over 3 million users of the Claude Chrome Extension, the potential blast radius was significant.

Anthropic responded to the disclosure by releasing extension version 1.0.41, which enforces strict origin matching requiring an exact match to claude.ai rather than accepting any subdomain. Arkose Labs separately fixed the DOM-based XSS vulnerability in their CAPTCHA component on February 19, 2026. The coordinated disclosure followed responsible disclosure practices, with public disclosure occurring on March 27, 2026, approximately 90 days after the initial report.

## MITRE ATT&CK

- T1592 Gather Victim Host Information
- T1583 Acquire Infrastructure
- T1587 Develop Capabilities
- T1189 Drive-by Compromise
- T1059 Command and Scripting Interpreter
- T1204 User Execution
- T1036 Masquerading
- T1553 Subvert Trust Controls
- T1528 Steal Application Access Token
- T1539 Steal Web Session Cookie
- T1530 Data from Cloud Storage
- T1119 Automated Collection
- T1005 Data from Local System
- T1567 Exfiltration Over Web Service
- T1071 Application Layer Protocol
- T1565 Data Manipulation

## Free detection (Splunk SPL, Microsoft KQL, Sigma)

**ShadowPrompt Exploitation — External Iframe Loading a-cdn.claude.ai CAPTCHA Endpoint** (`TL-2026-0291-SPL-001`)

Detects web proxy traffic where the a-cdn.claude.ai CAPTCHA endpoint is loaded as a sub-resource from a non-claude.ai referrer. In the ShadowPrompt attack chain, an attacker embeds a hidden iframe pointing to the vulnerable Arkose Labs CAPTCHA component on a-cdn.claude.ai. When the referrer is an external domain, this indicates the CAPTCHA is being loaded in a cross-origin context consistent with the initial exploitation phase of the attack.

- **Languages:** Splunk SPL, Microsoft KQL, Sigma
- **ATT&CK:** T1189, T1059.007
- **Data sources:** web_proxy, bluecoat, zscaler, squid
- **Severity:** high
- **Confidence:** high

### Splunk SPL

```spl
index=proxy sourcetype=bluecoat OR sourcetype=zscaler OR sourcetype=squid (url="*a-cdn.claude.ai*" OR cs_host="a-cdn.claude.ai")
| eval referrer_domain=mvindex(split(mvindex(split(http_referrer, "://"), 1), "/"), 0)
| where isnotnull(http_referrer) AND NOT match(referrer_domain, "\.claude\.ai$") AND NOT match(referrer_domain, "^claude\.ai$")
| stats count min(_time) as first_seen max(_time) as last_seen values(src_ip) as source_ips values(http_referrer) as referrers values(http_user_agent) as user_agents by cs_host url
| where count > 0
| table first_seen last_seen cs_host url source_ips referrers user_agents count
```

### Microsoft KQL

```kql
DeviceNetworkEvents
| where Timestamp > ago(24h)
| where RemoteUrl has "a-cdn.claude.ai"
| where InitiatingProcessFileName in~ ("chrome.exe", "msedge.exe", "brave.exe", "firefox.exe")
| join kind=leftouter (
    DeviceNetworkEvents
    | where Timestamp > ago(24h)
    | where RemoteUrl !has "claude.ai"
    | where InitiatingProcessFileName in~ ("chrome.exe", "msedge.exe", "brave.exe", "firefox.exe")
    | summarize ExternalUrls=make_set(RemoteUrl, 10) by DeviceId, InitiatingProcessId
) on DeviceId, InitiatingProcessId
| where array_length(ExternalUrls) > 0
| project Timestamp, DeviceName, RemoteUrl, InitiatingProcessFileName, InitiatingProcessId, ExternalUrls
```

### Sigma

```yaml
title: ShadowPrompt Exploitation — External Iframe Loading a-cdn.claude.ai CAPTCHA
id: 726163eb-b23f-4409-8ba5-aafef47d1014
status: experimental
description: Detects web proxy traffic where a-cdn.claude.ai is loaded from a non-claude.ai referrer, indicating possible ShadowPrompt exploitation via hidden iframe DOM XSS.
references:
    - https://thehackernews.com/2026/03/claude-extension-flaw-enabled-zero.html
    - https://www.koi.ai/blog/promptjacking-the-critical-rce-in-claude-desktop-that-turn-questions-into-exploits
author: Threadlinqs Team
date: 2026/03/27
tags:
    - attack.initial_access
    - attack.t1189
    - attack.execution
    - attack.t1059.007
logsource:
    category: proxy
detection:
    selection:
        c-uri|contains: 'a-cdn.claude.ai'
    filter_legitimate_referrer:
        cs-referer|endswith:
            - '.claude.ai'
            - '://claude.ai'
    condition: selection and not filter_legitimate_referrer
falsepositives:
    - Legitimate third-party integrations embedding Arkose Labs CAPTCHA from non-claude.ai pages
    - Security researchers or penetration testers accessing the endpoint during assessments
level: high
```

**Known false positives:**

- Legitimate third-party integrations embedding Arkose Labs CAPTCHA from non-claude.ai pages
- Security researchers or penetration testers accessing the CAPTCHA endpoint during assessments

**Tuning notes:** Whitelist known legitimate referrer domains that embed Arkose Labs CAPTCHA components. Adjust time window based on proxy log ingestion latency. Consider adding User-Agent filtering to reduce false positives from automated scanners.

### 8 more detection rules (Splunk SPL, Microsoft KQL, Sigma), unlock with TL Creds

- ShadowPrompt Exploitation — Browser Process Connecting to Non-Primary [indicator] Subdomain (locked: unlock with TL Creds)
- ShadowPrompt Post-Exploitation — Chrome Extension Accessing Browser Credential Stores (locked: unlock with TL Creds)
- ShadowPrompt C2/Exfiltration — Rapid Successive API Calls to Multiple Google Services from Extension (locked: unlock with TL Creds)
- ShadowPrompt Exploitation — Suspicious postMessage API Usage in Browser Extension Context (locked: unlock with TL Creds)
- ShadowPrompt Post-Exploitation — Chrome Extension Manifest with Overly Permissive Origin Pattern (locked: unlock with TL Creds)
- ShadowPrompt C2/Exfiltration — Chat History and Sensitive Data Staging via Browser Temp Files (locked: unlock with TL Creds)
- ShadowPrompt Post-Exploitation — Anomalous OAuth Token Access Following Claude Extension Activity (locked: unlock with TL Creds)
- ShadowPrompt C2/Exfiltration — Anomalous Outbound Data Volume from Browser Post-Extension Hijack (locked: unlock with TL Creds)

Sign up free to unlock the detection rules: https://threadlinqs.com/?modal=signup

## Sample indicators (1 of 15)

Defanged, TLP:CLEAR.

- Domain: `claude[.]ai`

Full set of 15 indicators unlocks with TL Creds: https://threadlinqs.com/tl-creds

## Sources

- [The Hacker News - Claude Extension Flaw Enabled Zero-Click XSS Prompt Injection](https://thehackernews.com/2026/03/claude-extension-flaw-enabled-zero.html)
- [Cyber Security News - Claude Chrome Extension 0-Click Vulnerability](https://cybersecuritynews.com/claude-chrome-extension-0-click-vulnerability/)
- [SOCRadar - ShadowPrompt Zero-Click Prompt Injection in Anthropic Claude](https://socradar.io/blog/shadowprompt-zero-click-anthropics-claude/)
- [Koi Security - Original Research by Oren Yomtov](https://www.koi.ai/blog/promptjacking-the-critical-rce-in-claude-desktop-that-turn-questions-into-exploits)
- [Purple Shield Security - Zero-Click Vulnerability Analysis](https://www.purpleshieldsecurity.com/post/claude-chrome-extension-vulnerability-zero-click)
- [MITRE CWE-79 - Improper Neutralization of Input During Web Page Generation (XSS)](https://cwe.mitre.org/data/definitions/79.html)
- [MITRE CWE-346 - Origin Validation Error](https://cwe.mitre.org/data/definitions/346.html)
- [Chrome Web Store - Claude by Anthropic Extension](https://chromewebstore.google.com/detail/claude/eohifbkdifjgmfjjclmgjgndpgkbcehm)

## Full data

The other 8 detection rules (Splunk SPL / Microsoft KQL / Sigma) unlock with TL Creds; a free account includes daily creds: https://threadlinqs.com/?modal=signup
Indicator values unlock with TL Creds, at a lower price on Red and Purple; AI agents can query rules and IOCs through the Threadlinqs MCP server (Purple and Gold in full, 2 calls a day on a free account): https://intel.threadlinqs.com/mcp

Canonical: https://intel.threadlinqs.com/threat/TL-2026-0291
