Skip to content

Packs / cybersecurity-public

macos-hardening-readonly

Report this Mac's core security settings (FileVault, firewall, Gatekeeper, SIP, auto-updates) read-only

L2 Checks passed 3 of 3 runsv1.0.0Tech-Realm/space-cybersecurity-public

Install

logicpacks pack use cybersecurity-public/macos-hardening-readonly
get_pack cybersecurity-public/macos-hardening-readonly

The second line is the MCP tool call for the LogicPacks connector (Claude Code, Codex, Claude.ai and others). The first run of a pack someone else wrote asks for your yes.

Keys it needs (names only)

None.

Playbooks included

  • Spec: spec/SPEC.md (goal, steps, edge cases, don’ts)
  • Routes: local-python
  • Checks: 2 in outcome/checks.yaml
  • Code: mac_audit.py
  • Tools: python3, fdesetup, spctl, csrutil

Usage, last 8 weeks

New: no recorded use yet.

Purpose (from spec/SPEC.md)

Goal

A one-screen read-only status of our own Mac's FileVault, application firewall, Gatekeeper, System Integrity Protection and automatic security updates, with the fix for anything off.

Verified by: Parser test on captured fixture outputs gives the expected ON/OFF lines; a live run on this Mac completes without sudo and without changing anything.

Steps

  1. Run python3 code/mac_audit.py (no sudo needed).
  2. Turn on anything OFF in System Settings > Privacy & Security / Network > Firewall.
  3. Re-run to confirm.

Edge cases

  • Managed (MDM) Macs may report settings enforced by profile.
  • csrutil cannot be changed from normal macOS; it needs Recovery, so only report it.

Don'ts

  • Never point this at machines, hosts or networks we do not own or are not authorised to audit.
  • Don't change settings automatically; report, then a human applies fixes.
  • Never run the enable/disable variants of these tools from this pack.