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.