# macos-hardening-readonly

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

- **Space:** cybersecurity-public (https://github.com/Tech-Realm/space-cybersecurity-public/tree/main/macos-hardening-readonly)
- **Level:** L2 (as the registry reports it)
- **Keys it needs (names only):** none
- **Tools:** python3, fdesetup, spctl, csrutil
- **Routes:** local-python; checks: 2
- **Uses:** new (no recorded use yet)
- **Install:** `logicpacks pack use cybersecurity-public/macos-hardening-readonly` or MCP `get_pack cybersecurity-public/macos-hardening-readonly`
- **Files:** CHANGELOG.md, code/mac_audit.py, outcome/EVIDENCE.md, outcome/checks.yaml, outcome/fixtures/outputs.json, outcome/results.json, pack.yaml, spec/SPEC.md, spec/source.md

## Purpose (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.



---

Canonical URL: https://logicpacks.io/packs/cybersecurity-public/macos-hardening-readonly

Developed by TechRealm (techrealm.online), the software team. Operated by Al Jash Trading (Establishment), Abu Dhabi, since 1994, the legal entity that hosts and is responsible for the service. Economic licence CN-1030597, Abu Dhabi Registration Authority. Address: Office 5, Bani Yas West 4, Bani Yas, Abu Dhabi, UAE. Website: https://aljashtrading.com. Contact: hello@logicpacks.io, security@logicpacks.io, WhatsApp +1 713 632 2262 (https://wa.me/17136322262).

Machine-readable index: [/llms.txt](/llms.txt). Plain facts: [/about.md](/about.md). Safety: [/safety.md](/safety.md).
