ClearFake: What it is, How it Works, and Defense

ClearFake is a malware campaign that hijacks legitimate websites with fake browser updates and CAPTCHA lures to deliver infostealers. Learn how ClearFake works and how to stop it.
Published on
Friday, August 21, 2026
Updated on
August 21, 2026

ClearFake is a malicious JavaScript framework that compromises legitimate websites and shows visitors fake browser-update or fake-CAPTCHA prompts to trick them into running malware that steals their data. The operators inject hidden code into hacked sites, mostly WordPress sites, then use social engineering to make victims install information stealers themselves. First documented in 2023, ClearFake has evolved continuously and remains a widespread threat, with one recent campaign linked to roughly 147,521 infections.

What makes ClearFake notable is its blend of two evasive techniques: EtherHiding, which hides malicious code inside blockchain smart contracts, and ClickFix, which convinces users to paste and run the attacker's own commands. This guide explains what ClearFake is, how its attack chain works, what EtherHiding and ClickFix are, the malware it delivers, who operates it, and how to detect and defend against it.

What is ClearFake?

ClearFake is a threat-activity cluster that uses a malicious JavaScript framework to distribute malware through compromised websites. Its name refers to the JavaScript it injects in clear text into the sites it hijacks. Rather than exploiting a software flaw on the victim's machine, ClearFake relies on deception: it presents a convincing prompt and lets the user carry out the infection.

The framework's consistent goal is to deliver information-stealing malware that harvests credentials, browser data, and cryptocurrency wallets. ClearFake reaches victims across both Windows and macOS, and its operators have hit sectors including e-commerce, travel, automotive, and hospitality. Security vendors rank it among the more active web-based malware-delivery operations, and its reach comes from volume: a single compromised, high-traffic site can expose every visitor who lands on it.

How Does ClearFake Work?

ClearFake runs a multi-stage chain that starts on a trusted website and ends with malware on the victim's device. Each stage hands off to the next.

clearfake attack chain diagram

1. Compromising Legitimate Websites

The operators first break into legitimate websites, most often WordPress sites with weak credentials or unpatched plugins, and inject a small loader script. Victims arrive at these sites through normal browsing, search engine optimization (SEO) poisoning, or malvertising, so the lure appears on a site they have no reason to distrust. Researchers have counted thousands of compromised sites carrying ClearFake injections at a single point in time, and the operators favor high-traffic targets so each hijacked page reaches many visitors.

2. The Fake Update or CAPTCHA Lure

The injected script overlays a fake prompt on the page. Early ClearFake used counterfeit browser-update pages for Chrome, Edge, and Firefox. Newer versions display a fake CAPTCHA or a fake reCAPTCHA and Cloudflare Turnstile challenge that asks the visitor to confirm they are human or to fix a technical issue.

3. ClickFix: Tricking the User Into Running Code

When the victim interacts with the lure, the page silently copies a malicious command to the clipboard, then instructs the user to press Windows+R, paste the command, and press Enter. The command launches PowerShell or the Microsoft HTML Application Host (MSHTA) to fetch the next stage. Because the user runs the command, the activity looks user-initiated and slips past defenses that watch for downloaded files.

Before showing the lure, the script fingerprints the visitor's browser and operating system, and ClearFake has tailored its prompts across dozens of languages. The framework tracks which devices it has compromised to avoid infecting the same machine twice.

4. EtherHiding: Pulling Payloads From the Blockchain

Instead of a normal server, ClearFake stores its code and configuration in smart contracts on the BNB Smart Chain. The injected JavaScript queries the blockchain to retrieve the next-stage script, the lure HTML, an AES decryption key, and the ClickFix command. This technique, named EtherHiding, makes the infrastructure hard to take down.

5. Payload Delivery

The retrieved command downloads a loader, such as Emmenhtal (known as PEAKLIGHT), which then drops the final payload: an information stealer like Lumma or Vidar. Recent chains stage the payload on trusted services such as the jsDelivr content delivery network to blend in with normal traffic.

