Real World Clickfix Attack How Hackers Turn A Simple Click Into A Full Breach
A phishing email with a PDF attachment led to a fake CAPTCHA page that copied a malicious PowerShell command to the clipboard, tricking the user into running it. The command launched a remote HTML application that dropped malware, connected to a command-and-control server, disabled logging, established persistence, and exfiltrated data.
Muraleekrishnan Unnithan R Follow
Published on infosecwriteups.com
During a routine phishing investigation, I came across an interesting attack method known as ClickFix. It all started with a suspicious email that had a PDF attachment.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the attack relies on tricking users into manually executing a malicious command, bypassing browser security by using the legitimate Windows utility mshta to run a remote HTML application.
Impact
An attacker could fully compromise a victim's Windows machine, drop additional malware, establish persistence, and exfiltrate personal data.
What the attacker needed
Victim receives phishing email; victim opens PDF and clicks link; victim clicks fake CAPTCHA; victim pastes and runs command
How it was found
- Open the PDF attachment from the phishing email and click the embedded link.
- On the fake CAPTCHA page, click the verification checkbox, which copies a PowerShell command to the clipboard.
- Paste and execute the copied command, which runs mshta to load a remote HTA file.
- The HTA executes obfuscated JavaScript that drops files into the Temp folder.
- The script connects to a command-and-control server, disables file tracing, drops a DLL, modifies the Startup folder for persistence, and exfiltrates data.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
This is a social engineering attack called ClickFix. The attacker sends an email with a PDF that links to a fake CAPTCHA page. When you click the CAPTCHA, it secretly copies a harmful command to your clipboard and tells you to paste it into a Windows run box. Running that command lets the attacker install malware on your computer.