How to remove malware from a Mac, step by step

How to find what's wrong, quit it, turn off what starts it, remove the app and its leftovers, clean up your browsers, check it's gone, and what to do if it keeps coming back.

On this page
  1. What macOS removes on its own
  2. 1. Back up your documents
  3. 2. Find out what it is
  4. 3. Quit it
  5. 4. Turn off what starts it
  6. 5. Move the app and its leftovers to the Trash
  7. 6. Clean up your browsers
  8. 7. Restart and check again
  9. If it keeps coming back
  10. Do you need malware removal software?
  11. Remove startup items and apps with Aegisrook
  12. Frequently asked questions
  13. Sources

To remove malware from a Mac, quit it, turn off whatever starts it, move the app and its leftover files to the Trash, and clean up your browsers. Then restart and check it hasn’t come back. On a Mac, malware is almost always an app that someone talked you into installing, so removing it is mostly a matter of finding that app and the things that launch it. If it keeps coming back, erasing the Mac and reinstalling macOS is the sure way out.

The order for removing malware from a Mac: back up your documents, quit it in Activity Monitor, turn off what starts it, move the app and its leftovers to the Trash, then clean up your browsers and restart
The order for removing malware from a Mac: back up your documents, quit it in Activity Monitor, turn off what starts it, move the app and its leftovers to the Trash, then clean up your browsers and restart

What macOS removes on its own

Apple’s own description is that XProtect “includes technology to remediate infections”: it checks apps when they first open, and its rules, delivered in automatic updates, can remove malware that Apple has described. So the first step is to make sure those updates are on. Open System Settings > General > Software Update, click the info button next to Automatic updates, and check that Install Security Responses and system files is on.

XProtect only knows what Apple has described. Adware, a freshly made password stealer or a remote-control app you were tricked into installing can all sit on your Mac untouched, which is why the rest of this guide is done by hand. To confirm there’s something to remove, see how to tell if your Mac has a virus.

1. Back up your documents

Copy your documents, photos and other files you care about to an external drive or another cloud account. Copy files, not apps: you don’t want to carry a bad app into your next set-up. If you already use Time Machine, make sure a recent backup finished first.

2. Find out what it is

Look for a name. It may be in a pop-up, in the Login Items & Extensions list, or in Activity Monitor. Search the exact name with the word “Mac”. If every result says it’s a legitimate app you use, leave it alone. Removing the wrong item can stop an app you rely on from working.

If you have nothing to go on, look for what you installed or downloaded just before the trouble began: a “cracked” app, a “video player” update, a “fix” from a pop-up, or a remote-control app someone asked you to install.

3. Quit it

  1. Open Activity Monitor, in Applications > Utilities.
  2. Click the CPU tab, then search for the app’s name in the search box.
  3. Select it and click the stop button (an octagon with an X) in the toolbar.
  4. Choose Force Quit.

If it starts again within a few seconds, something is relaunching it. That’s the next step. Our guide to Activity Monitor on Mac explains how to read the other columns.

4. Turn off what starts it

Malware that survives a restart has registered itself to start. Look in two places.

  1. Open System Settings > General > Login Items & Extensions.
  2. Under Open at Login and App Background Activity, turn off or remove any item you don’t recognize.

Some items don’t appear in that list. In Finder, choose Go > Go to Folder, and open each of these in turn:

~/Library/LaunchAgents
/Library/LaunchAgents
/Library/LaunchDaemons

Each file is a small .plist that tells macOS to start something. Apple’s own items live in /System/Library, not these folders, so a file here starting with com.apple. deserves a closer look. Move a file to the Trash only when you know which app it belongs to: a file named after the app you’re removing is a safe one. Our guide to Mac startup items explains what each folder is for.

To see whether a profile was installed on your Mac, open System Settings > General > Device Management. On a personal Mac the list should be empty. You can also check from Terminal. This command is read-only:

profiles status -type enrollment

On our Mac it printed Enrolled via DEP: No and MDM enrollment: No.

5. Move the app and its leftovers to the Trash

  1. Open Finder > Applications.
  2. Drag the app to the Trash, or select it and press ⌘ Delete.
  3. Enter your password if asked.

