casper

Privacy stack + engagement security CLI with 4 levels, real-time monitor, and hard kill-switch

v1.0.1
Linux

Quick Start

Install via jcli

jcli install casper

Generate privacy stack configs

# WireGuard config for a standard engagement (Level 2)
casper generate --mode vpn --protocol wireguard --level 2

# Full SHADOW stack (Level 4) — extreme furtivity for blackbox testing
casper generate --mode hybrid --level 4 --output yaml

# UK-region audit (BS 7671 / UK Cyber Essentials promotes MEDIUM→HIGH)
casper --region uk audit --profile wireguard --config /etc/wireguard/wg0.conf

# Audit every config in a directory in parallel
casper audit --profile dns --batch /etc/resolved.conf.d/

Real-time monitoring + hard kill-switch

# Read-only status snapshot (no root required)
casper status --level 3

# Continuous watcher; on VPN/Tor drop, block all egress + disconnect WiFi
sudo casper watch --level 3 --enforce

# Manual kill-switch
sudo casper killswitch --enforce

# Restore connectivity
sudo casper restore --enforce

Guarded app launch — refuse to start unless privacy is up

# Refuse to launch Firefox unless VPN + Tor + DNS are UP
casper launch --level 3 --require vpn,tor,dns -- firefox https://example.com

# --monitor keeps watching; kills Firefox if any link drops mid-session
casper launch --level 3 --monitor -- firefox https://example.com

4 engagement levels

LevelUse caseStack
1 — BASELINEGeneral red team, low sensitivitySingle VPN + DNS-in-tunnel + kill-switch
2 — ENHANCEDDORA / NIS2 scope, sensitive clientVPN + Tor + local DoT/DoH resolver + DNSSEC
3 — MAXIMUMNation-state adversary, covert opsAir-gapped, private bridges, onion C2, tmpfs, immutable logs
4 — SHADOW NEWFull-blackbox engagement, null forensic traceVPN→Tor (snowflake/meek/obfs4 cascade)→VPN, MAC randomisation, RAM-only state, cover traffic, NTP-over-Tor, nftables egress allowlist, stealth onion C2, dedicated hardware, 24h cooling-off acknowledgement

What it does

Subcommands

CommandWhat it does
generateRender VPN / Tor / DNS / hybrid configs at level 1–4
auditRun profile checks on one config; --batch for parallel directory walk
engagementCreate / pre-audit / show history for an engagement (state persisted in JSONL)
referenceLook up an RFC or NIST publication; --list for the full database
statusReal-time read-only snapshot of VPN / Tor / DNS / interfaces
watchContinuous monitor; --enforce triggers the hard kill-switch on drop
killswitchManual hard kill-switch (drops all egress + disconnects WiFi)
restoreRemove the kill-switch ruleset and unblock WiFi
launch <APP>Refuse to exec the program unless required links are UP; --monitor kills on drop