US Edition Austin, TX UTC 00:00:00

ClickFix attacks explained: fake CAPTCHA lures and how to block them

ClickFix is a fake CAPTCHA attack that makes you paste a command into Win+R. See how it works, the MITRE ID and how to block it on Windows.

ClickFix is a social engineering technique in which a fake CAPTCHA, error message or "verification" page tells the victim to copy a command and run it themselves, usually through the Windows Run dialog (Win+R), a terminal or PowerShell. Because the user starts the command, the attack skips many email filters, download scans and browser sandbox protections. The most effective blocks combine removing the Run dialog, application control, PowerShell hardening and detection on the endpoint.

What is ClickFix and how does the attack work?

The lure is a web page that looks like a routine check: "Verify you are human", "Fix this error to view the document" or "Your browser needs an update". The page silently places a command on the clipboard. It then shows numbered steps, typically: press Win+R, press Ctrl+V, press Enter.

What the victim pastes is a one-liner that downloads and launches the next stage. As Microsoft Threat Intelligence described in August 2025, the payloads are often fileless and run through built-in Windows tools such as powershell.exe, msbuild.exe or regasm.exe. Microsoft listed infostealers (Lumma Stealer being the most prolific), remote access tools and loaders among the malware delivered this way.

Lures reach people through several channels:

  • phishing emails with an HTML attachment that shows a fake error;
  • malvertising and search redirects to a fake verification page;
  • legitimate websites that were compromised to inject the fake CAPTCHA;
  • fake support, meeting or software-download pages.

Why a fake CAPTCHA works

People are used to clicking through CAPTCHAs and "verify" prompts, so a few extra steps do not feel unusual. The instructions also look harmless because the user types nothing: the page has already prepared the text. Microsoft noted that ClickFix builder kits have been sold to criminals since late 2024, which lowers the skill needed to run a campaign.

ClickFix on macOS, Linux and in File Explorer

The technique is not limited to the Run dialog. On macOS and Linux, the same pages tell the victim to paste a curl-to-shell command into Terminal. Microsoft reported a June 2025 campaign aimed at macOS users that delivered the AMOS stealer, with lures that still showed Windows-style instructions.

A variant called FileFix, described by researcher mr.d0x in June 2025, swaps the Run dialog for the File Explorer address bar: the page asks the user to open Explorer and paste a "file path", which is really a command. The idea is to avoid defences that watch for or disable Win+R. The pasted text is not a real path. Treat it as the same class of attack, because the control point is the same: the user pastes attacker-supplied text into a place that executes it.

MITRE ATT&CK mapping

ATT&CK tracks ClickFix as T1204.004, User Execution: Malicious Copy and Paste. When we checked on 30 October 2026, the technique page was at version 1.1, last modified on 12 May 2026. It sits under User Execution in the Execution tactic. For the full list of tactics, see our MITRE ATT&CK tactics explainer.

MITRE's listed mitigations are Execution Prevention (M1038, for example PowerShell Constrained Language Mode), Network Intrusion Prevention (M1031) and Restrict Web-Based Content (M1021). Its detection guidance looks for a browser, email or Office context followed shortly by a command interpreter with suspicious arguments, such as encoded content, Invoke-Expression or web downloads, and then an outbound connection.

How to block ClickFix on Windows

No single control stops every variant, so layer them. The list below follows Microsoft's published guidance and the MITRE mitigations.

1. Remove the Run dialog where users do not need it

Group Policy can remove the Run option from the Start menu and disable Win+R. In the Group Policy editor the setting is named "Remove Run menu from Start Menu" (it writes the NoRun value). Test it on a pilot group first: administrators and help-desk staff often rely on Run. It also does not cover other paste targets such as a terminal or the Explorer address bar, so it is a speed bump, not a full fix.

2. Use application control

Microsoft recommends App Control policies that stop native binaries such as PowerShell from being launched through the Run dialog. AppLocker or App Control for Business can also restrict mshta.exe, wscript.exe and similar scripting hosts that standard users rarely need.

3. Harden PowerShell

  • Enable script block logging so pasted one-liners are recorded.
  • Use Constrained Language Mode where application control is in place.
  • Use an AllSigned or RemoteSigned execution policy, remembering that it is not a security boundary against a determined attacker.
  • Configure Windows Terminal to warn on multi-line pastes.

4. Turn on Defender attack surface reduction rules

Microsoft points to the ASR rules that block potentially obfuscated scripts, block executables that fail prevalence, age or trusted-list checks, and block JavaScript or VBScript from launching downloaded executable content. Run them in audit mode first to see what they would break.

5. Filter the web and email layers

Use a managed browser with reputation filtering such as Microsoft Defender SmartScreen, DNS or web filtering for newly registered domains, and email protection with safe links and recheck on click. Microsoft says SmartScreen warns Edge users who open a known ClickFix landing page, and Defender for Office 365 can recheck links when they are clicked. Follow current ClickFix coverage in our Security section for new campaigns.

How to detect ClickFix on endpoints

Even a good block list will miss something, so hunt for the pattern. Useful signals:

  • RunMRU registry key. Windows records commands typed into the Run dialog under the current user's hive. Microsoft suggests reviewing entries for powershell, mshta, rundll32, wscript, curl or wget, download cmdlets such as iwr, irm and iex, raw IP addresses and paste sites. Entries are not created if the command fails, so absence is not proof of safety.
  • Process lineage. explorer.exe spawning powershell.exe or cmd.exe with encoded or download arguments, shortly after a browser event.
  • Defender detections. Microsoft lists names such as Behavior:Win32/ClickFix, Trojan:HTML/FakeCaptcha and Behavior:Win32/RegRunMRU.
  • macOS and Linux. Terminal or iTerm2 starting a shell with a curl-to-interpreter pipe or base64 decoding, followed by file writes in /tmp.

What to tell users

Training works best when it is one concrete rule with a real screenshot of a fake CAPTCHA: a genuine CAPTCHA never asks you to open Run, a terminal or Explorer and paste something. If a page does, close it and report it to the security team. Give people a fast reporting channel, because the earlier a pasted command is reported, the more likely the credentials and browser sessions it targeted can be reset in time.

If someone has already run the command, isolate the device, preserve the RunMRU entry and PowerShell logs, and reset the passwords and sessions the device held. Stolen session tokens are a common goal, so see also our guide to blocking device code flow in Microsoft Entra ID, another attack that tricks users into authorising the attacker.

Frequently asked questions

What is a ClickFix attack?

It is an attack where a web page or email convinces the user to paste and run a command on their own computer, usually under the pretext of a CAPTCHA or an error fix. The user, not malware, performs the risky step.

Is ClickFix the same as FileFix?

FileFix is a variant. Instead of the Run dialog it asks the user to paste a command into the File Explorer address bar. The goal and the defence approach are the same.

What is the MITRE ATT&CK ID for ClickFix?

ClickFix is covered by T1204.004, User Execution: Malicious Copy and Paste. The ID was current when we checked on 30 October 2026.

Can I block the Run dialog with Group Policy?

Yes. The policy "Remove Run menu from Start Menu" disables the Run dialog for affected users. It should be combined with application control, because attackers can use a terminal or other paste targets instead.

Does antivirus stop ClickFix?

Sometimes. Microsoft reported that Defender Experts saw devices executing ClickFix commands despite EDR in early 2025, so layered controls and user awareness matter.