Within seconds of execution, the stealer exfiltrates browser cookies, saved passwords, session tokens, and wallet data. Because stolen session tokens can let an attacker resume a logged-in session, this theft can sidestep multi-factor authentication entirely.

What is EtherHiding?

EtherHiding is a technique that stores malicious code inside blockchain smart contracts, turning a public blockchain into attacker infrastructure. Security researchers at Guardio Labs named it in 2023 after observing ClearFake use the BNB Smart Chain to host its payloads.

how etherhiding works

The approach gives attackers several advantages. Reading data from a smart contract is free and does not create a traceable transaction, so defenders cannot watch for tell-tale blockchain activity. The code on the chain is decentralized and effectively permanent, which means there is no server to seize and no domain to block. To update the malware, the operators simply point the contract at new code. The technique cuts both ways, because the immutability that frustrates takedown leaves the malicious code permanently visible to researchers.

ClearFake stores its JavaScript, AES keys, lure URLs, and ClickFix commands this way, and other threat actors have since adopted EtherHiding for their own campaigns. Security firms have observed the technique spread to other financially motivated and state-linked actors, a sign that blockchain-hosted malware is becoming a broader trend rather than one campaign's trick.

What is ClickFix, and How Does It Relate to ClearFake?

ClickFix is a social engineering technique that tricks a user into running malicious commands by disguising them as a verification step or a fix for a fake error. The lure copies a command to the clipboard and walks the victim through pasting and executing it, so the person becomes the one who launches the malware.

The relationship is straightforward: ClickFix is the technique, and ClearFake is one framework that uses it. ClearFake adopted ClickFix in May 2024, replacing its earlier fake-update downloads with fake-CAPTCHA copy-paste lures. ClickFix itself is widely shared across the threat landscape, with state-sponsored groups including APT28, Kimsuky, and MuddyWater all using it, so not every ClickFix attack is ClearFake. The fake-CAPTCHA idea spread quickly after a red-team proof of concept was published in 2024, and ClickFix kits are now sold by subscription, which has driven rapid adoption.

ClearFake vs SocGholish vs ClickFix

These three terms are often confused because they overlap, yet they sit at different levels. ClearFake and SocGholish are malware frameworks; ClickFix is a technique that frameworks like ClearFake use. The table sets them apart.

Name What It Is Primary Lure Distinctive Trait
ClearFake Malicious JavaScript framework on compromised websites Fake browser update, now fake CAPTCHA (ClickFix) EtherHiding: hosts payloads on the blockchain
SocGholish Older fake-update framework, active since around 2018 Fake update served through a traffic distribution system Run by the actor tracked as TA569
ClickFix A social-engineering technique, not a framework Fake CAPTCHA or an error, telling the user to paste a command Used by many actors, including nation-state groups

In short, a ClearFake attack often uses ClickFix, but a ClickFix attack is not always ClearFake, and SocGholish is a separate operation that shares the fake-update theme.

What Malware Does ClearFake Deliver?

ClearFake is a delivery system, and its operators swap payloads frequently. The end goal is consistent: information theft. Microsoft has described Lumma Stealer as the payload most often tied to ClickFix-style delivery, and its analysis of Lumma's delivery documents the same EtherHiding and fake-CAPTCHA chain ClearFake uses. The table lists the malware families seen across ClearFake campaigns.

Malware Type Role in the Attack
Lumma Stealer Infostealer Steals credentials, cookies, and crypto wallets; the most common payload.
Vidar Stealer Infostealer Harvests browser data, saved logins, and wallet files.
StealC Infostealer Lightweight stealer for credentials and system data.
Atomic (AMOS) Infostealer (macOS) Targets macOS credentials, keychains, and wallets.
Emmenhtal / PEAKLIGHT Loader Fetches and runs the final stealer payload.
Amadey / HijackLoader Loader Stages and drops additional malware on the host.
NetSupport / AsyncRAT / SectopRAT Remote access trojan Grants the attacker remote control of the device.
Latrodectus Loader/backdoor Downloads further payloads and maintains access.

Whatever the specific family, the outcome concentrates on the identity layer. A single infection can hand an attacker the browser-stored cookies and passwords for an employee's email, cloud, and SaaS accounts, turning one careless click into a path to wider compromise. 

