TerminalFix: a pasted command that maps your Active Directory
Microsoft's TerminalFix campaign turns a fake Cloudflare CAPTCHA into DLL sideloading, AD reconnaissance, and a reverse tunnel into your network. Detections inside.
The ClickFix attacks we have written about before ended in a cryptominer or an infostealer — bad, but a smash-and-grab. TerminalFix is a different animal. Microsoft Threat Intelligence disclosed a campaign on August 28 that starts the same way, with a fake CAPTCHA and a pasted PowerShell command, and ends with an attacker holding a network-level proxy into your domain. Same lure, entirely different outcome. If your team's mental model of "paste a command from a website" is still "you might get a miner," update it.
What actually happened
Per Microsoft's write-up, compromised websites serve a fake Cloudflare Turnstile overlay — logo, "Verify you are human" checkbox, spinner — that puts a PowerShell command on the visitor's clipboard. The variant's one change from classic ClickFix is the target: it sends users to Windows Terminal or PowerShell rather than the Run dialog, because multi-line scripts execute far more reliably there.
The chain from there is not amateur work:
- A ZIP drops
LockScreenContentServer.exe— a legitimate signed Windows binary — alongside a maliciousdui70.dll, both extracted toC:\ProgramData\f47f2a8c21c9df4eand hidden withattrib +h +s. - The loader resolves the application directory before System32, so the planted DLL wins. Payloads live obfuscated in resource sections and decode in memory.
- Later stages arrive as PNG images. A PowerShell routine reads RGBA pixel values and reconstructs a binary, with the first 8 bytes carrying the payload length as a 64-bit integer.
- Persistence is redundant: a randomized HKCU Run key plus a scheduled task firing every 60 minutes.
- Then it looks around:
nltest /domain_trusts,net group "domain admins" /domain, ADSI user enumeration including description harvesting, and systematic pings against named domain controllers, database, backup, and mail servers. - Finally
client.pyruns underpythonw.exewith no window, tunneling TCP over a TLS WebSocket togitnow[.]devon port 443 with SOCKS5-style address parsing — meaning the C2 can reach any internal host and port the victim machine can see.
Why this matters for your business
One employee, one paste, and the attacker is inside your address space. Not on one laptop — inside. The recon list tells you exactly what they came for: who the domain admins are, which box is the file server, which one is the backup. The tunnel means everything after that runs over port 443 to a domain that looks like a developer tool.
Three things are worth doing this week:
Turn on Windows Terminal's multiline paste warning. Microsoft names it as a mitigation, and it interrupts precisely this attack at step one. It costs nothing.
Constrain PowerShell. AppLocker or Windows Defender Application Control plus script block logging is the difference between "we found it in the logs" and "we never knew." Add the ASR rule that blocks obfuscated scripts while you are in there.
Alert on the specifics. LockScreenContentServer.exe running from anywhere outside System32 is a high-signal, zero-noise detection. So is pythonw.exe opening a persistent outbound 443 connection on a machine where nobody writes Python.
The uncomfortable part: nothing here required a vulnerability. Every step was a legitimate binary, a normal Windows feature, or an ordinary outbound HTTPS connection.
Key takeaways
- TerminalFix routes victims to Windows Terminal or PowerShell instead of the Run dialog so multi-line scripts execute reliably
- The chain uses a signed binary plus a malicious
dui70.dllfor sideloading, and hides later payloads inside PNG pixel data - It enumerates domain trusts, domain admins, and AD users, then opens a SOCKS5-style reverse tunnel over TLS WebSocket on port 443
- Cheap defenses: Windows Terminal multiline paste warning, PowerShell script block logging plus AppLocker, and alerts on
LockScreenContentServer.exeoutside System32
Would you see a reverse tunnel leaving a workstation on port 443? Most small teams would not, because nobody ever configured the alert. We set up the endpoint baselines, logging, and least-privilege controls that make a pasted command fail instead of spread. Talk to us.
Sources: Microsoft Security Blog, The Hacker News.
- #clickfix
- #powershell
- #active-directory
- #endpoint-security
- #malware
Tommy Rush — Founder, Rush Commerce
Operator turned builder. 15+ years running operations — now shipping the systems businesses run on. More
Get The Rush Report weekly — one email, zero fluff.
Keep reading
Your pinned GPT-5 snapshot expires December 11
OpenAI removes gpt-5-2025-08-07, o3, and four other pinned snapshots on December 11, 2026. Pinning buys stability, not permanence — budget the re-validation.
Read itownCloud CVE-2023-49105 hits KEV: a 2023 bug still pays
CISA added a three-year-old ownCloud auth bypass to KEV after it was used to exfiltrate 372MB from a nuclear agency. Your file server is the soft target.
Read it