A security hardening checklist for a remote or rented Mac
Nobody sits beside a remote Mac to catch a weak default. This checklist covers the protections Apple and GitHub document, from FileVault and SSH to CI secrets, and what each one costs on a headless machine.

A remote Mac is easy to set up and easy to forget: nobody sits in front of it, so a weak default can last for months. This checklist draws on Apple and GitHub documentation and notes what each control costs on a headless machine.
Encrypt the disk with FileVault, then plan for reboots
Apple's platform security guide says all FileVault key handling on a Mac with Apple silicon happens in the Secure Enclave. With FileVault on, the key that wraps the volume key is protected by the user's password combined with the hardware UID.
The cost is in the boot path. Apple says credentials are required during boot once FileVault is on; with it off, the volume key is protected only by the hardware UID. After a power loss or unplanned restart, a headless Mac therefore waits for them. Apple's guide to managing FileVault says that on Apple silicon Macs with macOS 26 or later, FileVault can be unlocked over SSH after a restart, as long as Remote Login is on and a network connection is available. If yours does not qualify, plan how someone will reach the unlock screen. Test that path once, and keep the recovery key off the Mac.
Keep SIP and Gatekeeper on, and review the firewall
System Integrity Protection keeps components in critical system locations read-only. Apple says it is on by default in OS X 10.11 and later and applies to every process, including those running with administrative privileges. A build that "needs" SIP off deserves a second look.
Gatekeeper checks downloaded software. Apple says it verifies that the software comes from an identified developer, has been notarized by Apple as free of known malicious content, and has not been altered. Apple notes it can be switched off entirely; keep it on.
For the firewall (System Settings, Network, Firewall), Apple describes adding apps or services to a list and allowing or blocking their connections, and warns that blocking an app could affect the app or software that depends on it. Consider reviewing the list after installing services that listen on a port. Apple also notes that system services and some signed apps can have access without appearing in the list.
Limit accounts, SSH and Screen Sharing
Consider one administrator account for maintenance and a separate standard account for builds, so a compromised build job lacks administrative rights. The cost is friction: system-wide tools then need the admin account.
Remote Login, which provides SSH and SFTP access, is under System Settings, General, Sharing. Use its Info button to allow access for only the users you add, and leave full disk access for remote users off unless a job needs it. Apple warns that allowing remote login can make a Mac less secure.
Requiring SSH keys and disabling password login is done in the SSH server configuration, not in that panel; see man sshd_config on your macOS version. Check the effective settings, including keyboard-interactive authentication, and test a new session before closing the current one:
sudo sshd -T | grep -i -E 'passwordauthentication|kbdinteractiveauthentication|permitrootlogin'
Apple's Screen Sharing page offers the same Allow access for menu: choose Only these users, and enable the VNC password option only if a viewer needs it. If SSH is enough, leave Screen Sharing off.
Keep macOS patched
In System Settings, General, Software Update, the Info button next to Automatic Updates holds the options Apple's guide lists, including Install macOS updates and Install Security Responses and system files; labels can differ between macOS versions. Apple's update instructions say a Mac might restart several times while a macOS update installs, so on a FileVault-protected headless Mac, know how it will get past the boot-credentials step first. Consider keeping security responses on and installing full macOS upgrades by hand, when you can watch the restart.
Handle CI secrets and runners deliberately
GitHub's secure use reference says anyone with write access to a repository can read all of its secrets, and recommends a read-only default GITHUB_TOKEN permission for repository contents. It advises one secret per sensitive value rather than JSON, XML or YAML blobs, because redaction largely relies on exact matches. If an unredacted secret reaches a workflow log, it says to delete the log and rotate the secret.
Self-hosted runners, the reference says, have no guarantee of running in ephemeral, clean virtual machines and can be persistently compromised by untrusted workflow code. They should almost never be used for public repositories, and on private or internal ones, anyone who can fork the repository and open a pull request can compromise the runner environment, including access to secrets. Workflows using pull_request_target or workflow_run must not explicitly check out untrusted code. A Mac that doubles as a runner should hold as few credentials as possible.
Audit login items and launch daemons
Periodically review what starts on its own. Apple's login items guide points to System Settings, General, Login Items & Extensions, where you can remove items that open at login and review App Background Activity. Apple's daemons guide says installed daemons go in /Library/LaunchDaemons and agents in /Library/LaunchAgents or a user's own Library/LaunchAgents folder, so check those too. Treat anything you did not install that persists across reboots as a finding.
Back up outside the machine
Apple's Time Machine page recommends backing up to an external or network disk rather than the internal one, and notes that it does not back up system files or apps installed with macOS. Local snapshots stay on the same disk for up to 24 hours or until space is needed, so they are no substitute. For a build machine, also keep what you would need to rebuild it somewhere off the Mac, and test a restore at least once.
Sources
- Apple Platform Security: Volume encryption with FileVault
- Apple Platform Security: Managing FileVault in macOS
- Apple Platform Security: System Integrity Protection
- Apple Platform Security: Gatekeeper and runtime protection
- Mac User Guide: Block connections to your Mac with a firewall
- Mac User Guide: Allow a remote computer to access your Mac
- Mac User Guide: Turn Mac screen sharing on or off
- Mac User Guide: Keep your Mac up to date
- Apple Support: Update macOS on Mac
- Mac User Guide: Change Login Items & Extensions settings on Mac
- Apple Developer Documentation Archive: Creating Launch Daemons and Agents
- Mac User Guide: Back up your Mac with Time Machine
- GitHub Docs: Secure use reference (GitHub Actions)
- OpenSSH manual: sshd(8)
- OpenSSH manual: sshd_config(5)


