Commit Graph
14 Commits
Author SHA1 Message Date
quoije 9ba0ca98ac Add the in-world archive trail that explains the lab
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.
2026-10-24 01:57:52 -04:00
quoije 8933c9a669 Replace the unrealistic ACL target with a realistic delegation
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.
2026-10-24 01:46:25 -04:00
quoije 723586029f Fix the ACL being reverted by SDProp, and make doctor check the puzzle
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.
2026-10-24 01:36:33 -04:00
quoije b13ec8da95 Persist the Kali setup in its base image
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.
2026-10-23 07:14:19 -04:00
quoije 7787bd5f84 Close the gaps that a fresh redeploy would have shipped
- 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.
2026-10-23 00:30:40 -04:00
quoije b5981dbe08 Restore the lab wordlist lost in the platform split
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.
2026-10-23 00:26:07 -04:00
quoije 703db36381 Fix RDP never being enabled
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).
2026-10-22 22:40:00 -04:00
quoije 31dae55b1f Allow ICMP echo on lab guests
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).
2026-10-22 21:30:42 -04:00
quoije 0206eb6110 Docs: platform-qualified commands; destroy stops Kali 2026-10-22 21:26:55 -04:00
quoije 608b559e51 Proxmox hardening from a dry run and stub tests
- 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
2026-10-22 21:26:37 -04:00
quoije 77d123a9cf Add optional Kali attacker VM and DHCP for the lab bridge
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.
2026-10-22 19:55:15 -04:00
quoije b077d2c7d5 Easter egg: The Outfield - Your Love (1985)
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.
2026-10-22 19:38:49 -04:00
quoije 523a6f4881 Fix setup-network path after the move; rebuild bundles 2026-10-22 19:23:42 -04:00
quoije 890dd58700 Split into qemu and proxmox platforms over a shared content tree
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.
2026-10-22 19:23:16 -04:00