Fake Cloudflare CAPTCHA Tricks Users Into Running Code

The Hacker News · High sophistication
Last updated September 1, 2026

A campaign dubbed “TerminalFix” uses compromised websites to display fake Cloudflare CAPTCHA checks that instruct visitors to copy and run a PowerShell command. The goal is to get a user to run attacker-provided commands themselves, which can lead to persistent access and deeper intrusion into the organization.

How the Attack Worked

TerminalFix is a ClickFix-style social engineering attack that relies on compromised websites rather than malicious links or attachments. When a visitor lands on one of these sites, they are shown what looks like a routine Cloudflare CAPTCHA verification screen. Instead of clicking a checkbox, the visitor is instructed to copy a command and paste it into Windows Terminal or PowerShell to prove they are human. Running that command can trigger follow-on malware activity and give attackers persistent access to the victim's system.

This approach shifts the burden of execution onto the user. Rather than delivering a malicious file directly, the attacker convinces the target to manually run the payload themselves, which can bypass some of the usual suspicion tied to unexpected downloads or attachments.

Why It Succeeded

The lure works because CAPTCHA verification is a familiar, low-friction interaction that most users have completed countless times without a second thought. By dressing the prompt up as a trusted brand check, the attack borrows credibility from a recognizable security control. The instructions to open Windows Terminal or PowerShell and paste a command add a layer of technical legitimacy that can make the request feel like a normal troubleshooting step rather than a red flag.

What to Watch For

  • A CAPTCHA that asks you to run a PowerShell or Terminal command is not normal behavior for a real verification check.
  • Instructions to copy and paste commands from a website directly into PowerShell or Terminal.
  • An unexpected verification step appearing on a site you were simply browsing, with no prior context.

Building Resistance

Organizations can reduce the risk of this attack pattern with a few consistent habits:

  • Teach staff that a real CAPTCHA never requires running PowerShell or Terminal commands, and that any such prompt should be stopped and reported.
  • Promote a simple rule: never copy, paste, and run commands from websites or chat messages unless the action has been verified by IT through a known process.
  • Reinforce that familiar brands and interfaces can be used as cover, so prompts that look official still deserve a second look before being trusted.

This technique spans multiple sectors, including critical infrastructure, and applies broadly across roles such as Finance, HR, Operations, and IT, with added emphasis for users who hold admin rights or staff on the helpdesk and security operations teams who may be asked to help troubleshoot the "verification" step.

Key findings

  • TerminalFix is a ClickFix-style social engineering attack that convinces users to run a command rather than click a traditional malicious link.
  • The lure is delivered via compromised websites that show a fake Cloudflare CAPTCHA verification step.
  • Victims are prompted to copy/paste and execute a PowerShell command in Windows Terminal or PowerShell, enabling follow-on malware activity and persistence.
  • The recap also references email bombing followed by attacker contact via Microsoft Teams (details are partial in the provided text).

Who’s being targeted

  • Commonly targeted roles: All employees, IT, Helpdesk/Service Desk, Security Operations, Users with admin rights.
  • Affected industries: Multiple sectors, Critical infrastructure.
  • Attack channels: website.
  • Impersonated: Cloudflare CAPTCHA / Cloudflare verification.

Red flags to watch for

  • A CAPTCHA asking you to run a PowerShell/Terminal command is not normal
  • Instructions to copy/paste commands from a website into PowerShell/Terminal
  • Unexpected verification step on a site you were simply browsing
Try Mirage

Mirage safely runs attacks like this one against your own team, so you find out what happens before a real adversary does.

Get a demo

Frequently asked questions

What is TerminalFix?

TerminalFix is a ClickFix-style social engineering attack that convinces users to run a command rather than click a traditional malicious link. It's delivered through compromised websites that show a fake Cloudflare CAPTCHA verification step.

How does the fake CAPTCHA attack work?

A compromised website displays a fake Cloudflare CAPTCHA verification and instructs the visitor to copy and paste a PowerShell command into Windows Terminal or PowerShell to prove they are human, enabling follow-on malware activity and persistence.

How can employees spot this attack?

A real CAPTCHA never requires running PowerShell or Terminal commands. Any unexpected verification step asking you to copy and execute code on a site you were simply browsing is a red flag.

Who is at risk from this technique?

The scenario targets all employees across roles including Finance, HR, Operations, and IT, with particular relevance to users with admin rights, helpdesk staff, and security operations teams.

Read the video transcript

You open a normal website and suddenly see: “Cloudflare verification required: run this PowerShell command to continue.” This is TerminalFix, a ClickFix-style scam. Compromised sites show a fake Cloudflare CAPTCHA and tell you to paste a PowerShell command into Windows Terminal or PowerShell so you can ‘prove you’re human.’ Here’s the trick: real CAPTCHAs ask you to click boxes or pick pictures. They never tell you to run code. If a site you’re just browsing suddenly wants a PowerShell or Terminal command, that’s your red alert. If any “verification” tells you to copy and run a command, stop. Don’t run it, screenshot it and report it to IT right away.

Similar attacks

Fake SSO + MFA Push Used in Real Breaches

Fake SSO + MFA Push Used in Real Breaches

This weekly roundup includes two real social-engineering-driven incidents. Attackers used social engineering to access Apollo Global Management’s cloud platforms and steal sensitive personal data, and separately attempted a ShinyHunters phishing attack against ReliaQuest using a fake SSO login page…

August 28, 2026
Phishers Abuse DocuSign, Rewards, and “Verification”

Phishers Abuse DocuSign, Rewards, and “Verification”

This weekly roundup describes multiple real-world campaigns where attackers trick people using familiar brands and “verification” prompts to steal credentials or install remote-control tools. The common theme is trust abuse: messages and web pages look legitimate, then push users to log in, click…

July 28, 2026
Fake CAPTCHA Tricks Users Into Running TerminalFix

Fake CAPTCHA Tricks Users Into Running TerminalFix

Attackers used a fake Cloudflare “verify you are human” overlay to copy a command to victims’ clipboards and trick them into pasting it into Windows Terminal/PowerShell. The command kicked off a multi-stage infection chain, including downloading payloads hidden inside PNG images, establishing…

August 31, 2026
Fake reCAPTCHA “Fix” Spreads MaaS Malware

Fake reCAPTCHA “Fix” Spreads MaaS Malware

Researchers observed real campaigns using compromised WordPress sites to show fake verification/BSOD-style prompts that trick users into running a copied PowerShell command. The technique (ClickFix) was paired with MaaS tools (ErrTraffic and Cruciferra) to deliver malware while attempting to kill…

August 19, 2026
Fake Zoom/Adobe Updates Drop ScreenConnect Backdoor

Fake Zoom/Adobe Updates Drop ScreenConnect Backdoor

Researchers described an active phishing campaign that tricks people with fake Adobe/Zoom update and “document review” themes to install the legitimate ScreenConnect remote-access tool. Once installed, attackers get persistent remote control of the victim’s computer while blending in as normal IT…

August 4, 2026
Voicemail Lure Drives Microsoft Device-Code Phish

Voicemail Lure Drives Microsoft Device-Code Phish

A voicemail-themed phishing campaign (“Kali365 Ringer”) targeted financial and insurance organizations using a missed-call notification and a Google Sites page to appear legitimate. Victims were redirected through multiple trusted services and instructed to approve a Microsoft device-code login…

July 27, 2026