Notes
What AD is
Active Directory is a central directory of a company's accounts and computers, grouped into a domain. The servers that hold it and check every login are domain controllers. Inside are user accounts, computer accounts and groups, arranged in organisational units, which are folders used to apply settings through Group Policy. The promise is single sign-on: an employee signs in once and reaches every system that trusts the domain. That convenience is exactly what makes it a target.
- domain: a boundary of accounts and computers, e.g. corp.local
- domain controller (DC): the server that holds the directory and checks logins
- users, computers, groups
- OUs: folders to organise and apply policy (Group Policy)
Kerberos login
Modern Windows login uses Kerberos. You prove your identity once and receive a ticket-granting ticket. When you want a specific service, a file share or an app, you present that ticket to the Kerberos service on the domain controller and get a service ticket for it. You show the service ticket to the file server, which trusts it without ever seeing your password. Passwords are not sent around, and tickets expire. It is elegant, and every step is something an attacker tries to abuse in Part seven.
- 1 log in: get a TGT (ticket-granting ticket)
- 2 want a service? ask the KDC with your TGT
- 3 get a service ticket
- 4 show it to the file server, which never sees your password
- tickets expire; passwords are not sent around
NTLM, the old way
Older than Kerberos is NTLM, still enabled on most networks for compatibility. It is a challenge-response scheme where the server checks that you can prove knowledge of your password hash. The flaw is that the hash itself is enough to authenticate, so an attacker who steals a hash from LSASS can reuse it directly without ever cracking it. That attack is called pass the hash, and it is why NTLM should be disabled where possible, with its use monitored where it cannot be.
- older challenge-response auth
- the server checks you can prove knowledge of your password hash
- problem: the hash itself is enough to authenticate → pass-the-hash
- disable where you can; prefer Kerberos; monitor NTLM use
The crown jewels
A few things hold all the power. The Domain Admins group controls the entire domain. The domain controllers are the machines that must never be compromised. And one special account, KRBTGT, holds the key that signs every Kerberos ticket. If an attacker steals that key, they can forge a ticket for anyone, including a domain admin, that the domain will accept, the so-called golden ticket. Protecting these few things is most of Active Directory security.
- Domain Admins: full control of the domain
- the domain controllers themselves
- KRBTGT: the account whose key signs all Kerberos tickets (steal it = forge any ticket, the "golden ticket")
- protect these above all else
Why AD is fragile
Active Directory is fragile by design. Single sign-on means one account reaches many systems. Administrators often log in to ordinary workstations, leaving their powerful credentials in that machine's memory for an attacker to steal. Years of over-broad groups, forgotten accounts and nested memberships create hidden paths from a nobody account up to Domain Admin. A tool called BloodHound maps those paths automatically. You meet it, as a defender, in Part seven.
- one login reaches many systems
- admins log in to normal workstations, leaving their credentials in memory there
- over-broad groups, old accounts, nested group membership
- result: a path from any user to Domain Admin, found with BloodHound (Part 7)
Defending AD
The defenses follow from the weaknesses. Tiering: the most powerful admin accounts never log in to ordinary machines, so their credentials are never left where a user could be phished. Admins use separate accounts on hardened workstations. Keep groups least-privilege and remove stale accounts, which shrinks the attack paths. Give service accounts long random passwords. Monitor Kerberos and NTLM for the signs of forged tickets, and rotate the KRBTGT key on a schedule so a stolen one expires.
- tiering: admin accounts never log in to normal workstations
- separate admin accounts, with Privileged Access Workstations
- least privilege on groups; remove stale accounts
- strong, long service passwords
- monitor Kerberos and NTLM; alert on golden/silver tickets
- rotate KRBTGT regularly
What Part 7 covers
To be concrete about where this goes: Part seven covers the named Active Directory attacks and, for each, the fix. Kerberoasting, which cracks weak service-account passwords offline. AS-REP roasting. Pass the hash and pass the ticket, reusing stolen credentials. Golden and silver tickets, forged from stolen keys. And using BloodHound to find and then close the shortest path to Domain Admin. The point of this episode is that none of those make sense until you know how login works, which you now do.
- Kerberoasting: crack weak service-account passwords
- AS-REP roasting
- pass-the-hash / pass-the-ticket
- golden and silver tickets
- BloodHound attack paths
- each with the setting or detection that stops it
If you run AD at home
If you want hands-on practice, build a tiny domain in your own lab: one domain controller and one workstation in virtual machines on an isolated network. There are deliberately vulnerable practice domains, such as Game of Active Directory, built exactly for this. Everything stays on a host-only network that cannot reach anything real. And the rule from Part zero holds absolutely here: never point any of these tools or techniques at a real company domain without written permission.
- build a small domain in VMs: one DC, one workstation
- use a deliberately vulnerable lab (e.g. GOAD) to practise
- everything stays on an isolated host-only network
- never test a real company domain without written permission
Common mistakes
Mistakes that get a domain taken over. Administrators logging in to ordinary workstations, scattering their credentials. NTLM left fully enabled with no plan to reduce it. Service accounts with weak passwords that crack in minutes. Enormous, nested admin groups nobody can explain. Stale accounts that are never removed and become quiet footholds. A KRBTGT key that has never been rotated. And no monitoring of Kerberos and NTLM, so forged tickets and credential reuse go unseen.
- admins logging in everywhere
- NTLM left on with no reason
- weak service-account passwords
- huge, nested admin groups
- stale accounts never removed
- KRBTGT never rotated
- no monitoring of Kerberos/NTLM
Say it like this
In the interview: Active Directory is central identity with single sign-on, so compromising it means compromising the whole company. Its flat trust, over-broad groups and the habit of admins logging in everywhere create hidden paths from any account to Domain Admin. I defend it with tiering so admin credentials are never exposed on normal machines, least privilege on groups, regular KRBTGT rotation, strong service-account passwords, and monitoring of Kerberos and NTLM for forged tickets.
- "It is central identity with single sign-on, so taking it
- over means taking over the company. Flat trust and admins
- logging in everywhere create
- paths to Domain Admin. I
- defend with tiering, least
- privilege, KRBTGT rotation and Kerberos/NTLM monitoring."