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.
The graded path ends with replication rights and DCSync, not membership in
Domain Admins, so the stated objective was inaccurate. Also documents that
C$/ADMIN$ require local admin while hidden shares depend only on their own
ACL — which is how the server flag is reachable.
blue-team: the reset target is m.legault; the ACL row explains that the same
ACE on t.smith is stripped hourly by SDProp; the DA-logon row becomes the
replication event (4662).
answer key: DCSync runs as m.legault, t.smith is listed as the protected
decoy, and two new pitfalls document why C$ refuses a plain account and why
WinRM on DC01 is authorization, not a closed port.
README: structure table gains session2/. No stale references remain
(AdminSDHolder, Serveurs-Admins, C:\flag).
Answer key no longer claims two viable targets: SDProp has already reverted
the t.smith decoy by the time a student looks, so 'get writable' shows only
m.legault. Keeps t.smith as the documented trap instead.
Instructor runbook and the archive index now describe the replication-rights
story rather than the old BUILTIN\Administrators one.
The AdminSDHolder anchor worked but handed svc_backup GenericAll over every
protected object, including Domain Admins — a shortcut that undermined the
intended lesson.
New design, matching how backup products actually get AD access:
svc_backup --GenericAll--> m.legault (plain user, never protected)
m.legault in Sauvegarde-AD, which holds Replicating Directory Changes
and ...All on the domain — the vendor requirement for AD-aware backups
Nothing on that path is a protected object, so SDProp has nothing to rewrite.
t.smith stays as the decoy whose ACE is reverted hourly.
The flag moves to C:\Sauvegarde, shared as Sauvegarde\$ readable by the
backup group: C\$ is admin-only, so a plain account could never fetch it.
web --sync now mirrors instead of merging (it used to leave deleted files
served forever) and clears the staging folder that smbclot only adds to.
Lore 2016/2021 rewritten around the replication requirement.
BUILTIN\Administrators is itself a protected group, so adding
Serveurs-Admins to it made m.legault transitively protected too: SDProp
then wiped both ACEs and reset adminCount. doctor caught it.
The durable fix is the one that works in a real domain: the ACE lives in
AdminSDHolder, which SDProp copies onto protected objects every hour, so it
is re-applied rather than deleted. The adminCount workaround is gone.
Lore gains a 2021 note explaining exactly this, in the voice of the
instructor who hit it: the delegation kept vanishing, the vendor explained
AdminSDHolder, the right was moved there and stopped disappearing.
dc01-post.ps1 now creates the 10.10.10.101 reservation itself (it only
existed in the running lab), and doctor checks it.
session2/ holds the design for the second workshop: LSASS credential theft
with mimikatz, overpass-the-hash and pass-the-ticket, the scheduled-task
plant it needs, the detections to add alongside, and the open question to
prototype first. Nothing is implemented; the live lab is untouched.
save = snapshot --update + start, and falls back to a first-time snapshot
when no baseline exists yet. On the qemu platform it folds the working
overlays into the base images and brings the lab back up; on proxmox it
re-templates.
Documented as the rule it is: every deliberate change to the lab ends with
save, so reset always returns to the state you meant to freeze.
Six dated notes under _archives/ on the public share, one per artifact:
the 2003 backup deployment and its permanent password, INC-0142 (the
object-level delegation), the 2011 'the agent needs local admin' shortcut,
the 2016 'this is equivalent but looks better in an audit' note, and the
2019 copy of the procedure for t.smith.
Students find the reasons for the permissions instead of being told them;
the instructor gets a per-step debrief trail. Referenced from the student
guide, the runbook and the answer key.
GenericAll over a Domain Admin cannot survive in a real domain: SDProp
rewrites protected objects from AdminSDHolder every hour. The previous
design only worked thanks to adminCount=0, which no IT team would ever set.
New design, matching what broad delegation actually looks like:
svc_backup --GenericAll--> m.legault (plain user, ACE stable)
m.legault in Serveurs-Admins, which is in BUILTIN\Administrators on DC01
t.smith stays as a decoy: the same edge exists but is reverted by SDProp,
which is itself a lesson.
Also repairs accounts that an interrupted first run left disabled (m.legault
was one), and doctor now checks the stable path, the account state and the
DC admin membership.
t.smith is a Domain Admin, therefore a protected object: SDProp rewrites his
security descriptor every hour from AdminSDHolder and deletes any ACE not
present there. The GenericAll that the lab builds was silently removed by
that cycle, so 'bloodyad set password' started failing with the misleading
'oldpass not valid' error.
Clearing adminCount on the target takes it out of SDProp's scope while it
stays a Domain Admin. Applied in dc01-post.ps1 (guarded) and baked into the
baseline.
doctor now verifies the invariants that services do not reveal: the ACE,
adminCount, SPN, disabled pre-auth, minimum password age, root.txt, the
easter-egg TXT and the DHCP scope. This is exactly the drift that was
invisible before.
Adds the four commands the lab needs that were missing from the cheat
sheet: the web entry (curl), reading a file from an admin share, the
bloodyad action that exercises a delegated right, and the final DCSync
secretsdump. Placeholders only, no target names.
New 'kali snapshot' subcommand commits the working overlay into the base
image, the same way the Windows guests are frozen. After it, reset returns
to a Kali that already has: the wordlist under /opt/norbourg, bloodyAD,
sshd enabled at boot, and the dual resolver (DC first, slirp second).
Verified by booting from the committed base with no manual step: sshd
answers, 1716-line wordlist present, bloodyad on PATH, lab and public names
both resolving.
Docs: README and instructor checklist describe the new step.
The DC returns SERVFAIL for names outside its zones, so glibc falls through
to the next nameserver. Listing the slirp resolver second (10.0.2.3) gives
lab names from the DC, public names from the tunnel, and keeps apt working.
No dnsmasq or per-domain config needed.
Docs: instructor checklist and the participant note both describe the
two-resolver setup, and warn that the connection name is case-sensitive.
The doc claimed a hosts file would break nxc and Kerberos lookups. It does
not: name-to-IP is all the tools need, and the lab works with IPs plus
-dc-ip. What actually matters is that the domain name points at the DC —
a hosts entry pointing norbourg.lab at FS01 silently sends tooling to the
wrong machine, which is exactly what happened during testing.
Documents both routes and the one rule that matters.
prerequis: tools list corrected (collector, not the BloodHound GUI), the
provided Kali VM path added (DHCP + DNS come free), address table completed
with the Kali reservation and the DHCP range.
blue-team: null sessions are refused in this lab, so the SMB row no longer
claims one; the GenericAll is planted at build time, so the detectable
signal is its use (4724), not an ACE creation (5136); added ready-to-run
Get-WinEvent queries with the field indices.
answers: nxc instead of netexec, domain flag on every call, bloodyad -H,
and the no-GUI shortcut documented.
README/instructeur: what the image actually ships, and how to add bloodyAD.
- nxc/netexec with the domain flag, from Kali
- AS-REP and Kerberoast commands with the actual flags (-request, -format
hashcat, -dc-ip, -outputfile)
- hashcat modes called out explicitly (18200 AS-REP, 13100 TGS)
- bloodyAD get writable as the no-BloodHound way to answer permission
questions, since the GUI is not installed
- note that bloodhound-python -c all is required for ACL data
Instructor runbook now covers what we learned the hard way: snapshot before
use, the wordlist lives on the Kali tool CD, DNS needs the DC prioritised on
Kali's bridge NIC, and the lab deliberately answers ICMP and offers RDP (for
instructors only — Remote Desktop Users stays empty).
- install the QEMU guest agent from virtio-win: Proxmox provisions over
qm guest exec, so without it every provision would hang waiting for the
agent. virtio-win is now attached as ide3 on the Proxmox platform.
- restore the .url MIME mapping in fs01.ps1: the earlier patch silently
missed, so a rebuilt FS01 would answer 404.3 for the easter-egg shortcut.
- kali install now builds a small tool ISO carrying the wordlist, so a
fresh Kali is usable without network access to the host.
Audited by extracting the bundle and re-rendering the seeds: no unrendered
tokens, and every live fix is present in the generated role scripts.
The directory move into content/scripts silently failed and scripts/ was
removed, so the list vanished from the tree while surviving in history.
kali-setup.sh has been pointing at a missing file ever since.
The discoverability-flyout tweak used New-Item -Force on a protected HKLM
key, which throws UnauthorizedAccessException. With ErrorActionPreference
Stop that aborted the bootstrap before the RDP block, so TermService stayed
stopped, fDenyTSConnections stayed 1 and no RDP firewall rule was enabled.
Anyone trying 3389 got a closed port.
Use New-ItemProperty in a try/catch, and make the RDP block defensive
(start the service, enable the rule group, log failures).
Windows drops echo by default, and 'ping the DC' is the first check anyone
runs; prerequis.md tells participants to do exactly that. Adds a scoped
ICMPv4-in rule in bootstrap.ps1 (lab only, all profiles).
- PVE has no win2k22 ostype; Server 2022 maps to win11
- drop --startup 0, which is not a valid order value
- after install, repoint the boot order at sata0 and detach the installer
ISO, so a stray keypress cannot re-enter Setup
- ISO storage detection falls back to storage.cfg when pvesm has no
--content flag
- router wg0 is now 10.10.10.250/32 with the lab NIC at .251/24: two /24s on
one host made routing ambiguous
- nft rules use the router's own interface name (WG_LAB_IFACE), not vmbr10
lab.sh kali install|up|down|reset|status extracts the official Kali QEMU
image once, keeps it as a read-only base with a throwaway overlay, and
boots two NICs: the lab bridge (for the exercise) and user networking (so
apt works without opening the isolation policy).
DC01 now serves DHCP on 10.10.10.100-200 with DNS and domain options but no
router: devices on the bridge configure themselves while the lab stays
isolated. A reservation pins 10.10.10.101 to the Kali MAC.
Also fixed backend_stop, which still called the pre-refactor WinRM helper
and fell back to killing the VMs.
A hidden _archives/1985 folder in the Public share with a README and a .url
shortcut that opens the official video, a TXT record on the domain
(nslookup -type=TXT yourlove.norbourg.lab), and a breadcrumb in the home
page source. No copyrighted media is stored: the shortcut is a link.
IIS has no MIME mapping for .url, so fs01.ps1 adds one.
platforms/qemu and platforms/proxmox each have their own lab.sh and
lab.conf; content/ holds everything shared (roles, seed, site, helpers).
The dispatcher, preflight and command implementations are common and take
platform differences from the backend.
Proxmox backend: qm create with q35/SATA/e1000, ISOs and seed ISOs in an
ISO storage, provisioning over qm guest exec (no Python packages needed on
the host), template + clone for reset, and peers/ to emit WireGuard configs.
The role scripts now ride on the seed ISO, so provisioning transfers nothing.
build-bundle.sh produces a self-contained tarball per platform, for hosts
that cannot reach the git server.
Both configs are generic: no absolute path from this machine remains.
snapshot --update commits the working overlay into the base so deliberate
changes survive reset. The eval image ships with File and Printer Sharing
disabled; the bootstrap enables it, otherwise the workstation is invisible
to an SMB scan.
README and instructor runbook now document the real command set.
doctor verifies bridge, per-VM SMB/WinRM, DNS SRV records, the site and the
leaked credential in one pass — the instructor's first move when something
looks wrong.
Start order now boots dc01 first and waits for WinRM: a member that wins the
race loses its machine-account channel (NO_LOGON_SERVERS on every logon).
snapshot freezes each golden disk into images/base/ and boots a thin
overlay; reset recreates the overlay in about a second. Shutdown now asks
the guest over WinRM because ACPI powerdown is ignored by Server 2022.
dc01-post: grant GenericAll with dsacls (the .NET ACL API reported success
but never persisted the ACE) and set MinPasswordAge to zero, without which
the ACL reset fails.
Attack path validated end to end against the live lab: web -> SMB creds ->
AS-REP -> Kerberoast -> WinRM -> GenericAll reset -> DCSync.
- wait for WinRM with an authenticated call, not a TCP probe: the port opens
before the service can authenticate
- skip promotion/join when the machine is already there, so provision is
idempotent
- probe the domain with System.DirectoryServices: Get-ADDomain needs RSAT,
which a member server does not have
- passwords must not contain the account name (Legault2024! is rejected)
- Web-Dir-Browsing is the real feature name
- push the site over SMB from C$: WinRM caps the command line at 8 KB
A Start-Process child dies with the WinRM shell, so the promotion never
completed. Role scripts now run under the Task Scheduler as SYSTEM, which
survives the disconnect and the reboot. Uploads retry on transient auth
errors while a guest is busy installing features.
Docs: participant guide, instructor runbook, blue-team debrief, and an
instructor wordlist sized for a two-minute crack.
dc01 promotes the forest then runs a startup-scheduled post stage for OUs,
users, groups, the SPN on svc_backup, pre-auth disabled on j.contractor,
GenericAll over t.smith, the www A record, flags and advanced audit policy.
fs01 installs IIS, shares the web root's public/ as \\FS01\Public and joins.
ws01 joins, then adds WS Admins to local Administrators.
provision uploads over WinRM, starts scripts detached, waits on a .done
marker and survives the promotion reboot.
QEMU rejects a five-byte ethernet address, so every VM would have failed
to start with 'invalid ethernet address'. Caught by booting the installer
against a scratch disk with user-mode networking: the unattended file was
picked up, image index 2 copied, and once=d handed off to the disk.
autounattend template (q35/AHCI/e1000, no virtio injection), per-VM seed
ISOs with a bootstrap that configures the static IP, enables WinRM/RDP and
chains into the role script. build --dry-run, up/down/status/vnc verbs.
Static addressing happens in PowerShell rather than in the unattend file:
Microsoft-Windows-TCPIP matches adapters by connection name and fails
silently when the name differs.
prepare_site.py rebuilds web/site/ from site-src/: rebuilt home page,
repaired images, Wayback links resolved to local files or neutralised,
hit counter removed, crawler metadata dropped, home page breadcrumb.
Link check fails the build on dangling references.
Seed layer adds public/IT-inventaire.txt and robots.txt.
One-time root script: NetworkManager bridge portless on 10.10.10.230/24,
allow br-lab in /etc/qemu/bridge.conf, ip_forward via sysctl.d, and a
firewalld zone + policy that permits participant->lab on AD/web/WinRM
ports only. Reverse direction falls through to the default drop.
Includes --dry-run, --verify and --remove.
Move the archived 2002 site into site-src/ so the lab README can take the
repo root. Add lab.conf, the lab.sh dispatcher, a qemu backend and the
check/init verbs. No VM is created yet.