Skip to main content
L Jyothendra
Projects
completedActive Directory

Active Directory Security Assessment

Multi-machine enterprise AD lab used to map attack paths, escalate privileges and document remediation.

Repository link not configured

01 — Overview

Built a multi-machine Active Directory lab using Windows Server and Windows client systems to simulate an enterprise environment, then assessed it end to end.

02 — Problem

Enterprise AD environments accumulate privilege relationships that are hard to see without mapping them.

03 — Architecture

The assessment runs against an isolated lab forest: two domain controllers, four member workstations and a jump host on a private virtual switch with no route to production or the internet.

Three layers make up the setup:

  1. Target layer - Windows Server domain controllers plus domain-joined Windows 10 clients, seeded with realistic misconfigurations (over-permissive ACLs, service accounts with SPNs, nested admin groups).
  2. Operator layer - a Kali workstation running BloodHound, Impacket, CrackMapExec and ldapsearch, with all activity logged to a local timeline file.
  3. Detection layer - Sysmon plus Windows Security logs shipped to a local collector so every attack step can be paired with the event IDs it produces.

Data flows one way: enumerate, map the graph, validate a path safely, then write the finding with both the exploitation evidence and the detection signal.

04 — Architecture diagram

05 — Security features

  • Read-only enumeration first: the graph is built before any credential or ticket handling.
  • Every validated path is proven with the smallest possible action, never a destructive one.
  • Credentials captured in the lab are rotated and discarded at the end of each run.
  • Each finding ships with a remediation step and a detection rule, not just an exploit.
  • Snapshots let the whole forest be reverted to a clean state between runs.

06 — Implementation

  • Configured domain services, users, groups, service accounts, OUs and GPOs
  • Enumeration with BloodHound, SharpHound, PowerView and Impacket
  • Kerberoasting, password spraying and privilege escalation in a controlled lab
  • Lateral movement and post-exploitation with documented remediation

08 — Challenges

The hardest part was separating real attack paths from graph noise. BloodHound will happily show hundreds of theoretical edges; most of them are irrelevant once you account for logon restrictions and tiering. I ended up filtering by "paths that a normal user can actually walk today" and dropping the rest.

Kerberoasting also produced misleading results at first because the seeded service accounts had strong passwords. That turned into a useful lesson: the finding is the exposed SPN and the weak policy around it, not whether one hash happened to crack.

09 — What I learned

  • Attack path mapping is a tiering problem before it is a tooling problem.
  • Detection engineering and offensive testing are the same exercise viewed from two sides; writing the Sigma rule taught me more about the attack than the exploit did.
  • Reporting quality decides whether a finding gets fixed. Risk, evidence, reproduction steps and a concrete fix beat a screenshot of a shell every time.

10 — Future improvements

  • Automate the enumerate to report loop so a clean run produces a draft findings document.
  • Add Entra ID hybrid identity scenarios (Connect sync accounts, PRT abuse) to the lab.
  • Track a before and after detection coverage score per technique using ATT&CK mapping.

Technology stack

Windows ServerBloodHoundSharpHoundPowerViewImpacketKerberos