Skip to content
Threat Research

ClickFix and fake CAPTCHAs: how to detect and block the paste-and-run attack

ClickFix gets the user to run the attacker's command for them. Here is how the Windows and macOS variants work, which artifacts they leave, and the controls that actually break the chain.

Shadow Labs · Threat Intelligence Team

10 min read

Key takeaways

TL;DR
  1. 01

    ClickFix is a social-engineering technique, not a vulnerability: a fake CAPTCHA or error page copies a command to the clipboard and tells the user to paste and run it.

  2. 02

    It has moved past the Windows Run dialog: Microsoft documented variants that use Windows Terminal (TerminalFix) and macOS Terminal, and a researcher showed a File Explorer address-bar version (FileFix).

  3. 03

    The Run dialog leaves a forensic record in the RunMRU registry key; explorer.exe or a browser spawning PowerShell, mshta or curl is the process signal.

  4. 04

    Removing the Run dialog by policy helps but is not enough on its own; pair it with PowerShell restrictions, script logging and user guidance.

Why this technique keeps working

Most email and web defenses are built around a file: an attachment, a download, a macro. ClickFix removes the file. A web page shows something familiar, such as a "verify you are human" check, a broken video-call plugin or a browser update prompt, and quietly writes a command to the clipboard. The instructions then tell the user to open a command prompt, paste and press Enter. The user runs the attacker's code with their own hands and their own privileges.

ClickFix removes the file. The user runs the attacker's code with their own hands and their own privileges.

[Confirmed] Proofpoint first documented the pattern in June 2024. It observed the initial access broker TA571 using it from 1 March 2024 and the ClearFake cluster from early April 2024. MITRE added it to ATT&CK as T1204.004, User Execution: Malicious Copy and Paste, and the ATT&CK entry uses ClickFix as its named example.

Why it matters in Latin America

[Confirmed] On 8 July 2026, Elastic Security Labs described REF6045, an operator-assisted banking-fraud operation aimed at customers of Mexican banks, fintechs, payment processors and cryptocurrency exchanges. Victims reach a fake CAPTCHA page, including a Spanish-language image challenge, that ends in the familiar Run-dialog instructions. The pasted command installs a PowerShell toolkit Elastic calls SCMBANKER, which watches for banking sessions, overlays fake bank warnings to push victims into phone calls, swaps account numbers copied to the clipboard and can install a commercial remote-access tool.

That is one documented operation, not a regional prevalence figure. We have no count of ClickFix infections in Latin America that we can publish, and none of the other sources below breaks one out. What REF6045 does show is that the lure works in Spanish, against local banks, with a human operator behind it.

How the attack chain works

ClickFix attack chain

  1. 01Arrival

    A link in email, a malicious ad or search result, a compromised legitimate website, or a fake software repository.

  2. 02Lure

    A page imitating a CAPTCHA (often Cloudflare-branded), an error message or a meeting-join failure.

  3. 03Clipboard load

    JavaScript writes the command to the clipboard. Microsoft notes the use of the standard navigator.clipboard.writeText() API in its August 2025 analysis; Unit 42 describes a helper named unsecuredCopyToClipboard() in a campaign it suspects runs on ClearFake infrastructure.

  4. 04User execution

    Classic ClickFix asks for Win+R, paste, Enter. The commands are often padded so the visible part of the Run box shows harmless-looking text.

  5. 05Download and run

    Typically a one-line PowerShell download-and-execute, or a signed Windows binary such as mshta, curl, certutil or bitsadmin fetching the next stage.

  6. 06Payload

    Mostly information stealers and loaders. Remote-access tools and, in some intrusions, hands-on-keyboard activity follow.

The variants defenders now need to cover

The defensive mistake to avoid is treating ClickFix as "the Win+R trick". It has spread to every place a user can paste a command:

