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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ documents for different readers.
at all. Every pinned digest is also scanned weekly for fixable HIGH and
CRITICAL CVEs, and each image with findings has an open issue until a scan
finds it clean.
- **Documented decisions and runbooks.** 139 ADRs covering what was chosen
- **Documented decisions and runbooks.** 140 ADRs covering what was chosen
and what was rejected — including the costs accepted knowingly; 57
runbooks for the operations that are easy to get wrong at 1am, one of which
is the handover page a successor reads first. Every critical alert links to
Expand Down Expand Up @@ -236,7 +236,7 @@ inbound passes may still reach it. Data flow and the maintained Mermaid topology
│ ├── architecture.md network.md hardware.md
│ ├── observability.md security.md roadmap.md changelog.md
│ ├── diagrams/ # the network diagram (SVG) and its predecessors
│ ├── adr/ # 139 ADRs — architecture decision records
│ ├── adr/ # 140 ADRs — architecture decision records
│ ├── exercises/ # purple-team exercise records — see its README
│ └── runbooks/ # 57 runbooks; successor-handover.md is the front door
└── Makefile # make help
Expand Down
7 changes: 4 additions & 3 deletions ansible/roles/gpos/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@
# ADR-0136: the domain's own admins are refused the console and RDP on members,
# as Tier 0 Admins always were, because AD\Administrator is in neither Tier 0
# Admins nor anything else this GPO named, and the 2026-11 titan audit found it
# logged on interactively there. They keep NETWORK logon: phoenix's Ansible
# connects as AD\Administrator over SSH, and sshd's key logon is a network
# (S4U) logon (ADR-0077). The console on a member is the local Administrator's.
# logged on interactively there. They keep NETWORK logon, which nothing here
# needs (ADR-0140): on a member, Ansible's `Administrator` is the member's own
# local account, not AD\Administrator. Closing it is still to be decided. The
# console on a member is the local Administrator's.
#
# `cse` is gPCMachineExtensionNames, the client-side-extension GUIDs that tell a
# member which engines to run for this GPO; without it the file in SYSVOL is
Expand Down
2 changes: 1 addition & 1 deletion ansible/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@
})
}
# ADR-0136: Deny Tier 0 refuses Domain Admins the console and RDP on
# members, and leaves them network logon, which phoenix's SSH is.
# members, and leaves them network logon (ADR-0136, ADR-0140).
$deny = Get-GPO -Name 'Deny Tier 0 Logon on Members' -ErrorAction SilentlyContinue
$inf = if ($deny) { Join-Path $env:SystemRoot `
"SYSVOL\domain\Policies\{$($deny.Id)}\Machine\Microsoft\Windows NT\SecEdit\GptTmpl.inf" }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@
[ADR-0029](0029-size-the-lab-domain-and-separate-its-namespace-and-clock.md)
and [ADR-0077](0077-configure-the-lab-domain-with-ansible-from-phoenix.md)

> [!NOTE]
> Amended by [ADR-0140](0140-correct-why-adr-0136-leaves-domain-admins-network-logon.md),
> which corrects the reason given below for leaving network logon. Ansible
> reaches a member as that member's local Administrator, not
> `AD\Administrator`, so the pipeline does not depend on it. The rights
> decided here are unchanged. The text here is left as written, per ADR-0001
> and ADR-0115.

## Context

§5 builds three tiers so that "a violation is an event": the GPO *Deny Tier 0
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# ADR-0140: Correct why ADR-0136 leaves Domain Admins network logon

**Status:** Accepted · 2026-11 · amends
[ADR-0136](0136-deny-the-domains-own-admins-the-console-on-members.md)

## Context

[ADR-0136](0136-deny-the-domains-own-admins-the-console-on-members.md)
refuses Domain and Enterprise Admins the console and RDP on members, and
leaves them network logon. It gives one reason for the second half: Ansible
on `phoenix` connects to every guest as `AD\Administrator` over SSH, a key
logon is a network logon, and so denying it would lock the pipeline out.

That premise is wrong for the members. Ansible's `ansible_user` is
`Administrator` (`group_vars/all.yaml`, ADR-0077), and `phoenix`'s key is in
each guest's `administrators_authorized_keys`. On a DC that name is the
domain's Administrator, because `Install-ADDSForest` makes `bahamut`'s
local Administrator the domain's. On a member it is the member's own local
Administrator. Read on `titan` on 2026-11-26: `whoami` over that SSH path
printed `titan\administrator`. The read-only audit of `ramuh` (#1763) found
the same in `ramuh`'s Security log: `RAMUH\Administrator` for each of
`phoenix`'s logons on 2026-11-16.

Nothing else in the repository logs on to a member as a domain admin.
`roles/member` passes the domain's Administrator to the domain join,
but that credential is checked by a DC, and the join runs before `roles/tiers`
moves the computer into `Servers` or `Workstations`, where the GPO is linked.
No role reaches a member over SMB, WinRM or `Invoke-Command`.

## Decision

**ADR-0136's rights are unchanged.** Domain and Enterprise Admins are refused
the console and RDP on members, and keep network logon, as `roles/gpos`
applies and `verify.yml` asserts.

**Its reason for keeping network logon is withdrawn.** The pipeline does not
need it. Domain Admins keep network logon on members because ADR-0136 left
it, not because anything here depends on it, and the residual ADR-0136 names
(a Tier 0 credential arriving at a member over SMB, WMI or SSH) has no
pipeline cost to close.

**Whether to close it is a separate decision, not taken here.** It has one
real cost: a network deny on `titan` also refuses a relayed Domain Admin.
The relay exercise ADR-0083's loop points at would then end in a 4625 rather
than a session. That is arguably the tiering working, but it changes what an
exercise against `titan` shows, so it is decided on its own, as a new ADR.

## Consequences

- The runbook's §5, `roles/gpos`'s comment and `verify.yml`'s comment stop
saying that Ansible reaches the members as `AD\Administrator`.
- ADR-0136's alternative "give Ansible its own Tier 1 account" was costed as
reworking the access path. On the members there is nothing to rework.
- The text of ADR-0136 is left as written, per ADR-0001 and ADR-0115, with a
note pointing here.
19 changes: 19 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,25 @@ docstring gives: it is a record, not a claim about now.
until the next `--tags gpos` run.
- `ramuh`'s nightly VSS flush timeouts (2026-11-07 and 08) have not
recurred. `sshd` crashed once on 2026-11-08 and has not since.
- **Correction to the 2026-11-25 entry on the read-only audit of `titan`.**
That entry says ADR-0136 leaves Domain Admins network logon on members
because network logon "is how Ansible reaches the guests". It isn't. On a
member, Ansible's `Administrator` is the member's own local account:
`whoami` over `phoenix`'s SSH path printed `titan\administrator` today. Only
on the DCs is it the domain's. The `ramuh` entry above found the same from
`ramuh`'s Security log. ADR-0140 records the corrected reason and
leaves the rights as they are. Nothing in the pipeline needs Domain Admins to
log on to a member over the network, so whether to deny it is a decision
still to take. The cost is that it would also refuse a relayed Domain Admin
on `titan`.
- **`titan` read on 2026-11-26, after the audit.** The audit's session and
tooling are gone: no Git, no Claude Code, no `Administrator.AD` profile, no
saved credentials. The guest rebooted at 22:52 UTC on 2026-11-25. The
rights it applies still name only `Tier 0 Admins`, because ADR-0136 has not
been applied with `--tags gpos`. C: is still 59 GB of 80, as expected until
the rebuild. WinRM is disabled, no VSS errors have been logged since
2026-11-14, all six agent services are running, and 131 days of the
evaluation licence are left.

## 2026-11-25

Expand Down
9 changes: 6 additions & 3 deletions docs/runbooks/build-the-lab-domain.md
Original file line number Diff line number Diff line change
Expand Up @@ -843,9 +843,12 @@ ordinary users, and one service account with an SPN on a real service on
> on members. It does not refuse them network logon. ADR-0136 gives
> `phoenix`'s SSH as the reason, but on a member Ansible does not log on as a
> Domain Admin: it connects as `Administrator`, which a member resolves to its
> own local account and only a DC resolves to `AD\Administrator`. `ramuh`'s
> Security log showed `RAMUH\Administrator` for each of `phoenix`'s logons on
> 2026-11-16. Whether the network deny should change is not decided. At a
> own local account and only a DC resolves to `AD\Administrator`
> ([ADR-0140](../adr/0140-correct-why-adr-0136-leaves-domain-admins-network-logon.md)).
> `ramuh`'s Security log showed `RAMUH\Administrator` for each of `phoenix`'s
> logons on 2026-11-16, and `whoami` on `titan` printed `titan\administrator`
> on 2026-11-26. Whether the network deny should change is not decided:
> closing it would also refuse a relayed Domain Admin on `titan`. At a
> member's console, log on as its local `Administrator`.

`titan` gets the shares — including one obviously-interesting decoy, because a
Expand Down