The stolen credentials and session tokens are frequently sold on dark web markets and reused by other criminals for account takeover, fraud, and ransomware staging, so the damage often outlasts the initial infection.

Why ClearFake is So Effective

ClearFake has persisted for years because it sidesteps the defenses most organizations rely on. Three traits make it hard to stop.

  • It exploits trust in real websites. The lure appears on a legitimate, often well-known site rather than an obvious scam page, so visitors lower their guard, and security filters see a reputable domain.
  • The victim runs the code. Because the user pastes and launches the command, there is no malicious download for file-based defenses to catch, and the activity uses built-in tools such as PowerShell and MSHTA that exist on every Windows system.
  • Its infrastructure resists takedown. Hosting code on the blockchain removes the server and domain that defenders would normally block or seize, and the operators rewrite their lures and payloads almost daily to outpace signature-based detection.

ClearFake Timeline and Evolution

ClearFake has not stood still. Its operators update the framework, lures, and payloads frequently, which is part of why it has stayed effective for years. The timeline traces its main shifts.

Date Development
Mid-2023 ClearFake is first documented, using fake Chrome update pages on compromised sites.
Late 2023 Adopts EtherHiding, hosting code and configuration on the BNB Smart Chain.
May 2024 Adopts the ClickFix fake-CAPTCHA technique, replacing fake-update downloads.
2024 An estimated 200,000 users are exposed to ClearFake lures.
Dec 2024 Hardens with Web3 obfuscation and encrypted lures hosted on Cloudflare Pages.
Jan-Feb 2025 Adds fake reCAPTCHA and Turnstile lures and spreads Vidar Stealer; about 9,300 sites infected.
Oct 2025 Mandiant attributes the evolved CLEARSHORT framework to UNC5142 across roughly 14,000 pages.
2025-2026 A ClearFake-variant campaign is linked to an estimated 147,521 infections.

Kroll, which tracks the campaign's delivery, has documented how the lures keep shifting, including MSHTA commands that disguise the payload behind fake "verification UID" text and an ".mp3" file extension. Its research on ClearFake's evolution shows operators changing techniques on a near-daily basis to stay ahead of detection.

Who is Behind ClearFake?

ClearFake began as a financially motivated activity cluster rather than a single named group, defined by its shared toolkit rather than a known identity. It distributes commodity malware, much of it sold as a service on underground markets, which points to profit through stolen credentials and data rather than espionage. ClickFix kits and stealer subscriptions have lowered the barrier to entry, letting many operators run similar campaigns in parallel.

In October 2025, Mandiant attributed an evolved version of the framework, which it tracks as CLEARSHORT, to a financially motivated actor it calls UNC5142. This actor compromises WordPress sites and uses EtherHiding to distribute stealers, and its operations sit within a broader fake-update and ClickFix ecosystem. ClearFake remains distinct from SocGholish, an older fake-update operation run by the actor tracked as TA569, even though both lure victims with counterfeit browser updates.

How to Detect ClearFake

Because ClearFake relies on the victim and on trusted infrastructure, it leaves behavioral traces rather than obvious malware files. Defenders can watch for several signals:

  • Clipboard-staged scripts. PowerShell or MSHTA processes spawned by explorer.exe with command lines containing download cmdlets such as iwr, irm, or IEX.
  • Calls to blockchain endpoints. Outbound connections to BNB Smart Chain nodes such as bsc-dataseed.binance[.]org or bnbchain endpoints from a user's browser.
  • Suspicious domains. Connections to recently registered or algorithm-generated domains immediately after a CAPTCHA interaction.
  • Persistence artifacts. New RunOnce registry keys or Startup-folder shortcuts created by unusually long executable names.
  • Mismatched process ancestry. Browsers or office applications spawning script interpreters that they would not normally launch.
  • The user-facing tell. Any CAPTCHA, update, or error prompt that instructs a visitor to open the Run dialog and paste a command is fraudulent.

How to Protect Against ClearFake

Defending against ClearFake means breaking the chain at the human step and the execution step. The following measures apply to individuals and organizations.

  • Never paste commands from a website. No legitimate CAPTCHA, browser update, or error message asks a visitor to run a command in PowerShell or the Run dialog.
  • Update browsers only from official sources. Apply browser updates through the browser's own settings, not through a pop-up on a web page.
  • Disable the Run dialog for non-admins. Use Group Policy or Intune to remove the Win+R Run dialog for standard users, which neutralizes the core ClickFix step.
  • Apply application control. Use AppLocker or Windows Defender Application Control to block PowerShell, MSHTA, and similar binaries from running user-pasted commands.
  • Hunt in EDR telemetry. Alert on PowerShell and MSHTA launched from explorer.exe with clipboard-style download commands.
  • Secure owned web assets. Patch and harden WordPress installations and plugins so attackers cannot inject ClearFake scripts into sites the organization operates.
  • Train users on the lure. Teach staff to recognize fake CAPTCHA and update prompts, and to hesitate before pasting anything into a system dialog.

Defend Against ClearFake with CloudSEK Threat Intelligence

Endpoint controls stop execution, but security teams need to see the campaign and its fallout early. CloudSEK Threat Intelligence tracks fake-CAPTCHA and ClickFix campaigns, the infostealers they deliver, and their indicators of compromise and command-and-control infrastructure. CloudSEK's own research on fake CAPTCHA pages delivering Lumma Stealer maps the exact copy-paste chain ClearFake uses, giving defenders concrete detection signals.

That intelligence pairs with two further capabilities. CloudSEK XVigil monitors the dark web for the leaked credentials that ClearFake's stealers harvest, so teams learn when employee or customer logins surface for sale. CloudSEK BeVigil monitors an organization's external attack surface to flag whether its own web assets have been compromised to serve such lures. CloudSEK does not block malware on the endpoint; its role is threat intelligence and external visibility that help teams anticipate the campaign and contain its impact.

Frequently Asked Questions

Is ClearFake a virus?

No. ClearFake is a malware-delivery framework, not a virus itself. It does not self-replicate; it uses fake prompts on compromised websites to trick users into installing other malware, usually information stealers.

What is the difference between ClearFake and ClickFix?

ClickFix is the social-engineering technique of tricking users into pasting and running a command. ClearFake is a specific malware framework that uses ClickFix, among other methods. Many threat actors use ClickFix, so not every ClickFix attack is ClearFake.

What malware does ClearFake install?

ClearFake mainly installs information stealers such as Lumma Stealer and Vidar Stealer, often through loaders like Emmenhtal. Campaigns have delivered remote access trojans and macOS stealers, and the payload changes frequently.

How do I remove ClearFake malware?

Disconnect the device from the internet, run a full scan with reputable security software to remove the installed stealer, and change every password from another clean device. Because stealers exfiltrate data instantly, treat all stored credentials as compromised.

How can I tell if a CAPTCHA is fake?

A genuine CAPTCHA never asks a visitor to press Windows+R, open PowerShell, or paste and run a command. Any verification step that requires keyboard shortcuts or running text is a ClickFix lure; close it immediately.

Does ClearFake affect Mac computers?

Yes. Most ClearFake activity targets Windows, but campaigns have delivered the Atomic (AMOS) stealer to macOS users through the same fake-CAPTCHA lures, so Mac users face a real risk.

Related Posts
Brand Impersonation: Types, Examples, and How to Stop It
Brand impersonation uses a company's name, logo, or domain to defraud its customers. Learn the types, real examples, and how to detect, prevent, and take it down.
ClearFake: What it is, How it Works, and Defense
ClearFake is a malware campaign that hijacks legitimate websites with fake browser updates and CAPTCHA lures to deliver infostealers. Learn how ClearFake works and how to stop it.
Mirai Botnet: How It Works, Attacks, and Protection
The Mirai botnet infects IoT devices via default credentials to launch massive DDoS attacks. Learn how Mirai works, its famous attacks, variants, and how to defend IoT devices against it.

Start your demo now!

Schedule a Demo
Free 7-day trial
No Commitments
100% value guaranteed

Related Knowledge Base Articles

No items found.