You visit a website and a familiar-looking box appears: “Verify you are human.” But instead of ticking a box or picking traffic lights, it asks you to press Windows key + R, then Ctrl + V, then Enter. That sequence does not prove anything about you. It runs a command that installs malware. This article explains how the trick works, what to do if you already followed the steps, and how website owners can stop their sites being used to spread it.
What Is a ClickFix Attack?
“ClickFix” is the name security researchers use for a family of social engineering attacks that persuade people to copy and run a malicious command themselves. The fake CAPTCHA version is the most common, but the same trick appears as fake browser error messages (“fix this display problem”), fake software update prompts and fake video call troubleshooting pages.
The clever part is that the victim does the dangerous work. The attacker does not need to exploit a software flaw or sneak a suspicious download past your antivirus. They just need you to paste and run a command, which your computer treats as something you chose to do.
How the Fake CAPTCHA Trick Works, Step by Step
Here is what happens behind the scenes:
- You land on a compromised or malicious page. It might be a legitimate site that has been hacked, a malicious advert, or a link from an email or search result.
- A fake verification box appears. It copies the look of well-known CAPTCHA and bot-check services so it feels routine.
- Clicking the box copies a command to your clipboard. Websites can write to your clipboard when you click on something. You do not see this happen. The command is often disguised, for example ending with a harmless-looking comment such as “I am not a robot – Verification ID” so that is all you notice if you glance at it.
- The page tells you to press Win+R. This opens the Windows Run dialog, a box that launches programs and commands directly.
- Ctrl+V pastes the hidden command. The Run box is small, so the visible part may only show the innocent-looking ending.
- Enter executes it. The command typically launches a built-in Windows tool such as PowerShell or mshta to download and run malware from the attacker’s server.
The payload is frequently an infostealer, malware that grabs saved browser passwords, session cookies, cryptocurrency wallet data and files. Session cookies are particularly valuable because they can let attackers into accounts without needing your password or two-factor code. Other variants install remote access tools or ransomware.
Mac users are targeted too. The instructions simply change to “open Terminal and paste this,” and the result is similar.
Why Real CAPTCHAs Never Ask This
A CAPTCHA is a test that helps websites tell humans from automated bots. Legitimate ones work entirely inside your browser. They may ask you to:
- Tick a checkbox.
- Select images that contain a certain object.
- Type distorted letters or solve a simple puzzle.
- Wait a few seconds while a background check runs invisibly.
No genuine CAPTCHA or website verification will ever ask you to open the Run dialog, Terminal, PowerShell or Command Prompt, press keyboard shortcuts outside the browser, or paste anything anywhere. The browser cannot see what you do in those programs, so such steps could not possibly verify anything.
| Real verification | ClickFix scam |
|---|---|
| Happens inside the web page | Sends you outside the browser |
| Checkbox, image puzzle or automatic check | Keyboard shortcuts: Win+R, Ctrl+V, Enter |
| Never touches your clipboard | Silently copies a command to your clipboard |
| Nothing to run or install | Runs a command that downloads software |
| Fails safely if you close it | Infects the computer once you press Enter |
Remember one rule and you are protected against the whole family: never paste and run a command because a website, pop-up or message told you to.
What to Do If You Already Ran the Command
Act quickly but calmly. Infostealers often work within minutes, so the order of steps matters.
- Disconnect from the internet. Turn off Wi-Fi or unplug the network cable on the affected computer to cut off further downloads and data theft.
- Note what you ran. On Windows, the Run dialog keeps a history; pressing Win+R and the down arrow may show recent entries. Take a photo of it for anyone helping you. Do not run it again.
- Use a different, clean device to change passwords. Start with your email account, then banking, payment services, password manager, social media and work accounts. Changing passwords on the infected machine risks them being captured again.
- Sign out of all sessions. Most major services have a “sign out of all devices” option. This kills stolen session cookies, which a password change alone may not do.
- Check two-factor authentication. Make sure it is enabled and that no unfamiliar devices or recovery methods have been added.
- Scan or reset the computer. Run a full scan with up-to-date security software such as Microsoft Defender, ideally including an offline scan. Because infostealers and remote access tools can be hard to remove fully, a clean reinstall of the operating system is the safest choice if you have any doubt.
- Protect your money. Contact your bank if financial details were stored in the browser, and watch your statements. Move any cryptocurrency to a new wallet created on a clean device.
- Report it at work. If it was a work computer or you use it for work accounts, tell your IT or security team immediately. Early reporting can stop a wider breach.
How Legitimate Websites Get Hijacked to Show Fake CAPTCHAs
Many people meet ClickFix on websites they trust: a local business, a hobby forum, a small news site. The site owner usually has no idea. Attackers insert a small piece of JavaScript that loads the fake verification overlay for visitors. Common routes in include:
Compromised CMS installations
Content management systems (CMS) such as WordPress power a huge share of websites. Outdated plugins and themes with known vulnerabilities, abandoned add-ons and weak or reused administrator passwords let attackers inject scripts into pages or the site’s database.
Stolen hosting, CDN or DNS credentials
A content delivery network (CDN) serves a site’s files from servers around the world. If an attacker gets into the hosting control panel, the CDN account or the domain’s DNS settings, they can alter scripts, add rules that inject code, or redirect visitors entirely, without touching the website’s own code.
Leaked API tokens and deploy keys
API tokens let tools and scripts manage a site automatically. Tokens accidentally committed to a public code repository, stored in plain text, or given far more permissions than needed can let an attacker change site files, CDN configuration or DNS records.
Third-party scripts and supply chain
Analytics tags, chat widgets, ad networks and other external scripts run with full access to your pages. If one of those providers or the script’s host is compromised, every site that loads it can start showing malicious content.
Prevention Checklist for Website Owners
- Keep everything updated: CMS core, plugins and themes. Remove plugins and themes you do not use.
- Enable two-factor authentication on CMS admin accounts, hosting, CDN, DNS/domain registrar, code repositories and the email accounts tied to them.
- Use unique, strong passwords stored in a password manager such as Bitwarden, and remove old admin accounts.
- Scope and rotate API tokens. Give each token only the permissions it needs, set expiry dates where possible, never commit tokens to repositories, and revoke any that may have been exposed.
- Limit third-party scripts to those you genuinely need, and prefer reputable providers. Use a Content Security Policy (CSP) to restrict which domains can run scripts on your site, and Subresource Integrity (SRI) for static external files.
- Monitor for changes with file integrity monitoring, a security plugin or external uptime and content checks that alert you when pages change unexpectedly.
- Review audit logs in your CDN, DNS and hosting dashboards for unfamiliar logins or configuration changes.
- Keep clean backups stored separately so you can restore quickly after removing an infection.
If visitors report a strange verification box, take it seriously. Check page source and recently modified files, review CDN and DNS settings, rotate all credentials and tokens, and restore from a known-good backup if needed.
Extra Protection for Organisations
IT teams can reduce the risk for staff by restricting access to the Run dialog for users who do not need it, applying PowerShell restrictions and logging, using application control to block common abuse of built-in tools, and including ClickFix examples in security awareness training. Showing people a screenshot of a fake CAPTCHA is often more memorable than any written policy.
Key Takeaways
- ClickFix tricks you into running a malicious command that a web page secretly copied to your clipboard.
- No real CAPTCHA ever asks you to press Win+R, open Terminal or paste anything.
- If you ran it, disconnect, change passwords from a clean device, sign out of all sessions and clean or reinstall the PC.
- Legitimate sites get hijacked through outdated CMS plugins, stolen hosting/CDN/DNS logins, leaked API tokens and compromised third-party scripts.
- Updates, two-factor authentication, scoped tokens and change monitoring are the core defences for site owners.
FAQ
Is just seeing the fake CAPTCHA dangerous?
Seeing it, or even clicking the box, normally only copies text to your clipboard. The infection happens when you paste and run the command. Close the tab, and copy some harmless text to overwrite your clipboard if you like.
Will antivirus stop a ClickFix attack?
Up-to-date security software catches many variants, but attackers change their commands constantly and the command is run by you using legitimate Windows tools. Do not rely on antivirus alone; the best defence is never running pasted commands.
Does this only affect Windows?
No. Windows is the most common target, but macOS versions ask users to paste commands into Terminal. The same rule applies on every system.
I own a website and a visitor reported this. Where do I start?
Change your CMS, hosting, CDN and DNS passwords and enable two-factor authentication, revoke API tokens, then look for recently modified files and unfamiliar scripts. If you cannot find the source, restore a clean backup and consider professional help.

