Skip to content

ClickFix: Recognising and Preventing Fake Fix Attacks

ClickFix is a social engineering technique. A compromised or malicious web page shows the visitor a fake error, verification step or "fix" prompt. The page tells the visitor to open a system dialog, paste a command, and run it. The page already copied this command to the clipboard of the visitor. The attacker supplies the command, but the person who runs it is the victim.

MITRE added it to ATT&CK in March 2025 as its own sub-technique, T1204.004 – User Execution: Malicious Copy and Paste. This sub-technique is under the parent technique User Execution (T1204).

Why It Matters

ClickFix does not exploit a vulnerability. The victim does not have to open an attachment or download a file. The victim runs the command themselves, with a legitimate, trusted interpreter that is already on the machine. Thus the technique avoids the controls that look for malicious downloads. Email attachment filters, browser sandboxes and reputation checks, and file-based antivirus scans never see a file go across the network.

It is also cross-platform. The same social engineering pattern works against Windows (Run dialog, PowerShell, mshta, cmd), macOS (Terminal, zsh, bash, AppleScript) and Linux. Only the target interpreter changes.

⚠ Treat It as Initial Access: Treat a confirmed ClickFix execution as a potential initial-access incident. The attacker can use the access or sell it to other threat actors. Most campaigns are opportunistic and not targeted. The victim is compromised only because they visited a hijacked page, not because the attacker selected them. The device access is commonly sold to other criminal groups, ransomware operators in particular. Thus fast containment is more important than usual, even when the initial payload looks unremarkable (an infostealer or generic loader, not something clearly destructive).

How It Works

The chain is consistent in almost all campaigns, regardless of the lure theme or the final payload:

  1. Delivery. The victim gets to a page through a compromised legitimate website, malvertising or a phishing email. The victim can also arrive from a fake download portal (pirated software, cracks, "AI tools") or a spoofed meeting invite.
  2. The lure. The page shows a fake CAPTCHA, a browser or OS error, or an "update in progress" screen. Another lure is a failure to render a document. Its style looks legitimate. Attackers commonly imitate the Cloudflare and Google reCAPTCHA brand styles.
  3. Clipboard hijack. When the victim interacts with the lure, JavaScript silently copies a command that the attacker controls to the clipboard. Example interactions are a tick in the fake "I am not a robot" box, or a click on "Fix". On the screen, the victim often sees placeholder text that looks harmless. The real payload is in the clipboard, not on the page.
  4. User execution. The page tells the victim to open a specific system surface and paste the command. On Windows, this is usually the Run dialog (Win+R) or PowerShell. The new FileFix variant targets the File Explorer address bar instead. Controls that restrict only Win+R do not cover this address bar. On macOS, it is Terminal, iTerm2 or a fake native dialog that osascript generates.
  5. Execution and staging. The pasted command runs an interpreter that is already on the machine (mshta.exe, powershell.exe, zsh, bash). The interpreter can get and run the next stage directly in memory, or the campaign can write components to disk. The final payload depends on the campaign. In observed attacks, ClickFix delivered infostealers (Lumma Stealer, Atomic Stealer / AMOS, StealC, Rhadamanthys), loaders and RATs (QuasarRAT). These families are only illustrative, publicly documented examples, and they are not tied to one specific campaign or threat actor. In the OAuth-based ConsentFix variant, which this page describes later, there is no malware at all.

ClickFix attack chain from lure to payload

A Typical Attack Chain in Practice

The stages in the How It Works section describe the technique in general terms. In real incidents, the same shape occurs again with enough similarity to document it as a pattern. The table that follows maps this pattern to the broader ATT&CK tactics that it touches. ClickFix itself covers only Execution. The behaviour before and after it is ordinary, and ATT&CK catalogues it separately:

Tactic What it typically looks like
Initial Access The user goes to a legitimate but compromised site, or to a site that malvertising sends them to. The page quietly waits for a paste, and does not act immediately.
Execution explorer.exe (or a browser process) spawns an obfuscated one-line PowerShell command. This is the paste-and-run moment.
Command and Control The obfuscated command first connects over plain HTTP to get the payload. Then another beacon starts over TLS to a separate host. This keeps the "download" and "beacon" infrastructure apart.
Discovery Commands such as whoami /groups and net group "domain computers" /dom run from the same PowerShell session, or from a spawned svchost.exe/scheduled-task session. They enumerate the privileges of the user and the domain.
Persistence A hidden script is dropped to disk and runs again on a schedule (a scheduled task is a common mechanism). Thus the beacon continues after the initial session, even if the browser tab is closed.

πŸ’‘ The Pattern Worth Internalising: The "social engineering" part of the incident takes less than a minute, and it is over before the discovery commands run. But it leaves behind a process tree (browser β†’ explorer.exe β†’ PowerShell β†’ dropped script β†’ scheduled task β†’ discovery commands). This tree stays for a long time, and it gives many opportunities for detection long after the initial paste.

Types and Variants

Variant Lure theme Notes
Fake CAPTCHA / human verification "Verify you are human", Cloudflare or reCAPTCHA-styled prompt This is the original form, and it is still the most common form. It is tied to infrastructure such as ClearFake, which compromises legitimate sites to host the lure.
Fake Windows Update Full-screen blue "Working on updates…" splash Its design removes all other visual context, so the "finish the update" instruction seems routine.
Fake browser/software update "Your browser needs to be updated" (Chrome, Firefox, Edge, Safari, Brave) It is also tracked separately as FakeUpdates. It uses the same paste-and-run mechanic.
Fake meeting/video-conferencing fix "Fix audio/driver issue" before you join a Teams, Zoom, or Google Meet call It increasingly targets roles that work directly with customers (sales, support, account management). People in these roles join external calls routinely, and they are ready to act without hesitation.
Fake document rendering error "This document can't be displayed, run this to view it" It comes through phishing email attachments and also through web pages.
Fake macOS utility / system prompt A password dialog that looks native, generated with osascript, or a fake "helper"/"update" utility Entered passwords are often checked locally and offline (for example, through dscl in authonly mode). This avoids normal authentication logs.
Fake BSOD A full-browser overlay that mimics a Windows crash screen The "fix" is a PowerShell command that supposedly repairs the system.
FileFix Same lure themes, different target: the File Explorer/Finder address bar instead of Run or Terminal It specifically defeats GPO controls that disable only Win+R.
ConsentFix Fake IT notification, SaaS onboarding email, or AI-tool onboarding lure No command runs at all. The lure guides the victim through a real OAuth 2.0 consent screen, and the victim clicks "Accept". This gives a malicious app persistent, token-based access. The access stays after password resets and MFA changes. In logs, it looks like ordinary authorised OAuth activity.

How to Identify It

The sign is almost always the same, regardless of the theme. A legitimate verification step, error message or update never asks you to open a terminal, Run dialog or address bar and paste something.

People should also learn to notice these other warning signs:

  • A prompt that tells you to press Win+R, open PowerShell or open Terminal to "continue", "verify", or "fix" something.
  • Clipboard content that looks like harmless text on the screen, but is longer or different when you paste it.
  • CAPTCHA-style prompts on pages that have no obvious reason to gate content behind verification.
  • A request to complete a "fix" before you join a call, open a document or finish a download.
  • For technical staff: read each command from a search result, forum or AI chat assistant before you run it. Do not paste it blind.
  • Volume and speed. In barely two years, ClickFix went from a niche technique to one of the most common initial access vectors. It was first observed in October 2023 (under the earlier name ClearFake).
  • Commoditisation. Criminal forums now sell ClickFix-as-a-Service kits. The kits include CAPTCHA templates, domain rotation and a choice of payload. This lowers the barrier to entry considerably.
  • State and criminal use side by side. CERT-UA attributed a cluster of ClickFix attacks on compromised Ukrainian websites to Sandworm. DPRK-linked Contagious Interview campaigns and commodity infostealer operators (Lumma Stealer, AMOS) use the same technique.
  • Cross-platform expansion. macOS-specific campaigns grew substantially through 2026. In March 2026, Apple added an OS-level mitigation (macOS 26.4) that scans commands pasted into Terminal. Within weeks, a new variant abused the applescript:// URI scheme to reach Script Editor instead. This variant avoids Terminal completely.
  • Evasion of the obvious fix. FileFix appeared specifically to get around organisations that disabled Win+R. It targets the File Explorer/Finder address bar instead.
  • Evolution beyond command execution. ConsentFix removes the "paste and run" step completely, and uses OAuth consent phishing in its place. ClickFix-specific controls that already exist (to disable Run or block mshta) do nothing to stop it.
  • Targeting is getting more deliberate. Recent campaigns targeted specific job functions (roles that work directly with customers, through fake meeting lures). They also targeted organisations with public AI initiatives (lures with an AI-onboarding theme). This is different from purely opportunistic delivery.

