Privacy
pwnbox is built to leave as little on disk as possible. Privacy and messaging apps are installed by default and the system is hardened.
No logs
journaldis volatile logs live in RAM only (Storage=volatile), capped at 64 MB, and only warnings and above are kept./var/logis atmpfs(64 MB,nosuid,nodev,noexec).ForwardToSyslog/ForwardToKMsg/ForwardToWallare off and crash uploads are disabled.- Core dumps are disabled (
systemd.coredump.enable = false,kernel.core_pattern = /dev/null). - The boot console is silenced (
quiet loglevel=0,consoleLogLevel = 0).
No plaintext on disk
- No swap partition
zramSwaponly (memoryPercent = 50). - **RAM-backed
/tmp** and/var/tmp(boot.tmp.useTmpfs,cleanOnBoot). - No hibernation (
nohibernate).
Hardened kernel & network
- Strict sysctls:
kptr_restrict=2,dmesg_restrict=1,perf_event_paranoid=3,yama.ptrace_scope=1,kexec_load_disabled=1,unprivileged_bpf_disabled=2,randomize_kstack_offset=on,oops=panic. - Memory protections:
init_on_alloc=1,init_on_free=1,slab_nomerge,page_alloc.shuffle=1,vsyscall=none,debugfs=off. - IOMMU forced and strict; early PCI DMA disabled.
- Network: reverse-path filtering, no source routing/redirects, syncookies, RFC 1337, IPv6 privacy addresses, and
ip_forwardoff. - Dangerous/legacy filesystems and protocols are block-listed (
dccp,sctp,rds,tipc,firewire,thunderbolt,hfs,udf,can, …). - AppArmor,
protectKernelImageandforcePageTableIsolationare on. lockKernelModulesprevents loading modules at runtime.
Services & accounts
- Firewall on; refused connections are not logged.
- No SSH, Avahi, printing,
fwupdor geolocation. - Root login is locked (
hashedPassword = "!"). sudo-rs, wheel-only, always asks for a password.- No autologin.
- Garbage collection runs daily and keeps 7 days.
Privacy apps
Signal, SimpleX, Element (Matrix), Dino (XMPP), qTox, Mullvad VPN, Tor Browser and tor/torsocks are included. Mullvad's daemon can be disabled with pwnbox.vpn.mullvad = false.
Filesystem hygiene
/etc/nixoson the installed machine only holds the hardware config and a pointer back to this flake.- Shell history is not persisted (
HISTFILE=/dev/null). remember-recent-filesis off; old trash and temp files are removed.zramSwapmeans secrets in memory are never written to a swap device.