Do I need antivirus for my Mac? What macOS covers and where it stops
Not as a first step: your Mac already has a built-in antivirus called XProtect, and macOS also checks software the first time it is opened. Built-in protection can miss malware for a while, and so can any security software. One documented thing an extra tool can add on macOS 15 or later: it can be told when you bypass Gatekeeper, the first-open check, to run a program. How far you need antivirus for your Mac beyond that depends on your habits: see the table below.
01What macOS already has
XProtect is the built-in antivirus technology of macOS. It detects and removes malware by signature, a rule that describes known malware and can also match variants Apple has not seen. Apple updates the signatures automatically, independent of system updates. When XProtect detects known malware, it blocks it, moves it to the Trash and alerts you in the Finder. It also has a part that detects unknown malware by its behavior, and it acts to remove malware that has already managed to run.
Gatekeeper is the second check. By default, all software is checked for known malicious content the first time it is opened. How each one works is on the XProtect and Gatekeeper pages.
02Where the built-in protection can miss
Macs are not fully protected and not defenseless. The gaps are of three kinds.
First, you can override it. Gatekeeper can be overridden by the user, or turned off.
Second, the step you take yourself. macOS 26.4 added a security feature that scans commands pasted into Terminal before they are executed. The attacks that matter here rely on you to start them. Terminal is the app where you type commands.
Third, malware that is new or signed, meaning it carries a registered developer's ID. One signed stealer, a program that copies passwords and files, evaded Gatekeeper and XProtect for quite some time. Extra tools miss things too: in mid-May 2026, three Mac stealer samples were flagged by none of 72 antivirus scanners a full week after upload. A clean report from any tool is not a promise.
03What an extra tool can add
Apple documents what such tools can see. On macOS 15 or later, a third-party security tool can be told when a user bypasses Gatekeeper to run a program. In plain words, it can notice and show that someone let a program run past the first-open check. Apple also lists add-ons called endpoint security extensions, which watch what happens on the Mac for potentially malicious activity. That kind of monitoring is useful when you want to know what happens on the Mac, for yourself or for a team.
An extra tool is not a proven fix for what XProtect misses, and the zero-detection example above shows that other scanners miss things too. Treat it as a way to get visibility, not as a replacement for care at each install.
04Your situation, one by one
To decide if you need antivirus for your Mac, find the row that describes how you use it. If several fit, read each one, because the habits add up.
| Your situation | What the built-in layers do | What to do |
|---|---|---|
| You install only from the App Store | The App Store setting is the most secure one against malware. Every App Store app is sandboxed, which restricts its access to data stored by other apps | Keep that setting. This is the case where the built-in layers cover the most |
| You install from developer sites, search results or ads | Gatekeeper checks software at first open, and you can override it | Get software from the developer, not from an ad or a link |
| You paste commands into Terminal, clone shared projects or run AI agents | macOS 26.4 added a scan of pasted commands, and these attacks rely on you to start them | Follow the pasted-command rule in the list below |
| You want a record of what happens on the Mac | A third-party tool can be told when you bypass Gatekeeper to run a program, on macOS 15 or later | This is where an extra tool adds something |
For the first three rows, the answer is a habit, not a purchase: the built-in layers plus the habits below are your starting point. The fourth row is the one where an extra tool has a documented job.
05If you decide to add one
If you decide you need antivirus for your Mac, keep it updated and set it to scan new files automatically. A security product runs in the background and monitors all processes, so it should keep the load on the system to a minimum. What to look for in one is on the best antivirus page.
06What to do either way
These steps cost nothing.
- Use software only from reliable sources. In System Settings > Privacy & Security, the setting Allow applications from lets you limit your Mac to the App Store or identified developers.
- Keep macOS current. Go to System Settings, click General, then Software Update. Click the Info button next to Automatic Updates, then turn on Install macOS updates to have it done automatically, and Install Security Responses and system files for the rest.
- Never paste a command into Terminal, Script Editor or any system tool just because a website, a video call or a document told you to.
- Download AI tools only from their official sites, not from search ads or shared links.
For a look at what each setting does, see Mac security settings. If something already looks wrong, go to the step-by-step check or signs your Mac has a virus. On how malware arrives, read can Macs get viruses.
07The short version
You do not start from zero, since macOS ships with an antivirus and checks software at first open. To decide if you need antivirus for your Mac beyond that, look at your habits: installs from outside the store, pasted commands, agents. Those are the places where you take the step yourself. An extra tool can add a record of events, and the habits matter with or without one.
FAQ
Do Macs have a built-in antivirus?
Yes. macOS includes built-in antivirus technology called XProtect for the signature-based detection and removal of malware. Apple updates its signatures automatically, independent of system updates. See the XProtect page.
How good is Apple's built-in antivirus?
It blocks known malware, moves it to the Trash and alerts you in the Finder, and it has an engine that looks for unknown malware by behavior. It can still miss malware for a while, as can any security software.
How do I protect my Mac from viruses?
Use software only from reliable sources, keep macOS updated and do not paste commands because a web page told you to. The security settings page lists the switches.
Do Macs need antivirus in 2026?
Not as a first step. macOS already includes one, and one documented thing an extra tool adds is this: on macOS 15 or later, third-party tools can receive events when a user bypasses Gatekeeper.
Are Macs still safe from viruses?
Not completely. macOS is no longer a niche target, and stealers remain the dominant threat class. Built-in protection covers known threats, and malware can still go undetected for a while.
Should I use the App Store only?
It is the most secure setting against malware, and every App Store app is sandboxed to restrict access to data stored by other apps.
Related guides
Sources
- Apple Platform Security, protecting against malware
- Apple Platform Security, Gatekeeper and runtime protection
- Apple Support, protect your Mac from malware
- Apple Support, Software Update
- FTC Consumer Advice, how to recognize, remove and avoid malware
- AV-TEST, Mac test under Sequoia (Odyssey stealer)
- Objective-See, The Mac malware of 2025
- Microsoft Defender Experts, hunting infostealers on macOS
- Apple Support, Login Items & Extensions
- Apple Support, Privacy & Security settings
- MacPaw Moonlock Lab, H1 2026 report (vendor: MacPaw sells antivirus software)
- Jamf Threat Labs, ClickFix and Script Editor
- Artificial Immunity