Detection

Windows

  • RunMRU registry key. Each use of the Run dialog creates an entry under HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU. This is the single highest-yield artefact for this technique. Microsoft observed that attackers send victims back to the Run dialog. The specific reason is the multi-line paste warning in Windows Terminal. This warning makes it harder to persuade victims to use Terminal.
  • Process ancestry. Look for explorer.exe that spawns powershell.exe, mshta.exe or cmd.exe with no other legitimate reason. This is a strong signal. This is particularly true with an unusually long or obfuscated command line.
  • Command length. Lure text changes constantly. Thus several practitioners hunt by command line length, not by specific lure text. Observed ClickFix commands have an average of approximately 179 characters. A filter for command lines longer than approximately 50 characters is far more durable than a keyword match.
  • WDAC/AppLocker audit signals. In many configurations, a WDAC policy blocks mshta.exe outright, even in audit-only mode. It is useful to set an alert on this, even before full enforcement.

macOS

  • Terminal or iTerm2 spawns zsh, bash or python with a download-and-decode command line.
  • File creation under /tmp/ or the Library directory of the user, immediately after such a process chain.
  • osascript generates a password prompt that looks native. Then a local, offline password check follows (for example, through dscl in authonly mode), in place of standard authentication. Legitimate software rarely checks a password in this way. Thus the evasion technique is itself a usable detection signal.

How SenseOn Helps You Verify

Other pages on this site already document the SenseOn features that apply directly to ClickFix. This section maps them to the technique, and does not introduce anything new:

  • Hunt Lab can query endpoint telemetry across the whole estate for the process-ancestry and command-length patterns in the Detection section. You do not have to sample individual machines. For query patterns, refer to the Hunt Lab Training series.
  • Endpoint Protection (EPP) and Reflex provide the behavioural and automated-response layer for the LOLBin abuse that this page describes (mshta, PowerShell spawned from explorer.exe, and similar).
  • Assets shows if ASR rules, WDAC policy and PowerShell logging are actually deployed and send reports across the estate. Usually, this is where the gap between intended and real hardening first shows.

πŸ’‘ Correlation, Not Any Single Alert: The core value here comes from correlation. Weak signals come from different event types. Examples are an endpoint-level behavioural observation, a network-level connection anomaly, a third-party EDR alert, and an identity/cloud-side alert on a suspicious command. Each signal alone is unremarkable, but together they form a high-confidence case. Correlation of multiple sources across event types turns weak signals into a confirmed incident, and one detection in isolation does not.

Mitigation and Hardening

The controls that follow reduce the chance that a ClickFix lure succeeds. If a lure succeeds, they limit what it can do. As in the rest of this section, follow the same audit-before-you-enforce ring model that other pages use:

  1. Observe in audit/report-only mode.
  2. Measure for at least one full business cycle.
  3. Deploy to IT and security staff.
  4. Deploy to a representative cross-section of the business.
  5. Deploy to the whole estate.
