Sitemap
Detect FYI

Threat Detection Engineering and DFIR Insights

Hunting ClickFix Win + X Variants

15 min readMay 8, 2026

--

Introduction

It has been just over a year since my post on ClickFix, where I explored the technique in depth. Since then, defenders have adopted countermeasures that detect ClickFix execution through the Windows Run prompt shortcut (Win + R), or have disabled that vector entirely through the Windows registry. This post focuses on variants that leverage the Windows Power User Menu (Win + X) and user-driven Terminal launches to paste and execute commands. Both techniques aim to avoid classical detections relying on RunMRU registry key artifacts created when using the Run prompt.

Windows Power User Menu and Terminal

The Windows Terminal is a modern host application for command-line shells such as PowerShell and Command Prompt and is installed by default on Windows 11 (version 22H2 and later). In recent ClickFix campaigns, threat actors have abused the Windows Power User Menu as an alternative to the Run prompt because it still yields command execution while avoiding registry artifacts generated by Run prompt lures. Unlike classical ClickFix attacks that rely on the Run prompt, Win + X execution introduces a slightly less seamless user experience, as it requires the user to navigate a shortcut‑based menu before launching Terminal. The added UI friction represents a trade‑off adversaries now appear willing to accept, given increased detection scrutiny around Run prompt usage. Since process execution artifacts vary depending on how the user launches Terminal, we will examine them in later sections.

Terminal Configuration and Power User Menu Lures

Before analyzing process execution artifacts associated with Win + X, we must first review the default Terminal configuration. The default profile shell determines what process will be executed when the Terminal option is selected via the Power User Menu:

Press enter or click to view image in full size
Windows 11 Power User Menu and Terminal settings

Depending on the default profile and configuration, the drop-down menu can include additional shells:

Press enter or click to view image in full size
Windows 11 default profile shells

Note: Although the default profile can be configured to point to different shells or executables, PowerShell is commonly the out-of-box default on Windows 11. Thus, Win + X lures often include commands for PowerShell or Command Prompt, as they are the most likely configurations.

With that context in mind, the ClickFix variants targeting Win + X become easier to understand. The following screenshots illustrate two recent samples observed in the wild at the time of writing:

ClickFix lures leveraging Win + X

The image on the left prompts the user to press the additional “I” key for the Terminal shortcut, while the image on the right instructs the user to use the mouse instead of a keyboard shortcut. These nuances in execution will be important when building analytics to detect the behavior in the next section.

Analyzing Terminal Execution Via Win + X

We will begin by analyzing Win + X execution on a Windows 11 endpoint. As shortcut keys can vary by configuration, a typical Win + X execution flow is as follows:

Win + X -> Terminal shortcut key -> Ctrl + V -> Enter

Accordingly, Win + X execution produces the following process tree, assuming PowerShell is configured as the default profile shell:

Press enter or click to view image in full size
Procmon output of Win + X execution
Press enter or click to view image in full size
ProcDOT output of Win+X execution

When using the Win + X shortcut, wt.exe spawns WindowsTerminal.exe, which subsequently spawns the default profile shell, powershell.exe. The key takeaway here is that WindowsTerminal.exe is the parent process of powershell.exe, whereas Run prompt variants have Explorer.exe as the parent process. Additionally, Explorer.exe spawning wt.exe is a strong indicator of Win + X usage if wt.exe launches without the profile (-p) command line parameter (more on this shortly).

Analyzing Direct Terminal Execution

In this section we will analyze two direct terminal execution paths that do not rely on Win + X and instead prompt the user to open Terminal or Powershell/Command Prompt directly to paste and run a malicious command.

Direct Terminal Execution

If Windows Terminal is directly opened via a shortcut, taskbar search box, or taskbar icon, the following process tree is generated:

Press enter or click to view image in full size
Procmon output of direct terminal execution
Press enter or click to view image in full size
ProcDOT output of direct terminal execution

In this instance, WindowsTerminal.exe spawns the default profile shell, powershell.exe, with Explorer.exe serving as the grandparent process. Moreover, wt.exe is not spawned like in our previous Win + X example. Be aware that in some enterprise configurations (shell launch policies/taskbar behavior), svchost.exe will spawn WindowsTerminal.exe followed by the default profile shell when launched directly by the user.

An additional nuance of direct terminal execution is that wt.exe appears in the process tree when the user launches a specific shell profile, either by selecting a profile from the taskbar search box results or by right‑clicking the Terminal from the taskbar and choosing a shell from the context menu:

Windows taskbar search box results and taskbar options for Terminal

Once the user selects any shell, including the default profile, wt.exe is spawned from explorer.exe, but it appends the profile GUID to the command line:

Press enter or click to view image in full size
Procmon output of direct terminal execution via Windows taskbar search box results or taskbar context menu
Press enter or click to view image in full size
ProcDOT output of direct terminal execution via Windows taskbar search box results or taskbar context menu