ClickFix: from the lure to the places a user can paste a commandA lure page (fake CAPTCHA, error or meeting fix) writes a command to the clipboard. The user pastes it into one of five surfaces: the Windows Run dialog (classic ClickFix, leaves a RunMRU entry), the Win+X power-user menu, the File Explorer address bar (FileFix), Windows Terminal (TerminalFix) or macOS Terminal. Only the Run dialog writes RunMRU; for the others rely on process lineage and PowerShell logging.01 · LureFake CAPTCHAerror or meeting fix02 · ClipboardCommand copiedby the page03 · Where the user pastesRun dialog · Win+RClassic ClickFixRunMRU entryPower-user menu · Win+XPowerShell or Terminalno RunMRUFile Explorer address barFileFixno RunMRUWindows TerminalTerminalFixno RunMRUmacOS TerminalMacSync, AMOSpaste warning 26.4+ (reported)Only the Run dialog writes RunMRU.Elsewhere, rely on process lineageand PowerShell logging (4104).
Fig. 1One lure, five places to paste. Only the classic Run-dialog variant leaves a RunMRU entry; the others need process lineage and PowerShell logging.
  • Win+X (PowerShell or Terminal from the power-user menu). [Confirmed] Unit 42 describes lures that send users to Win+X instead of Run, which avoids the RunMRU artifact described below.
  • FileFix (File Explorer address bar). [Confirmed] Researcher mr.d0x published the FileFix technique on 23 June 2025: the page opens a native file-upload dialog and asks the user to paste a "file path" into the Explorer address bar, which executes it. This variant does not touch the Run dialog.
  • TerminalFix (Windows Terminal / PowerShell). [Confirmed] Microsoft's 28 August 2026 report describes a fake Cloudflare CAPTCHA that steers users to Windows Terminal or PowerShell instead of Run, which makes multi-line scripts more reliable. The chain continued through DLL sideloading, Active Directory reconnaissance and a Python reverse-tunnel implant.
  • macOS Terminal. [Confirmed] On 5 August 2026 Microsoft reported more than 250 ClickFix front-end domains in a macOS campaign that added a server-side browser-fingerprinting gate, so the lure is shown mainly to genuine macOS browsers and hidden from automated analysis. Payloads were the MacSync and Atomic (AMOS) stealers. On 18 August 2026 Microsoft linked more than 30 rotating domains to MacSync infrastructure by pivoting on behavior rather than indicators.
  • Hostile networks. [Confirmed] In CaptiveCrunch (31 July 2026), Microsoft describes hotel captive-portal traffic being hijacked to show business travelers ClickFix-style fake update prompts. Microsoft "assesses that Storm-2945 is an operational sub-cluster of Midnight Blizzard". That attribution is Microsoft's, not ours. A 5 October 2026 update to the same post says the activity resumed on 29 September 2026.

What it leaves behind

RunMRU. When a user types or pastes into the Run dialog, Windows records it under:

text
HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU

[Confirmed] Both Microsoft and Unit 42 point to this key as the primary artifact for confirming classic ClickFix during an investigation. It shows what the user ran, which is exactly the question an incident responder needs answered. Two limits matter. Microsoft notes that no entry is written if the process fails to start. And the key does not record the Win+X, FileFix or TerminalFix variants; for those, rely on process lineage and PowerShell logging.

Process lineage. A command launched from Run has explorer.exe as its parent. FileFix launched from a browser upload dialog tends to show the browser as the ancestor; mr.d0x recommends "monitoring browsers for any suspicious child processes".

Script content. PowerShell script block logging (Event ID 4104) captures the decoded command even when the pasted string was obfuscated.

Hunting queries

1.Interactive shells and LOLBins launched by Explorer (classic ClickFix)

KQL
DeviceProcessEvents
| where Timestamp > ago(30d)
| where InitiatingProcessFileName =~ "explorer.exe"
| where FileName in~ ("powershell.exe","pwsh.exe","mshta.exe","cmd.exe","curl.exe","certutil.exe","bitsadmin.exe")
| where ProcessCommandLine has_any ("http","iex","invoke-expression","-enc","hidden","downloadstring")
| project Timestamp, DeviceName, AccountName, FileName, ProcessCommandLine

2.Suspicious entries written to RunMRU

KQL
DeviceRegistryEvents
| where Timestamp > ago(30d)
| where RegistryKey endswith @"\Explorer\RunMRU"
| where ActionType == "RegistryValueSet"
| where RegistryValueData has_any ("powershell","pwsh","mshta","curl","certutil","bitsadmin","http")
| project Timestamp, DeviceName, InitiatingProcessAccountName, RegistryValueData

3.Shells spawned under a browser (FileFix and similar)

KQL
DeviceProcessEvents
| where Timestamp > ago(30d)
| where InitiatingProcessParentFileName in~ ("chrome.exe","msedge.exe","firefox.exe","brave.exe")
    or InitiatingProcessFileName in~ ("chrome.exe","msedge.exe","firefox.exe","brave.exe")
| where FileName in~ ("powershell.exe","pwsh.exe","cmd.exe","mshta.exe")
| project Timestamp, DeviceName, AccountName, InitiatingProcessFileName, ProcessCommandLine

On macOS, the equivalent signal is an interactive Terminal or zsh session that immediately runs curl piped into a decoder or shell, followed by osascript prompts for the user's password. Microsoft's MacSync report lists recurring request patterns (for example curl with -k, -s, --max-time and --data-binary, and HTTP PUT uploads) that hold up better than domain lists, because the domains rotate quickly.

Controls that break the chain

Ordered by effort, cheapest first. Each one maps to a step above.

