macOS / Guide

Security and privacy on the Mac: FileVault, firewall, permissions, passwords and Apple Intelligence

Checking and strengthening a Mac's protections: FileVault and the recovery key, Gatekeeper and quarantine, XProtect, privacy permissions, the firewall and an open source outbound firewall, accounts and Touch ID for sudo, the Passwords app and passkeys, iCloud Advanced Data Protection, Lockdown Mode, and what really goes to servers with Apple Intelligence and Siri.

macOS Guide Advanced Published October 20, 2026 Translated November 20, 2026 18 min read Version française
An open padlock surrounded by keyboard keys
Photo: FlyD on Unsplash

Before you start

In plain words

A Mac leaves the factory with well-tuned security, like a new building with a door code, cameras and a safe. The risk rarely comes from the walls: it comes from the door left open, the spare key that goes missing, or the permission granted too quickly to a stranger. This guide checks every door.

The protections described here are built into macOS. For a fleet of Macs, they're configured and checked through configuration profiles from a management tool (see MDM: managing your devices).

1. Taking stock, one command per protection

fdesetup status                       # FileVault
csrutil status                        # System Integrity Protection
spctl --status                        # Gatekeeper
/usr/libexec/ApplicationFirewall/socketfilterfw --getglobalstate
sw_vers                               # macOS version

A healthy Mac shows: FileVault On, SIP enabled, Gatekeeper assessments enabled, firewall enabled, and the latest version of macOS.

2. FileVault and the recovery key

On an Apple silicon Mac, the SSD is always encrypted by the hardware. But without FileVault, the key is available as soon as the Mac is switched on: anyone who starts the Mac can access the data. FileVault ties this key to your login password, protected by the Secure Enclave. Encryption is instant.

Step 1. Turn it on in System Settings › Privacy & Security › FileVault, or in Terminal:

sudo fdesetup enable

Step 2. Choose how to regain access if the password is forgotten:

Option Advantage Drawback
iCloud account Nothing to keep yourself Access depends on your Apple Account
Recovery key Independent of Apple If lost, the data can't be recovered

If you choose the key, keep it in a password manager and on paper somewhere safe, never only on the Mac.

Step 3. Check that a personal recovery key exists:

sudo fdesetup haspersonalrecoverykey

3. Gatekeeper, notarisation and quarantine

When a file arrives from the internet (browser, email, AirDrop), macOS sets a quarantine attribute on it. At first opening, Gatekeeper checks that the app is:

  • signed by a developer identified with Apple;
  • notarised: automatically scanned by Apple for known malicious code.

Checking an app before opening it:

# Gatekeeper's verdict
spctl -a -vv /Applications/App.app

# Who signed the app
codesign -dv --verbose=2 /Applications/App.app 2>&1 |
  grep -E "Authority|TeamIdentifier"

# Is the file quarantined?
xattr -l ~/Downloads/file.dmg

Removing the quarantine

Some tutorials recommend xattr -d com.apple.quarantine to launch a blocked app. This command disables Gatekeeper's check for that file: only use it for software whose origin you know (an open source tool you compiled yourself, for example). For a legitimate app that isn't notarised, use System Settings › Privacy & Security › Open Anyway instead.

XProtect complements Gatekeeper: it's the antivirus built into macOS. Its signatures update silently, and the XProtect Remediator module regularly scans the system to remove known threats. Check that automatic security file updates are on in System Settings › General › Software Update › Automatic Updates.

A third-party antivirus isn't necessary on a well-maintained personal Mac. In a business, an endpoint detection and response (EDR) solution provides the centralised monitoring that XProtect doesn't offer.

4. Privacy permissions (TCC)

Every sensitive access asks for your consent, app by app. Review System Settings › Privacy & Security:

Category Risk if granted wrongly Advice
Full Disk Access Reading all your files, emails, messages Only backup and security tools, and Terminal if you use it
Accessibility Control of the keyboard and mouse, reading the screen Only trusted window management or automation utilities
Screen & System Audio Recording Capturing everything displayed Video conferencing and capture tools only; macOS regularly reminds you of these permissions
Camera, Microphone Spying Video conferencing only
Input Monitoring Recording keystrokes Rarely justified
Automation One app controlling another Check each pair

A green dot (camera) or orange dot (microphone) in the menu bar signals access in progress; Control Centre shows which app is using it.

