ClickFix attacks trick users into copying and pasting attacker-supplied commands, then running them in a terminal or Run prompt, so the browser page becomes the delivery mechanism. The page usually impersonates a verification or fix step and places malicious text into the clipboard, turning social engineering into code execution without a traditional file download.
How ClickFix turns a page into code execution
ClickFix works by moving the attack from the page to the user’s own execution path. The browser delivers the lure, but the victim is persuaded to paste attacker-controlled text into a shell or Run dialog, which makes the operating system execute it. The page often looks like a harmless verification step, so the user does the dangerous part themselves.
The key trick is trust transfer. Instead of asking the browser to download and launch a file, the attacker presents text that appears legitimate and time-sensitive, then relies on the victim to copy it as instructed. That bypasses some download-based defenses and makes the browser page the delivery channel for a command, not the execution engine itself.
That pattern is why ClickFix is so effective in environments where users are trained to follow support prompts or CAPTCHA-style challenges. The page can also seed clipboard content with malicious text, so the next action the user takes is effectively a code execution decision. The browser is only the transport layer; the terminal or Run prompt is where execution actually happens.
Why the social engineering step matters more than the web page
ClickFix succeeds because it exploits a normal user workflow: copy, paste, run, and move on. The attacker does not need a browser exploit if the victim can be convinced to execute a command locally. That shifts the control problem from web filtering alone to user intent, command review, and safe handling of pasted content.
This also changes what defenders should look for in telemetry. A web page that instructs the user to open a terminal, press Win+R, or paste into a shell is not just a phishing page, it is a delivery step for code execution. When those instructions are paired with clipboard manipulation or misleading verification copy, the page is acting as an execution broker.
NHIMG’s ClickFix and Fake CAPTCHA Paste-and-Run Attacks Guide covers the lure patterns and the Windows hardening steps that reduce this abuse.
What usually happens after the first command runs
Once the pasted command executes, the attacker can chain it into a second-stage payload, an infostealer, or a loader that fetches more code. The first command may be intentionally small and obscure, because the real value is getting a foothold on the endpoint under the user’s own authority.
From a defensive point of view, that means the important boundary is not “did the user click a link?” but “did the user run an unexpected command?” If the command line contains script launchers, encoded text, or download-and-execute behavior, the page has already crossed from deception into endpoint compromise territory. The browser is just the lure surface.
Risk and Threat Considerations
ClickFix turns ordinary web trust into endpoint execution risk, which means the impact can extend far beyond the original browser session. Once a user pastes and runs attacker-supplied text, the attacker can reach local data, tokens, browser sessions, and in some cases follow-on payload delivery.
Failure mechanism: The attack depends on convincing the user to move attacker text from a page into an execution context, where the operating system treats it as a trusted local command. Clipboard manipulation, fake verification steps, and social proof are the mechanisms that make the handoff work.
Impact: Successful execution can lead to malware installation, credential and session theft, lateral movement, and further abuse of the endpoint, especially when the command spawns additional scripts or downloads remote content.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
MITRE ATT&CK addresses the attack and risk surface, while CIS Controls v8 and NIST SP 800-53 Rev 5 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| MITRE ATT&CK | T1204.004 — User Execution: Malicious File | ClickFix relies on user-run code via deception, which maps to user execution behavior. |
| T1566 — Phishing | The page is a social-engineering lure that induces the victim to run malicious text. | |
| Recommendation — Detect and block user-driven execution paths that launch attacker-supplied commands. Hunt for lure pages that prompt users to copy, paste, and execute commands. | ||
| CIS Controls v8 | CIS-7 — Continuous Vulnerability Management | Endpoint hardening and exposure reduction help limit follow-on payload impact after execution. |
| Recommendation — Patch and harden endpoints to reduce post-execution payload success. | ||
| NIST SP 800-53 Rev 5 | SI-4 — System Monitoring | Monitoring is needed to catch unusual terminal launches and encoded command execution. |
| AC-6 — Least Privilege | Least privilege limits the damage if the pasted command succeeds on the host. | |
| Recommendation — Alert on suspicious command-line activity and unexpected process chains. Constrain user and local admin rights to reduce execution blast radius. | ||
Practitioner Guidance
What to verify: Treat “paste this into Run or a terminal” as a high-risk condition, even when the page claims it is a verification step. Validate whether the command was user-initiated for a legitimate admin task, or whether it came from a browser-delivered lure that should be blocked and investigated.
Common mistake: Teams often focus only on the visible webpage and miss the real execution point on the endpoint. If the browser page is simply persuading a user to execute code locally, browser-only controls will not be enough.
Practitioner takeaway: The decisive control is reducing the chance that a user will execute untrusted pasted commands, because once the command reaches the shell, the web page has already achieved code execution by proxy.
Related resources from NHI Mgmt Group
Deepen Your Knowledge
Free weekly newsletter
Subscribe to the NHI & AI Identity Journal
The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.
Bonus 33% off our NHI Course when you subscribe.
Reviewed and updated by the NHIMG editorial team on November 25, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org