XProtect is Apple's Mac virus detection system which keeps your Mac safe. Here's how the protective macOS feature works.