Apps leave settings, caches and background helpers behind in your Library folders, so dragging to the Trash alone isn’t a full removal. Our guide to uninstalling apps on a Mac completely shows where those files are. Finish by emptying the Trash.

6. Clean up your browsers

Adware often changes the browser rather than the Mac.

  1. In Safari, open Settings > Extensions and turn off any you didn’t install on purpose. Then check Settings > General for the home page and Settings > Search for the search engine.
  2. In Chrome, type chrome://extensions in the address bar and remove anything unfamiliar. Check Settings > Search engine too.
  3. In any browser, remove notification permissions for sites you don’t know.

7. Restart and check again

Restart the Mac, wait a few minutes, then look at Login Items & Extensions and the LaunchAgents and LaunchDaemons folders again. If the item has come back, something else is putting it there: go back to step 4 and look for a second app or file with a different name.

If your Mac was slow, check Activity Monitor again after a few minutes. A process that was using a lot of CPU and is gone is a good sign.

If it keeps coming back

Some malware has more than one part, and finding all of them by hand can take longer than starting clean. You have two options.

Reinstall macOS without erasing. In macOS Recovery, choose Reinstall macOS. Apple says this installs a fresh copy of macOS and keeps your files and settings. It replaces the system, but it doesn’t touch apps and files in your own folders, so it won’t remove malware that lives there.

Erase the Mac. Open System Settings > General > Transfer or Reset and choose Erase All Content and Settings on a Mac with Apple silicon or a T2 chip. This returns the Mac to its factory state. Restore your documents from your backup, but install your apps again from their original sources rather than restoring them, and change your passwords from another device afterward.

If someone targeted you in particular, or the Mac belongs to a company, get help from a security professional before you wipe anything: erasing the Mac also erases evidence.

Do you need malware removal software?

A scanner can help you find the bad app, but nothing in the steps above needs one. For checking a file or folder with free tools, see how to scan your Mac for malware for free.

Remove startup items and apps with Aegisrook

Frequently asked questions

How do I remove malware from my Mac?

Quit the app in Activity Monitor, turn off its entry in Login Items & Extensions, move the app and its leftover files to the Trash, and clean up your browsers. Restart and check that it hasn’t come back.

Can I remove malware from a Mac for free?

Yes. Every step in this guide uses what’s already in macOS, and Apple’s XProtect removes known malware on its own once its updates are on. Free scanners such as ClamAV can help you find a file, but you don’t have to pay for anything.

How do I know if my computer is infected with malware?

Common signs on a Mac are an app or browser extension you didn’t install, a changed home page or search engine, pop-ups that won’t stop, a startup item you can’t explain, and a fan that runs when the Mac is idle. See how to tell if your Mac has a virus for the checks.

What are the common types of malware on a Mac?

Adware that changes your browser, password stealers that arrive inside fake installers, and remote-access tools that let someone control the Mac are the ones most often seen. Ransomware is much rarer on a Mac. Our glossary explains malware, infostealers and ransomware.

What is the best security software for Mac?

We don’t rank security apps. macOS already blocks and removes a lot, and for most people the useful extra is something that shows you what runs and warns you about changes. Our guide Do Macs need antivirus software? explains what’s built in.

Does a factory reset remove malware from a Mac?

Erasing the Mac with Erase All Content and Settings removes it, as long as you don’t bring the malware back when you restore. Restore documents only, and reinstall apps from their original sources.

Sources

  1. Apple Platform Security, Protecting against malware in macOS.
  2. Apple Support, Change Login Items & Extensions settings on Mac.
  3. Apple Support, Reinstall macOS and Erase and reinstall macOS.
  4. Apple Support, Back up your files with Time Machine on Mac.
  5. Setting names, the profiles command and the Erase All Content and Settings option checked on macOS 26.0.1 (25A362), 9 November 2026. Aegisrook features checked in the app’s source.

How we tested. Every step was checked on macOS 26.0.1 (25A362), MacBook Pro (16-inch, 2021, Apple M1 Pro), 9 November 2026. Menus and wording can differ on other versions of macOS.

See what your Mac is really doing

Aegisrook shows every app, connection and permission on your Mac, and tells you when something changes. Pay once and keep it for good.

Notarized by Apple · Built on Apple's Endpoint Security
30-day money-back guarantee