Skip to content

macOS Security Cheat Sheet

Quick-reference guide for Gatekeeper, XProtect, code signing, and FileVault disk encryption on macOS.


Check FileVault Full-Disk Encryption Status:

fdesetup status

Check System Integrity Protection (SIP) Status:

csrutil status

Verify Code Signature & Deep Strict Validation of an App Bundle:

codesign -dvv --deep --strict /Applications/[AppName].app

Verify Notarization Ticket Stapled to an App Bundle:

stapler validate /Applications/[AppName].app

Inspect Extended Attributes (xattr) on a File or Application:

xattr -l /Applications/[AppName].app

Remove Quarantine Flag from a Downloaded Binary or Unsigned App:

sudo xattr -dr com.apple.quarantine /Applications/[AppName].app

Check XProtect Antivirus Version:

xprotect version

Perform Manual XProtect Scan & Signature Update:

sudo xprotect check
sudo xprotect update

List Installed Configuration / MDM Profiles:

profiles status
sudo profiles list

Sources & Verification

  • Built-in manual pages: run man <command> (for example man codesign)