Repository navigation
fix(lab): remove the staged installers and close the textfile directory - #1770
Merged
Merged
Conversation
The bahamut audit's findings 7 and 8. soc_agents, exporter and sysmon delete their installers once installed; exporter limits the textfile directory to SYSTEM and Administrators; verify.yml checks both. The backup runbook records the nightly DFSR 5014/5004 pair as the snapshot backup, and the changelog records today's apply to the live domain. Refs #449 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Gerrrt
enabled auto-merge (squash)
November 26, 2026 16:11
Gerrrt
added a commit
that referenced
this pull request
Nov 27, 2026
lab-domain.yml --tags base,sysmon,soc,exporter ran on the five reachable guests: Panther\unattend.xml removed on the four servers, and #1770's installer and ACL changes on carbuncle. verify.yml holds on all five. siren was unreachable. Also corrects the 2026-11-26 root-hints entry on what cleared the DCs' in-memory hints that morning. Refs #1099 Refs #449 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
5 of 6 tasks
Gerrrt
added a commit
that referenced
this pull request
Nov 27, 2026
…1788) lab-domain.yml --tags base,sysmon,soc,exporter ran on the five reachable guests: Panther\unattend.xml removed on the four servers, and #1770's installer and ACL changes on carbuncle. verify.yml holds on all five. siren was unreachable. Also corrects the 2026-11-26 root-hints entry on what cleared the DCs' in-memory hints that morning. Refs #1099 Refs #449 Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
5 of 6 tasks
Gerrrt
added a commit
that referenced
this pull request
Nov 28, 2026
…1801) siren was stopped (--onboot 0) during the 2026-11-27 rollout. It was started, lab-domain.yml --tags base,sysmon,soc,exporter removed its staged installers and cut its textfile ACL, verify.yml held (28 checks), and it was shut down again. #1778 found no unattend.xml to remove. Refs #449 Refs #1099 Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
roles/soc_agents,exporterandsysmondelete their staged installers fromC:\ProgramData\labonce installed.roles/exporterlimits the windows_exporter textfile directory to SYSTEM and Administrators, with inheritance cut.verify.ymlchecks both on every lab guest.build-the-backup-guest.md§8 now records the nightly DFSR 5014/5004 pair on the DCs as the snapshot backup. The changelog also records today's apply of #1765, #1769 and ADR-0136's GPO to the live domain.Why
These are the
bahamutaudit's last two findings.BUILTIN\Users. The Velociraptor MSI carries its client config: server URL, CA and enrolment nonce.BUILTIN\Userscould also write into the textfile directory (inherited fromProgramData), so any local user could forge a gauge, the licence clock included. Each role decides "installed" by product code or binary version, never by the installer being on disk, so deleting the installers never triggers a reinstall.Refs #449.
Blast radius
The six lab guests: files under
C:\ProgramData\lab, and the ACL ofC:\ProgramData\windows_exporter\textfile. If the ACL were wrong, the licence-clock gauge would stop updating andLabWindowsEvaluationExpiringwould have nothing fresh to read. The exporter runs as LocalSystem and the task as SYSTEM, both kept. Nothing on the network changes.secrets/*.sops.yamlVerification
--check --tags sysmon,soc,exporteron the DCs and members: only the new tasks report a change, 4 per host. No download or install.Applied on
leviathanonly. A second--checkrun reported changed=0.On
leviathanafterwards:C:\ProgramData\labholds onlysysmon\andlicence-clock.ps1.licence.promgrant only S-1-5-18 and S-1-5-32-544.Start-ScheduledTask licence-clockreturned 0 and rewrote the gauge, and:9182/metricsserveswindows_eval_grace_days_remaining.verify.yml --limit leviathan,titan(read-only):leviathan: 35 checks hold.titan: fails exactly the two new checks, as expected until the roles run there.python3 scripts/check_docs.py: OK.ansible-playbook --syntax-check lab-domain.yml verify.yml: OK../scripts/lint.sh: passed with 8 checks skipped, not run: ruff, actionlint, zizmor, ansible-lint and editorconfig-checker. yamllint isn't installed here either; the 120-character limit was checked by hand. CI runs them all.make validatewas not run: 14 GB free on/, and the suite needs about 38 GB.make validatepassesDeployed to the lab and confirmed working (
leviathanonly)Docs updated (
docs/, service README, ordocs/roadmap.md)🤖 Generated with Claude Code