# alichtman/stronghold

Easily configure macOS security settings from the terminal.

Repository: https://github.com/alichtman/stronghold
Canonical: https://ross.abutalabs.com/products/stronghold
Language: Python
License: MIT
License Family: permissive
Topics: macos-setup, macos, security, osx, security-hardening, hardening, command-line-tool, command-line
Last push: 2025-02-24T07:31:58+00:00

## Health v2 (maintenance only)
Score: 26/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 8, release rhythm 8, longevity 100
- inputs: {"age_days": 3091, "days_push": 555, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1191, forks 262 (observed 2026-08-28T04:03:56.204293+00:00)

## What it is
Stronghold is a Python command-line tool that securely configures macOS security settings such as the firewall, Gatekeeper, and metadata collection. It offers interactive prompts or a one-shot lockdown mode for hardening a Mac from the terminal.

## Use cases
- harden my mac's security settings from the terminal
- enable firewall and stealth mode on macos
- disable metadata collection and clear siri analytics data
- securely configure a new macbook setup
- prevent malware from disguising file extensions
- lock mac when screensaver starts

## When to choose
- you want a quick, scriptable way to apply macOS security hardening
- you prefer terminal tools over manual System Preferences clicking
- you want a non-interactive lockdown option for provisioning machines

## When to avoid
- you need support for the latest macOS versions, as it targets Sierra/High Sierra
- you need enterprise-scale MDM configuration management
- you want granular control beyond the settings it exposes

## Facets
- artifact type: cli-tool
- maturity: maintenance
- function: security, configuration-management, cli
- domain: security, privacy
- platform: cli, python
- tags: security-hardening, macos, system-configuration, firewall, privacy, macos-setup, command-line

## Member repositories
- alichtman/stronghold (main) score 26

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:56.204293+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:22:41.710053+00:00, confidence not recorded.
  - readme: https://github.com/alichtman/stronghold (fetched 2026-08-28T04:03:56.204293+00:00, sha 96d7b84f981e)
  - registry_pypi: https://pypi.org/pypi/stronghold/json (fetched 2026-08-29T12:30:11.622776+00:00, sha e24f8bd87edd)
- Data as of 2026-08-30T08:39:29.467469+00:00.
