Three shortcuts and one race made the lab either easier than documented or
non-deterministic:
- Serveurs-Admins was nested in BUILTIN\Administrators on the DC, so
m.legault was a de-facto domain-controller admin (C$, NTDS.dit) and the
whole ACL lesson could be skipped. It also made SDProp treat her as
protected: an hour after provisioning, the intended GenericAll ACE was
wiped. Removed the nesting; adminCount is explicitly reset.
- the t.smith decoy ACE gave a working path to Domain Admin until SDProp
ran (up to an hour after a fresh build). The role now grants it and
revokes it immediately, so the state is deterministic.
- the replication-rights grant stacked duplicate ACEs on every re-run; it
now removes its own ACEs first.
- up/reset/save returned as soon as WinRM answered, while the directory
was still starting; doctor right after could report a missing ACE and
missing replication rights on a healthy lab. They now wait for
Get-ADDomain on dc01.
doctor: a decoy ACE that is still present is now a failure, not a success.
The deck's wording matches the new behaviour.
Intro, rules, topology, methodology, then the debriefing path and the
defensive angle. Text lives in build_slides.py so it can be regenerated;
the .pptx is the editable artifact.
doctor run right after reset reported false failures because the VMs were
still booting. _start_lab now waits for WinRM on each guest (300 s) and
names the ones that did not answer.
A from-scratch rebuild surfaced three defects that only appear on a clean
deployment:
- dc01-post: `Set-ADObject -Identity <sAMAccountName>` raises
ADIdentityNotFoundException even right after New-ADUser, so resolve the
DN once and reuse it. The stage aborted before DNS, flags, DHCP and the
audit policy, leaving a half-built domain.
- bootstrap ran the role script at first boot while `provision` also ran
it. fs01 tried to join a domain that did not exist yet, and dc01 ran two
promotions concurrently; the loser wrote "FAIL Stream was not readable".
Roles are now only started by the harness, which orders them.
- fs01: the `.url` MIME existence test read the staticContent element
(-Name '.') instead of its collection, so any re-run died on a duplicate
entry. Test -Name 'collection'.
Every stage now takes a PID-based lock: a duplicate start exits instead of
racing the real one.
Validated on a fresh build: doctor 0 warnings, and the full path
(site -> SMB -> AS-REP -> Kerberoast -> WinRM -> ACL -> replication ->
DCSync) reproduces.
Deploy N attacker VMs alongside the domain lab and hand each colleague a
console URL, with nothing to install or configure on their side.
- import the Kali image once, keep it as a template, clone per seat
- deterministic MAC + DHCP reservation on DC01, so addresses are stable
- configure through the QEMU guest agent: hostname, wordlist from the
tool ISO, sshd, then verify network and DNS
- add the `users` command: a PVEVMUser account scoped to one VM plus the
noVNC URL and generated password
- check: 7z/pveum presence, address range, RAM budget for the clones
- destroy cleans up the clones and the template
The documented path no longer depends on bloodyAD: the password reset uses
impacket-changepasswd (already installed) and ACL inspection uses nxc's
daclread module, both verified against the live lab.
session1/ now holds the whole live lab (content, platforms, docs, answer key,
README); session2/ keeps the design for the second workshop. The root README
indexes both and states that session2 modifies session1 rather than
duplicating it.
build-bundle.sh builds from session1 and still produces a flat archive, so
the documented paths inside a deployment (platforms/<p>/lab.sh) are
unchanged. .gitignore follows the move.