Why you need an AD lab for DFIR
If you work in incident response or digital forensics, you know that 90% of the attacks you investigate happen in Active Directory environments. Kerberoasting, lateral movement with PsExec, DCSync, ADCS abuse — you see them constantly in real cases. But where do you practice?
In case some of those names are new to you: Kerberoasting is requesting Kerberos service tickets to crack the service account’s password offline. PsExec is a tool that runs commands on another Windows machine over the network. DCSync is posing as a domain controller so that another one hands you the password hashes. ADCS is Active Directory’s certificate service, which when misconfigured lets you obtain certificates in the name of other users. We will meet them one by one along the series.
Certifications give you limited lab scenarios. Online platforms have shared environments and restrictions. What you need is your own lab, with your own domain, your own users, your own network noise — and the ability to attack it, export forensic images, and analyze them exactly as you would in a real case.
What we’re building
A complete Active Directory environment inspired by GOAD (Game of Active Directory) by Orange Cyberdefense, with a Game of Thrones theme:
Hetzner AX41-NVMe (Ryzen 5 3600, 64 GB RAM, 2x512 GB NVMe) — 38 EUR/month
VLAN 10 — Corporate Network (192.168.10.0/24)
DC01 kingslanding Win Server 2019 Root DC, ADCS, DNS, DHCP
DC02 winterfell Win Server 2019 Child domain: north.sevenkingdoms.local
SRV02 castelblack Win Server 2019 IIS, MSSQL, file shares, WinRM
DC03 meereen Win Server 2016 Second forest: essos.local
SRV03 braavos Win Server 2016 Cross-forest trust
WS01 highgarden Windows 10 Domain workstation
LNX01 oldtown Ubuntu 22.04 SSSD + AD authentication
VLAN 20 — Attack Network (192.168.20.0/24)
KALI nightking Kali Linux Impacket, BloodHound, Certipy, Rubeus...
pfSense firewall between VLANs — Kali must pivot, just like a real engagement.
Two forests with bidirectional trust. Three domains. Nine virtual machines: the eight in the list plus pfSense, the firewall. ~46 users across the three domains — the set GOAD populates (no BadBlood bulk generation was run). Pre-built vulnerabilities including AS-REP Roasting, Kerberoasting, delegation, ADCS ESC1-ESC13 (in essos.local), ACL abuse and much more.
The full DFIR workflow
What makes this lab special isn’t just the vulnerable environment — it’s the complete investigation cycle:
- Generate baseline noise — two years of simulated corporate activity before any attack (Part 8)
- Snapshot the clean state
- Run an attack scenario from Kali (automated or manual)
- Export forensic images (raw compressed with zstd, Part 9) of compromised machines
- Analyze with your tools — masstin, Volatility, plaso, whatever you prefer
- Revert to clean state and repeat with a different scenario
Each attack scenario generates specific artifacts you can hunt for: events 4624, 4769, 4662, Sysmon event 1 with full command lines, PowerShell script blocks in 4104…
What each one records:
- 4624 (Security): a successful logon.
- 4769 (Security): a Kerberos service ticket was requested.
- 4662 (Security): an operation was performed on an Active Directory object.
- Sysmon 1: a process was created, with its command line.
- 4104 (PowerShell): the text of the script that ran.
The series
The entire process is automated with scripts and documented step by step:
| Part | Title | Content |
|---|---|---|
| Part 1 | From Bare Metal to Proxmox | Hetzner server, rescue system, installing Proxmox VE with ZFS |
| Part 2 | The Seven Kingdoms — Deploying Windows VMs | Creating VMs, autounattend, VirtIO drivers |
| Part 3 | Beyond the Wall — pfSense, VLANs and Network Segmentation | pfSense, VLAN 10/20, NAT, WireGuard |
| Part 4 | Crowning the Domain Controllers — AD, Forests and Trusts | GOAD, domains, forests, cross-trust |
| Part 5 | The Smallfolk — Users, Groups and Vulnerabilities | Catalog of users, groups, AS-REP, Kerberoast, ADCS, ACLs |
| Part 6 | Ravens and Whispers — Audit Configuration | Sysmon, audit policy, PowerShell logging, auditd |
| Part 7 | The Night King Rises — Kali as Attack Platform | Offensive tools, configuration, AS-REP roast test |
| Part 7.5 | Keeping the Kingdoms Alive — Eval Licenses and Lab Longevity | Wall-clock eval test, rearm limits, Telegram alerts |
| Part 8 | A Day in the Realm — Generating Two Years of Historical Noise | Day-as-iteration, Spanish calendar, personas, parallel clock travel, wlms gotcha |
| Part 9 | Collecting the Evidence — Forensic Imaging Pipeline | ZFS clones, dd + zstd streaming over SSH, real 52m 42GB benchmark |
| Part 10 | Fire and Blood — Attack Scenarios and Forensic Analysis | Attacks, image export, analysis with masstin |
Cost
| Item | Cost/month |
|---|---|
| Hetzner AX41-NVMe (64 GB RAM, 2x512 GB NVMe) | 38 EUR |
| Windows licenses (evaluation, reset via ZFS snapshot) | 0 |
| Proxmox VE (community edition) | 0 |
| GOAD + tools | 0 (open source) |
| Total | 38 EUR/month |
Repository
All code is available on GitHub: ad-dfir-lab
$ comments