Skip to content

Latest commit

 

History

20 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vulnerable Active Directory Home Lab

Platform DC Attack%20Host BloodHound Mimikatz License Status

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.

Repo layout

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

Quick Start

  1. Stand up Windows Server 2019 + two Windows 10 VMs + Kali Linux in VirtualBox on an isolated, host-only network (see docs/BUILD-GUIDE.md).
  2. On the domain controller, run the scripts in scripts/ in numeric order, 01 through 06.
  3. From a domain-joined but non-privileged host, run bloodhound/Invoke-Collection.ps1 to collect and zip the SharpHound data, then load it into the BloodHound GUI.
  4. Follow docs/ATTACK-PATHS.md to exploit each of the three paths manually from the Kali attack host.
  5. Run scripts/99-Reset-Lab.ps1 to revert the misconfigurations, or restore your VirtualBox 00-baseline snapshot to start over.

Requirements

  • 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

About

AD Misconfigurations Home-Lab: Common AD Misconfigurations, Mapping Attack Paths with BloodHound, and Achieving Domain Compromise

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages