ClearFake
- Type
- Downloader
- Capabilities
- Initial accessDefense evasionReconnaissance
- Delivery
- Fake updateClickfixLureLanding page
- Platforms
- WindowsmacOS
ClearFake is a malicious JavaScript downloader and malware-distribution framework first observed in July 2023. It operates through scripts injected into compromised legitimate websites, particularly WordPress installations, and targets visitors using Windows and macOS. Initially associated with counterfeit browser-update notifications, it adopted ClickFix social engineering by May 2024. These lures present fabricated browser errors or verification challenges impersonating services such as Cloudflare Turnstile and Google reCAPTCHA, persuading visitors to execute clipboard-delivered commands through the Windows Run dialog or macOS Terminal.
ClearFake uses EtherHiding to retrieve malicious JavaScript and configuration through BNB Smart Chain smart contracts. Its blockchain-backed infrastructure can supply additional scripts, encrypted lure locations, decryption keys, and execution commands, allowing operators to change delivery infrastructure without replacing website injections. Variants use layered encoding, compression, and AES-GCM-encrypted lure pages. Browser-side scripts identify visitors’ operating systems and browsers to select suitable lures, track interactions, and suppress repeat displays. Some variants also screen for automated browsers and analysis environments.
ClearFake facilitates installation of separate loaders and information stealers rather than providing all downstream capabilities itself. Observed Windows chains have delivered Amadey, HijackLoader, Emmenhtal, Lumma, Stealc, and Vidar; macOS chains have delivered Atomic macOS Stealer, also known as AMOS. Windows delivery commonly involves PowerShell and MSHTA, while macOS lures induce execution of shell commands that retrieve additional payloads. The financially motivated threat actor UNC5142 used ClearFake from late 2023 through mid-2024 before adopting the evolved CLEARSHORT downloader. Distribution through compromised websites exposes visitors across geographic regions and industries.
Associated threat actors
3 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
ClearFake has expanded a fake CAPTCHA scam into a chain that steals cryptocurrency and credentials while disabling endpoint protection.
“VexTrio Viper runs the largest and oldest known TDS with over 165 affiliates including SocGholish and ClearFake.”
Techniques & procedures
29 distinct techniques documented for this family, organized by ATT&CK tactic.
Resource Development
5 techniques
Resource Development
MITRE ATT&CK Mapping ... Resource Development Acquire Infrastructure: Domains T1583.001 joscramp[.]top + 7 co-hosted domains via Dynadot
MITRE ATT&CK Mapping ... Resource Development Acquire Infrastructure: Server T1583.004 Google Cloud VM with custom DNS/mail infrastructure
Trois acteurs identifiés exploitent cette opportunité en rachetant ces domaines expirés (dropcatch) pour hériter du trafic victime et le rediriger vers leurs propres arnaques ou malwares.
The "pf.ch" loader chain was initiated by ClearFake Javascript injected into the content of a compromised site by a malicious Cloudflare worker.
Lorsque ces domaines expirent, les requêtes continuent d’affluer sans réponse. Trois acteurs identifiés exploitent cette opportunité en rachetant ces domaines expirés (dropcatch) pour hériter du trafic victime...
Initial Access
3 techniques
Initial Access
A malicious Cloudflare Worker injected JavaScript into compromised websites, leading visitors to a fake Google CAPTCHA.
The supplied TTP mapping identifies T1566 — Phishing for UAT-10820.
The campaign leverages multiple delivery and social engineering mechanisms, including fake BSOD screens, reCAPTCHA prompts, and Cloudflare CAPTCHA challenge pages. All these ClickFix lures ultimately lead to OS-specific payload deployment.
Execution
6 techniques
Execution
CLEARFAKE Mitre ATT&CK TTPs T1059.001 - Command and Scripting Interpreter: PowerShell
The Cloudflare Worker injects JavaScript that queries BNB Smart Chain contracts to retrieve encoded JavaScript.
often using fake CAPTCHA lures to trick users into executing code via malicious copy and paste (aka paste and run, ClickFix, fakeCAPTCHA)
The script overlays a fake Google CAPTCHA-style checkbox onto the compromised page, instructing the victim to open the Windows Run dialog, paste the clipboard contents, and press Enter.
"After the user double clicks the fake update binary, it will proceed to download the next stage payload."
The fake Google CAPTCHA (ClickFix) prompts the victim to execute a command through the Windows Run dialog.
Stealth
7 techniques
Stealth
JADESNOW utilizes EtherHiding to fetch, decrypt, and execute malicious payloads from smart contracts on the BNB Smart Chain and Ethereum. The input data stored in the smart contract may be Base64-encoded and XOR-encrypted.
CLEARFAKE Mitre ATT&CK TTPs T1027.010 - Obfuscated Files or Information: Command Obfuscation
JADESNOW utilizes EtherHiding to fetch, decrypt, and execute malicious payloads from smart contracts on the BNB Smart Chain and Ethereum. The input data stored in the smart contract may be Base64-encoded and XOR-encrypted.
"ChromeSetup.exe downloads and executes the Microsoft Software Installer (MSI) package..." and "switches intended to avoid detection: /qn /quiet /norestart"
This stage performs several environment checks, such as inspecting for headless browser frameworks and evaluating the system’s user-agent string. If automated browsing behavior is detected, the execution chain terminates.
The initial Javascript code contains routines to check for local and headless browser environments... The next PowerShell stage dynamically resolves native functions and runs an environment check before installing the payload.
"the malware delays execution by using NtDelayExecution, a technique that is usually used to escape sandboxes."
Discovery
4 techniques
Discovery
Fingerprint the victim using the User-Agent: The operating system; The web browser.
This stage performs several environment checks, such as inspecting for headless browser frameworks and evaluating the system’s user-agent string. If automated browsing behavior is detected, the execution chain terminates.
The initial Javascript code contains routines to check for local and headless browser environments... The next PowerShell stage dynamically resolves native functions and runs an environment check before installing the payload.
"the malware delays execution by using NtDelayExecution, a technique that is usually used to escape sandboxes."
Collection
1 technique
Collection
deceiving users into copying and executing a given malicious PowerShell code... The command is copied into the user’s clipboard data.
Command and Control
6 techniques
Command and Control
MITRE ATT&CK™ Matrix - Windows ... Command and Control Standard Application Layer Protocol
Amatera resolves its C2 through an encoded IP address hosted in a Telegraph page; EtherHiding retrieves content from BNB Smart Chain contracts.
“The technique, named Blockchain Dead Drops (BDD), stores payloads in on-chain transactions and smart contracts where infected devices can retrieve them on demand.” The article explicitly maps it to “T1102.001 (Web Service: Dead Drop Resolver).”
« Blockchain Dead Drops (BDD) ... stocker des instructions de malware ou des configurations C2 sur des blockchains publiques » ; « Smart contracts sur Polygon utilisés comme résolveurs C2 ».
“In payload-delivery setups, attackers store malicious code or encrypted payload components on-chain for victim machines to retrieve and execute locally.”
ErrTraffic initially calls the getUrlFromContract() function to retrieve the command-and-control (C2) panel domain from a blockchain smart contract. Instead of hardcoding the server address directly in the script, the malware queries multiple Polygon RPC endpoints
Observables
354 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
75 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.