Overview
secstack sets up and governs a local-only offensive-security workstation on Apple Silicon (16 GB to 192 GB unified memory). It integrates pentagi, ARTEX, HexStrike, kali-mcp, and 5ire backed by local models in Ollama, keeping every listener on loopback while enforcing target scope at the container bridge layer.
Engineering Details
- Hardware-aware sizing (
plan.py): Detects unified RAM, chip cores, and free disk, partitioning memory across macOS wired overhead, the container Linux VM, and quantized tool-calling models from a 15-entry catalog. - Packet-filtered scope (
scope.cidrs): Tool containers (pentest-netandhexstrike-net) can open connections only to local lab targets and explicitly authorized CIDRs—never across isolated tool networks or to arbitrary hosts. - Loopback split (
127.0.0.2): Isolates untrusted lab UIs and Kali web ports onto127.0.0.2while keeping local inference daemons on127.0.0.1. - Pinned inputs & secret-blocking git hooks: Commit-pinned upstream clones verified via
git fsck, digest-pinned container images, hash-locked Python virtualenvs, and six git hooks (check-secrets.sh) preventing accidental commits of tokens or target scopes.
git clone https://github.com/rmerck/secstack.git ~/GitHub/secstack
cd ~/GitHub/secstack
./setup.sh --plan # inspect hardware memory split & model plan
secstack prep # start scope firewall, loopback Ollama, and HexStrike