How to Scan Your Mac for Viruses and Malware (Built-in Protection and Free Checks)
Quick answer: macOS already blocks known malware with XProtect and Gatekeeper, and updates those protections automatically. To check your own Mac, review installed apps, login items, browser extensions and configuration profiles, watch for unfamiliar processes in Activity Monitor, and run an on-device malware scan.
Whether you need extra protection is covered in Does a Mac Need Antivirus? How to Scan Your Mac for Malware in 2026. This guide is the practical checklist. Disclosure: we make Space App, which appears near the end. Every check here works without it.
Does macOS already scan for malware?
Yes. Apple describes three layers: prevention through the App Store and notarization, blocking with Gatekeeper and XProtect, and remediation of malware that already ran. XProtect signatures update daily by default.
Gatekeeper works with notarization to stop malware from launching, and macOS regularly checks for new revocation tickets.
XProtect is built-in, signature-based antivirus. It checks apps when they first launch, when they change on disk and when signatures update. When it detects known malware it blocks it, moves it to the Trash and alerts you in the Finder.
Notarization means Apple scanned the developer software for known malware before release. Apple can revoke a ticket later, even for a previously notarized app.
Keep macOS updated so these stay current.
What do the Gatekeeper warnings mean?
Gatekeeper checks the developer signature and, since macOS Catalina, notarization for apps downloaded outside the App Store. A warning that the developer cannot be verified means macOS cannot rule out malware.
Apple explains the common alerts. Downloaded from the Internet is a confirmation prompt for a new app from an identified developer. Apple cannot check the app for malicious software and developer cannot be verified mean the app is not notarized. An alert that an app will damage your computer means known malware, which macOS moves to the Trash.
To open an app anyway, try to open it, then go to System Settings → Privacy & Security, scroll down and click Open Anyway. Apple warns that unnotarized software might expose your computer and personal information to malware, so do this only if you trust the source.
How do you check your Mac for malware, step by step?
Review installed apps, login items, browser extensions, configuration profiles, launch agents and permissions, then watch Activity Monitor for unfamiliar processes. The table below walks through the checks.
| Check | Where | What to look for |
|---|---|---|
| Installed apps | Applications folder | Anything you did not install |
| Login items | System Settings ▸ General ▸ Login Items & Extensions | Unknown names |
| Browser extensions | Safari, Chrome and Firefox extension lists | Unneeded or unfamiliar extensions |
| Profiles | System Settings ▸ Privacy & Security, or General ▸ Device Management | Configuration profiles you did not add |
| Running processes | Activity Monitor | Unfamiliar names with high CPU or network |
| Gatekeeper | System Settings ▸ Privacy & Security | Allow apps from App Store and identified developers |
What are the warning signs of malware or adware?
Common signs are a changed home page or search engine, pop-ups when you are not browsing, unfamiliar apps or extensions, a hot or slow Mac, and unknown processes using lots of CPU or network.
Browser home page or search changed without your action
Pop-ups and ads when you are not browsing
Apps or extensions you do not remember installing
The Mac is hot or slow with nothing heavy open
Unknown processes using lots of CPU or network
What is the difference between adware and malware?
Adware is generally treated as a form of malware that shows ads or changes browser settings rather than stealing files or locking them. Security tools often label it a potentially unwanted program.
Malwarebytes, in a 2015 FAQ, describes adware as malware that does not do things like keylogging or holding files for ransom, and notes that antivirus tools may flag it only as a potentially unwanted program. Sophos, writing about the Bundlore family, says it arrives as a DMG that presents itself as a harmless utility, and that browser extensions can see web requests before they leave your Mac. Sophos also warns that some variants can steal personal data.
The practical difference is the clean-up. Adware usually lives in an app, a browser extension or a profile you can remove. Watch for pre-selected extras in installers, and be careful with pirated software, which security vendors repeatedly name as a common carrier.
Which Terminal commands help you check your Mac?
Four read-only Terminal checks help: spctl --status for Gatekeeper, a listing of the launch folders, system_profiler for configuration profiles, and ps to rank running processes by CPU.
spctl --status
ls ~/Library/LaunchAgents /Library/LaunchAgents /Library/LaunchDaemons
system_profiler SPConfigurationProfileDataType
ps aux | sort -nrk 3 | head -10We ran all four on 2026-11-03 on macOS 26.6.2. The first printed assessments enabled, meaning Gatekeeper is checking apps. The listing and profile commands show what starts automatically and which profiles are installed. The last shows the ten busiest processes; on that Mac the top entries were a browser engine, a browser and a developer tool, which is normal for the work being done.
None of these commands delete or change anything. An unfamiliar name is a reason to search for it, not a reason to delete it.
Where do launch agents and daemons hide malware?
Launch agents and daemons start automatically from three folders: ~/Library/LaunchAgents, /Library/LaunchAgents and /Library/LaunchDaemons. Legitimate software uses them too, so look for names you do not recognise rather than deleting everything.
On the Mac we checked, the folders held 1, 3 and 19 items, 23 in all. Every name carried a third-party vendor prefix such as Adobe, Microsoft, Cloudflare or Docker. We did not match each one to an installed app, which is the step you should do on your own Mac. Counts vary with installed software, so recognise names rather than totals.
Which permissions should you review?
Review Accessibility, Input Monitoring, Screen Recording and Full Disk Access under System Settings, Privacy and Security. An app with these permissions can see a lot, so remove any you do not recognise.
How do you review browser extensions?
In Safari, open Safari, Settings, Extensions and click Uninstall; in Chrome visit chrome://extensions; in Firefox open Add-ons and themes. Remove anything you do not recognise or no longer use.
Apple says an extension that came with an app is removed by dragging the app to the Trash. Be wary of extensions that can read and change data on every website. If your home page or search engine has been changed, reset it in the browser settings as well.
How do you check configuration profiles?
Profiles can force settings such as a proxy or DNS server. Look under System Settings, Privacy and Security, Profiles, or General, Device Management, depending on your macOS version, and remove any you did not install.
On a work Mac, leave managed profiles alone and ask your IT team. If you see a profile you did not install and the Mac is not managed by your employer, remove it.
How do you read network activity in Activity Monitor?
Open Activity Monitor, choose the Network tab and sort by data sent. Uploads from a browser or sync app are normal; a steady stream from an unfamiliar process while idle deserves a closer look.
Search for the process name before you quit it. Our guide to Activity Monitor explains the other tabs.
What should you do if you find something?
Disconnect from the network if you suspect active malware, remove the app, extension, profile and login item, change important passwords from another device, then restart and re-scan.
Disconnect from the network if you suspect active malware.
Remove the app, extension or profile, and its login item.
Change passwords for important accounts from another device.
Restart and re-scan.
What if the unwanted behaviour keeps coming back?
Back up your documents but not your applications, then erase the Mac and reinstall macOS from Recovery. It is a last resort, but a reliable one when removal does not work.
How do you spot a fake virus alert?
A pop-up saying your Mac is infected, especially one that gives a phone number or offers a cleaner to download, is a scam. Close the tab, or quit the browser if it will not close.
Never call the number or install what it offers. Real macOS security alerts do not ask you to phone anyone. In 2026 Microsoft also reported a campaign that used fake Mac storage cleanup guides to get people to paste Terminal commands that installed password-stealing malware, so do not paste commands from a page you cannot vouch for.
How do you keep protections current?
Apple updates XProtect signatures in the background, checking daily by default, so keep the Mac on, online and updated. Running an out-of-date macOS leaves known issues open.
How do you run an on-device scan with Space App?
The Space App malware scanner checks installed and running software against known Mac threats and lists apps sending data over the network. It runs on your Mac, and we make it, so weigh it accordingly.
The scanner in Space App scans what is installed and running, checks it against known Mac threats, and lists apps that are sending data out over the network so you can review, quit or remove them. It complements macOS security rather than replacing it.
FAQs
Can a Mac get a virus?
Yes, though most threats are adware and trojans rather than classic viruses. macOS blocks known malware with XProtect and Gatekeeper, but new or user-approved threats can still get through, so check the warning signs.
How do I check my Mac for malware for free?
Use the checklist above, which needs no extra software: review apps, login items, extensions, profiles, launch agents and permissions, then watch Activity Monitor. Terminal read-only commands add detail without installing anything.
Is Activity Monitor enough?
Activity Monitor shows what is running, but it will not tell you what is malicious. Compare unknown process names with a web search before quitting anything, and check the Network tab for steady uploads.
Which permissions should I review for malware?
Accessibility, Input Monitoring, Screen Recording and Full Disk Access, all under System Settings, Privacy and Security. Remove anything you do not recognise, since an app holding these permissions can see a lot.
Where do launch agents live on a Mac?
In ~/Library/LaunchAgents, /Library/LaunchAgents and /Library/LaunchDaemons. Items there start automatically, and legitimate software uses them too, so investigate unfamiliar names before deleting anything. Our count on one Mac was 23 items across the three folders.
What should I do about a pop-up saying my Mac has a virus?
Ignore it and close the tab, or quit the browser if it will not close. It is a scam page, not a scan result from your Mac, so never call the number.
Does XProtect scan my whole disk?
Apple describes XProtect as checking apps when they first launch, when they change on disk and when signatures update, rather than as a manual full-disk scan you start.
Is adware a virus?
Not in the strict sense. Adware shows ads or changes browser settings, and security vendors usually class it as unwanted software or a mild form of malware. Remove it the same way as unwanted apps.
Should I click Open Anyway on a blocked app?
Only if you trust the source. Apple warns that unnotarized software might expose your computer and personal information to malware. If you do not recognise the developer, delete the download instead.
How do I check that Gatekeeper is on?
Run spctl --status in Terminal. On macOS 26.6.2 it printed assessments enabled, which means Gatekeeper is checking apps. Managed Macs may restrict the setting, as Apple notes for the allowed-sources option.
Related guides
Does a Mac Need Antivirus? How to Scan Your Mac for Malware in 2026
How to Stop Apps From Opening at Startup on a Mac (Login Items and Background Items)
Activity Monitor on Mac: How to Check CPU Usage and Find What Is Slowing You Down
