Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,15 @@ docstring gives: it is a record, not a claim about now.

## 2026-11-26

- **`golem` runs the host firewall `build-the-backup-guest.md` §2 added
on 2026-11-25.** This completes that entry, which said the ruleset was
not yet applied, and closes the last finding of the audit of 2026-11-13.
The ruleset was loaded live first, with the Debian default kept beside it.
A fresh SSH login from the Mac worked under it. `Saruman` got `200` from
`8007`, and the same request from `alexander` timed out. Only then was
`nftables.service` enabled at boot. The NFS datastore stayed readable, and
Alloy logged no error. `22` and `8007` are still the only ports on an
address other than loopback.
- **`build-heimdall.md` §2 masks `packagekit.service`.** A re-check of
`heimdall` after the 04:30 boot found Raspberry Pi OS's
`10-gui-pkinst.rules`, there since the build, which lets any `sudo` member
Expand Down
2 changes: 1 addition & 1 deletion docs/security.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ What this network is actually built to survive:
| Someone who takes the sensor reaching beyond its traffic | **Closed by clearing the guest, and re-checked hourly for drift by accident.** `fenrir` is an appliance ([`build-the-sensor-guest.md`](runbooks/build-the-sensor-guest.md) §0): the sensor stack, the agent collectors, the repository checkout and the stack's age key, and nothing else. The audit of 2026-11-13 found it used as a workstation as well: dotfiles, a stored Claude Code login with npm MCP servers reaching the internet, a `gh` token, the 1Password CLI and development packages, 4.8 GB in `$HOME`. All of it was removed on 2026-11-17, and a read the same evening found none of it: no user services beyond the distribution's, no TCP connection on the host's own sockets but inbound SSH from Hicks, and 180 MB in `$HOME`, nearly all of it the checkout. That read covered the host's network namespace only. The sensor's own Alloy, in its container, still pushes logs and metrics to `alexander`, as it is meant to. Since #1577 an hourly collector on `fenrir` re-reads what the runbook leaves (`sshd`, the keys, accounts and groups, user units, snaps, apt sources, host listeners, the size of `$HOME`) and the lab's `ApplianceCheckFailed` names a check that fails. That catches drift by accident only: whoever has root on `fenrir` can make it read clean, and the lab's Prometheus pages no one (ADR-0020), so it is seen by someone looking at the lab |
| Someone on the lab segment logging in to `alexander` | **Closed at `sshd`.** `alexander` holds the lab's only age key, and its `sshd` answers all of VLAN 30 with no host firewall. It is installed by hand from the ISO, so it does not inherit the template's `allow-pw: false`. [`build-the-lab-guest.md`](runbooks/build-the-lab-guest.md) §2 makes `sshd` key-only through a drop-in, refuses root and X11 forwarding, and keeps `garnet`'s `authorized_keys` to Hicks's key and `phoenix`'s; §7 checks it with `sshd -T`. A read on 2026-11-15 found it taking passwords; the step was applied the same day, and `sshd -T` read `no` for all four settings. The source address stays open: anyone on the segment can still offer a key |
| Someone on the lab segment logging in to `odin` | **Closed at `sshd`.** `odin` holds the SOC's certificate authority key and its own age key, and its `sshd` answers all of VLAN 30 with no host firewall. It is installed by hand from the ISO, so OpenSSH's default of taking passwords stood. [`build-the-soc-guest.md`](runbooks/build-the-soc-guest.md) §2 makes `sshd` key-only through a drop-in that outranks cloud-init's, and refuses root and X11 forwarding; §10 checks it with `sshd -T`. A read on 2026-11-15 found it taking passwords and X11 forwarding; the step was applied on 2026-11-16, and `sshd -T` read `no` for all four settings. The source address stays open: anyone on the segment can still offer a key |
| Someone on the lab segment logging in to `golem` | **Closed at `sshd`, with a second factor on `root@pam`, since 2026-11-25. A host firewall is written into §2 and not yet applied.** `golem` can delete every backup the lab has; the TrueNAS snapshots of `erebor/pbs` are the copy it cannot. Its `sshd` and PBS's UI on `8007` answer all of VLAN 30 with no host firewall. It is installed by hand from the PBS ISO, whose installer lets root log in by password and starts `rpcbind` on every address. [`build-the-backup-guest.md`](runbooks/build-the-backup-guest.md) §2 does three things. A drop-in keeps root to keys and refuses passwords and X11 forwarding. `rpcbind` and `nfs-blkmap` are turned off. `root@pam` gets a TOTP second factor. The audit of 2026-11-13 found all of it open. The drop-in and the services were applied on 2026-11-25. `sshd -T` read `without-password`, `no`, `no`, a password login was refused with `Permission denied (publickey)`, and nothing listened on `111`. After a reboot the datastore was mounted again. The TOTP second factor was enrolled later the same day. The source address stays open: anyone on the segment can still offer a key or reach the login page. §2's `nftables` ruleset closes that, admitting `22` and `8007` from `Saruman` and Hicks only, and is written but not yet applied |
| Someone on the lab segment logging in to `golem` | **Closed at `sshd`, with a second factor on `root@pam`, since 2026-11-25, and fenced to `Saruman` and Hicks by a host firewall since 2026-11-26.** `golem` can delete every backup the lab has; the TrueNAS snapshots of `erebor/pbs` are the copy it cannot. Its `sshd` and PBS's UI on `8007` answered all of VLAN 30 until the host firewall. It is installed by hand from the PBS ISO, whose installer lets root log in by password and starts `rpcbind` on every address. [`build-the-backup-guest.md`](runbooks/build-the-backup-guest.md) §2 does three things. A drop-in keeps root to keys and refuses passwords and X11 forwarding. `rpcbind` and `nfs-blkmap` are turned off. `root@pam` gets a TOTP second factor. The audit of 2026-11-13 found all of it open. The drop-in and the services were applied on 2026-11-25. `sshd -T` read `without-password`, `no`, `no`, a password login was refused with `Permission denied (publickey)`, and nothing listened on `111`. After a reboot the datastore was mounted again. The TOTP second factor was enrolled later the same day. §2's `nftables` ruleset closed the source address on 2026-11-26: it admits `22` and `8007` from `Saruman` and Hicks only. A fresh SSH login from the Mac and `Saruman`'s request to `8007` worked under it, and the same request from `alexander` timed out |
| Someone on the lab segment reading the domain's metrics | **Scoped, unauthenticated, and accepted.** `windows_exporter` listens on `9182` on all six of ADR-0029's guests, on the segment that exists to hold attackers. Each guest's Windows Firewall admits `10.0.30.40` (`alexander`) alone ([`build-the-lab-domain.md`](runbooks/build-the-lab-domain.md) §7). That rule is the difference between an endpoint a `/24` sweep finds and one you have to go looking for, and it is a residual, not a control: the exporter has no authentication, so whoever owns `alexander` reads every gauge. It has no write API, so what leaks is the shape of the host (services, disks, uptime, the licence clock), the same class as `node_exporter` on the NAS below |
| Someone on the lab segment fetching a Velociraptor client package | **Scoped by address, and accepted.** `odin`'s `caddy` service (container `soc-agent-msi`) serves the two agent MSIs `ansible/` installs, and the two Debian packages `garuda` installs, on `8448` ([#1068](https://github.com/Gerrrt/HomeLab/issues/1068), [ADR-0092](adr/0092-enrol-garuda-in-odins-soc-with-debian-packages-staged-on-odin.md)). Its Caddyfile answers the six domain addresses, `.50`–`.55`, and `garuda`'s `.62`, and refuses everyone else, Hicks's route from VLAN 50 included. The Velociraptor MSI and the Velociraptor `.deb` each carry the client config: the server URL, its CA, and the enrolment nonce. Whoever holds either can enrol a rogue client, which is why #864 took the MSI out of SYSVOL. The residual: an address on this segment can be spoofed, and any of the seven can fetch either package. What the nonce buys is noise in Velociraptor's client list, the same class as the Wazuh enrolment password. Rotating it means a new server config, a rebuilt MSI with the role's pin moved, and the staged `.deb` deleted so that `scripts/stage-agent-msis.sh` builds it again. The two Wazuh packages carry no secret |
| An OpenVAS plugin on `garuda` reaching a non-target | **Fenced at layer 2** ([ADR-0093](adr/0093-run-openvas-on-garuda-on-demand-scoped-to-the-domain-by-nftables.md)). OpenVAS scans the domain's six only. While a scan runs, the scanner runs in a network namespace whose one route to the segment is a macvlan, `scan0` at `10.0.30.63`, behind an nftables `netdev` egress hook that drops every frame — IP, ARP (`send_arp_request`) and raw (`send_frame`) — to anything but the six. So the AF_PACKET paths that bypass an IP filter are caught here. Proved: a GVM scan of an out-of-scope host raised the egress drop counter with 0 open ports, and an `arping` from the namespace to an out-of-scope host was dropped while an in-scope host answered. `gvmd`, `notus`, `redis` and `mosquitto` stay on the host; only MQTT crosses to the namespace, on a veth that routes nowhere else |
Expand Down