5. The firewall

The built-in firewall filters incoming connections. Turn it on in System Settings › Network › Firewall. In Options, stealth mode ignores discovery requests (ping): useful on public networks.

FW=/usr/libexec/ApplicationFirewall/socketfilterfw
sudo $FW --setglobalstate on
sudo $FW --setstealthmode on
sudo $FW --listapps                  # allowed apps

Outgoing traffic isn't filtered by macOS. LuLu, a free and open source outbound firewall from the publisher Objective-See, asks for your consent for every new outgoing connection: you quickly discover which apps "phone home". The same publisher offers KnockKnock (an inventory of what launches automatically) and BlockBlock (an alert when software installs itself to start automatically).

For the general principles, see Understanding firewalls.

6. Accounts, locking and Touch ID

  • Use a standard account day to day and a separate administrator account: a malicious app won't be able to install itself at system level without the administrator password.
  • Locking: System Settings › Lock Screen: require the password immediately after sleep or the screen saver begins. Lock when you walk away with Ctrl + Cmd + Q.
  • Guest account: turned off in System Settings › Users & Groups, unless needed.
  • Touch ID for sudo: rather than typing your password in Terminal, confirm with your finger. The configuration survives macOS updates:
sudo cp /etc/pam.d/sudo_local.template /etc/pam.d/sudo_local
sudo sed -i '' 's/^#auth/auth/' /etc/pam.d/sudo_local

7. Passwords, passkeys and iCloud

The Passwords app (built in since macOS 15) manages passwords, two-factor verification codes, passkeys and Wi-Fi passwords, synced by iCloud Keychain across your Apple devices. It flags reused or weak passwords and those that have appeared in leaks.

Passkeys replace the password on compatible sites. They can't be phished: the key only works on the real site. For a cross-platform, open source manager, see Password managers.

Advanced Data Protection (System Settings › your name (Apple Account) › iCloud › Advanced Data Protection) extends end-to-end encryption to almost all of iCloud: backups, Photos, iCloud Drive, Notes. Apple can then no longer recover your data: you must set up a recovery contact or a recovery key. It's the most important setting for anyone storing sensitive data in iCloud.

Find My should stay on: it turns on Activation Lock, which makes a stolen Mac unusable without your Apple Account.

8. Apple Intelligence and Siri: what goes to servers

Level Where processing happens Examples
On the Mac Local models on the chip, nothing leaves Notification summaries, simple Writing Tools, photo sorting
Private Cloud Compute Apple servers running Apple silicon; data deleted after each request, no access by Apple, software published for researchers to verify Heavier requests
Partner model Apple and Google confirm that Apple's new models are based on Gemini. According to the specialist press, and without confirmation from Apple, the new Siri's most demanding requests are reportedly processed on Google servers, under Apple's privacy rules Complex general questions
Third-party extension (optional) At the chosen provider, under its terms Requests explicitly passed to a service such as ChatGPT

The settings are in System Settings › Apple Intelligence & Siri:

  • turn off Apple Intelligence completely if you don't want it;
  • turn off learning from a given app;
  • leave extensions to third-party services off, or require confirmation for each request sent;
  • view the Apple Intelligence Report (Privacy & Security) to see the requests sent to Private Cloud Compute.

The new Siri's advanced features require an M3 Mac or later with at least 12 GB of memory, and are currently limited to English.

9. Lockdown Mode

Lockdown Mode (System Settings › Privacy & Security › Lockdown Mode) is designed for people facing targeted attacks (journalists, activists, executives). It blocks most attachments, some complex web technologies, FaceTime calls from strangers and accessories connected while the Mac is locked. It deliberately degrades the experience: it isn't intended for everyday use.

10. Security checklist

Item Done?
macOS up to date, automatic security updates on ☐
FileVault on, recovery key kept outside the Mac ☐
SIP and Gatekeeper active ☐
Privacy permissions reviewed (disk, accessibility, screen, camera, microphone) ☐
Firewall on, stealth mode on laptops ☐
Standard account day to day, guest account off ☐
Password required immediately after waking ☐
Passwords app: no security warnings ☐
iCloud Advanced Data Protection on if iCloud holds sensitive data ☐
Find My on ☐
Apple Intelligence and third-party extension settings chosen knowingly ☐
Time Machine backup in place: see Backing up your Mac with Time Machine ☐

Read next