ClickFix doesn't exploit anything. A web page shows a fake CAPTCHA or error, quietly copies a command to the clipboard, and tells the user to press Win+R, paste and hit Enter. The user runs the attacker's code with their own hands, so email attachment controls, browser download scanning and most exploit protections never get a look. Detection that keys on the payload loses, because payloads rotate per visitor. What doesn't rotate is how the command gets run: a shell or installer launched by Explorer from the Run dialog, with a URL in the command line.
This post covers what current ClickFix campaigns look like, then gives you detections built on that execution path in Defender for Endpoint (KQL) and Sysmon in Splunk (SPL), plus the controls that remove the path.
What current campaigns look like
Two November 2026 write-ups show where the technique is now.
SOCRadar's XaocMail report (November 13) describes a Russian-speaking operator running a self-hosted phishing platform that sends document-sharing lures. Recipients land on per-victim pages hosted on Cloudflare Workers, styled as Google Docs, Adobe Acrobat or Office 365, where a blurred document and a verification prompt lead to the Win+R step. The page offers three command variants:
- PowerShell with
Net.WebClientDownloadStringand an obfuscatediex, which fetches and runs an MSI mshta https://…, which delivers a ZIP with a DLL sideloading pair (the older path)msiexec /i https://… /qn, which installs the MSI directly; SOCRadar calls this the newest and most evasion-hardened option
The MSI drops an embedded Python 3.11 runtime into a random folder under the user's AppData, then registers scheduled tasks with names that imitate Edge, OneDrive, Defender, Office or Acrobat update tasks to run pythonw.exe against .pyw scripts. The implant, which SOCRadar calls Phantom53, uses DNS-over-HTTPS to public resolvers for command and control, and a second stage loads a Havoc Demon.
Flare's research (November 12) walks through five live ClickFix pages found in a two-day hunt. A few details are worth carrying into detection design. One page fetched the clipboard command from a server API after the fake check, so each visitor could get a different command. One chain used a signed utility to add the whole C:\ drive as a Defender exclusion before installing its payload with msiexec /i … /qn /norestart. Another told users to open cmd through Win+R and paste into it, which changes the parent process. Others used a Stripe customer record and a Telegram channel description for command and control.
The variants keep moving. RH-ISAC's July 2026 summary describes FileFix, which uses the File Explorer address bar instead of the Run dialog, and pages that download a file to the Downloads folder and put only a short launcher command on the clipboard so the visible command looks harmless.
Where ClickFix leaves evidence
| Artifact | Telemetry | What it tells you |
|---|---|---|
Run dialog history in the user's RunMRU registry key | EDR registry events, Sysmon EID 13 | The exact command the user pasted, if it went through Win+R |
Process launched with explorer.exe as parent | EDR process events, Sysmon EID 1, Security 4688 | Both Win+R and the Explorer address bar launch commands as children of Explorer |
msiexec.exe or mshta.exe with an http(s) argument | Process events | Remote installer or HTA execution, rare in managed fleets |
| Defender exclusion added | Registry and process events | Common pre-payload step; should only come from your management tooling |
| Scheduled task running a script interpreter from AppData | Process events with the Task Scheduler service as parent | Persistence for Python-, Node- or script-based implants |
Detection 1: What users typed into Run
When a command runs from Win+R, Explorer writes it to the user's RunMRU key:
HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU
Each entry is a lettered value, and MRUList holds their order. That gives you the pasted command verbatim, including any decoy text added to make it look harmless. Legitimate RunMRU entries are short: cmd, notepad, \\fileserver\share, services.msc. Long entries with URLs or download cradles are not.
let lookback = 30d; DeviceRegistryEvents | where TimeGenerated > ago(lookback) | where ActionType == "RegistryValueSet" | where RegistryKey has @"\Explorer\RunMRU" | where RegistryValueName != "MRUList" | where RegistryValueData has_any ("http", "powershell", "pwsh", "mshta", "msiexec", "curl", "iex", "DownloadString", "iwr", "Invoke-", "-enc", "-w h", "hidden", "frombase64", "bitsadmin", "certutil") or strlen(RegistryValueData) > 120 | project TimeGenerated, DeviceName, InitiatingProcessAccountName, RegistryValueName, Command = RegistryValueData | order by TimeGenerated desc
False positives come from admins and developers who paste long one-liners into Run; scope by device group or exclude known admin accounts rather than dropping keywords. One caveat: test that your EDR actually records these writes before relying on this. Defender for Endpoint doesn't log every registry change on every device, so run the query unfiltered over 30 days for a group of users you know use Win+R. If it's empty, lean on Detection 2, which doesn't depend on registry coverage. This query also won't see FileFix, which doesn't go through Run.
Detection 2: Explorer launching download cradles and installers
This is the core detection, and the one to put in production. Users start plenty of things from Explorer, but they don't normally start PowerShell, mshta or msiexec with a URL in the command line. Because the parent is Explorer for both Win+R and the File Explorer address bar, this also covers FileFix.
let lookback = 14d; let lolbins = dynamic(["powershell.exe", "pwsh.exe", "mshta.exe", "msiexec.exe", "cmd.exe", "curl.exe", "rundll32.exe", "regsvr32.exe", "certutil.exe", "bitsadmin.exe", "wscript.exe", "cscript.exe", "conhost.exe"]); let indicators = dynamic(["http://", "https://", "DownloadString", "DownloadFile", "iwr ", "irm ", "iex", "Invoke-Expression", "Invoke-WebRequest", "Invoke-RestMethod", "-enc", "-EncodedCommand", "FromBase64String", "/qn", "-w h", "-windowstyle h", "hidden", "bypass"]); DeviceProcessEvents | where TimeGenerated > ago(lookback) | where InitiatingProcessFileName =~ "explorer.exe" | where FileName in~ (lolbins) | where ProcessCommandLine has_any (indicators) | extend HasUrl = ProcessCommandLine matches regex @"(?i)https?://" | project TimeGenerated, DeviceName, AccountName, FileName, ProcessCommandLine, HasUrl, InitiatingProcessCommandLine, SHA256 | order by TimeGenerated desc
Expect noise from cmd.exe and powershell.exe started by admins with arguments like -ExecutionPolicy Bypass to run a local script. Tune that by excluding specific local script paths, not by removing bypass from the indicator list. A URL in the command line of an Explorer-spawned mshta.exe or msiexec.exe is close to zero false positive in most fleets and can go straight to high severity.
Flare's "Win+R, type cmd, paste" variant puts cmd.exe between Explorer and PowerShell, so the PowerShell parent is cmd.exe, not Explorer. Catch it with a second arm that checks InitiatingProcessParentFileName =~ "explorer.exe" and InitiatingProcessFileName =~ "cmd.exe" with the same indicators. Our encoded PowerShell post covers decoding the -enc payloads you'll find here.
Detection 3: Installers and HTAs from URLs, any parent
The msiexec /i https://… variant is worth its own rule regardless of parent, because a remote installer URL on the command line is suspicious whatever lure delivered it. Enterprise software deployment almost always installs from a local cache or file share, not a URL typed on the command line.
let lookback = 30d; DeviceProcessEvents | where TimeGenerated > ago(lookback) | where FileName in~ ("msiexec.exe", "mshta.exe") | where ProcessCommandLine matches regex @"(?i)(https?://|\\\\[a-z0-9.-]+@ssl\\)" | extend Host = extract(@"(?i)https?://([^/\s""']+)", 1, ProcessCommandLine) | summarize Devices = dcount(DeviceName), FirstSeen = min(TimeGenerated), LastSeen = max(TimeGenerated), Parents = make_set(InitiatingProcessFileName, 5), Sample = take_any(ProcessCommandLine) by FileName, Host | order by FirstSeen desc
Aggregating by host shows you campaigns rather than single events: a workers.dev, pages.dev or freshly registered domain appearing on several devices in a day is the pattern. Legitimate hits are usually vendor installers launched by a deployment agent; the Parents column tells you which. Allowlist by host and parent together.
Detection 4: Defender exclusions added outside your management tooling
One of the chains Flare analyzed added a Defender exclusion for the entire system drive before the payload landed. Exclusions should come from Intune, Group Policy or your EDR console, which write them through their own processes. Anything else adding one is suspicious, whatever triggered it.
let lookback = 14d; let mgmt = dynamic(["MsMpEng.exe", "MsSense.exe", "omadmclient.exe", "IntuneManagementExtension.exe", "svchost.exe", "gpupdate.exe"]); // adjust to how your org deploys exclusions union (DeviceProcessEvents | where TimeGenerated > ago(lookback) | where ProcessCommandLine has_any ("Add-MpPreference", "Set-MpPreference") | where ProcessCommandLine has_any ("ExclusionPath", "ExclusionProcess", "ExclusionExtension", "ExclusionIpAddress") | extend Evidence = ProcessCommandLine, Source = "process"), (DeviceRegistryEvents | where TimeGenerated > ago(lookback) | where ActionType == "RegistryValueSet" | where RegistryKey has @"\Windows Defender\Exclusions\" | where not(InitiatingProcessFileName in~ (mgmt)) | extend Evidence = strcat(RegistryKey, " = ", RegistryValueName), Source = "registry") | project TimeGenerated, DeviceName, Source, InitiatingProcessFileName, InitiatingProcessCommandLine, Evidence | order by TimeGenerated desc
Tamper protection blocks many of these changes, but a blocked attempt is still a signal that something on the device is trying. An exclusion for a whole drive, %TEMP% or a user profile folder should page someone. If your engineering teams set their own exclusions for build directories, scope those devices out by group rather than by path.
Detection 5: Script interpreters running from AppData on a schedule
This one targets the XaocMail chain specifically but generalizes to any implant that ships its own runtime. SOCRadar's write-up describes scheduled tasks launching pythonw.exe against .pyw scripts from a runtime dropped in AppData, which gives you something concrete to hunt. Bundled Python, Node and AutoIt runtimes in user-writable paths are an increasingly common way to avoid PowerShell logging.
let lookback = 30d; DeviceProcessEvents | where TimeGenerated > ago(lookback) | where FileName in~ ("pythonw.exe", "python.exe", "node.exe", "autoit3.exe") | where FolderPath has_any (@"\AppData\Local\", @"\AppData\Roaming\") | where InitiatingProcessFileName =~ "svchost.exe" and InitiatingProcessCommandLine has "Schedule" | summarize Runs = count(), FirstSeen = min(TimeGenerated), LastSeen = max(TimeGenerated), Commands = make_set(ProcessCommandLine, 5) by DeviceName, AccountName, FileName, FolderPath | order by FirstSeen desc
Developer machines will produce hits from per-user Python and Node installs. A runtime in a random-looking folder, running every few minutes from a task that claims to be an Edge or OneDrive updater, is not a developer tool. Cross-check the task name against the real updater: Microsoft's own update tasks run Microsoft-signed binaries, not pythonw.exe.
What to alert on and what to hunt
Not all five belong in the alert queue. Put the high-precision ones in scheduled analytics and keep the rest as weekly hunts until you've tuned them against your own fleet.
| Detection | Run it as | Main tuning work |
|---|---|---|
2: Explorer-spawned LOLBins, mshta or msiexec with a URL | Alert, high severity | Very little; review any vendor installer that legitimately does this |
| 2: Explorer-spawned PowerShell or cmd with indicators | Alert, medium severity | Admin scripts run with -ExecutionPolicy Bypass |
| 3: Remote msiexec or mshta, any parent | Alert on new hosts, hunt weekly | Deployment agents and vendor update helpers |
| 4: Defender exclusions outside management tooling | Alert | Learning how your org deploys exclusions |
| 1: RunMRU content | Hunt, and enrichment during triage | Confirming your telemetry records it |
| 5: AppData runtimes on a schedule | Hunt weekly | Developer machines |
During triage of any Detection 2 alert, run Detection 1 for the same device and a five-minute window. If the RunMRU value matches the command line, you know the user pasted it, which settles the question of whether this was the user, a script or a remote session, and tells you to look for a browser visit just before it.
For Splunk and Sysmon
The same two core detections in SPL, using Sysmon process creation (EID 1) and registry value set (EID 13). Field names follow the Splunk Add-on for Sysmon.
index=sysmon EventCode=1 earliest=-14d ParentImage="*\\explorer.exe" (Image="*\\powershell.exe" OR Image="*\\pwsh.exe" OR Image="*\\mshta.exe" OR Image="*\\msiexec.exe" OR Image="*\\cmd.exe" OR Image="*\\curl.exe" OR Image="*\\rundll32.exe") (CommandLine="*http*" OR CommandLine="*DownloadString*" OR CommandLine="*iex*" OR CommandLine="*-enc*" OR CommandLine="*/qn*" OR CommandLine="*hidden*") | table _time host User Image CommandLine ParentCommandLine | sort - _time
index=sysmon EventCode=13 earliest=-30d TargetObject="*\\Explorer\\RunMRU\\*" NOT TargetObject="*\\MRUList" | eval cmd_len=len(Details) | where cmd_len > 120 OR match(Details, "(?i)(https?://|powershell|mshta|msiexec|curl|iex|downloadstring|-enc)") | table _time host TargetObject Details | sort - _time
The RunMRU search needs a Sysmon config that monitors that key; many public configs don't by default. Add a TargetObject rule for \Explorer\RunMRU\ under RegistryEvent includes.
Response when one fires
- Get the full command. RunMRU or the process command line gives you the URL. Pull what it served if you can do so safely; per-visitor command rotation means the URL may serve something different to you.
- Assume an infostealer until proven otherwise. Flare, citing other vendors' research, notes that infostealers are the dominant ClickFix payload. Isolate the device, then revoke the user's sessions and refresh tokens and reset passwords for anything saved in the browser. Do this before the forensic work, because stolen session cookies get used within hours.
- Check for persistence. New scheduled tasks, Run keys, new Defender exclusions, AppData folders with bundled runtimes, and RMM tools the user didn't install.
- Scope the campaign. Run Detection 3 with the host from the command line across the fleet, and check proxy or DNS logs for the landing page domain to find other visitors who didn't run the command, or ran it on a device without EDR.
Controls that remove the execution path
- Remove the Run dialog for standard users. The "Remove Run menu from Start Menu" Group Policy (User Configuration, Administrative Templates, Start Menu and Taskbar) also disables Win+R. Flare and RH-ISAC both recommend it. It doesn't stop FileFix, so pair it with the controls below.
- Block mshta.exe with AppLocker or WDAC for everyone who doesn't need it, which is almost everyone. Consider the same for
msiexec.exeinstalling from remote URLs if your deployment tooling doesn't depend on it. - PowerShell Constrained Language Mode through WDAC or AppLocker for standard users, which breaks most download-and-execute cradles.
- Attack surface reduction rules such as "Block execution of potentially obfuscated scripts", run in audit first to measure impact.
- Tamper protection on, and exclusions managed centrally, so Detection 4 has a clean baseline and local exclusion changes fail.
- Teach one rule. Flare puts it plainly: no legitimate website asks you to paste something into the Run dialog. That sentence is more useful in awareness training than a slide about CAPTCHAs.
ClickFix keeps working because it moves the execution step to the one component every security control trusts: the user at the keyboard. The page, the lure and the payload all change weekly, and per-visitor command rotation makes IOCs close to useless. The execution path changes much more slowly. Detect Explorer launching download cradles and remote installers, keep the Run dialog's history, watch for exclusions you didn't set, and take Win+R and mshta away from the people who never needed them.
Every issue includes a full detection rule for Sentinel, CrowdStrike or Splunk, with investigation steps, false positive guidance and MITRE mapping. Platforms rotate so you get broad coverage over time.
Join — $14.99/mo See a Sample Issue