The cart is empty

ClearFake is a malicious JavaScript framework used by cybercriminals to distribute malware through compromised websites. Its primary objective is to trick visitors of legitimate websites into downloading malicious software or executing dangerous commands on their operating systems.

ClearFake was first observed in 2023 and has gradually evolved from simple fake browser update notifications into a sophisticated attack framework using social engineering, fake CAPTCHA challenges, ClickFix techniques, and blockchain infrastructure to distribute malicious code.

ClearFake Overview

Name ClearFake
First Observed 2023
Threat Type Malicious JavaScript framework
Distribution Method Compromised websites
Commonly Compromised Platforms Wordpress and other web applications
Attack Techniques Fake Updates, ClickFix, EtherHiding
Target Operating Systems Windows, macOS
Primary Objectives Malware distribution and data theft
Threat Severity High

History and Evolution of ClearFake

ClearFake was identified by security researchers at Sekoia in 2023. Its early versions displayed fraudulent browser update notifications to visitors of compromised websites, impersonating Google Chrome, Mozilla Firefox, and Microsoft Edge.

Over time, attackers significantly improved their techniques and expanded the capabilities of the framework.

  • 2023: Initial campaigns distributing malware through fake browser update notifications.
  • September 2023: Introduction of the EtherHiding technique, allowing malicious JavaScript to be retrieved from blockchain smart contracts.
  • 2024: Expansion of ClickFix attacks, where victims are persuaded to execute malicious commands themselves.
  • Late 2024: Increased use of fake CAPTCHA verification pages impersonating reCAPTCHA and Cloudflare Turnstile.
  • 2025: Further development of multi-stage attacks, information-stealing malware distribution, and blockchain-based infrastructure.
  • 2026: ClearFake remains an active threat, continuing to exploit compromised websites, social engineering, and EtherHiding techniques.

How ClearFake Works

1. Compromising a Legitimate Website

Attackers first gain the ability to modify the content of a legitimate website. This may involve stolen credentials, vulnerable components, compromised plugins, or unauthorized administrative access.

They subsequently inject malicious JavaScript into the website. The injected code is executed when visitors open the compromised page.

2. Loading Additional Malicious Code

The injected JavaScript contacts infrastructure controlled by the attackers and retrieves additional malicious content.

Some ClearFake variants use blockchain smart contracts to host malicious instructions or payload references, making the underlying distribution infrastructure more difficult to disable.

3. Displaying a Fake Security Notification

Visitors may encounter fraudulent notifications such as:

  • Your web browser requires an update.
  • Additional security verification is required to continue.
  • Verify that you are not a robot.
  • A browser error has occurred and must be fixed.

These messages are designed to appear legitimate and encourage users to perform actions that compromise their devices.

4. Convincing the Victim to Execute a Command

Modern ClearFake campaigns frequently employ the ClickFix technique.

Attackers instruct victims to open a system utility, paste a command from the clipboard, and execute it. These instructions are presented as legitimate troubleshooting or verification procedures.

5. Malware Installation

Executing the malicious command may result in downloading additional malware, stealing authentication credentials, or compromising the victim's computer.

However, simply visiting a compromised website does not necessarily mean the operating system has been infected. In many documented variants, successful infection depends on additional actions performed by the user.

ClickFix – Exploiting User Trust

ClickFix is a social engineering technique designed to persuade users to execute malicious commands themselves.

Attackers frequently display fake CAPTCHA challenges and claim that executing a command is necessary to complete a security verification process.

Unlike traditional phishing attacks, the victim does not necessarily need to enter a password or intentionally download a suspicious file.

Instead, attackers convince users to open a system utility and execute content that has been copied to the clipboard.

On Windows systems, commonly abused utilities include:

  • Windows PowerShell.
  • Windows Command Prompt.
  • The Windows Run dialog.

Related attack variants may also target macOS users by instructing them to execute commands in Terminal.

Important: Legitimate CAPTCHA verification systems never require users to execute PowerShell commands, Terminal commands, or other operating system instructions.

EtherHiding – Using Blockchain Infrastructure

One of the most technically distinctive features associated with ClearFake is the use of a technique known as EtherHiding.

EtherHiding allows attackers to store malicious JavaScript or instructions required for subsequent attack stages in blockchain smart contracts, including contracts deployed on the BNB Smart Chain.

A compromised website subsequently retrieves this content through blockchain RPC interfaces.

This approach provides several advantages to attackers:

  • Persistence: Blockchain-hosted data may be difficult or impossible to remove from the underlying ledger.
  • Distributed infrastructure: Attackers can leverage publicly available blockchain networks and services.
  • Resilience: Blocking individual hosting providers or domains may not eliminate the entire distribution mechanism.
  • Flexible payload delivery: Depending on the implementation, attackers may change the content retrieved by compromised websites without modifying the websites again.

The blockchain itself is not necessarily compromised. Instead, attackers abuse legitimate blockchain functionality to store or retrieve malicious content.

Malware Distributed Through ClearFake

ClearFake is not a single computer virus. It is a malicious delivery framework that may distribute different malware families depending on the campaign.

Security researchers have associated ClearFake-related campaigns with several types of malware, including:

Malware Description
Lumma Stealer Information-stealing malware targeting passwords, browser cookies, and other sensitive data.
Raccoon Stealer Malware designed to collect information from infected computers.
Rhadamanthys Advanced information-stealing malware targeting sensitive user data.
Amatera Stealer Information-stealing malware used to collect credentials and other private information.
HijackLoader A malware loader used to deliver additional malicious software.

The specific malware delivered through ClearFake may change over time and between campaigns.

ClearFake and Content Management Systems: WordPress, Joomla, and PrestaShop

ClearFake is frequently associated with compromised WordPress websites. However, it is important to emphasize that ClearFake is not a vulnerability exclusive to WordPress.

Malicious JavaScript can be injected into virtually any web application if attackers obtain permission or unauthorized access to modify HTML, JavaScript, templates, or database content.

Websites powered by Joomla, PrestaShop, and custom PHP applications may therefore also be abused to distribute ClearFake-related malicious content.

Potential attack vectors include:

  • Outdated or vulnerable extensions and plugins.
  • Stolen administrator credentials.
  • Compromised FTP or SSH accounts.
  • Malicious or counterfeit plugins.
  • Unauthorized modifications to website templates.
  • Malicious JavaScript stored in database records.

It is important not to assume that every ClearFake infection results from exploiting a specific publicly disclosed vulnerability.

For example, GoDaddy researchers documented campaigns involving stolen credentials and fraudulent WordPress plugins without necessarily exploiting a known WordPress CVE.

How to Detect ClearFake on a Web Server

When investigating a suspected ClearFake infection, system administrators should examine website files, database content, externally loaded scripts, and server logs.

Checking Website Source Files

Potential warning signs include unexpected JavaScript blocks, unfamiliar external domains, dynamically loaded scripts, and suspicious obfuscated code.

A basic Linux command for identifying potentially suspicious patterns is:

grep -RniE 'eth_call|atob\(|eval\(|fromCharCode|createElement' /var/www/clients/client1/web1/web/

This command provides only a preliminary inspection. The listed JavaScript functions also have legitimate uses, and their presence does not automatically indicate a malware infection.

Checking Database Content

Malicious scripts may be stored in article HTML, custom modules, template configurations, plugin settings, or other database fields.

Administrators should inspect recently modified records and compare suspicious content with known clean backups.

Inspecting Network Requests

Browser developer tools can reveal unexpected external connections, JavaScript downloads from unfamiliar sources, or communication with blockchain RPC endpoints.

Investigators should pay particular attention to network requests that occur only when a website is visited by an unauthenticated user.

File Integrity Monitoring

Core CMS files should be compared with their original distributions, while automated monitoring tools should detect unauthorized changes to scripts, templates, and other critical files.

Protecting Websites Against ClearFake

Reducing the risk of ClearFake infections requires a combination of server security, application maintenance, access control, and continuous monitoring.

  • Regular Updates: Keep PHP, content management systems, extensions, plugins, and server software updated to supported versions.
  • Administrative Access Security: Use multi-factor authentication, strong passwords, IP-based access restrictions, and the principle of least privilege.
  • Web Application Firewall (WAF): Deploy a WAF to help block certain exploitation attempts and suspicious requests. A WAF alone cannot guarantee protection against every ClearFake variant.
  • Content Security Policy (CSP): Restrict which sources can provide executable JavaScript and other active content. A carefully configured CSP may prevent or limit the execution of injected scripts.
  • File Integrity Monitoring: Automatically monitor changes to PHP files, JavaScript files, CMS extensions, and website templates.
  • Secure Backups: Maintain independent backups that allow a clean website version to be restored after an incident.
  • Credential Protection: Regularly review administrator accounts, revoke unused access permissions, and investigate suspicious authentication activity.

Incident Response – What to Do if ClearFake Is Detected

If ClearFake is detected on a website, administrators should follow a structured incident response process.

  1. Restrict access to the compromised website to prevent additional visitors from being exposed to malicious content.
  2. Preserve website files, database copies, and relevant server logs for forensic analysis.
  3. Identify malicious modifications and determine how the initial compromise occurred.
  4. Remove malicious scripts, backdoors, and unauthorized user accounts.
  5. Update the content management system, extensions, and server components.
  6. Reset potentially compromised credentials and revoke exposed authentication tokens and sessions.
  7. Verify the integrity of other websites sharing the same hosting environment or credentials.
  8. Test the website as a regular visitor and continuously monitor for signs of reinfection.

Simply deleting the visible malicious JavaScript may not be sufficient.

If a backdoor or another unauthorized access mechanism remains on the server, attackers may reinfect the website.

If a visitor has already executed a malicious command displayed by ClearFake, the visitor's computer must also be investigated.

Recommended actions include malware scanning, changing compromised passwords from a trusted device, revoking stolen authentication sessions, and reviewing potentially exposed accounts.

Conclusion

ClearFake represents a significant cybersecurity threat that combines the compromise of legitimate websites, social engineering, and modern malware delivery techniques.

Its primary danger lies in the fact that users may encounter malicious content while browsing websites they normally trust.

Website operators must therefore protect not only their own systems and data but also visitors who may otherwise be exposed to malicious scripts and fraudulent security notifications.

Regular updates, strong administrative security, file integrity monitoring, appropriate browser security policies, and effective incident response procedures are essential for reducing the risk of ClearFake-related attacks.

References and Further Reading

Last updated: October 22, 2026

Star InactiveStar InactiveStar InactiveStar InactiveStar Inactive