The Captcha That Filled Your Clipboard: Reading a ClickFix Lure

Digital Forensics & IR Level 2/4 ~3 min November 3, 2026

The challenge

A marina's website now asks you to verify. Read what the verify button really copies. Name the host the copied command fetches.

What you'll learn

  • Recognise a ClickFix lure: a fake verification that asks you to paste a command
  • Read a page script to see what it writes to the clipboard
  • Rebuild a string that a script assembles from pieces
  • Name the controls that stop pasted-command attacks on Windows

Skills tested

Phishing and lure analysisReading JavaScriptIndicator extraction

Prerequisites

  • What a URL and its host are
  • Basic JavaScript strings

How it works

ClickFix turns the victim into the installer. A page shows a familiar obstacle (a CAPTCHA, a browser error, a document that will not open) and a fix: press Win+R, press Ctrl+V, press Enter. A click on the page already called navigator.clipboard.writeText(), so what gets pasted is the attacker's command. Because the user runs it, nothing is downloaded through the browser, and its download warnings never appear.

The command here is mshta, the Windows host for HTML Applications (.hta). It fetches a URL and runs the script inside, whatever the file extension says, which is why these campaigns serve the HTA under names like .mp3. A trailing comment (# ✅ 'I am not a robot ...') is all the Run box shows of a long line, so the victim sees a reassuring sentence instead of a URL. To stay out of simple searches, the injected script assembles the host from fragments with join(""), and gives it a name that imitates the site's real CAPTCHA provider.

Common mistakes

  • Answering challenges.gatekeep.example. That script is the genuine CAPTCHA widget the site loads for its contact form. It never touches the clipboard, and its host only looks related because the attacker copied the name.
  • Answering www.brightwater-marina.example. That is the hacked site hosting the lure, not where the payload lives.
  • Joining the pieces wrongly. The fragments are glued with no separator: cdn-gate + keep-ver + ify.exa + mple gives cdn-gatekeep-verify.example.
  • Answering mshta or the .mp3 path. mshta is the Windows program that runs the payload, and the path is a file on the attacker's server. The question asks for the host.

How to defend against it

  • Teach the one rule: a website never needs you to paste anything into Run, a terminal or PowerShell. Any page that asks is an attack.
  • Block mshta.exe with AppLocker or WDAC: almost nothing legitimate uses it.
  • Where users do not need it, remove the Run box by policy ("Remove Run menu from Start Menu"), and enable Defender attack surface reduction rules for obfuscated scripts.
  • Alert on explorer.exe starting mshta, powershell or cmd with a URL on the command line. That parent and child pair is the ClickFix signature.
  • In an investigation, read the RunMRU registry key (HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU): it keeps what was typed or pasted into Run.
  • For site owners: keep WordPress, themes and plugins patched, use file integrity monitoring and a Content Security Policy, and watch for scripts you did not add.

Full solution

Pro and Max members unlock the complete step-by-step walkthrough.

Go Pro

Community stats

181 completions
77% success rate
M2F14M3 First blood

Related Daily Hacks

40,000+ Hackers Real labs Free
Start Hacking Free or solve today's hack, no account needed