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.

Weekly Intelligence Pack · $14.99/mo
A new production detection rule every Tuesday — CrowdStrike, Sentinel, or Splunk
Real incident case study, hunt hypothesis, career tip. Direct Q&A support included.
Join — $14.99/mo →

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:

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

ArtifactTelemetryWhat it tells you
Run dialog history in the user's RunMRU registry keyEDR registry events, Sysmon EID 13The exact command the user pasted, if it went through Win+R
Process launched with explorer.exe as parentEDR process events, Sysmon EID 1, Security 4688Both Win+R and the Explorer address bar launch commands as children of Explorer
msiexec.exe or mshta.exe with an http(s) argumentProcess eventsRemote installer or HTA execution, rare in managed fleets
Defender exclusion addedRegistry and process eventsCommon pre-payload step; should only come from your management tooling
Scheduled task running a script interpreter from AppDataProcess events with the Task Scheduler service as parentPersistence 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:

Run dialog history
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.

Sentinel KQL — RunMRU entries that look like pasted ClickFix commands
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.

Sentinel KQL — Explorer-spawned LOLBins with network or obfuscation indicators (Win+R and 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.

Sentinel KQL — msiexec and mshta pulling content straight from the internet
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.

Sentinel KQL — Defender exclusions added by something other than your management agents
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.

Sentinel KQL — Bundled script runtimes in AppData launched by Task Scheduler
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.

DetectionRun it asMain tuning work
2: Explorer-spawned LOLBins, mshta or msiexec with a URLAlert, high severityVery little; review any vendor installer that legitimately does this
2: Explorer-spawned PowerShell or cmd with indicatorsAlert, medium severityAdmin scripts run with -ExecutionPolicy Bypass
3: Remote msiexec or mshta, any parentAlert on new hosts, hunt weeklyDeployment agents and vendor update helpers
4: Defender exclusions outside management toolingAlertLearning how your org deploys exclusions
1: RunMRU contentHunt, and enrichment during triageConfirming your telemetry records it
5: AppData runtimes on a scheduleHunt weeklyDeveloper 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.

Splunk SPL — Explorer-spawned LOLBins with URLs or download cradles (Sysmon EID 1)
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
Splunk SPL — Suspicious Run dialog history (Sysmon EID 13 on RunMRU)
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

  1. 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.
  2. 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.
  3. Check for persistence. New scheduled tasks, Run keys, new Defender exclusions, AppData folders with bundled runtimes, and RMM tools the user didn't install.
  4. 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

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.

Weekly Intelligence Pack
Production detections like these, every Tuesday

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
Founding member pricing locked for life · 30-day money back