TerminalFix Campaign Exploits PowerShell to Deploy Network Reverse Tunnels

Microsoft identified a new ClickFix variant called TerminalFix that tricks users into executing malicious PowerShell commands via fake Cloudflare CAPTCHAs. This multi-stage attack uses DLL sideloading and steganography to install a Python-based reverse tunnel, granting attackers persistent access to internal enterprise networks for lateral movement and data theft.
Key points
- The attack begins with a fake Cloudflare CAPTCHA overlay on compromised websites that copies a malicious PowerShell command to the clipboard.
- Victims are instructed to paste the command into Windows Terminal or PowerShell, increasing the success rate of complex, multi-line scripts compared to traditional Run dialog attacks.
- The initial payload downloads a ZIP archive containing a legitimate signed executable, LockScreenContentServer.exe, and a malicious DLL, dui70.dll, for sideloading.
- The malicious DLL extracts additional payloads hidden within PNG images using steganography, splitting the code across three images to evade detection.
- The malware establishes persistence via Registry Run keys and scheduled tasks that execute every 60 minutes.
- It performs extensive reconnaissance, including Active Directory enumeration and probing for domain controllers, databases, and backup servers.
Background
This campaign represents an evolution of ClickFix social engineering tactics, which have been prevalent since 2024. While previous variants often targeted the Windows Run dialog to deliver simple infostealers, TerminalFix leverages the more powerful execution environment of Windows Terminal and PowerShell to facilitate complex, multi-stage intrusions. This shift aligns with broader trends in AI-assisted and sophisticated malware campaigns, as noted in recent industry warnings about AI-powered cyberattacks threatening critical infrastructure. Microsoft's discovery of this campaign highlights the increasing sophistication of initial access methods, moving beyond simple data theft to establishing persistent network-level access for lateral movement and ransomware deployment.
How outlets are covering it
Microsoft Threat Intelligence emphasizes the technical sophistication of the TerminalFix campaign, highlighting the use of DLL sideloading, steganography, and a custom Python reverse-tunnel implant as key differentiators from traditional ClickFix attacks. They stress the danger of the reverse tunnel, which turns compromised endpoints into network pivot points for accessing internal systems. Dark Reading provides a more skeptical view of the 'TerminalFix' naming, with Proofpoint researcher Tommy Madjar arguing that the use of Terminal windows is not new and that the attack chain could have been initiated via the Run dialog. Madjar suggests that the campaign does not significantly differ from established clusters like ClearFake or ErrTraffic and that broad restrictions on Terminal access are rarely practical. The Register focuses on the steganographic aspects of the attack, noting that the malware hides payloads in PNG images and splits them across multiple files to evade detection. They also highlight Microsoft's refusal to disclose the number of targeted organizations or the specific attacker group responsible. BleepingComputer summarizes the threat as a serious risk to enterprise environments due to the combination of stealth techniques and persistent network access, while also noting Microsoft's recommendation to investigate for lateral movement and rotate credentials if compromise is confirmed.
Why it matters
The TerminalFix campaign poses a significant threat to enterprise environments by providing attackers with persistent, network-level access through compromised hosts. The use of a reverse tunnel allows attackers to bypass traditional perimeter defenses and access internal systems, potentially leading to privilege escalation, data exfiltration, and ransomware deployment. The campaign's use of steganography and DLL sideloading makes it difficult to detect and block, highlighting the need for advanced endpoint protection and user education. Organizations must prioritize restricting PowerShell execution, monitoring for suspicious activity, and rotating credentials to mitigate the risks associated with this sophisticated attack chain.
What to watch
Microsoft recommends that organizations restrict PowerShell and Run dialog execution for standard users using AppLocker, Application Control for Windows, or Group Policy. They also advise monitoring for LockScreenContentServer.exe executing from non-standard paths and educating users about ClickFix tactics. If compromise is confirmed, organizations should investigate for lateral movement and rotate credentials, including domain admin credentials, if accessible from the infected host. Additionally, Microsoft suggests enabling cloud-delivered protection in Microsoft Defender Antivirus and using enterprise-managed browsers to safeguard against malicious sites and internet-based threats.
- Microsoft warns of TerminalFix attacks deploying reverse tunnels BleepingComputer
- TerminalFix campaign deploys a reverse tunnel through multistage intrusion Microsoft
- TerminalFix Uses Fake Cloudflare CAPTCHAs to Deploy Reverse-Tunnel Backdoor The Hacker News
- 'TerminalFix' Campaign Weaponizes PowerShell for Enterprise Attacks Dark Reading
- Attack hides malware in PNGs and drops custom reverse tunnel on victims' machines The Register
Want the full story? Read the original reporting
Read on BleepingComputer