TerminalFix Campaign Uses Fake Cloudflare CAPTCHA Pages to Open Reverse Tunnels into Corporate Networks

By
TerminalFix Campaign Uses Fake Cloudflare CAPTCHA Pages to Open Reverse Tunnels into Corporate Networks

Microsoft Threat Intelligence has disclosed details of a sophisticated cyberattack campaign known as TerminalFix, a new variation of the increasingly popular ClickFix social engineering technique. The campaign uses convincing fake Cloudflare CAPTCHA verification pages to trick victims into manually executing malicious PowerShell commands through Windows Terminal or PowerShell.

Unlike many earlier ClickFix campaigns that focused primarily on delivering information-stealing malware, TerminalFix uses a much more complex and dangerous multi-stage attack chain. The campaign combines social engineering, DLL sideloading, steganographic payload delivery, persistence mechanisms, Active Directory reconnaissance and a custom reverse-tunnel implant designed to provide attackers with network-level access through a compromised Windows device.

The discovery highlights a continuing shift in the cyber threat landscape. Instead of relying exclusively on software vulnerabilities, attackers are increasingly targeting human behavior and convincing legitimate users to execute malicious commands themselves. Because the victim initiates the execution process, attacks such as TerminalFix can bypass traditional security assumptions and create significant challenges for organizations defending Windows environments.

A New Evolution of the ClickFix Technique

ClickFix attacks have become increasingly common because they rely on social engineering rather than a traditional software exploit. Victims are typically shown a fake technical problem, browser warning or verification page and instructed to perform a series of actions that ultimately result in the execution of malicious commands.

TerminalFix follows this model but introduces an important change. Traditional ClickFix campaigns often instruct victims to open the Windows Run dialog and paste a command. The TerminalFix campaign instead directs users toward Windows Terminal or PowerShell.

This change gives attackers greater flexibility when delivering more complicated commands and multi-stage scripts. Windows Terminal and PowerShell provide an environment where longer and more complex commands can execute more reliably, allowing attackers to launch a sophisticated attack chain while making the victim believe they are simply completing a routine security verification process.

The technique demonstrates how threat actors continue to adapt existing attack methods rather than constantly developing entirely new malware. By modifying a familiar ClickFix technique and combining it with modern Windows administration tools, the attackers behind TerminalFix created an intrusion chain capable of moving far beyond the theft of browser credentials or cryptocurrency wallets.

Fake Cloudflare CAPTCHA Pages Used as the Initial Lure

The TerminalFix campaign begins when a victim visits a compromised website. Instead of immediately presenting malicious software or an obvious phishing page, the website displays a convincing fake Cloudflare Turnstile verification interface.

The fraudulent page is designed to resemble a legitimate Cloudflare CAPTCHA prompt and includes familiar visual elements such as the Cloudflare logo, a verification checkbox, loading animations and messages instructing the visitor to confirm that they are human.

When the victim interacts with the fake verification prompt, a malicious PowerShell command is copied to the Windows clipboard. The victim is then given instructions that appear to be part of the CAPTCHA verification process.

Rather than solving a normal CAPTCHA challenge, the victim is instructed to open Windows Terminal or PowerShell and paste the copied command. This creates a dangerous situation because the user unknowingly performs the action required to begin the malware infection.

The attack is particularly effective because it exploits trust in familiar internet security systems. Cloudflare verification pages are commonly encountered by users across the internet, meaning many people may not immediately recognize that the CAPTCHA interface is fraudulent.

Malicious PowerShell Command Begins the Attack Chain

Once the victim pastes and executes the malicious command, the TerminalFix attack begins its next stage. The PowerShell script is designed to appear legitimate and may display reassuring messages suggesting that a Cloudflare verification process is underway.

While the victim believes the verification process is being completed, the malicious script silently downloads an archive from attacker-controlled infrastructure. The downloaded files are extracted into a directory on the compromised system and additional processes are launched in the background.

The use of convincing terminal output is an important part of the social engineering process. By displaying messages indicating that verification has been completed successfully, the attackers can reduce suspicion and prevent the victim from realizing that malicious software has been executed.

This approach illustrates how social engineering can continue even after the initial interaction. The attacker is not simply attempting to convince the victim to execute one command. The entire visual experience is designed to make the malicious activity appear to be part of a legitimate security verification process.

DLL Sideloading Helps Malware Blend with Legitimate Software

One of the important technical components of the TerminalFix campaign is the use of DLL sideloading. This technique allows attackers to abuse legitimate executable files by placing a malicious Dynamic Link Library file where it can be loaded by a trusted program.