The presence of the -p parameter and the profile GUID in the command line can further help identify which terminal profile the user chose and how the terminal was invoked.

Direct Shell Execution

Conversely, if PowerShell is opened directly (instead of spawned as the default profile shell through Terminal) via a shortcut, taskbar search box, or taskbar icon, the following process tree is produced:

Press enter or click to view image in full size
Procmon output of direct PowerShell/Command Prompt execution
Press enter or click to view image in full size
ProcDOT output of direct PowerShell/Command Prompt execution

In this scenario, Explorer.exe does spawn the shell process directly, similar to Run prompt variants. Yet, this results in svchost.exe also spawning an instance of WindowsTerminal.exe. When compared to Win + X and direct Terminal execution, this type of execution is the only path that results in Explorer.exe directly spawning the shell process. Later in this post we will discuss detection methodology, but for now, you should have a better understanding of how to distinguish between Win + X execution vs more direct user-driven terminal execution based on observed process trees and command lines.

Process Tree Fragmentation via Wt.exe

Wt.exe is a documented LOLBin and can proxy process execution. Previously, the wt.exe attack surface was limited in Windows 10 since Terminal was not yet the default command line experience. Now that it is installed by default on later versions of Windows 11, wt.exe usage can be newly practical for adversaries. For instance, by prefixing commands with wt (or wt.exe), an adversary can take a single ClickFix one‑liner and spread execution into multiple Windows Terminal–hosted PowerShell instances, each responsible for a different stage (one process only downloading and writing a payload, another only executing it, etc.). Despite not having come across this technique in the wild, this action effectively splits commands and artifacts across separate powershell.exe parents under WindowsTerminal.exe, rather than concentrating all network, file, and execution activity in a single process, which can bypass simplistic, or static parent–child detections.

Get Manuel Arrieta’s stories in your inbox

Join Medium for free to get updates from this writer.

To better visualize how wt.exe can be used to fragment process trees, we will use a simple scenario with a PowerShell one-liner assuming a Win + X infection chain. After the user reaches Windows Terminal, they would paste and run a command that downloads a remote payload from our lab server, adds generic persistence via run key, and then executes the payload. The test command and resulting process tree are illustrated below:

Press enter or click to view image in full size
ProcDot output of Win+X execution using wt to fragment the process tree via multiple PowerShell processes

Zooming in on the WindowsTerminal.exe process, the figure shows three separate child PowerShell processes (not including the original default profile shell): PID 12956 generates the HTTP request and downloads the payload, PID 1740 adds the download payload to a run key, and PID 12052 executes the payload:

Press enter or click to view image in full size
ProcDot output of WindowsTerminal.exe spawning three additional PowerShell processes to execute commands

A key distinction here is that this avoids the more obvious start-process cmdlet or cmd.exe start pattern, where PowerShell or Command Prompt nest shell execution in a way that is already suspicious to many detection rules. Although WindowsTerminal.exe still serves as the parent process for the activity, this approach increases the complexity of the process tree and can slow analysis efforts when compared to the equivalent non-wt fragmentation one-liner shown below:

Press enter or click to view image in full size
ProcDot output of the same PowerShell one-liner without wt prefixed commands

Note: From a process analysis perspective, wt.exe is the launcher for Windows Terminal. It acts as a shim, while WindowsTerminal.exe is the process that hosts the Terminal session and user interface.

Terminal Customization for Social Engineering

Once again, with Terminal now commonly present on Windows 11 systems, its customization layer is worth discussing as part of social engineering tradecraft. Recall that Run prompt variants can easily hide the command behind text padding, icons, or symbols, whereas Win+X execution exposes the full command in the Terminal window, at least briefly, before the user executes it:

Press enter or click to view image in full size
Run Prompt vs Win +X command visibility

The forced visibility creates an opportunity for attacker-controlled customization. A plausible next step in Clickfix Win + X tradecraft is to make the lure appear more trustworthy and polished by using built-in Terminal or shell customization features. Otherwise, when the command is already visible, the attacker often has to rely on the user not noticing the suspicious content and pressing Enter quickly. In the next section we will analyze a real-world example.

Terminal Customization in the Wild

A recent Clickfix sample obtained from ClickFix Hunter demonstrates how even a simplistic Terminal or shell customization can be used to make a lure appear more legitimate. The lure begins with a Cloudflare-themed prompt that copies a malicious PowerShell command to the clipboard. When the user runs the command, the Terminal presents themed output that reinforces the appearance of a legitimate workflow while the payload is retrieved and executed in the background:

Press enter or click to view image in full size
PowerShell command within Terminal. Note, the command was altered to output the malicious domain
A closer look at the additional customization added to the command upon execution

