XProtect on Mac: what the built-in antivirus does and how it updates
XProtect is the built-in antivirus of your Mac. It detects and removes malware by signature. Apple updates its signatures automatically, independent of system updates, and macOS checks for them daily by default. Apple delivers the signatures itself; your part is to leave the Software Update switches on, so nothing holds that delivery back. XProtect on Mac catches known malware and things that look like it, not everything.
01What XProtect on Mac is
XProtect on Mac is the antivirus technology that ships with macOS. It does signature-based detection and removal of malware. A signature is a rule that describes a known piece of malware. Apple writes these rules in a format called YARA, a tool for matching malware patterns.
The rules are more general than a fingerprint of one exact file. So XProtect can find variants that Apple has not seen yet. It also contains an engine that looks for unknown malware by how it behaves.
02What XProtect checks and what it does
XProtect scans only apps that have been changed and apps at first launch. First launch means the first time you open an app after it arrived on your Mac, so a downloaded app gets looked at the moment you try to start it. Here is what XProtect does at each point.
| When | What happens |
|---|---|
| An app has changed, or opens for the first time | XProtect scans it |
| It finds known malware | It blocks it from running, moves it to the Trash and alerts you in the Finder |
| Malware has already run | XProtect cleans it up: it removes malware when it gets updated information and keeps checking for infections now and then |
The Gatekeeper first-open check, with Apple's notarization, is on the Gatekeeper page.
When XProtect detects known malware you may be asked whether to share a copy with Apple. If you agree, it uploads only the malware program itself, or the whole app package if the malware sits in one, and nothing else.
If the malware had already run, the clean-up engine removes it when it receives updated information and keeps checking for infections now and then. XProtect does not restart your Mac on its own. If you suspect malware, update macOS and, when you are already on the latest version, restart: macOS includes a built-in tool that removes known malware when restarting. Apple can also withdraw its approval of an app after the fact, and those revocation checks run in the background much more often than the XProtect signature updates.
03How XProtect updates
XProtect is not tied to macOS releases. Apple watches for new malware and updates the signatures automatically, independent of system updates. By default, macOS checks for these updates daily. You do not need to update XProtect by hand. Apple issues these updates automatically, based on the latest threat intelligence it has, which means what its analysts learn about new malware. Nothing in System Settings lets you press an update button for XProtect.
Apple does respond to named threats. ClickFix is a trick where a web page tells you to paste a command into Terminal. When a ClickFix campaign spread fake Mac utilities, Apple updated XProtect signatures to protect users against it. macOS 26.4 added a scan of commands pasted into Terminal before they run.
04How to keep updates on
Apple delivers the signatures, and you make sure your switches let it. The macOS side is yours to keep current, and it takes a minute.
- Open System Settings and click General in the sidebar (you may need to scroll down), then click Software Update.
- Install what is waiting. These updates bring the latest features and security fixes.
- Turn on Install macOS updates, so the Mac installs them by itself.
- Turn on Install Security Responses and system files, so the Mac also installs system files and security responses automatically.
- On a laptop, keep the power adapter plugged in sometimes: a laptop downloads updates automatically only while it is plugged in.
To sum up who does what: Apple pushes the XProtect signatures independent from macOS releases. The XProtect clean-up engine, though, gets its updates as part of the automatic updates of system data files and security updates, and those are the two switches in steps 3 and 4. That is why they matter for XProtect too. A laptop that is rarely plugged in will not download updates automatically, which is why step 5 is on the list. The first-open alerts you may meet later are explained on the Gatekeeper page.
05Is XProtect good enough?
For known malware, yes, it is a real layer. XProtect blocks known malware automatically and moves it to the Trash. Because its rules are written broadly, it also catches close relatives of malware it already knows. Part of the engine looks at behavior instead of signatures, and its job is to detect unknown malware.
What it cannot do is promise a clean Mac. Apple watches for new malware and strains and updates signatures, so a brand-new threat can go unseen for a while. The list below shows where that shows up in practice.
06Where XProtect on Mac stops
XProtect works on what is known and what looks like it. That leaves gaps.
- New malware can go unseen for a while. Even with security software in place, malware might go undetected, at least temporarily.
- Signed malware, meaning malware that carries a valid developer signature and so looks legitimate, and commands you run yourself are covered on the Gatekeeper page, because they get around its first-open check.
- A command from a website or a chat is not an app, so there is nothing for a scan to flag. Do not paste commands into Terminal because a page told you to.
What to do about the gaps: if something already feels wrong, follow how to check your Mac for a virus, and if you are weighing an extra tool, read do I need antivirus. The chain of checks from download to launch is mapped on how macOS detects malware. The signs of a virus page lists what to watch for.
XProtect's signatures come from Apple.
07The short version
XProtect on Mac is the Mac's own antivirus. It scans apps when they are new or changed, blocks known malware and cleans up what got through. Its signatures update without you. Keep Software Update on automatic, and read any first-open alert if one appears. Can Macs get viruses explains how malware arrives, do I need antivirus covers what an extra tool might add, and the security settings page lists the switches.
FAQ
What is XProtect on my Mac?
It is the antivirus technology built into macOS. It detects and removes malware by signature, a rule that describes a known piece of malware.
How do I access XProtect on my Mac?
You do not open it like an app. It acts when you launch an app or when an app changes. The screen you can open is the one that keeps macOS current: System Settings, General, Software Update.
How to check if XProtect is enabled on Mac?
XProtect is part of macOS, and the facts on this page describe what it does, not a switch for it. What you can check is Software Update: open System Settings, General, Software Update and look at the two automatic-install switches.
How to update XProtect macOS?
You do not need to update it by hand: Apple pushes new signatures on its own. The steps for keeping Software Update on automatic are in the section above.
Does Mac have antivirus?
Yes. macOS includes built-in antivirus technology called XProtect. Where it stops is covered on the page about whether you need antivirus.
Is Mac antivirus good enough?
For known malware it is a real layer: XProtect blocks it and moves it to the Trash. New malware can go unseen for a while, as with any security software.
Related guides
Sources
- Apple Platform Security, protecting against malware
- Apple Support, Software Update
- Apple Support, protect your Mac from malware
- AV-TEST, Mac test under Sequoia
- Microsoft Defender Experts, ClickFix on macOS
- Jamf Threat Labs, ClickFix on macOS
- Objective-See, The Mac malware of 2025
- FTC, malware
- Artificial Immunity