Mitigation

Controls, cheapest first

8 items
  • Remove the Run dialog where people do not need it. Group Policy: User Configuration › Administrative Templates › Start Menu and Taskbar › Remove Run menu from Start Menu, which also disables Win+R. Microsoft recommends this in its 2025 analysis, and the TerminalFix report advises "blocking or auditing the Windows Run dialog (Win+R) where it is not required". [Our assessment] Treat this as a speed bump, not a fix: Win+X, FileFix and TerminalFix go around it.

  • Restrict PowerShell for standard users. Constrained Language Mode enforced through App Control for Business (WDAC) or AppLocker, plus script block logging. MITRE lists Constrained Language Mode under Execution Prevention for T1204.004.

  • Turn on the relevant attack surface reduction rules, notably "Block execution of potentially obfuscated scripts", in audit mode first and then in block mode.

  • Block or restrict mshta.exe with application control where nothing in the business uses it.

  • Keep the paste warnings on. Windows Terminal can warn on multi-line paste, and macOS 26.4 or later shows a Terminal paste warning. Both help, and both can be clicked through.

  • Tell users the one rule that matters: no legitimate CAPTCHA, bank, meeting tool or IT process will ever ask you to paste a command into Run, Terminal, PowerShell or a file dialog. Put it in your phishing-awareness material as a standalone message, in Spanish and Portuguese as well as English.

  • Assume credentials are gone when it fires. If a user ran the command, the likely payload is a stealer or a remote-access tool. Reset passwords, revoke sessions and refresh tokens (a password reset alone leaves stolen cookies valid), review MFA methods registered since the event, and check for remote-access software installed after it.

  • For travelers, follow Microsoft's CaptiveCrunch advice: prefer private connectivity such as a phone hotspot or eSIM over hotel Wi-Fi, restrict devices to Wi-Fi networks provisioned by your device management where you can, and block the OAuth device-code flow wherever you do not need it.

What we don't know yet

  • Prevalence by country or sector in Latin America. REF6045 shows the technique in use against Mexican banking customers; it does not tell us how common it is.
  • How quickly operators adapt to the macOS paste warning at scale; current evidence is anecdotal reporting.
  • The false-positive rate of the queries above in a typical Latin American enterprise estate. We will update this post if we publish measured results.

If you want help hunting for this in your environment, or a tabletop that starts with "a user pasted a command from a CAPTCHA", our threat hunting and incident response teams can help. You can apply every control above without us.

Sources and further reading

12 sourcesproofpoint.com+7
  1. 01proofpoint.com
  2. 02

    mr.d0x, FileFix: A ClickFix Alternative, 23 June 2025.

    mrd0x.com
  3. 03unit42.paloaltonetworks.com
  4. 04microsoft.com
  5. 05bleepingcomputer.com
  6. 069to5mac.com
  7. 07elastic.co
  8. 08

    Microsoft Threat Intelligence, CaptiveCrunch: Midnight Blizzard targets travelers worldwide for malware delivery and credential theft, 31 July 2026, updated 5 October 2026.

    microsoft.com
  9. 09microsoft.com
  10. 10

    Microsoft Defender Experts and Microsoft Security Research, Hunting MacSync Stealer infrastructure through behavioral pivots, 18 August 2026.

    microsoft.com
  11. 11microsoft.com
  12. 12attack.mitre.org

Tags

  • #clickfix
  • #social-engineering
  • #infostealer
  • #detection-engineering
  • #windows
  • #macos

If you want a second pair of hands

Curious what our deliverables look like? Read a sample report.

Written by

Shadow Labs · Threat Intelligence Team

Shadow Labs is the research team behind Shadow Corp's penetration tests and incident response. We track the threats that reach Latin America and write guides that defenders can act on, with sources you can check.

Drafted with AI assistance and checked line by line against the primary sources cited here by a Shadow Labs editor before it went out, on October 20, 2026. The cover image was generated with AI. Read our editorial standards.

Spotted an error? Write to contact@sh4dowcorp.com and we will correct it publicly on this page.

From research to testing

Find out if this affects you.

Tell us what you want tested against this threat. We agree on scope on a short call. After the call, you get a written proposal within one business day.

Shadow Digest · Free preview

The blog explains. The Digest keeps you current.

This blog is public and evergreen: guides you can come back to. The Shadow Digest is our curated briefing for security teams. Every other Monday, Shadow Labs tells you what happened, whether it reaches Latin America, and what to do this week. Free during the preview; a paid plan for teams is coming.

By subscribing, you agree to receive the Shadow Digest by email (every other Monday, plus rare flash alerts). We email a confirmation link first. We store your address with our providers in the United States, and every email has a one-click unsubscribe link. See our privacy policy.