Hunting TerminalFix when there's nothing to patch
Hunting TerminalFix when there's nothing to patch
Validated against Threat Response 4.23.344.0000; Tanium Core Content 1.16.221.0000
There is no CVE for TerminalFix. No patch Tuesday entry, no version number to move to. The campaign Microsoft Threat Intelligence described on 28 August 2026 is social engineering that ends in a command-and-control (C2) tunnel, and every step runs on behavior the victim performs themselves (Microsoft Security Blog, "TerminalFix campaign deploys a reverse tunnel through multistage intrusion"). When there is nothing to patch, hunting is the only lever left, and it only works if the hunt is built on behavior rather than on this week's indicators.
This post walks four behavioral hunts, in Tanium question syntax, that catch four stages of the chain without naming a single file, hash, or domain from it.
Key takeaways
-
TerminalFix routes the victim into Windows Terminal or PowerShell instead of the Win+R Run dialog, so it never writes the
RunMRUregistry value that a large amount of existing ClickFix detection content keys on. -
Two of the four hunts return heavy benign noise on a normal Windows fleet. Neither is usable until you have baselined your own environment, and the stack-then-exclude loop below is how you do that in two questions.
-
A zero result is only meaningful once you have proved the recorder is collecting that event type. The control question below does exactly that, and you should run one behind every empty hunt.
-
Legitimate software registers scheduled tasks from an XML definition file almost every time. An inline
/trargument pointing at a script interpreter is the more interesting signal. -
Persistence written twice under one name, once as a Run key and once as a scheduled task, is a stronger signal than either artifact alone.
What TerminalFix does differently
Classic ClickFix ran through the Windows Run dialog, which leaves a specific artifact: an entry under the RunMRU registry key. A great deal of detection content got built on that one artifact.
The technique then moved twice. In February 2026, Microsoft Threat Intelligence described a variant that routes the initial command through nslookup against a hard-coded external DNS server and parses the returned Name: field as the second stage, which pushes the indicator out of the registry and into DNS traffic. That one was posted as a thread on X rather than published as a blog post, so treat it as a single-source claim (@MsftSecIntel, February 2026).
TerminalFix goes further and drops the Run dialog entirely, sending the victim into Windows Terminal or PowerShell. RunMRU never gets written. Two detection generations, beaten by two design choices, in roughly eighteen months.
The technique is not fringe. Red Canary's 2026 Threat Detection Report put Malicious Copy and Paste (T1204.004) in its top 10 most-detected techniques for the first time, at number eight (Red Canary 2026 Threat Detection Report, techniques). Red Canary's intelligence team also found that "six out of those 10 threats were directly linked to the hottest trend in initial access, 'paste and run'" (Red Canary, "Scarlet Goldfinch's year in ClickFix").
One note on the ordinal, because it is inconsistent at the source. Red Canary's own blog summarising the report says T1204.004 ranked ninth; the report's technique index lists it eighth. The report is the stronger authority, so this post says eighth.
The chain Microsoft observed
TerminalFix intrusion chain and the hunt that catches each stage
Compromised site shows a fake CAPTCHA
Victim pastes a command into Windows Terminal
ZIP unpacks into a hidden ProgramData subfolder
Batch file launches a signed Microsoft binary
Signed binary sideloads an unsigned DLL beside it
PowerShell decodes payload from three PNG images
Run key and scheduled task written under one name
Windowless Python process opens a WebSocket tunnel
No endpoint telemetry, this happens in the browser
Shell parents a shell that touches a staging path
Hidden and system attributes set on the folder
Execution from a directory that should not run code
Unsigned image load out of a staging directory
Length in the first 8 bytes, data across RGBA channels
Removing one does not stop the other
Certificate verification disabled, rotating User-Agent
Hunt 3
Hunt 2
Hunt 2
Hunt 1
no hunt
Hunt 4
no hunt
Chain as described by Microsoft Threat Intelligence, 28 August 2026. Hunt numbering is this post's.
TerminalFix intrusion chain and the hunt that catches each stage. Source: Microsoft Security Blog, 28 August 2026.
Microsoft published Defender KQL queries for parts of this, matching dui70.dll loaded by LockScreenContentServer.exe, and client.py on the command line of python.exe or pythonw.exe. Those queries are exact and correct, and they expire the day the next campaign renames the DLL or registers a new domain. The four hunts below go after the behavior underneath the names.
Two stages get no hunt here. The PNG steganography stage leaves little that generalizes: the decode happens in memory, and a hunt for it collapses into either the file hashes or the specific PowerShell that pulls the images, both of which expire on rename. The WebSocket tunnel is a better hunt in principle, but the endpoint telemetry that would catch it cleanly, HTTP header capture, is off by default, expensive to enable, and carries data-handling questions that deserve their own discussion rather than a paragraph here. Network egress monitoring is the more practical place to catch that stage for most teams.
ATTandCK mapping
Mapped against ATT&CK Enterprise v19.2.
|
Stage |
Technique |
Hunt |
|
|
Victim pastes a command |
T1204.004 User Execution: Malicious Copy and Paste |
3 |
|
|
Signed binary loads unsigned DLL |
T1574.001 Hijack Execution Flow: DLL |
1 |
|
|
Payload hidden in PNG images |
T1027.003 Obfuscated Files or Information: Steganography |
none |
|
|
Run key persistence |
T1547.001 Boot or Logon Autostart Execution: Registry Run Keys / Startup Folder |
4 |
|
|
Scheduled task persistence |
T1053.005 Scheduled Task/Job: Scheduled Task |
4 |
|
|
WebSocket reverse tunnel |
T1572 Protocol Tunneling |
none |
If you are copying an ATT&CK mapping out of Microsoft's post, check the DLL row. Microsoft's mapping table cites T1574.002 "DLL Side-Loading", which no longer exists: ATT&CK merged Search Order Hijacking and Side-Loading into T1574.001 "DLL" in May 2026, and Microsoft's own prose cites the current ID while the table does not. The tactic changed too, with TA0005 renamed from Defense Evasion to Stealth in v19.
Baseline before you hunt
Two of the four hunts below are noisy by design. They look for a shape, and plenty of legitimate software has that shape. Published exclusion lists are close to useless here, because what counts as normal depends on which endpoint security product you run, which management agents are deployed, and which installers have run recently. Your baseline is not mine.
Build it yourself, in two questions:
-
Run the hunt stacked first. Set
MakeStackableto"1"and leave the filters as written. Stacking strips endpoint name, username, and timestamps and returns one row per distinct value with a count, which is a prevalence view rather than an investigation. -
Read the top of that list as your environment, not as findings. A path present on a large share of your fleet is infrastructure. That is true whether it looks suspicious or not, and it is the opposite of the instinct that a scary-looking path high on a list is the answer.
-
Promote the high-prevalence paths to an exclusion. Add them to the filter as a negative, or keep them in a documented allow list you apply when reading results. Write down why each one is there, because the next person to inherit the hunt will not know.
-
Re-run unstacked, with
MakeStackableback to"0", and read the remainder per endpoint with timestamps.
For these two hunts specifically, the categories that will fill your stack are endpoint security tooling, operating system update mechanisms, and installer bootstrappers. All three legitimately write to and execute from staging directories. Expect them, confirm them against the vendor rather than assuming, and exclude them.
Then re-baseline on a schedule. A new agent rollout, an antivirus migration, or a Windows feature update will each introduce a fresh set of high-prevalence paths, and a stale exclusion list quietly turns into a blind spot.
The prevalence read also inverts how you rank results. On a signature hunt the biggest number is the story. On these two, the biggest number is the baseline and the branches with a count of one are the story.
Hunt 1: a signed binary loading an unsigned DLL from a staging directory
What it answers. Which Windows endpoints loaded an unsigned dynamic-link library (DLL) out of a directory that should not contain one?
Microsoft observed dui70.dll, unsigned, sitting next to Microsoft-signed LockScreenContentServer.exe in C:\ProgramData\f47f2a8c21c9df4e. Their query keys on that exact pair. This one keys on the shape, so it also catches the next campaign that sideloads a different signed binary out of a different folder.
Get "Computer Name" and "Trace Image Loads"["1 week","","1","0","100","0","","(?i)\\(ProgramData|Temp|AppData\\Local\\Temp|Downloads)\\.*\.dll","","No",""] from all machines with "Is Windows" equals "True"
The filter sits in ImagePath at position 8, and IsSigned is "No" at position 10. The (?i) prefix matters: regex matching on these sensors is case-sensitive and the expression has to match the whole field, which is why the pattern opens with a directory anchor and closes with \.dll.
Three conventions in that question look like noise and are not. They are worth learning once, because all three fail silently.
-
Every bracket parameter is quoted, dropdowns included.
"1 week"and"No"are dropdown values and they carry quotes like everything else. -
Checkbox parameters are
"0"or"1", never empty and nevertrue. An empty checkbox is not a shrug, it is a parse failure inside the sensor. Passing""forOutputYesOrNoFlagreturnsTaniumTrace: error: argument -o/--only_yes_or_no: invalid parse_bool_arg value: ''as ordinary result rows. Read only the row count and it looks like a hunt that found nothing. -
A backslash pair in the question is one literal backslash to the regex. Values reach the sensor's regular-expression engine verbatim, so
\\ProgramData\\matches\ProgramData\. Doubling that to four backslashes means two literal backslashes, matches no real path, raises no error, and reports a clean fleet.
Expect to tune this before it is useful. Unsigned image loads out of staging directories are not rare on a healthy Windows fleet, and a handful of paths will account for nearly all of the volume. Run the stacked pass from the section above before you read a single result unstacked.
One redundancy in the pattern, left in because it is what was verified: \\Temp\\ already subsumes \\AppData\\Local\\Temp\\, so that third alternative does no work. Drop it if you want a tighter expression.
Hunt 2: execution out of a directory that should not run anything
What it answers. Which Windows endpoints executed a binary from a path under ProgramData?
Microsoft observed 1.bat and LockScreenContentServer.exe running from a hex-named, hidden-and-system-flagged ProgramData subfolder. Dropping the filenames leaves the pattern.
Get "Trace Executed Processes"["1 week","","1","0","100","0","(?i)\\programdata\\.*\.exe$","","","","",""] from all machines with "Is Windows" equals "True"
It is tempting to describe this hunt as near-empty on a healthy fleet. It is not, and the difference matters, because a hunt you expect to be silent is a hunt you will misread the first time it speaks.
ProgramData is a normal working directory for software that has to run before or independently of a user session, which in practice means endpoint security agents and installers. Expect a small number of paths to carry almost all of the volume, and expect the heaviest of them to be your own security tooling. Stack it, identify them, exclude them by path, and read the remainder. The useful signal is a binary in ProgramData that belongs to no product you deployed.
Two reading notes. MaxResultsPerHost is capped at 100, and on a busy endpoint this question will hit that ceiling and return a truncation warning row alongside the results, so read the warning rows: a truncated result is not a complete one. And check Parent Process Path alongside Process Path. A service binary parented by services.exe is doing its job; the same binary parented by a shell is not.
Hunt 3: a shell spawning another shell that touches a staging directory
What it answers. What did shells and terminal hosts spawn, as process trees?
The pasted command runs inside the victim's terminal session, which spawns cmd.exe, which runs the batch file out of ProgramData. Microsoft's confirmed indicator is that powershell.exe to cmd.exe handoff plus a ProgramData reference on the command line. The classic Run dialog generation produces the same shape one level up, with explorer.exe parenting a scripting engine no user launched by hand. Both are ancestry anomalies, and you catch them by building the tree rather than matching a filename.
Get "Trace Executed Process Trees"["(explorer|powershell|wt|WindowsTerminal)\.exe","1","0","0","As Parent","10000",""] from all machines with "Is Windows" equals "True"
This sensor does not share the parameter layout the other four use. Its seven parameters are their own thing, and two of them are traps.
|
Position |
Parameter |
Value used here |
Note |
|
1 |
ProcessName |
|
Tree root. Required, and first rather than the usual TimeRange |
|
2 |
TreatInputAsRegEx |
|
Needed for the alternation |
|
3 |
UseFullPaths |
|
Must be |
|
4 |
OutputYesOrNoFlag |
|
Full tree |
|
5 |
ProcessContext |
|
The only other value is |
|
6 |
QueryTruncation |
|
Maximum events to search |
|
7 |
TimeRange |
|
An absolute epoch-millisecond range, not the dropdown. |
Position 7 is the one that catches people. On every other sensor in this post, TimeRange is position 1 and takes "1 week". Here it is last and takes a pipe-separated pair of epoch milliseconds. Leaving it empty searches back as far as the event ceiling in position 6 allows.
Read this one as a stack, and apply the same inverted ranking. On any administered fleet the top of the list is console-host pairs and management-agent children of PowerShell, none of it interesting. The branches worth reading are the ones with a count of one, especially a branch that reaches a scripting engine or a batch file two or three levels below a terminal host.
Hunt 4: persistence written twice under one name
What it answers. Which endpoints wrote a CurrentVersion\Run value, and which created a scheduled task through schtasks.exe?
Microsoft observed both the Run key value and the scheduled task using the identical string LockScreenContentServer_MuODG5yBM, with the task firing every 60 minutes, so removing one does not stop the other. You do not need that string. A Run key write and a scheduled task creation on the same endpoint inside a tight window is already a stronger signal than either alone, because legitimate software rarely sets belt-and-braces persistence.
This is two questions, not one. No sensor here correlates a registry write with a scheduled task creation by timestamp proximity, so you run them as a pair and join on endpoint and time yourself.
Get "Trace Registry Keys or Values"["1 week","","1","0","100","0","(?i).*\\CurrentVersion\\Run.*","","SetValue","","",""] from all machines with "Is Windows" equals "True"
KeyPath is position 7 and Operation is position 9. Note the quoted sensor name: or is a reserved word, so on this one sensor the quotes are mandatory rather than stylistic. Operation is free text rather than a dropdown, and accepts Create, SetValue, Delete, Rename, or PermissionsChanged.
Get "Computer Name" and "Trace Executed Processes"["1 week","","1","0","100","0","","","(?i)schtasks\.exe.*/create","","",""] from all machines with "Is Windows" equals "True"
The regex goes in CommandLine at position 9, not ProcessPath at position 7. Filtering on the process path returns every schtasks.exe invocation including queries and deletions. Only the command line distinguishes creation.
That half also has a real gap: PowerShell's Register-ScheduledTask writes the same task without ever spawning schtasks.exe. Add a second command-line pass for it if your fleet records PowerShell arguments.
Tighten this further by looking at how the task is registered rather than that it was. Vendor installers and updaters overwhelmingly use the /XML flavor, registering the task from a definition file on disk. An inline /tr argument pointing at a script interpreter or a user-writable path is the shape worth alerting on, and it is a far narrower filter than /create. That distinction is what turns this half of the hunt from a list of every software install into a short list.
Prove the zero before you trust it
Hunt 4 will often return nothing, and nothing is a perfectly good answer. It is only a finding once you have ruled out the alternative, which is that the recorder was never collecting that event type in the first place. A disabled collector and a clean fleet produce identical output.
One broad control question settles it:
Get "Trace Registry Keys or Values"["1 week","","1","0","100","1","(?i).*","","","","",""] from all machines with "Is Windows" equals "True"
If that comes back with a healthy spread of registry operations, collection is working and your empty Run key result is real. If it comes back empty too, you have a visibility gap rather than a clean fleet. Run the same pattern behind any hunt that returns nothing: strip the filters, keep the sensor, and check that the event type exists at all.
MakeStackable is "1" here, which is the opposite of the hunting questions above. That is deliberate. Stacking strips endpoint name, username, and timestamps and gives you a prevalence view, which is exactly what a collection check wants: you are asking whether this event type exists at all, not where. On the hunting questions it is "0", because there per-endpoint rows with timestamps are the entire point. Left at its default of "1", a hunting question returns one aggregated row per endpoint with no timestamp, which reads as a thin clean result rather than a stripped one.
The other default worth overriding is MaxResultsPerHost, which is 1. Every question in this post sets it to 100, the maximum.
Two more things to read rather than skip.
Check the coverage figure your console reports for reporting endpoints against your in-scope total, because a question answered by half the fleet is not a fleet answer and the number moves between runs.
And check each sensor's cache age. Three of the four sensors here cache for 900 seconds and Trace Executed Process Trees caches for 600, which means a cached read can predate the event you are hunting by up to fifteen minutes. That matters more than it sounds during an active investigation: the question that comes back clean may simply be answering from before the thing you are chasing happened.
What generalizes
None of these four hunts needs the name TerminalFix, the domain from the report, or the hash of the sideloaded DLL. They need you to know what a signed binary normally loads, what a staging directory normally does, what a shell normally spawns, and how persistence normally gets written. Then you flag the exception.
That is the difference between detection content that expires when the next variant renames a file and hunting logic that does not.
It also is not specific to this campaign. Mandiant's M-Trends 2026 reports that "in 2022, the median time between an initial access event and the hand-off to a secondary threat group was more than 8 hours. In 2025, that window collapsed to just 22 seconds" (Google Cloud Threat Intelligence, "M-Trends 2026", 23 March 2026). Mandiant attributes the collapse to access brokers pre-staging the second group's malware or tunnels during the initial infection. The interactive, hands-on-keyboard phase that a lot of detection content is built to catch increasingly does not happen on the compromised host at all.
TerminalFix arrives at the same place from a different direction. Microsoft observed no hands-on-keyboard activity in the cases it analyzed, there is no CVE, and two prior ClickFix detection generations were already beaten before anyone typed a command by hand. Asking what is normal and flagging the exception is what is left.
Working with the HuntIQ team
The four hunts above are the shape of the work Tanium's HuntIQ team does. HuntIQ is Tanium's threat hunting practice, and the work runs in two directions at once. Our hunters go hands-on-keyboard in your environment: running hunt campaigns against your live telemetry, triaging what surfaces, pivoting from one endpoint to the whole estate, and escalating with the evidence already attached. Alongside that we build the durable content behind it, the Signals, hunt packages, and recurring hunts your own analysts can run without us, and we sit with your team while they author and test their own.
Further reading
-
Tanium Threat Response documentation for recorder profile configuration and which event types each profile collects
-
Tanium Interact documentation for question syntax and the question builder
-
MITRE ATT&CK T1204.004 for the technique page and its detection notes
About the author
Ryan Creecy is a Senior Threat Hunter at Tanium, where he builds detection content and runs hunt engagements across customer environments. He develops the HuntIQ tooling the hunting team uses to track engagement state and detection coverage.