XProtect is the malware scanner built into macOS. It uses a list of known malware, written as YARA rules, that Apple updates in the background, separately from macOS updates.
What it does
- It checks an app when you open it for the first time, when the app changes, and when Apple updates the rules.
- If it finds known malware, macOS blocks the app and offers to move it to the Trash.
- A part called XProtect Remediator also scans the Mac regularly and removes some known malware it finds.
What it doesn’t do
XProtect only recognises malware Apple has already added to its list, and it doesn’t show you what it checked. It doesn’t warn about suspicious behaviour, such as a script asking for your password, unless that program is already known.
How to keep it up to date
Leave Install Security Responses and system files on in System Settings > General > Software Update > Automatic Updates (the ⓘ button).