From 055b17984d6f0de6400f99b7e7ecd44ef0cfa309 Mon Sep 17 00:00:00 2001 From: Gerrrt Date: Thu, 26 Nov 2026 00:20:19 +0000 Subject: [PATCH] docs(lab): ADR-0138 corrects why ADR-0136 leaves Domain Admins network logon MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ADR-0136 said Domain Admins keep network logon on members because phoenix's Ansible connects to them as AD\Administrator over SSH. On a member, Ansible's Administrator is the member's own local account (whoami over that path on titan, 2026-11-26: titan\administrator); only on the DCs is it the domain's. Nothing else in the repo logs on to a member as a domain admin. ADR-0138 withdraws that reason and leaves the rights unchanged. Whether to deny network logon too is left open, because it would also refuse a relayed Domain Admin on titan. ADR-0136 gets the ADR-0115 note. The runbook's §5, the gpos role's comment and verify.yml's comment stop repeating the wrong reason. The changelog corrects the 2026-11-25 entry and records titan's state today. Co-Authored-By: Claude Opus 5.5 --- README.md | 4 +- ansible/roles/gpos/defaults/main.yml | 7 +-- ansible/verify.yml | 2 +- ...mains-own-admins-the-console-on-members.md | 8 +++ ...0136-leaves-domain-admins-network-logon.md | 53 +++++++++++++++++++ docs/changelog.md | 21 ++++++++ docs/runbooks/build-the-lab-domain.md | 9 ++-- 7 files changed, 95 insertions(+), 9 deletions(-) create mode 100644 docs/adr/0138-correct-why-adr-0136-leaves-domain-admins-network-logon.md diff --git a/README.md b/README.md index 0cf7c394..e6fa28d2 100644 --- a/README.md +++ b/README.md @@ -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.** 137 ADRs covering what was chosen +- **Documented decisions and runbooks.** 138 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 @@ -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/ # 137 ADRs — architecture decision records +│ ├── adr/ # 138 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 diff --git a/ansible/roles/gpos/defaults/main.yml b/ansible/roles/gpos/defaults/main.yml index f1f2dbbd..9cc4597a 100644 --- a/ansible/roles/gpos/defaults/main.yml +++ b/ansible/roles/gpos/defaults/main.yml @@ -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-0138): 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 diff --git a/ansible/verify.yml b/ansible/verify.yml index b64f07ee..d0660f2b 100644 --- a/ansible/verify.yml +++ b/ansible/verify.yml @@ -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-0138). $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" } diff --git a/docs/adr/0136-deny-the-domains-own-admins-the-console-on-members.md b/docs/adr/0136-deny-the-domains-own-admins-the-console-on-members.md index a8ac46fa..8d98e2ee 100644 --- a/docs/adr/0136-deny-the-domains-own-admins-the-console-on-members.md +++ b/docs/adr/0136-deny-the-domains-own-admins-the-console-on-members.md @@ -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-0138](0138-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 diff --git a/docs/adr/0138-correct-why-adr-0136-leaves-domain-admins-network-logon.md b/docs/adr/0138-correct-why-adr-0136-leaves-domain-admins-network-logon.md new file mode 100644 index 00000000..b4100b92 --- /dev/null +++ b/docs/adr/0138-correct-why-adr-0136-leaves-domain-admins-network-logon.md @@ -0,0 +1,53 @@ +# ADR-0138: 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`. + +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. diff --git a/docs/changelog.md b/docs/changelog.md index 3eb5dd25..bff241ce 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -17,6 +17,27 @@ roadmap as it read that day, and the *Done* entries keep the shape they had there. `check_docs.py` does not check this file, for the reason its module docstring gives: it is a record, not a claim about now. +## 2026-11-26 + +- **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. ADR-0138 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 - **`smaug`: three decided changes applied, from a session on the box.** diff --git a/docs/runbooks/build-the-lab-domain.md b/docs/runbooks/build-the-lab-domain.md index e0f9cff4..6ce9ad6d 100644 --- a/docs/runbooks/build-the-lab-domain.md +++ b/docs/runbooks/build-the-lab-domain.md @@ -840,9 +840,12 @@ ordinary users, and one service account with an SPN on a real service on > that group lets it log on anywhere. Since > [ADR-0136](../adr/0136-deny-the-domains-own-admins-the-console-on-members.md) > the same GPO also refuses Domain and Enterprise Admins the console and RDP -> on members. It does not refuse them network logon, because that is how -> `phoenix` gets in: Ansible connects as `AD\Administrator` over SSH, and a key -> logon is a network logon. At a member's console, log on as its local +> on members. It does not refuse them network logon. Nothing in the pipeline +> needs that: on a member, Ansible's `Administrator` is the member's own local +> account, not `AD\Administrator` +> ([ADR-0138](../adr/0138-correct-why-adr-0136-leaves-domain-admins-network-logon.md)). +> Closing it is a decision still to take, because 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