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

WeaknessFix
Same local admin password on every PCWindows LAPS: a unique, rotated password per machine stored in AD
Kerberoastable service accountsGroup managed service accounts (gMSA) with automatic 120-character passwords; AES-only encryption
AS-REP roastable accountsRequire Kerberos pre-authentication for every account
Credential theft from memoryProtected Users group for admins, Credential Guard, LSA protection
LLMNR/NBT-NS poisoning and NTLM relayDisable LLMNR and NBT-NS by GPO; require SMB and LDAP signing; reduce NTLM
Weak passwordsLong passphrases, banned-password lists, MFA for remote access
Dangerous ACLs and AD CS templatesReview with BloodHound, PingCastle, Locksmith; fix permissions
Possible krbtgt compromiseReset 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

EventMeaningWatch for
4625 / 4771Failed logon / Kerberos pre-auth failedSpraying: one failure each across many accounts
4768TGT requestedPre-auth type 0 = AS-REP roasting
4769Service ticket requestedEncryption 0x17 (RC4) for many SPNs = Kerberoasting
4624 type 3 with NTLMNetwork logonPass-the-hash patterns from workstations
4662Directory object accessedReplication rights used by a non-DC = DCSync
4728 / 4732 / 4756Member added to a security groupAnyone 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
0 of 5 answered

Check your understanding0 of 3 correct

Question 1

1.Event 4769 with ticket encryption 0x17 for many services suggests...

Question 2

2.What does the Protected Users group help prevent?

Question 3

3.Which tool gives an AD security health score?

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.

10 left in the deck

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

Tip: answer every quiz question correctly first.

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.