Post

Hybrid Identity Detection Lab: Start Here

The goal, the posts in order, the lab's specs and where to download everything, so the series can be followed or rebuilt.

Hybrid Identity Detection Lab: Start Here

What this is

A home lab where I build an Active Directory domain, harden it, attack it, detect the attacks, investigate the compromised domain controller, and then extend it into Microsoft Entra ID and Microsoft Sentinel. The posts are written as I go, mistakes included. Anything I could not explain is marked as unknown.

The design documents, diagrams, notes and screenshots are in the repository: hybrid-identity-detection-lab.


The posts, in order

#PostWhat it covers
1Designing a segmented labTwo network zones with a firewall between them, and the design mistake I caught.
2Installing pfSenseThe firewall VM, its three interfaces, and a client reaching the internet through it.
3Sending attack traffic through the firewallOne firewall rule, one host route, and the first logged packet.
4Building the domain controllerStatic address, AD DS, DNS, DHCP, and a network profile problem.
5Joining a Windows 11 clientDNS checks, the join, and the login screen.
6Creating, breaking and fixing AD objectsOne user’s whole life by hand, and what the AD Recycle Bin changes.
7What a domain controller logs, and what it doesn’tFailed logons, the audit gap, no lockout, and the clock.

Post 7 ends with the list of problems still open across the series.


The lab

VMRoleOSRAMAddress
fw01FirewallpfSense CE 2.9.0about 1.2 GBLAN 10.0.10.1, attacker side 10.0.66.1, WAN by DHCP (NAT)
DC01Domain controller, DNS, DHCPWindows Server 2022 evaluation3 GB10.0.10.10
WS01Client (named win11 until post 5)Windows 11 Pro4 GB10.0.10.100 by DHCP
Arch hostAttackerArch Linux, 16 GB RAM, VirtualBox 7.2 10.0.66.2 on vboxnet1
  • Domain: lab.internal, NetBIOS name LAB. I avoided .local because Microsoft and pfSense both advise against it.
  • Networks: the lab zone is a VirtualBox internal network (adlab-net, 10.0.10.0/24). The attacker zone is a host-only network (vboxnet1, 10.0.66.0/24). Only fw01 touches both.
  • Snapshots: a snapshot before every risky step, so any state can be restored.

Where to get the software

Windows Server runs as an evaluation, and Windows 11 is installed without a product key. Windows 11 Home cannot join a domain, so use Pro.


The plan

PhaseGoalStatus
0Setup and network designDone
1Build and harden Active DirectoryIn progress: domain, DHCP, client join and manual account tests done. Next: the 150-user script and Group Policy hardening.
2Attack and detect (Wazuh, Sigma)Planned
3Digital forensics on the compromised domain controllerPlanned
4Microsoft Sentinel and KQLPlanned
5Entra ID hybrid identityPlanned
This post is licensed under CC BY 4.0 by the author.