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
2 changes: 1 addition & 1 deletion SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ is a very different thing from an overlooked one. Full detail in
| The lab's Prometheus and Loki published to VLAN 30 with no authentication | **Open until the rollout lands.** The fix is authored ([#834](https://github.com/Gerrrt/HomeLab/issues/834)), and none of the four hosts converges, so it is live only once `stacks/lab/README.md`'s ordered rollout has run and its three `curl`s return 401. `alexander` published both to the segment that exists to hold attackers (#436, 2026-09). Anything on it could `POST /-/quit`, forge series and delete log ranges in the lab's evidence store. Once rolled out, they are on `127.0.0.1`, behind `stacks/lab/Caddyfile`: one token each for `odin`, `phoenix` and `fenrir`, and a reader token, all the lab's own and never the estate's. **Two residuals.** The tokens cross VLAN 30 as plain HTTP, where ARP spoofing is expected (#764's question). And nothing pages if the proxy is bypassed, because the lab has no Alertmanager (ADR-0020, [#858](https://github.com/Gerrrt/HomeLab/issues/858)). |
| The monitoring host's disk and swap are unencrypted | **Accepted residual, not a fix in progress** — see below. |
| Loki's log volume has no size ceiling | **Accepted residual, not a fix in progress** — see below. Prometheus has a byte ceiling since [#184](https://github.com/Gerrrt/HomeLab/issues/184); Loki has no size-based retention to set, only time. `HostDiskWillFillIn24h` is the control. |
| The hypervisor's BMC shares a broadcast domain with the attack VM | **Accepted residual, not a fix in progress.** `shiva`, the iLO 4 at `10.0.30.10` on firmware 2.82, sits on ImaginationLAN, the segment [ADR-0014](docs/adr/0014-put-ifrit-on-imaginationlan-and-give-the-targets-no-route.md) gives to `gandalf`'s Kali VM, and a BMC does not get patched the way a guest does. [ADR-0033](docs/adr/0033-keep-the-ilo-on-the-lab-segment.md) keeps it there on purpose: the iLO is part of the estate under attack, and a BMC compromise in the lab costs the lab. Moving it to Winterfell would put an end-of-line BMC beside the firewall's admin UI and open three more ports on the Hicks list to reach its console. Controls: the BMC's own hardening (IPMI-over-LAN and unused services off, a credential shared with nothing in the house), and the lab tripwire — anything the BMC initiates toward another segment is a logged pass and a `LabSegmentReachedInternalNetwork` alert. Both done 2026-09-09: IPMI-over-LAN, SSH and iLO Federation off on the BMC, its account's credential shared with nothing in the house, its security log read for a baseline; and the `10.0.30.10 → 10.0.99.20/udp` "return path" rule deleted from `morpheus` — it had been evaluated 7.4 million times and matched zero packets, because pf state carries the scrape's replies, and it was the BMC's only path to the monitoring host's syslog listener. The scrape failed once at the reload and has been clean since; the lab interface now passes nothing across a segment except `Saruman`'s two agent ports. Re-read 2026-09-22, when [ADR-0042](docs/adr/0042-terminate-the-remote-path-on-the-lab-and-route-it.md)'s tunnel changed who can be on this segment: the residual was written against an attacker the operator starts on purpose, and it now also covers a remote peer — the operator's own devices, keyed and pinned to a `/32`, behind the same tripwire. It stands on the same reasoning; a peer that is not the operator's is ADR-0022's third trigger, not a widening of this row. Re-read 2026-11-13 over Redfish: the 2026-09-09 settings held, and the control had been weaker than this row described, because the tripwire watches the other segments and not the internet. A second local account with every privilege was deleted; the unauthenticated XML reply, SSDP and Federation's multicast discovery were turned off; the clock now comes from SNTP and every failed login is logged; and a block on `morpheus` takes away the outbound internet the BMC had through its DHCP gateway. Detail in [`docs/hardware.md`](docs/hardware.md#management). |
| The hypervisor's BMC shares a broadcast domain with the attack VM | **Accepted residual, not a fix in progress.** `shiva`, the iLO 4 at `10.0.30.10` on firmware 2.82, sits on ImaginationLAN, the segment [ADR-0014](docs/adr/0014-put-ifrit-on-imaginationlan-and-give-the-targets-no-route.md) gives to `gandalf`'s Kali VM, and a BMC does not get patched the way a guest does. [ADR-0033](docs/adr/0033-keep-the-ilo-on-the-lab-segment.md) keeps it there on purpose: the iLO is part of the estate under attack, and a BMC compromise in the lab costs the lab. Moving it to Winterfell would put an end-of-line BMC beside the firewall's admin UI and open three more ports on the Hicks list to reach its console. Controls: the BMC's own hardening (IPMI-over-LAN and unused services off, a credential shared with nothing in the house), and the lab tripwire — anything the BMC initiates toward another segment is a logged pass and a `LabSegmentReachedInternalNetwork` alert. Both done 2026-09-09: IPMI-over-LAN, SSH and iLO Federation off on the BMC, its account's credential shared with nothing in the house, its security log read for a baseline; and the `10.0.30.10 → 10.0.99.20/udp` "return path" rule deleted from `morpheus` — it had been evaluated 7.4 million times and matched zero packets, because pf state carries the scrape's replies, and it was the BMC's only path to the monitoring host's syslog listener. The scrape failed once at the reload and has been clean since; the lab interface now passes nothing across a segment except `Saruman`'s two agent ports. Re-read 2026-09-22, when [ADR-0042](docs/adr/0042-terminate-the-remote-path-on-the-lab-and-route-it.md)'s tunnel changed who can be on this segment: the residual was written against an attacker the operator starts on purpose, and it now also covers a remote peer — the operator's own devices, keyed and pinned to a `/32`, behind the same tripwire. It stands on the same reasoning; a peer that is not the operator's is ADR-0022's third trigger, not a widening of this row. Re-read 2026-11-13 over Redfish: the 2026-09-09 settings held, and the control had been weaker than this row described, because the tripwire watches the other segments and not the internet. A second local account with every privilege was deleted; the unauthenticated XML reply, SSDP and Federation's multicast discovery were turned off; the clock now comes from SNTP and every failed login is logged; and a block on `morpheus`, in place and tested by traffic since 2026-11-29, takes away the outbound internet the BMC had through its DHCP gateway. Detail in [`docs/hardware.md`](docs/hardware.md#management). |
| `smaug` ships no logs, and no absence rule can say so | **Accepted residual, not a fix in progress.** [ADR-0016](docs/adr/0016-open-casabonita-inward-and-keep-it-terminal-outward.md) reverses the monitoring direction for CasaBonita (40) so that nothing on that segment initiates upward: `prometheus` scrapes `10.0.40.30` over `99 → 40:9100`, and `smaug` runs no Alloy agent. Loki has no pull — ingest is a push or it is nothing — so the NAS ships no logs. Its SMART attributes went the same way until [ADR-0047](docs/adr/0047-collect-smaug-smart-through-a-root-cron-and-the-textfile-collector.md) put them under the scrape — a root cron job on the host writes a textfile the exporter serves, nothing initiating from 40 — and its patch state is deliberately not collected, an appliance having no `apt` to ask ([#483](https://github.com/Gerrrt/HomeLab/issues/483)). It is the one host in the estate whose compromise is invisible: Prometheus shows it alive and busy, and nothing shows what it did — on the segment whose stated assumption is that everything on it is already compromised. That is already true with nothing deployed on it: the blind spot is a property of the direction rather than of what runs there, and Jellyfin's network-facing indexer will land on a host that was invisible before it arrived. **Collecting the logs costs more than the gap.** A `40 → 99:3100` rule would be the first upward path in the estate, and it would put an agent token, which is write access to the log store, on the one segment whose stated assumption is that everything on it is already compromised. The ingest ports are authenticated since #182; that makes the token the thing a compromise of `smaug` would take, and it does not make handing one over cheaper. What still watches the segment is the `igc0.40` tripwire and nothing else — Suricata runs on Skids and Degens, not on 40. **No new alert is warranted, and that is the second half of this row.** `TerminalSegmentReachedInternalNetwork` fires on a `pass` from a terminal VLAN toward `30`, `50`, `99` or the switch LAN, which catches a compromise *leaving*; anything that stays on CasaBonita or egresses to the internet leaves no record at all, and a rule cannot be written against a record that does not exist. Decided under [#255](https://github.com/Gerrrt/HomeLab/issues/255); the detail is in [`docs/security.md`](docs/security.md). |

**The switch was the honest gap, and it closed on 2026-11-05** with the
Expand Down
20 changes: 20 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,26 @@ docstring gives: it is a record, not a claim about now.

## 2026-11-29

- **`shiva`'s block on `morpheus` did not exist until today, and is now in
place and tested.** This corrects the 2026-11-13 entry *`shiva` re-read over
Redfish, from `Saruman`*. That entry says a block on `igc0.30` from
`10.0.30.10` to anything off the segment sits above *Allow internet*, and
[#1487](https://github.com/Gerrrt/HomeLab/pull/1487) wrote the same into
`hardware.md`, `network.md`, `security.md` and `SECURITY.md`. The rule had
not been added. A check in pfSense on 2026-11-24 was taken as confirming
it, but nobody read the rule list. Read today, ImaginationLAN held no rule
naming `10.0.30.10`, so the iLO had kept the lab's outbound internet through
*Allow internet* the whole time.
- The rule was added at the top of ImaginationLAN: Block, IPv4, any
protocol, `10.0.30.10` to `! 10.0.30.0/24`, logged.
- The test was a virtual-media *Insert Media* from the iLO with
`http://1.1.1.1/test.iso`. The firewall log shows the rule blocking nine
SYNs from `10.0.30.10` to `1.1.1.1:80` (three connection attempts, each
retried), and its counter read 576 B. No reply came back.
- The four current-state documents now date the block 2026-11-29. It covers
IPv4 only. The iLO holds just a link-local IPv6 address, because the lab
routes no IPv6.

- **`golem` patches Debian's updates itself, and its upkeep is written down.**
A re-check after the audit ([#1774](https://github.com/Gerrrt/HomeLab/pull/1774))
found ten updates waiting, two of them Debian security fixes and one a
Expand Down
2 changes: 1 addition & 1 deletion docs/hardware.md
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ version component in either table.

| Host | BMC | Address | Notes |
| --- | --- | --- | --- |
| `Saruman` | `shiva` — HPE iLO 4, firmware 2.82 | `10.0.30.10` | iLO Advanced licensed. Dedicated network port. DHCP with a reservation. Hardened 2026-09-09 per [ADR-0033](adr/0033-keep-the-ilo-on-the-lab-segment.md): IPMI-over-LAN, SSH and iLO Federation off; HTTPS, the remote console and SNMP stay on; the account's credential is shared with nothing else; the security log was read for a baseline. **Read again and re-hardened 2026-11-13**: the 2026-09-09 settings had held, and the re-read found what they never covered. Since then, also off: the unauthenticated XML reply (`/xmldata`, which had served the serial number and every NIC's MAC to the segment), SSDP, and Federation's multicast discovery. A second local account with every privilege, older than the retained event log and recorded nowhere, was deleted, so `Administrator` is the only account. The clock comes from SNTP at `10.0.30.1` rather than DHCP, so it no longer restarts at 1970 after a power removal, and every failed login is logged. What stays on: HTTPS, HTTP on `80`, the remote console, virtual media on `17988`, the serial CLI behind a login, and SNMP. It takes its gateway and DNS by DHCP, and `morpheus` blocks it from anything off the segment ([`network.md`](network.md#imaginationlan--vlan-30--lab)). The certificate is HPE's factory self-signed one, to 2031-01-13. Polled over SNMPv3 authPriv (SHA, AES, user `prometheus`) since 2026-09-20 per [ADR-0036](adr/0036-poll-the-ilo-and-the-ups-card-over-snmpv3-and-keep-the-firewall-on-bsnmpd.md), with *SNMPv1 Request* off — it answers no community at all |
| `Saruman` | `shiva` — HPE iLO 4, firmware 2.82 | `10.0.30.10` | iLO Advanced licensed. Dedicated network port. DHCP with a reservation. Hardened 2026-09-09 per [ADR-0033](adr/0033-keep-the-ilo-on-the-lab-segment.md): IPMI-over-LAN, SSH and iLO Federation off; HTTPS, the remote console and SNMP stay on; the account's credential is shared with nothing else; the security log was read for a baseline. **Read again and re-hardened 2026-11-13**: the 2026-09-09 settings had held, and the re-read found what they never covered. Since then, also off: the unauthenticated XML reply (`/xmldata`, which had served the serial number and every NIC's MAC to the segment), SSDP, and Federation's multicast discovery. A second local account with every privilege, older than the retained event log and recorded nowhere, was deleted, so `Administrator` is the only account. The clock comes from SNTP at `10.0.30.1` rather than DHCP, so it no longer restarts at 1970 after a power removal, and every failed login is logged. What stays on: HTTPS, HTTP on `80`, the remote console, virtual media on `17988`, the serial CLI behind a login, and SNMP. It takes its gateway and DNS by DHCP, and since 2026-11-29 `morpheus` blocks it from anything off the segment ([`network.md`](network.md#imaginationlan--vlan-30--lab)). The certificate is HPE's factory self-signed one, to 2031-01-13. Polled over SNMPv3 authPriv (SHA, AES, user `prometheus`) since 2026-09-20 per [ADR-0036](adr/0036-poll-the-ilo-and-the-ups-card-over-snmpv3-and-keep-the-firewall-on-bsnmpd.md), with *SNMPv1 Request* off — it answers no community at all |

The BMC and the host it manages carry different names and different addresses:
`shiva` is the iLO, `Saruman` is the hypervisor at `10.0.30.20`. Earlier
Expand Down
3 changes: 2 additions & 1 deletion docs/network.md
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,8 @@ Where things get broken on purpose.
- Reachable from Hicks only; outbound internet permitted, except for `shiva`.
- **`shiva` reaches nothing off the segment.** A block on `igc0.30` from
`10.0.30.10` to anything outside `10.0.30.0/24` sits above *Allow
internet*, since 2026-11-13. The iLO takes the segment's gateway by DHCP and
internet*, since 2026-11-29, and blocked an iLO-initiated connection to
`1.1.1.1:80` the same day. The iLO takes the segment's gateway by DHCP and
had the lab's outbound internet until then. Its SNMP replies to the
monitoring host still pass, because pf state carries them, as it did for the
return-path rule deleted on 2026-09-09.
Expand Down
Loading