Module 21 · Active Directory Security · Lesson 63 of 75
Defending Active Directory
The admin tier model, LAPS, gMSAs, Protected Users, disabling legacy protocols, auditing with PingCastle and BloodHound, and the event IDs that reveal AD attacks.
In this lesson · about 40 minutes
- Apply tiering and privileged-access practices
- Remove the weaknesses behind the common attacks
- Detect AD attacks with the right Windows events
Privileged access
- Tier model: Tier 0 (DCs, AD, identity systems), Tier 1 (servers), Tier 2 (workstations). Admins have separate accounts per tier and never log in to a lower tier with a higher-tier account, so their credentials are never left in a workstation's memory.
- Privileged access workstations (PAWs) for Tier 0 work; no email or browsing on them.
- Keep Domain Admins tiny (ideally empty day to day, with just-in-time access).
Fix the classic weaknesses
| Weakness | Fix |
|---|---|
| Same local admin password on every PC | Windows LAPS: a unique, rotated password per machine stored in AD |
| Kerberoastable service accounts | Group managed service accounts (gMSA) with automatic 120-character passwords; AES-only encryption |
| AS-REP roastable accounts | Require Kerberos pre-authentication for every account |
| Credential theft from memory | Protected Users group for admins, Credential Guard, LSA protection |
| LLMNR/NBT-NS poisoning and NTLM relay | Disable LLMNR and NBT-NS by GPO; require SMB and LDAP signing; reduce NTLM |
| Weak passwords | Long passphrases, banned-password lists, MFA for remote access |
| Dangerous ACLs and AD CS templates | Review with BloodHound, PingCastle, Locksmith; fix permissions |
| Possible krbtgt compromise | Reset krbtgt twice (with a gap) after a breach |
Auditing tools for defenders
PingCastle and Purple Knight give an AD health score; BloodHound shows the same paths attackers see, so you can cut them first.
Detection: event IDs on domain controllers
| Event | Meaning | Watch for |
|---|---|---|
| 4625 / 4771 | Failed logon / Kerberos pre-auth failed | Spraying: one failure each across many accounts |
| 4768 | TGT requested | Pre-auth type 0 = AS-REP roasting |
| 4769 | Service ticket requested | Encryption 0x17 (RC4) for many SPNs = Kerberoasting |
| 4624 type 3 with NTLM | Network logon | Pass-the-hash patterns from workstations |
| 4662 | Directory object accessed | Replication rights used by a non-DC = DCSync |
| 4728 / 4732 / 4756 | Member added to a security group | Anyone added to Domain Admins |
Honeytokens work well: a fake service account with an SPN that nobody uses. Any ticket request for it is an attacker Kerberoasting.
Performance-based question (PBQ)
Match the defence to the attack
Your internal penetration test report lists five findings in the AD domain.
Choose the best fix for each finding.
- Testers captured hashes by answering broadcast name requests with Responder
- svc_backup's ticket was cracked offline in minutes
- One local admin hash worked on all 400 workstations
- Account 'scanner' handed out AS-REP data without a password
- A Domain Admin's credentials were found in a reception PC's memory
Check your understanding0 of 3 correct
Flashcards
Module 21 flashcards
0 of 10 known
Say the answer out loud, flip the card, then be honest: cards you miss come back at the end.
Practice exam
Module 21 checkpoint
10 questions, 12 minutes.
- 10 questions · 12 minutes
- No feedback until you submit. Flag questions to come back to them.
- Aim for 85% or better before you move on. The real exam's 750 out of 900 is roughly 80–83%.
Quiz score: 0 of 3
Written by Noviq Academy in its own words. All labs are simulations: no real systems are touched, and every name, address, password and hash is made up. The offensive techniques taught here are for defending systems and for authorised testing only; never scan, access or test a system without the owner's written permission. Tool and product names belong to their owners, and command output may differ slightly from yours. Read-aloud uses your device's built-in voices.