Code and documentation for a deliberately vulnerable Active Directory environment, built for hands-on study of common AD misconfigurations, BloodHound attack-path mapping, and Kerberos/GPO abuse techniques.
This repo captures the exact steps I used to build the lab described in
docs/WRITEUP.md: one domain controller, two
workstations, and three intentionally introduced misconfigurations
that each lead to Domain Admin.
Intended for isolated, offline lab use only. Every script in this repo disables security controls on purpose. Please do NOT run any of this against a domain joined to a live network, or any system you do not own. See
DISCLAIMER.md.
vulnerable-ad-homelab/
├── AD_home_Lab_Writeup.pdf
├── DISCLAIMER.md
├── LICENSE
├── scripts/
│ ├── 00-Variables.ps1 # shared config used by every script
│ ├── 01-Install-ADDS.ps1 # promote Windows Server 2019 to a DC
│ ├── 02-New-OUStructure.ps1 # create Users / Computers / ServiceAccounts OUs
│ ├── 03-New-LabUsersAndGroups.ps1 # populate the domain with sample users/groups
│ ├── 04-Introduce-Kerberoasting.ps1 # misconfig #1: SPN'd, over-privileged svc account
│ ├── 05-Enable-UnconstrainedDelegation.ps1 # misconfig #2: unconstrained delegation on WS01
│ ├── 06-Configure-WeakGPO.ps1 # misconfig #3: GenericAll on a GPO for a low-priv group
│ ├── 07-Snapshot-Checklist.ps1 # prints the VirtualBox snapshot checklist
│ └── 99-Reset-Lab.ps1 # rolls back all three misconfigurations
├── bloodhound/
│ └── Invoke-Collection.ps1 # wraps SharpHound.exe with the flags used in this lab
└── docs/
├── AD_Home_Lab_Writeup.pdf # link back to the full write-up
├── BUILD-GUIDE.md # step-by-step lab build instructions
└── ATTACK-PATHS.md # documented exploitation commands per path
- Stand up Windows Server 2019 + two Windows 10 VMs + Kali Linux in VirtualBox on an
isolated, host-only network (see
docs/BUILD-GUIDE.md). - On the domain controller, run the scripts in
scripts/in numeric order,01through06. - From a domain-joined but non-privileged host, run
bloodhound/Invoke-Collection.ps1to collect and zip the SharpHound data, then load it into the BloodHound GUI. - Follow
docs/ATTACK-PATHS.mdto exploit each of the three paths manually from the Kali attack host. - Run
scripts/99-Reset-Lab.ps1to revert the misconfigurations, or restore your VirtualBox00-baselinesnapshot to start over.
- VirtualBox 7.x
- Windows Server 2019 (evaluation media is fine for a lab)
- 2x Windows 10 (any recent build)
- Kali Linux (current release)
- BloodHound + SharpHound collector
- Impacket on the Kali host
- Rubeus and Mimikatz | build or download from their official repos
- SharpGPOAbuse | same, official repo only