“Help, how do I remove this malware?” is a recurring post in Mac forums, and in 2026 it almost always traces back to the same thing: a fake CAPTCHA page that talks the visitor into opening Terminal and pasting a command. Security researchers call the technique ClickFix, and campaigns using it against Mac users have been tracked all year, including ones aimed at developers and AI tool users. This guide covers how it happens, what to do if you already ran a command and how to check a Mac properly instead of guessing.
If you already pasted a command: jump to the section on that below, and change your important passwords from a different, clean device before you do anything else on the infected Mac.
Quick triage
| Your situation | What to do first | Where to read more |
|---|---|---|
| You pasted and ran a command from a website | Change key passwords from a clean device, disconnect if you suspect ongoing data theft, and assume the Mac is compromised | If you already ran a Terminal command |
| You saw a fake verification page but ran nothing | Close the tab. The technique depends on you running the command | How Mac infections actually happen now |
| Odd symptoms, but you never ran a command | Work through the checks | How to check, step by step |
| Symptoms keep coming back, or you handle crypto or sensitive data | Plan an erase and reinstall | When a factory reset is the only real fix |
How Mac infections actually happen now
Mac malware rarely arrives through a software exploit anymore. The dominant technique in 2026 is social engineering, not a technical flaw:
- A fake verification page. You land on a site, often a compromised but otherwise legitimate WordPress site, and see what looks like a standard Cloudflare human-check or a “macOS optimization” prompt.
- It asks you to open Terminal and paste a command. Some variants copy the command to your clipboard automatically and walk you through Command+Space, open Terminal, paste, press Return.
- You run it yourself. Because you pressed Return, rather than an attacker exploiting a bug, this sails past most traditional defenses. One campaign even clears the Terminal window afterward and prints a fake “Verification successful” message so you don’t realize anything happened.
- The payload installs quietly. It typically downloads a file to a temporary folder, runs it in the background with a command like
nohupso it survives closing Terminal, and begins collecting data.
No legitimate CAPTCHA, website or verification system ever requires you to open Terminal and paste anything. That single fact covers the vast majority of current Mac infections. In March 2026, Apple added a mitigation to macOS specifically to warn users before this kind of command runs, but new variants keep finding ways around simple warnings, so the habit matters more than the patch.
If you already ran a Terminal command from a website
Treat the Mac as compromised right now, before you do anything else:
- From a different, clean device, change the passwords for your email, banking and any account you use a password manager for.
- Check for the Macfinger indicator. If the path
~/Library/Caches/com.apple.metadata/com.apple.verifiedexists on your Mac, one security researcher flags it as a sign of this specific campaign. - Disconnect from the network if you suspect active, ongoing exfiltration, then continue with the checks below.
- Don’t trust Keychain prompts for a while. Some campaigns specifically try to harvest your Keychain password through a fake system dialog after the initial command runs. If you see an unexpected Keychain password prompt in the hours after this, cancel it and don’t type anything.
- Write down what happened: which site, roughly when, and what the page asked you to do. It helps if you need to report it or get help.
- Don’t run the command again, and don’t paste it anywhere else to “see what it does.”
Signs your Mac may be infected
- Unexplained high CPU usage when the Mac is idle, visible in Activity Monitor.
- Browser redirects, unexpected pop-ups or a new default search engine you didn’t set.
- Fake software update prompts appearing outside System Settings.
- Login Items or background items you don’t recognize.
- A noticeably hotter Mac or louder fans with no obvious cause.
None of these alone proves an infection. Golden Gate’s own post-upgrade indexing can also spike CPU and heat; see our System Data guide if storage looks unusually full at the same time. The check below is what actually confirms it either way.
Where Mac malware hides
Mac persistence techniques are well documented and cluster around a small number of locations:
| Location | Scope |
|---|---|
/Library/LaunchDaemons/ | System-wide, runs at boot, before any login |
/Library/LaunchAgents/ | System-wide, runs at login for any user |
~/Library/LaunchAgents/ | Runs at login for your user only |
| Login Items & Extensions | Apps set to open automatically at login |
| Background Items | Apps allowed to run without appearing in the Dock |
| Browser extensions | Persist independently of the app itself |
| Configuration profiles | Can enforce settings or install certificates without your ongoing awareness |
| Cron jobs | Scheduled tasks, less common but still used |
Plenty of legitimate software uses these locations too. What matters is an entry you don’t recognize.
How to check, step by step
- Activity Monitor. Open it, sort by CPU and look for processes you don’t recognize, especially ones with unusual or randomized-looking names.
- Login Items & Extensions. System Settings > General > Login Items & Extensions. Click anything you don’t recognize and remove it. Check the “Allow in the Background” section on the same screen too.
- LaunchAgents and LaunchDaemons. Open Finder, press Command+Shift+G and check each of these paths:
/Library/LaunchDaemons/
/Library/LaunchAgents/
~/Library/LaunchAgents/
Look for unfamiliar .plist files, especially ones with generic or recently modified names. Sorting each folder by Date Modified brings recent files to the top.
- Configuration profiles. System Settings > General > Device Management, or Privacy & Security > Profiles depending on your macOS version. Remove any profile you didn’t install yourself.
- Browser extensions. Check each browser’s extensions page individually and remove anything unfamiliar.
- Temporary files from the infection vector. If you ran a ClickFix-style command, check
/tmpfor recently created files you don’t recognize.
Removing what you find
- Quit the suspicious app or process first, from Activity Monitor if it won’t quit normally.
- Delete the app itself from the Applications folder.
- Delete the matching LaunchAgent or LaunchDaemon plist you identified above.
- Remove the Login Item or Background Item entry.
- Restart the Mac.
- Reopen Activity Monitor and Login Items & Extensions, and confirm nothing suspicious has reappeared.
- Over the next week, watch for the symptoms coming back: idle CPU spikes, browser redirects, fake update prompts or new unfamiliar Login Items.
When a factory reset is the only real fix
Manual removal works for straightforward adware and browser hijackers. It isn’t reliable against a genuine infostealer that has already run with full user permissions, because you can’t be certain everything it touched, downloaded or configured has been found and undone. If any of these apply, a clean erase and reinstall of macOS is the safer path:
- You ran a Terminal command from a suspicious page, and the malware had time to run before you noticed.
- You granted an administrator password or Keychain access during a prompt you now believe was part of the attack.
- Symptoms keep returning after you’ve removed everything you can find.
- You handle sensitive data, credentials or crypto wallets on the Mac. See our hot wallet threat model guide if that applies to you.
Back up your files (not your apps or system settings, which could carry the infection back with them), erase the disk from Recovery and do a clean install. In order:
- Back up only your documents and photos.
- Erase the Mac, either with Erase All Content and Settings in System Settings > General > Transfer or Reset, or from macOS Recovery.
- Reinstall macOS.
- Set the Mac up as new and bring back only your documents.
- Reinstall your apps from their official sources, not from an old backup.
After you change your passwords
- Sign out of all sessions on your important accounts, where the service offers it.
- Turn on two-step verification or passkeys for email, banking and your password manager.
- Look for sign-ins or password-reset emails you don’t recognize.
- Watch bank and card statements closely over the coming weeks.
- If you used a crypto wallet on that Mac, treat its recovery phrase as exposed.
After cleanup: close the door it came through
- Never paste a command into Terminal from a website, no matter how it’s framed. No legitimate verification process requires it.
- If a page tells you your browser needs to “prove it’s not a bot” in a way that involves Terminal, close the tab.
- Keep Gatekeeper and XProtect enabled, and keep macOS updated. See which security update your Mac needs.
- Before installing any app from outside the Mac App Store, check our guide on how to verify an app is genuine.
The short version
- Most current Mac malware spreads through ClickFix: a fake CAPTCHA or verification page that tricks you into pasting a command into Terminal yourself.
- If you already ran a command like that, change your important passwords from a different device immediately.
- Check Activity Monitor, Login Items & Extensions, LaunchAgents and LaunchDaemons, and configuration profiles for anything unfamiliar.
- For a genuine infostealer infection, a clean erase and reinstall is more reliable than manual removal.