Notice the entire command still remains visible in the console, which should raise user suspicion. By making use of the customization options available through Terminal and default profile shell, we can elevate the overall presentation of the lure. Consider some of the following customization crafted into a Clickfix command:

  • Host.UI.RawUI.WindowTitle — Changes the name of the console tab when the user presses enter.
  • Clear-Host — Appended to the end of the command to clear it from view when the user presses enter.
  • ANSI Color Schemes and Icons— Improve the visuals of the lure to make it seem more legitimate.

The following is an upgraded lure using aforementioned customization options which immediately transform the Terminal when the user presses Enter:

Press enter or click to view image in full size
Upgraded lure using basic customization

There is considerable room for further customization here, but this example is enough to show how Win+X lures that rely on Terminal can be shaped to look more credible rather than merely functional. From a detection engineering standpoint, keywords that alter the Terminal’s appearance in some manner could be worth incorporating into analytics.

Note: Terminal has a default setting to protect against large paste attacks by presenting warnings if the user attempts to paste multi-line content. This is easily bypassed if the command is a single line and has no line breaks.

MDE Analytics

This section covers KQL analytics for detecting the behavior discussed thus far, including Win + X execution, direct Terminal execution, and evasive variants that nest command execution deeper into the process tree or fragment the process tree. The analytics presented provide a practical starting point, but, as always, they should be tuned to your specific environment’s baseline and operational constraints. Finally, in the concluding section, you will find additional filtering logic derived from our analysis of over 2,700 ClickFix command lines, which can be used to increase detection fidelity and reduce false positives.

Suspicious Win + X Execution

Suspicious Win+X execution is best modeled as an Explorer-originated wt.exe launch, followed by WindowsTerminal.exe, and the default profile shell with an added network connection to raise fidelity:

Press enter or click to view image in full size

This detection assumes the default profile shell generates the network connection. Please note this can be circumvented by nesting execution, such as PowerShell spawning another instance of PowerShell which generates the network connection. For these specific use cases, we will discuss a catch-all analytic shortly. For now, the following analytic can be used to detect common Win + X execution use cases:

Suspicious Direct Terminal Execution

This analytic detects Explorer.exe spawning WindowsTerminal.exe followed by a default profile shell with network activity:

Press enter or click to view image in full size

Collectively, this indicates Terminal was launched directly from a shortcut, taskbar search box, or taskbar icon. The analytic targets ClickFix‑style variants where the user is prompted to open Terminal through these UI paths rather than Win + X execution:

Suspicious Wt Process Fragmentation

This analytic detects instances where the default profile shell launches wt.exe, which then spawns WindowsTerminal.exe. Generally, the process tree is only produced when wt is called from the existing default profile shell process:

It is designed to catch fragmented wt-based execution patterns that may indicate ClickFix-style abuse or other suspicious orchestration involving multiple commands, tabs, or panes within Terminal:

Suspicious Windows Terminal Nested Shell Execution

This analytic identifies Terminal-launched nested shell execution in the following form:

Given that a command can be nested and generate a network connection a few child processes down the tree, this analytic will simply identify nested shell execution, which should typically be rare. It will enrich the command if a network connection occurred within either shell, but will not depend on the connection being within those two processes for a more robust analytic:

Additional Analytic Filters

In the previous analytics, I commented lines where additional filters can be applied to command-line parameters. Rather than provide generic keyword filters, I created a Jupyter Notebook that analyzed 2,718 ClickFix command lines sourced from ClickFix Hunter and extracted the most common tokens in the dataset. To improve fidelity and reduce false positives, you can also apply some of the additional keywords listed here. Below is sample output of the top 15 most common tokens in the dataset:

Top 15 most common command line tokens

Note: The dataset contained many similar commands clustered around specific dates, so it includes some near-duplicate records. Even so, it should still provide a useful overview of the command-line patterns being leveraged in the wild.

Summary

In conclusion, this post examined how ClickFix variants abuse the Windows Power User Menu (Win + X) and user‑driven terminal execution as an alternative to Run‑prompt lures, to avoid common registry‑based artifacts. We analyzed the differences in process trees and command‑line patterns depending on how Terminal is launched and demonstrated how those execution paths can be used to distinguish Win + X behavior from more direct, user‑driven invocation. To hunt and detect these behaviors, we presented analytics that span Win + X execution to more complex, fragmentation and nested execution techniques.

References

https://learn.microsoft.com/en-us/windows/terminal/

--

--

Manuel Arrieta
Manuel Arrieta

Written by Manuel Arrieta

Threat Hunter @ Maveris | M.S. Cyber Security | GREM | GFCA | GPEN | GCIH | GCFE | GNFA | GX-IH | GCTI

Detect FYI
Detect FYI

Published in Detect FYI

Threat Detection Engineering and DFIR Insights