agentsclimarketplace

Harden

Skill ejkaz/claude-mac-security/skills/harden

macOS hardening audit — runs Lynis for a hardening-index score, optionally an mSCP (NIST/CIS) audit-only compliance check, verifies GUI guardians (BlockBlock/OverSight/ RansomWhere) are present, and produces a prioritized, drduh-aligned checklist of RECOMMENDED (never auto-applied) actions. Read-only / audit-only. Invoke with /mac-security:harden. Trigger phrases: "harden my mac", "hardening audit", "lynis", "cis benchmark", "security posture checklist", "am I hardened".From its SKILL.md

Install
npx -y skills add ejkaz/claude-mac-security --skill harden

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

3.2 KB, as published. Nobody here has run it

Harden

Audit-only hardening advisor. It scores posture and proposes a checklist; it never applies fixes (mSCP --fix is invasive and must stay a human decision on a personal machine). Threat-model-first, aligned with the drduh macOS Security & Privacy guide and NIST mSCP.

Preflight

bash ${CLAUDE_PLUGIN_ROOT}/bin/install-tools.sh   # confirms lynis

Run

bash ${CLAUDE_PLUGIN_ROOT}/skills/harden/scripts/harden.sh

Read-only posture audit: core controls, remote access, GUI-guardian presence, and Lynis index if installed. For full Lynis coverage, follow up with sudo lynis audit system.

Procedure

  1. Baseline posture (built-in, no install — same checks as [[security-scan]]):
    csrutil status                                   # SIP
    spctl --status                                   # Gatekeeper
    fdesetup status                                  # FileVault
    /usr/libexec/ApplicationFirewall/socketfilterfw --getglobalstate --getstealthmode
    sudo systemsetup -getremotelogin                 # Remote Login (SSH)
    
  2. Lynis hardening audit:
    sudo lynis audit system
    
    Parse /var/log/lynis-report.dat (key=value). Pull the hardening index and any warning[] / suggestion[] lines. Track the index over time across runs.
  3. mSCP compliance (optional, audit-only): if the user wants CIS Level 1 / NIST 800-53 rigor, generate the baseline's *_compliance.sh from usnistgov/macos_security and run it with --check ONLY. Never --fix unattended.
  4. GUI guardian presence: confirm BlockBlock, OverSight, (RansomWhere?) are installed — these are the real-time prevention layer the harness can't drive. Recommend install if missing.
  5. Privacy-grant review: route Screen Recording / Accessibility / Input Monitoring checks to the GUI panes (TCC.db is unreadable via CLI). Name the expected legit grants from the baseline; flag anything unexpected.

Output

A prioritized checklist: control → current state → recommended action → effort. Lead with high-ROI, low-friction items (FileVault, firewall stealth mode, DNS hygiene) before high-friction ones. Mark each as recommended, not applied. Note the drduh stance where it diverges from CIS (e.g. drduh is skeptical of resident AV and Santa on a personal Mac).

Guardrails

  • Audit-only. Never runs mSCP --fix or mutates system settings. Every item is a recommendation the user executes.
  • Distinguish must-fix (FileVault off, firewall off) from nice-to-have hardening.
  • Be honest: a high Lynis score is hygiene, not immunity.

Files

  • (Lynis writes /var/log/lynis-report.dat; mSCP cloned at runtime if used.)

Keep looking

Skills are one crate of 607,533. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.