According to the technical analysis of the campaign, the attack chain uses a legitimate signed executable alongside a malicious DLL. When the executable starts, the Windows loading process can cause the malicious library to be loaded and executed.

This technique can make detection more difficult because security tools may initially observe activity involving a legitimate signed executable rather than an obviously malicious program. Attackers have used DLL sideloading for years, but TerminalFix demonstrates how the technique remains effective when combined with social engineering and other methods of defense evasion.

For security teams, unexpected execution of legitimate Windows binaries from unusual directories can be an important warning sign. Context is especially important because a trusted executable operating from an abnormal location may indicate that it is being abused as part of a sideloading attack.

Malicious Payloads Hidden Inside PNG Images

TerminalFix also uses steganography to conceal additional payloads inside image files. During the attack chain, files that appear to be ordinary PNG images are downloaded from attacker-controlled infrastructure.

However, the image files contain hidden binary data. The malware processes pixel information within the images and reconstructs malicious files from the concealed data. The recovered components can include executable files and DLL fragments that are assembled on the victim's system.

Hiding payloads inside image files can complicate detection because PNG files are commonly transferred across networks and may not initially attract the same level of scrutiny as executable files. A security product that identifies only the outer file type could see an image rather than immediately recognizing the concealed payload.

The attackers further increase the complexity of the attack by dividing malicious components across multiple files. This can make the full payload less visible during network transmission and complicate forensic analysis.

The use of steganography demonstrates that TerminalFix is designed as a sophisticated intrusion chain rather than a simple one-stage malware infection.

Persistence Allows the Attack to Survive Reboots

After establishing an initial foothold, TerminalFix attempts to maintain access to the compromised device through multiple persistence mechanisms.

The campaign uses Windows Registry Run keys and scheduled tasks to ensure that malicious components can execute again after the system restarts or at regular intervals. The use of multiple persistence mechanisms reduces the likelihood that the attacker will completely lose access if one component is discovered or removed.

Scheduled execution can allow malicious software to repeatedly restore attacker access over time. Registry-based persistence is also a common technique because Windows automatically launches programs associated with certain startup locations.

The malware may also attempt to hide files and directories to make discovery more difficult during routine inspection. These techniques are intended to reduce the visibility of the attack and provide the operators with a longer period of access inside the victim's environment.

Extensive Active Directory and Network Reconnaissance

One of the most concerning aspects of TerminalFix is the level of reconnaissance performed after the initial compromise.

The malware does not simply infect a device and wait for instructions. The attack chain collects information about the victim's environment and performs discovery activities designed to identify valuable systems and infrastructure.

Observed reconnaissance activities include collecting system information, examining domain relationships, identifying domain administrators, enumerating Active Directory information and searching for systems that may represent valuable targets within the organization.

This type of reconnaissance can provide attackers with a detailed understanding of the internal network. Information about domain controllers, administrative accounts, servers and other critical infrastructure can help threat actors determine where to focus future operations.

For an enterprise environment, this is especially dangerous because the initial infected workstation may only be the beginning of a much larger intrusion. Once attackers understand the network environment, they may attempt to move toward more valuable systems.

Reverse Tunnel Turns a Compromised Computer into a Network Pivot Point

The most significant capability associated with TerminalFix is the deployment of a custom reverse-tunnel implant.

A reverse tunnel allows a compromised device inside an organization to establish an outbound connection to attacker-controlled infrastructure. Because the connection originates from inside the network, it can potentially pass through network boundaries that would normally prevent an external attacker from directly connecting to internal systems.

The TerminalFix campaign uses encrypted WebSocket communications over port 443, allowing the traffic to resemble ordinary encrypted web communications. The custom tunneling implant can relay network connections through the compromised machine and potentially provide attackers with access to other systems visible from that device.

This effectively transforms the infected computer into a pivot point inside the corporate network. Rather than only controlling one endpoint, attackers may be able to use the compromised machine as a pathway for communicating with internal resources.

The reverse-tunnel capability is particularly concerning when combined with the earlier reconnaissance stage. Attackers can first gather information about the network and then potentially use the tunnel to communicate with systems identified as valuable targets.

Why TerminalFix Represents a Serious Enterprise Threat

TerminalFix is significant because its attack chain combines several established techniques into a coordinated intrusion operation.

The campaign begins with a simple social engineering lure but gradually develops into a much more serious compromise. The attack moves from a fake CAPTCHA page to PowerShell execution, DLL sideloading, hidden payload extraction, persistence, Active Directory reconnaissance and reverse network tunneling.

This progression means that organizations should not treat ClickFix-style incidents as simple malware infections. A user executing a malicious command after interacting with a fake verification page may provide attackers with an opportunity to conduct a deeper investigation of the organization's internal environment.