Priority Control Why it matters here
1 Enable PowerShell script block logging This is already priority 5 in the short version table on the overview page. It is the single highest-value addition to investigate a suspected ClickFix execution after the event.
2 Enforce PowerShell Constrained Language Mode with WDAC or AppLocker It restricts PowerShell to a safe subset of cmdlets. This blocks the direct .NET and COM access that most ClickFix payloads rely on, even if the command is pasted and run.
3 Block or restrict mshta.exe A large share of ClickFix payloads use mshta specifically because it is a trusted, signed Windows binary. In many configurations, a WDAC policy in audit mode alone blocks this.
4 Enable the relevant Attack Surface Reduction rules In particular, the rules that block Office applications from creating child processes and block execution of potentially obfuscated scripts. The Windows Endpoints page already covers both.
5 Disable the Run dialog and Win+R with Group Policy User Configuration β†’ Administrative Templates β†’ Windows Components β†’ File Explorer β†’ Turn off Windows key hotkeys. Treat this control as a small obstacle, not a full solution. It does nothing against FileFix, which targets the File Explorer address bar instead.
6 Restrict OAuth application consent to admin approval This directly addresses ConsentFix, which does not use a pasted command at all. Refer to Control application consent on the Identity hardening page.
7 Restrict Terminal and shell interpreters on macOS with MDM Application control policies that limit who can invoke zsh, bash and osascript-driven prompts. System Integrity Protection and up-to-date XProtect/Gatekeeper definitions support these policies.
8 Targeted user awareness Generic phishing simulations do not prepare people for this. Repeat the line that follows in courses, onboarding and internal signs. No legitimate website, vendor, or internal system will ever ask you to paste a command into a system window. Cover the specific lure contexts in use (fake updates, meeting/call fixes, document errors, AI-tool onboarding), not only email attachments.
9 Disable Terminal and Command Prompt entirely for users who do not need them This is broader than a Win+R restriction. For most business users, neither cmd.exe nor a shell is a legitimate day-to-day tool. If you remove access with GPO or MDM, you close the execution surface, not only one route into it.
10 Deploy ad blockers at host level and network level A large share of ClickFix delivery uses malvertising and compromised ad CDNs, not direct phishing links. Ad blockers at host level and network level remove a meaningful part of the delivery surface. For higher-security environments, consider a web allowlist.
11 Control DNS-over-HTTPS centrally With its default settings, DoH in the browser removes visibility from DNS-based blocks and logs. Enforce a consistent DoH configuration, or send DoH through a resolver that your own tools can see. This keeps DNS-layer detection and blocklists effective.
12 Enforce AppLocker (or an equivalent application control tool) to block unapproved software installations This removes a common later step in ClickFix chains. In this step, the pasted command installs or starts software that the user was never authorised to run.
13 Extend user awareness to cracked software and unofficial third-party sources Fake download portals for pirated software, cracks and licence-key generators are a common ClickFix delivery route. This route is separate from the fake-CAPTCHA and fake-update lures that this page covers earlier.

If You Confirm a Compromise

If you confirm a ClickFix execution, this is a reasonable baseline response, regardless of the specific payload:

  • Isolate the device from the network as soon as you confirm the behaviour. Do not wait until you fully characterise the payload.
  • Reset the affected user's credentials. Then revoke all active sessions and refresh tokens, even if the compromise looks device-only. This is a precaution. If you do not do this, session tokens or cached credentials on the device can stay usable in other places.
  • Examine sign-in and activity logs for the affected account for anything anomalous around the time of the incident.
  • Review OAuth application activity and permissions granted to or by the account. This is particularly relevant if you suspect a ConsentFix-style variant.
  • Check inbox rules and MFA configuration changes for anything that the attacker possibly added to keep access or intercept mail.
  • Reimage the device to a known-good build. Do not try to clean it in place. The low cost to re-image the device is rarely worth the residual risk of an incomplete cleanup.
  • Block the confirmed malicious infrastructure (domains and IPs involved in delivery and command and control) at the firewall or proxy. Then look for other devices that contacted the same infrastructure.
  • Talk to the user. Find out what they clicked and why (what the lure looked like, and what site or email led them there). This is usually the fastest way to find related exposure. It also helps you improve the specific awareness content that will actually help next time.
  • Consider reporting the infrastructure to communities that share threat intelligence, or to browser safety providers (Google Safe Browsing, Microsoft SmartScreen, and similar providers). Do this particularly when the delivery site was a compromised legitimate domain, not infrastructure that the attacker owns.