Security

TerminalFix: The ClickFix Attack That Uses Windows Terminal

OrasecAugust 31, 20263 min read

Written by the OraSec security research team — offensive security engineers and penetration testers.

clickfix-attack-terminalfix

<span style="white-space: pre-wrap;">A ClickFix attack asks the visitor to prove they are human by pasting a command, and the first foothold arrives from their own terminal.</span>

The victim is not tricked into opening an attachment. They are asked to prove they are human, and they do it by pasting a command into their own terminal.

Microsoft documented the campaign, which it calls TerminalFix, on 28 August 2026.

What Is a ClickFix Attack?

ClickFix is social engineering that persuades the user to run the command themselves. A web page shows a fake error or verification prompt, then supplies instructions: copy this text, open this box, paste, press Enter.

The initial lure does not require a malicious attachment. The user launches the first command themselves, after which it downloads additional payloads that endpoint and network controls may still detect or block.

TerminalFix is a ClickFix variant that directs victims to paste the malicious command into Windows Terminal or PowerShell instead of the traditional Windows Run dialog. Microsoft says this improves the reliability of complex, multi-line scripts. (Microsoft)

How Does the Attack Work?

Microsoft describes a multi-stage chain:

  1. A compromised website displays a fake Cloudflare Turnstile verification overlay
  2. The overlay instructs the visitor to paste a "verification" command into Windows Terminal or PowerShell
  3. The command downloads a ZIP archive, extracts it under C:\ProgramData\, and launches a batch file that executes LockScreenContentServer.exe. Microsoft's observed sample used C:\ProgramData\f47f2a8c21c9df4e. (Microsoft)
  4. A legitimate signed Windows binary, LockScreenContentServer.exe, loads a malicious co-located dui70.dll through DLL side-loading. (Microsoft)
  5. The malicious DLL launches PowerShell that downloads three PNG images containing executable data hidden in RGBA pixel values, then reconstructs the payloads on disk. (Microsoft)
  6. Persistence is established through Registry Run keys and scheduled tasks
  7. Reconnaissance collects system metadata, domain trusts, domain admins, and network topology
  8. A custom Python implant establishes an outbound TLS WebSocket tunnel over port 443 and provides SOCKS5-style proxy capability to internal hosts reachable from the compromised device. (Microsoft)

Why Does It Matter?

Earlier ClickFix campaigns pointed users at the Run dialog and usually delivered one infostealer. This one does not stop there.

Microsoft's assessment is that the intrusion is particularly dangerous because the reverse tunnel gives attackers direct access to the internal network. The observed chain goes beyond simple credential theft by turning the compromised workstation into a network pivot. Microsoft did not observe the later lateral movement, data theft, or ransomware actions that this access could enable. (Microsoft)

The chain is also built to look ordinary at every step. The observed tunnel connected outbound over TLS on port 443 and upgraded to WebSocket, allowing the traffic to resemble an encrypted web session. (Microsoft)

The reconnaissance code included English, Spanish, and German locale handling, suggesting the operators designed it to work across systems configured in several languages. (Microsoft)

Common Mistakes

  • Treating ClickFix as an email problem. There is no attachment and no sender. The lure arrives through ordinary browsing.
  • Trusting signed binaries. Sideloading works precisely because the executable is legitimate and the malicious code sits in the DLL beside it.
  • Allowing unrestricted scripting where it is not required. Microsoft recommends using AppLocker, Application Control, or Group Policy to restrict PowerShell execution for standard users where practical. (Microsoft)

How to Reduce the Risk

Microsoft's recommendations:

  • Configure Windows Terminal to warn users before multi-line paste
  • Alert on LockScreenContentServer.exe executing from non-standard paths
  • Enable applicable attack surface reduction rules, including the rule that blocks potentially obfuscated scripts, where testing shows they will not disrupt legitimate workflows. (Microsoft)
  • Teach users that legitimate browser verification should not require them to open Terminal, PowerShell, or the Run dialog and paste a command
  • Treat affected hosts as potential network pivot points. Microsoft recommends investigating for lateral movement and credential exposure and prioritising rotation of credentials accessible from the compromised device. (Microsoft)

If the tunnel ran, reimaging the endpoint does not answer what the attacker reached while it was open.

What Should Security Testing Cover?

Ask your testers to establish:

  • Whether a standard user can run arbitrary PowerShell or a downloaded script
  • Whether DLL sideloading from a signed binary raises an alert
  • Whether domain trust and admin enumeration is detected
  • Whether an outbound tunnel over 443 is noticed, and how quickly

How OraSec Can Help

We run social engineering simulations and red team engagements that follow this chain from the lure to the outbound tunnel, and measure what your detection sees. The finding that matters is rarely whether someone pasted the command. It is what happened afterwards.

Conclusion

TerminalFix does not defeat a security control. It asks the user to step around them, in a context where that feels routine.

Assume someone will eventually paste the command. The question worth answering is whether anything after that moment gets noticed.

FAQs

Does antivirus stop it? Not on its own. The user runs the command, a signed binary loads the payload, and later stages arrive inside image files.

How do we know if we were affected? Look for LockScreenContentServer.exe outside its normal location, unexpected Run keys or scheduled tasks, and outbound WebSocket connections to unfamiliar domains.

Is user training enough? It helps, but treat it as one layer. Restricting PowerShell and detecting outbound tunnels do not depend on anyone spotting the lure.

Explore related services

Need hands-on help? Our security testing services put this research into practice.

CI/CD Security Best Practices: A Checklist for Your Pipeline

CI/CD Security Best Practices: A Checklist for Your Pipeline

CI/CD security best practices protect the system that builds and ships your code. Your pipeline holds cloud keys, signing certificates, and write access to production, which makes it one of the most valuable targets an attacker can reach. One leaked token or poisoned dependency can push malicious code to every customer. This checklist covers 12 controls to put in place, the real breaches behind them, and how to test whether they hold. What is CI/CD security? The controls that protect your bui

·7 min read
Broken Access Control: 6 Real Examples Found in Pentests

Broken Access Control: 6 Real Examples Found in Pentests

Broken access control happens when an app lets a user do something they shouldn't, like read another customer's invoice or open an admin page. It is the top risk in the OWASP Top 10:2025, and it shows up in almost every web app pentest. Scanners rarely catch it because the requests look normal. Below are 6 real examples testers find again and again, how each one gets found, and how to fix it. What is broken access control? A flaw that lets users act outside their permissions, such as viewing

·7 min read
10 Penetration Testing Myths That Leave Businesses Exposed
Penetration Testing

10 Penetration Testing Myths That Leave Businesses Exposed

Penetration testing myths cost companies real money. Some teams skip testing because they fear downtime. Others think a clean scan or a compliance checkbox means they are safe. Neither is true. A penetration test is a controlled, authorized attack run by a human expert to show how a real attacker could get in. Below are the 10 most common myths, what actually happens during a test, and what a good one should deliver. Is AI taking over pentesting? No. AI speeds up recon and scanning, but human

·7 min read