Microsoft has emphasized the importance of treating affected devices as potential network pivot points. Even when the full downstream objectives of attackers are not immediately visible, access to an internal network combined with reconnaissance capabilities can create the conditions for additional attacks.

Potential follow-on activity could include credential theft, lateral movement, data theft, deployment of additional malware or ransomware operations. However, organizations should distinguish between capabilities that the intrusion could enable and downstream actions specifically observed during the analyzed campaign.

The Human Element Remains the Primary Entry Point

TerminalFix also demonstrates an important cybersecurity reality. Advanced security technology cannot completely protect an organization when attackers successfully convince users to execute malicious commands themselves.

The campaign does not depend on a traditional browser exploit or an unpatched vulnerability to begin the intrusion. Instead, the attacker relies on social engineering and user interaction.

Fake CAPTCHA pages are particularly effective because they exploit a familiar security interaction. Users are accustomed to clicking verification boxes and completing challenges before accessing websites. TerminalFix abuses that familiarity and transforms a normal security expectation into an initial access mechanism.

Organizations should educate employees that legitimate CAPTCHA systems should not require users to open PowerShell, Windows Terminal or the Windows Run dialog and paste commands to verify that they are human.

Any website instructing a visitor to copy commands into a Windows command environment should be treated as highly suspicious unless the activity is explicitly expected and originates from a trusted administrative process.

How Organizations Can Defend Against TerminalFix

Defending against TerminalFix requires a combination of user awareness, endpoint monitoring and restrictions on unnecessary script execution.

Organizations should consider limiting PowerShell capabilities for users who do not require unrestricted scripting access. Application control technologies and security policies can help reduce the ability of untrusted scripts to execute.

Security teams should monitor for suspicious PowerShell activity, especially commands originating shortly after unusual browser interactions. Script block logging and endpoint detection capabilities can provide valuable visibility into malicious PowerShell execution.

Unexpected execution of legitimate Windows binaries from unusual locations should also be investigated. DLL sideloading often depends on legitimate executables being launched alongside malicious libraries, making abnormal execution paths an important detection opportunity.

Network defenders should monitor unusual encrypted outbound connections, particularly persistent WebSocket connections that may indicate tunneling activity. A compromised endpoint repeatedly establishing encrypted communications with suspicious infrastructure can represent a possible command-and-control or reverse-tunnel channel.

Organizations should also review scheduled tasks and Registry Run keys for unexpected persistence mechanisms. Hidden directories, suspicious startup entries and recurring processes should be investigated as part of incident response procedures.

Security Awareness Must Address Modern Social Engineering

Traditional security awareness programs often focus heavily on phishing emails and malicious attachments. TerminalFix demonstrates why organizations must expand training to include web-based social engineering techniques.

Employees should understand that websites can be compromised and that familiar security brands can be impersonated. A page displaying a recognizable logo does not guarantee that the page is legitimate.

Users should be specifically warned against following instructions that require them to copy and paste commands into PowerShell, Windows Terminal or the Run dialog to complete a CAPTCHA, unlock content or verify their identity.

Security teams can also use simulated training exercises to demonstrate how ClickFix attacks work. Teaching users to recognize suspicious instructions before they encounter a real attack can significantly reduce the chance of successful social engineering.

Conclusion

The TerminalFix campaign represents a dangerous evolution of ClickFix-style attacks. By combining a convincing fake Cloudflare CAPTCHA with malicious PowerShell execution and a sophisticated multi-stage malware chain, attackers can potentially move from a simple web interaction to persistent access inside an organization's network.

The campaign stands out because its objective goes beyond the delivery of a single information-stealing payload. Through DLL sideloading, steganographic payload delivery, persistence mechanisms, Active Directory reconnaissance and a custom reverse tunnel, TerminalFix demonstrates how social engineering can serve as the starting point for a much broader enterprise intrusion.

For organizations, the key lesson is that fake CAPTCHA attacks should not be dismissed as minor scams. A single user who follows malicious instructions can provide attackers with an initial foothold that may expose additional systems across the network.

Strong endpoint monitoring, PowerShell visibility, application control, network detection and modern security awareness training are all important components of defending against this growing category of attacks.

As attackers continue to refine ClickFix techniques and abuse trusted tools and familiar security interfaces, organizations will need to focus not only on identifying malicious files but also on recognizing suspicious user-driven execution. TerminalFix is a reminder that modern cyberattacks increasingly combine technical sophistication with carefully designed deception, making both technology and human awareness essential to enterprise security.

Ashish S
Ashish is a Cybersecurity Student with over 2 years of experience in Cybersecurity Research, Bug Bounty hunting and programming.