How to check your Mac for a virus or malware, step by step
Check your Mac for a virus in five steps. Step 1 is to think back over what you opened or pasted in the last few days. Three recent campaigns spread stealers, programs that copy your passwords, browser data and keys, by tricking you into mounting an unsigned DMG (a disk image the developer has not signed) or pasting a command into Terminal. If that happened, go to the infostealer check. If not, look at Activity Monitor, Login Items & Extensions, your apps and browser extensions, then permissions and updates.
"Virus" is the everyday word, but the broader word is malware: harmful software installed on your device without your knowledge. Viruses, spyware and ransomware are common types. The five steps work for all of them.
01What macOS already checks
macOS has built-in antivirus technology, XProtect, and by default macOS checks all software for known malicious content the first time it is opened. Details are on the XProtect and Gatekeeper pages. macOS also scans for you: XProtect checks apps that changed and apps at first launch. The steps below cover what those checks leave to you, and the way to check your Mac for a virus starts with you, not with the Mac.
02Step 1: Remember what you ran
Before you check your Mac for a virus, think back over the last few days. Did you do any of these?
- Open an installer from an ad, a search result or a cracked-app site. Scammers place bogus software ads on social media and search engines.
- Paste a command from a web page, a forum or a chat into Terminal, the app where you type commands.
- Type your Mac password into a dialog that appeared during an install. In one stealer case the macOS host showed a password prompt before the infection would proceed.
If you answered yes to any of them, stop here and open the infostealer check. It covers the order of steps when a stealer may have run. The families behind these tricks are listed on the Mac infostealers page. If you answered no, continue.
03The five steps at a glance
| Step | Where | What you are looking for |
|---|---|---|
| 1 | Your own memory | An installer, pasted command or password dialog from the last few days |
| 2 | Activity Monitor | Programs running now that you do not recognize |
| 3 | System Settings > General > Login Items & Extensions | Items that start at login and that you did not add |
| 4 | Applications folder, Safari Extensions tab | Apps and extensions you did not install |
| 5 | System Settings > Privacy & Security, then General > Software Update | Apps that hold powerful permissions; the latest macOS, then a restart |
04Step 2: Look at Activity Monitor
To open Activity Monitor, open Spotlight, type Activity Monitor and click the app. Processes are programs running on your Mac. They can be apps, system apps or invisible background processes. Activity Monitor shows how much memory and CPU time each one is using. Use it to answer one question: what is working hard right now. That matters most when the Mac has slowed down, freezes or crashes.
The list is long and many names will look strange, so a name you do not know is a reason to search for it, not a verdict. The search field finds a process by name. The view All Processes, Hierarchically shows which process belongs to which, so you can see the parent and child relationship. The list refreshes every 5 seconds by default.
If Activity Monitor refuses to open or is disabled, treat that as a symptom of its own. The suspicious processes page goes deeper on reading the list.
05Step 3: Check what starts at login
Malware often installs itself persistently, so that it runs again after a restart or login. The place to look is the list macOS keeps for programs that open on their own. Choose Apple menu > System Settings, click General in the sidebar, then click Login Items & Extensions. The list shows apps, documents and server connections that open automatically when you log in. Go through it and look for anything you did not add. To remove an item, select it in the list and delete it.
06Step 4: Check apps and browser extensions
Open your Applications folder and look for apps you do not expect. Malware is often embedded in a harmless-looking app, and the way to reduce that risk is to use software only from reliable sources. The safest place to download apps is the App Store. If you need something that is not there, get it from the developer, not from an ad or a link.
In Safari, open the Extensions tab in Safari settings and look for extensions you did not install. New browser toolbars or add-on programs are another thing to notice. So are a changed home page or redirects to sites you did not intend to visit. The virus pop-up page covers the fake warnings that go with them.
Pop-ups that will not go away can mean adware, which is advertising-supported software installed by accident. Be careful when you close one: some have fake buttons that look like a close button. To stop Safari from reopening the same windows, quit it, then hold the Shift key while opening it again.
07Step 5: Check permissions, then update and restart
Choose Apple menu > System Settings, then click Privacy & Security in the sidebar; you may need to scroll down. These settings protect your data and control what your Mac makes available to others. A few entries deserve a look, because an app that holds them can do a lot. Input Monitoring lets apps see what you type. Accessibility lets apps run scripts and system commands to control your Mac. Screen & System Audio Recording lets apps record your screen and audio. Full Disk Access reaches all files on the computer, including data from other apps. Read each list and check that every app in it is one you know.
Then update. Go to System Settings, click General, then click Software Update. If your Mac is already on the latest macOS, restart it anyway, because macOS has a built-in tool that removes known malware when restarting.
08What a clean result means
If all five steps look normal, you found nothing obvious. That is useful, but it is a snapshot, not a guarantee. Neither this check nor an antivirus can prove that your Mac is clean. Some malware leaves nothing in these places; the section on infections with no signs is on the signs of a virus page.
Whether a separate virus checker adds anything is a different question. The do I need antivirus page answers it, and best antivirus explains what to look for in one.
09If you found something
Do the first things first, in this order. Stop logging in to online accounts with sensitive information, like shopping or banking, until you know more. Then, from a device you trust, change your passwords and turn on two-factor authentication in case the malware gave someone access to your accounts. If you lost money, report it to the FTC at ReportFraud.ftc.gov.
The cleanup itself is on the remove malware page. The table of warning signs is on signs your Mac has a virus. To see how malware gets onto a Mac in the first place, read can Macs get viruses.
10The short version
To check your Mac for a virus, begin with what you ran. Then open Activity Monitor, Login Items & Extensions, your Applications folder and Safari extensions, Privacy & Security and Software Update, in that order. Each place is a few clicks. A clean result means nothing obvious turned up.
FAQ
Does Mac have built-in malware detection?
Yes. macOS includes built-in antivirus technology called XProtect for the signature-based detection and removal of malware. The details are on the XProtect page.
How do I run a malware scan on a Mac?
macOS scans for you: XProtect checks apps that changed and apps at first launch. To prompt its cleanup, update macOS and then restart, because macOS has a built-in tool that removes known malware when restarting.
How can I check if my Mac is compromised?
Work through the five steps above: what you ran, Activity Monitor, Login Items & Extensions, apps and browser extensions, then permissions and updates. Then watch for messages you did not write.
How do I clean malware from my Mac?
First stop logging in to accounts with sensitive information. Then change your passwords and turn on two-factor authentication. The cleanup steps are on the remove malware page.
Can a Mac be infected with malware?
Yes. Three recent Mac stealer campaigns relied on tricking users into mounting an unsigned DMG or pasting a command into Terminal. See can Macs get viruses for the routes.
Is a clean result proof that my Mac is clean?
No. Malware can go undetected even with security software, at least for a while. It only means these places looked normal.
Related guides
Sources
- Apple Platform Security, protecting against malware
- Apple Platform Security, Gatekeeper and runtime protection
- Apple Support, Activity Monitor processes
- Apple Support, Login Items & Extensions
- Apple Support, protect your Mac from malware
- Apple Support, pop-ups and malware on Mac
- Apple Support, Privacy & Security settings
- Apple Support, Software Update
- Objective-See, BlockBlock
- Palo Alto Networks Unit 42, AMOS activity
- Malwarebytes, poisoned AI chats and AMOS
- FTC Consumer Advice, how to recognize, remove and avoid malware
- Microsoft Defender Experts, hunting infostealers on macOS
- Artificial Immunity