Packs / cybersecurity-public
macos-hardening-readonly
Report this Mac's core security settings (FileVault, firewall, Gatekeeper, SIP, auto-updates) read-only
Install
logicpacks pack use cybersecurity-public/macos-hardening-readonlyget_pack cybersecurity-public/macos-hardening-readonlyThe 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
- Run
python3 code/mac_audit.py(no sudo needed). - Turn on anything OFF in System Settings > Privacy & Security / Network > Firewall.
- 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.