TerminalFix Malware Campaign Exploits Windows Terminal and PowerShell for Network Access

A new malware campaign tricks users into running malicious PowerShell commands via fake CAPTCHA prompts, deploying backdoors that enable attackers to tunnel into internal networks.

TerminalFix Malware Campaign Exploits Windows Terminal and PowerShell for Network Access
Sarah Collins

Sarah Collins

Computing Editor

Specializes in PCs, laptops, components, and productivity-focused computing tech.

Security threats continue to evolve with increasingly sophisticated methods to bypass traditional protections. The recent TerminalFix campaign exemplifies this trend by manipulating Windows Terminal and PowerShell to deploy complex malware, rather than relying on simpler infection techniques.

How does the TerminalFix malware campaign operate?

TerminalFix leverages compromised websites that display counterfeit Cloudflare CAPTCHA verifications. Users are instructed to copy and paste a PowerShell command into the Windows Terminal or PowerShell interface. This method is more refined than prior campaigns because it encourages execution of multi-line scripts directly in trusted Windows interfaces, enhancing the chances of success.

Once executed, the script initiates a two-step process: it first delivers a legitimate binary alongside a malicious Dynamic Link Library (DLL) file. The legitimate binary is tricked into loading the malicious DLL, which then installs a hidden payload named "client.py"—a Python implant.

What risks does the implanted Python payload introduce?

Warning: TerminalFix Campaign Delivers Malware Through Fake CAPTCHA Pages -  Thailand Computer Emergency Response Team (ThaiCERT)
Warning: TerminalFix Campaign Delivers Malware Through Fake CAPTCHA Pages - Thailand Computer Emergency Response Team (ThaiCERT)

The implant establishes an encrypted WebSocket reverse tunnel to the attackers' infrastructure. This tunnel functions like a SOCKS5 proxy, granting the adversaries proxy access into the victim’s internal network. This remote access tunnel effectively transforms the infected machine into a pivot point, enabling potential exploration, reconnaissance, and control over internal devices and servers, including domain controllers.

Such access creates critical opportunities for attackers to escalate privileges, disable security solutions, and move laterally within the network undetected. Although direct lateral movement or data exfiltration has not been observed with this campaign yet, the potential for these actions is significant, especially in hands-on-keyboard scenarios where attackers maintain prolonged presence in networks.

Who is affected and what actions should organizations take?

Any organization with endpoints vulnerable to manipulation via PowerShell and Windows Terminal commands may be at risk—particularly those where users might be easily tricked by fake CAPTCHA overlays on malicious or compromised sites.

To defend against this threat, organizations should:

  • Monitor and restrict PowerShell and Terminal usage: Implement application control policies that restrict execution of scripts to signed or approved ones.
  • Educate users about social engineering: Warn users not to execute commands copied from websites, especially commands that appear after suspicious CAPTCHA prompts.
  • Audit systems for signs of compromise: Look for unusual DLL sideloading activities, unexpected Python processes, or network patterns consistent with reverse tunnels.
  • Isolate and investigate infected devices: Treat affected endpoints as potential network pivot points and scan for lateral movement and credential theft.

What makes TerminalFix more dangerous than prior similar campaigns?

TerminalFix' Campaign Uses PowerShell for Enterprise Attacks
TerminalFix' Campaign Uses PowerShell for Enterprise Attacks

Unlike earlier ClickFix attacks focused on injecting simple information stealers or basic backdoors, TerminalFix's multi-stage infection chain utilizes a legitimate binary to mask malicious loading, installs a sophisticated Python implant, and establishes reverse tunnels that provide attackers strong footholds inside internal networks. These advanced tactics enhance both the stealth and persistence of the intrusion, raising the stakes for network defenders.

Understanding this evolution underscores the importance of robust endpoint monitoring, user security awareness, and network segmentation to limit attackers' opportunities to pivot and escalate inside compromised environments.

Summary: How to effectively defend against TerminalFix and related threats

The TerminalFix campaign highlights the dangers of social engineering linked with PowerShell and Windows Terminal, leveraging trusted system components for malware execution. Organizations must view suspicious device activity through the lens of potential lateral movement and persistent access.

By combining technical controls, user education, and vigilant network monitoring, defenders can reduce the risk posed by such complex multi-stage malware campaigns and prevent attackers from gaining lasting internal access.

React to this story

Related Posts