ClickFix is a social-engineering technique in which a fake error page or “I am not a robot” check tells the visitor to press Win+R, paste and press Enter. The page has already put a malicious command on the clipboard, so the user installs the malware themselves, without any exploit or attachment that email filters can catch. Stop it by restricting the Run dialog and script hosts for ordinary users, turning on Attack Surface Reduction rules, alerting when explorer.exe starts PowerShell or mshta, and teaching one simple rule: no real website ever asks you to paste something into Run or a terminal.
Most malware still needs someone to make a mistake. ClickFix makes the mistake feel like a routine step. Since security researchers first named the technique in 2024, it has gone from a niche trick to one of the most common ways infostealers and remote-access trojans reach Windows and macOS machines. It works because it moves the “execution” step out of the places defenders watch (email attachments, downloads, macros) and into the user’s own keyboard.
How a ClickFix lure works
The lure arrives through a compromised website, a malicious ad, a fake document-sharing page or a phishing email that links to one. The page imitates something the victim trusts:
- a CAPTCHA (“Verify you are human”),
- a browser or document error (“This document cannot be displayed, click Fix”),
- a video-call or meeting problem (“Your microphone is blocked”),
- or a software update prompt.
When the victim clicks the button, JavaScript silently copies a command to the clipboard. The page then shows “verification steps”: open the Run dialog (or Terminal on a Mac, or the File Explorer address bar in the “FileFix” variant), paste, and press Enter. The pasted command is usually a short PowerShell, mshta or curl one-liner that downloads and runs the real payload, often an infostealer such as Lumma, Vidar or StealC, or a remote-access tool.
Some versions pad the visible part of the command with a harmless-looking comment (“✅ I am not a robot – reCAPTCHA Verification ID: 4821”), so the Run box shows only reassuring text and the malicious part scrolls out of view.
Why it gets past normal defences
- No attachment, no macro, no exploit. Email gateways and sandboxes see a link to a web page, nothing more.
- The user starts the process. The command runs as a child of
explorer.exe, just like something the user launched on purpose. - Living-off-the-land binaries. PowerShell,
mshta,rundll32andmsiexecare signed Windows components, so allow-listing based on signature alone does not stop them. - It feels normal. People are used to CAPTCHAs and “fix” buttons; a three-step instruction looks like ordinary friction.
Prevention: reduce what a pasted command can do
- Remove the Run dialog for users who do not need it. The Group Policy setting User Configuration → Administrative Templates → Start Menu and Taskbar → Remove Run menu from Start Menu also disables Win+R. Apply it to standard staff, not to IT.
- Turn on Microsoft Defender Attack Surface Reduction (ASR) rules, at least in audit mode first:
- Block execution of potentially obfuscated scripts
- Block JavaScript or VBScript from launching downloaded executable content
- Block executable files from running unless they meet a prevalence, age, or trusted list criterion
- Restrict script hosts. Use AppLocker or Windows Defender Application Control (WDAC) to stop
mshta.exefor normal users (very few business apps still need it) and run PowerShell in Constrained Language Mode where possible. - Filter newly registered and uncategorised domains at the DNS or web proxy layer. ClickFix pages and their payload servers are usually days old.
- Keep users off local admin. Many payloads still run without admin, but persistence and credential theft become much harder.
Detection: what to alert on
The strongest signal is a scripting engine started directly by the Windows shell with a network-fetching command line. In Microsoft Defender for Endpoint (Advanced Hunting):
DeviceProcessEvents
| where InitiatingProcessFileName =~ "explorer.exe"
| where FileName in~ ("powershell.exe","pwsh.exe","mshta.exe","cmd.exe","rundll32.exe","msiexec.exe")
| where ProcessCommandLine has_any ("http","iwr","irm","curl","DownloadString","FromBase64String","-enc")
| project Timestamp, DeviceName, AccountName, FileName, ProcessCommandLine
| order by Timestamp desc
Also useful:
- RunMRU history. Commands typed into Run are recorded per user in
HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerRunMRU. During an investigation, a long PowerShell ormshtaline there is close to proof of a ClickFix infection. - PowerShell Script Block Logging (Event ID 4104) captures the decoded script even when the command line is obfuscated.
- Clipboard-to-shell timing. Some EDR products now flag a browser writing to the clipboard followed within seconds by a shell process with a long command line.
- On macOS, alert on
Terminalorosascriptlaunchingcurlpiped intobash/zsh, and on unsigned binaries asking for the login password.
The training message that works
Long awareness modules do not help much here. One concrete rule does:
No website, CAPTCHA, meeting tool or IT page will ever ask you to press Win+R, open Terminal, or paste something into the address bar. If you see that, close the tab and report it.
Show staff one real screenshot of a ClickFix page. Once people have seen it, they recognise the pattern immediately.
If someone already ran it
- Isolate the device from the network with your EDR.
- Assume every password and session cookie in that browser is stolen: reset passwords, revoke sessions and refresh tokens (in Microsoft Entra ID: Revoke sessions on the user), and rotate any API keys or VPN credentials saved on the machine.
- Check RunMRU, PowerShell logs and new scheduled tasks or Run keys for persistence, then reimage rather than “clean” the device.
- Search for the same command line or payload domain on other endpoints; ClickFix campaigns usually hit several users at once.
For Indian organisations
A ClickFix infection that leads to stolen credentials or remote access is a reportable incident under the CERT-In directions (report within 6 hours of noticing). If customer personal data may have been accessed, the DPDP Act and Rules also require notice to the Data Protection Board and affected people. Detecting the shell-spawned PowerShell in the first minutes usually turns a breach into a contained malware event.
RingSafe can review your endpoint controls against ClickFix-style attacks and run a safe, simulated lure for your staff. Talk to us.
Get a free attack-surface review
We check what an attacker would see about your business — leaked credentials, exposed services, dark-web mentions. 30 minutes, no obligation.