Skip to main content
skill CX Codex

macos-security-hardening — Claude Code skill

The macos-security-hardening skill guides you through setting up full-disk encryption, configuring firewalls, securing DNS, and disabling telemetry on macOS. Use it to protect your system against local access, data theft, and tracking.

no license 107 installs ★ 13 updated 2026-10-09

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add reason-machines/security-skills --skill macos-security-hardening -a claude-code
Open on GitHub

What macos-security-hardening does

The skill provides commands and explanations for securing a macOS machine: enable FileVault with a recovery key, configure application-level and packet-filter firewalls, block incoming connections via pf, enable secure hibernation mode, separate a standard user from the admin account, set a firmware password, and switch to encrypted DNS.

Inside are bash scripts using sudo fdesetup enable, pfctl, softwareupdate, defaults write, and native macOS utilities. It favours Apple silicon over Intel due to unfixable CPU vulnerabilities.

You need terminal access and admin rights to run most commands. Some steps require booting into recovery mode. If your Mac is managed by corporate policy, certain settings may be locked.

What it helps with

  • enable full-disk encryption with FileVault
  • set up a packet-filtering firewall with custom rules
  • switch to encrypted DNS instead of plaintext
  • disable system telemetry and tracking
  • create a separate admin account for maintenance only

Example prompts for the agent

  • Enable FileVault and walk me through storing the recovery key securely
  • Show me how to set hibernation mode 25 and require password immediately after sleep
  • I need packet-filter rules in /etc/pf.conf to block incoming connections—what goes in the config?

How to install macos-security-hardening

1Skills CLI (Vercel)

npx skills add reason-machines/security-skills --skill macos-security-hardening -a claude-code

2Manually: put the files in place

~/.claude/skills/macos-security-hardening/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/macos-security-hardening/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about macos-security-hardening

How do I install macos-security-hardening in Claude Code?

Run npx skills add reason-machines/security-skills --skill macos-security-hardening -a claude-code in your terminal, then open ~/.claude/skills/macos-security-hardening/SKILL.md in your editor.

What does this skill do?

It provides step-by-step commands to harden macOS: enable disk encryption, configure firewalls, filter DNS requests, turn off telemetry, separate user accounts, and apply other protections against physical access and data theft.

Will I need this if I work alone on a personal Mac?

It depends. If theft or unauthorized cloud sync is a concern, the steps are worthwhile. If your Mac stays home and you trust your environment, basic protection like a password and FileVault is usually enough.

Similar skills

All skills for Security →

From the same set129

The whole set →
fort-firewall-malware-analysis fort-firewall-malware-analysis helps detect fake repositories and malware disguised as the Fort Firewall utility. Useful when auditing open-source forks and suspicious download sources. CX Codex +1 114installs fsecure-internet-security-patch-activator-malware fsecure-internet-security-patch-activator-malware is a Claude Code skill with a malicious repository disguised as an F-Secure patch. It shows how to recognize fake activators and antivirus cracks. CX Codex +1 113installs fsecure-internet-security-malware-distribution fsecure-internet-security-malware-distribution — a warning skill: it dissects a fake F-Secure Internet Security repository and lists what to do if someone already downloaded the files. CX Codex +1 112installs macos-security-privacy-hardening macos-security-privacy-hardening — a skill for securing and hardening macOS systems following enterprise security standards. Sets up full-disk encryption, firewall, firmware passwords, and disables telemetry. CX Codex +1 111installs macos-security-and-privacy-guide macos-security-and-privacy-guide is a Claude Code skill with terminal steps for securing macOS, including FileVault, firewall rules, encrypted DNS, and telemetry controls. CX Codex +1 104installs server-security-init-skill server-security-init-skill — a Claude Code skill for securing fresh Ubuntu and Debian SSH servers. It guides key-based access setup, firewall rules, and staged SSH hardening. CX Codex +1 103installs awesome-ai-security-tools-guide The awesome-ai-security-tools-guide Claude Code skill finds tools from a curated AI security catalog. It responds to requests about LLM testing, agent protection, or security scanners. CX Codex +1 103installs vulnhunter-security-scanner The vulnhunter-security-scanner Claude Code skill searches source code for vulnerabilities and tests whether an attack could work. It activates on requests to scan a codebase or find exploitable bugs. CX Codex +1 101installs

Project sponsors

Companies that keep this analytics open