Defending Active Directory

Make the attacks against your domain difficult, detectable and containable

Most domain compromises use Active Directory as it was designed: a service account nobody rotated, a permission nobody reviewed, a delegation setting left over from a migration. This course follows each of those attacks to the evidence it leaves, the detection that catches it, the control that stops it and the check that proves the control works, then teaches you to respond to a compromised domain and recover the forest.

Included with Specialist, from $29/month, or $289/year and save 25%. Preview the first module free, no account needed.
Practice included: scored investigation scenarios, plus the Practice Hub.
View Pricing Take End of Course Exam → 40 CPE Credits

What you'll be able to do

✓Explain how Kerberos, NTLM, replication and directory permissions work, and which Windows events record each
✓Find the privileged accounts, exposed credentials, local administrator passwords and service accounts an attacker would use, and close the paths to tier 0
✓Investigate Kerberos, NTLM relay, ACL, Group Policy, delegation and certificate services attacks from the evidence each leaves
✓Map attack paths with BloodHound as a defender, and harden domain controllers, AD DNS and trusts
✓Write and test AD detections in Sentinel KQL, Splunk SPL, PowerShell and Sigma, and work Defender for Identity alerts as investigations
✓Decide whether a domain is compromised, scope it, contain credentials in the right order and reset krbtgt
✓Hunt the persistence an attacker leaves, from AdminSDHolder to a stolen CA key, and recover a forest from backups an attacker could not destroy
✓Run AD security as a program: a standard, an operating cadence and measures that move with risk
SEC406 | Specialist tier | 24 teaching modules, an orientation and a Project | 38–42 hours at your own pace | 40 CPE credits

Course Syllabus

Every module and every lesson. The first three modules are open; the rest open on a click.

Download the full syllabus (PDF)

Orientation

Module 0Defending Active DirectoryCourse Preview

Module 0 of Defending Active Directory: what Active Directory is and why attackers want it, Northgate's domain, the evidence this course reads, your first investigation, four ways to write a detection, and what this course builds.

Show 6 lessonsHide lessons
  1. 0.10.1 What Active Directory Is and Why Attackers Want ItPreview
  2. 0.20.2 Northgate's DomainPreview
  3. 0.30.3 The Evidence This Course ReadsPreview
  4. 0.40.4 Your First InvestigationPreview
  5. 0.50.5 Four Ways to Write a DetectionPreview
  6. 0.60.6 What This Course BuildsPreview

Foundations

Module 1How Active Directory Really Works

Module 1 of Defending Active Directory: sign-ins to domain controllers, stealing NTDS.dit, passwords in SYSVOL, replication and DCSync, the forgotten domain controller, and reading authentication on a DC.

Show 7 lessonsHide lessons
  1. 1.11.1 Sign-ins to Domain Controllers
  2. 1.21.2 Stealing NTDS.dit
  3. 1.31.3 Passwords in SYSVOL
  4. 1.41.4 Replication and DCSync
  5. 1.51.5 The Forgotten Domain Controller
  6. 1.61.6 Reading Authentication on a DC
  7. 1.7Module Summary and Knowledge Check
Module 2AD Security Logging

Module 2 of Defending Active Directory: advanced audit policy for domain controllers, SACLs and directory service changes, collection gaps, and reading an event.

Show 5 lessonsHide lessons
  1. 2.12.1 Advanced Audit Policy for Domain Controllers
  2. 2.22.2 SACLs and Directory Service Changes
  3. 2.32.3 Collection Gaps
  4. 2.42.4 Reading an Event
  5. 2.5Module Summary and Knowledge Check
Module 3The AD Attack Lifecycle

Module 3 of Defending Active Directory: reading an AD intrusion as a sequence, control is privilege, and mapping your detections to ATT&CK.

Show 4 lessonsHide lessons
  1. 3.13.1 Reading an AD Intrusion as a Sequence
  2. 3.23.2 Control Is Privilege
  3. 3.33.3 Mapping Your Detections to ATT&CK
  4. 3.4Module Summary and Knowledge Check
Module 4Active Directory Enumeration

Module 4 of Defending Active Directory: native-command reconnaissance, LDAP reconnaissance, SharpHound collection, and detecting and scoring enumeration.

Show 5 lessonsHide lessons
  1. 4.14.1 Native-Command Reconnaissance
  2. 4.24.2 LDAP Reconnaissance
  3. 4.34.3 SharpHound Collection
  4. 4.44.4 Detecting and Scoring Enumeration
  5. 4.5Module Summary and Knowledge Check

Privileged Access

Module 5Privileged Identity Architecture

Module 5 of Defending Active Directory: hidden and forgotten privileged accounts and Tool 2, tier 0 credentials on lower-tier machines, administration from daily-use devices instead of privileged access workstations, helpdesk reset rights over privileged accounts, and break-glass accounts.

Show 6 lessonsHide lessons
  1. 5.15.1 Hidden and Forgotten Privileged Accounts
  2. 5.25.2 Privileged Credentials on the Wrong Machine
  3. 5.35.3 Admin Work From a Daily-Use Device
  4. 5.45.4 Helpdesk Reset Rights Abused
  5. 5.55.5 Break-Glass Accounts
  6. 5.6Module Summary and Knowledge Check
Module 6Protecting Administrator Credentials

Module 6 of Defending Active Directory: credential theft from LSASS with Credential Guard and LSA protection, credentials exposed by Remote Desktop with Restricted Admin and Remote Credential Guard, Protected Users and authentication policies, and administrator passwords stored in services and scheduled tasks.

Show 5 lessonsHide lessons
  1. 6.16.1 Credential Theft From LSASS
  2. 6.26.2 Credential Exposure Over RDP
  3. 6.36.3 Protected Users and Authentication Policies
  4. 6.46.4 Credentials Stored in Services and Scheduled Tasks
  5. 6.5Module Summary and Knowledge Check
Module 7Local Administrator Security and Windows LAPS

Module 7 of Defending Active Directory: lateral movement with one local administrator password shared across the laptops and Windows LAPS, who can read the passwords LAPS manages and the record a read leaves, and domain groups placed in every machine's Administrators group.

Show 4 lessonsHide lessons
  1. 7.17.1 Lateral Movement With a Shared Local Admin Password
  2. 7.27.2 Reading LAPS Passwords
  3. 7.37.3 Local Admin Group Sprawl
  4. 7.4Module Summary and Knowledge Check

Credential Theft

Module 8NTLM Security

Module 8 of Defending Active Directory: pass-the-hash with a stolen NTLM credential, NTLM relay and the coercion that makes a controller authenticate, relay to LDAP with LDAP signing and channel binding, and auditing NTLM before restricting it.

Show 5 lessonsHide lessons
  1. 8.18.1 Pass-the-Hash
  2. 8.28.2 NTLM Relay and Coercion
  3. 8.38.3 LDAP Relay
  4. 8.48.4 Auditing and Reducing NTLM
  5. 8.5Module Summary and Knowledge Check
Module 9Kerberos Attacks

Module 9 of Defending Active Directory: Kerberoasting, AS-REP roasting, pass-the-ticket and overpass-the-hash, golden tickets and krbtgt, and silver tickets.

Show 6 lessonsHide lessons
  1. 9.19.1 Kerberoasting
  2. 9.29.2 AS-REP Roasting
  3. 9.39.3 Pass-the-Ticket and Overpass-the-Hash
  4. 9.49.4 Golden Tickets and krbtgt
  5. 9.59.5 Silver Tickets
  6. 9.6Module Summary and Knowledge Check
Module 10Service Account Security

Module 10 of Defending Active Directory: an over-privileged service account that reaches the domain, service accounts signing in interactively, moving to gMSA and dMSA, and the service account assessment.

Show 5 lessonsHide lessons
  1. 10.110.1 An Over-Privileged Service Account Becomes Domain Admin
  2. 10.210.2 Service Accounts Signing In Interactively
  3. 10.310.3 Moving to gMSA and dMSA
  4. 10.410.4 The Service Account Assessment
  5. 10.5Module Summary and Knowledge Check

Attack Paths

Module 11Active Directory ACL Abuse

Module 11 of Defending Active Directory: GenericWrite and GenericAll on a user, WriteDACL and WriteOwner, AddMember on a privileged group, ForceChangePassword, and finding dangerous permissions.

Show 6 lessonsHide lessons
  1. 11.111.1 GenericWrite and GenericAll on a User
  2. 11.211.2 WriteDACL and WriteOwner
  3. 11.311.3 AddMember: Taking a Privileged Group
  4. 11.411.4 ForceChangePassword
  5. 11.511.5 Finding Dangerous Permissions
  6. 11.6Module Summary and Knowledge Check
Module 12Group Policy as an Attack Tool

Module 12 of Defending Active Directory: a malicious GPO edit, a malicious GPO link, and reviewing delegated GPO rights.

Show 4 lessonsHide lessons
  1. 12.112.1 A Malicious GPO Edit
  2. 12.212.2 A Malicious GPO Link
  3. 12.312.3 Reviewing Delegated GPO Rights
  4. 12.4Module Summary and Knowledge Check
Module 13Delegation Abuse

Module 13 of Defending Active Directory: unconstrained delegation and coercion, constrained delegation and protocol transition, resource-based constrained delegation, and auditing delegation across the domain.

Show 5 lessonsHide lessons
  1. 13.113.1 Unconstrained Delegation and Coercion
  2. 13.213.2 Constrained Delegation and Protocol Transition
  3. 13.313.3 Resource-Based Constrained Delegation
  4. 13.413.4 Auditing Delegation Across the Domain
  5. 13.5Module Summary and Knowledge Check
Module 14BloodHound for Defenders

Module 14 of Defending Active Directory: collecting safely and reading the graph, the shortest realistic path to Domain Admin, breaking paths by choosing the cheapest edge, and the Attack Path Workbook.

Show 5 lessonsHide lessons
  1. 14.114.1 Collecting Safely and Reading the Graph
  2. 14.214.2 The Shortest Realistic Path to Domain Admin
  3. 14.314.3 Breaking Paths: Choosing the Cheapest Edge
  4. 14.414.4 The Attack Path Workbook
  5. 14.5Module Summary and Knowledge Check

Infrastructure

Module 15Domain Controller Hardening

Module 15 of Defending Active Directory: stealing the domain from backups and virtual machine snapshots, malicious services on a domain controller, exploiting an unpatched controller, and outbound traffic from controllers.

Show 5 lessonsHide lessons
  1. 15.115.1 Stealing the Domain From Backups and VM Snapshots
  2. 15.215.2 Malicious Services on a DC
  3. 15.315.3 Exploiting an Unpatched DC
  4. 15.415.4 Outbound Traffic From DCs
  5. 15.5Module Summary and Knowledge Check
Module 16Securing AD DNS

Module 16 of Defending Active Directory: LLMNR and NBT-NS poisoning, WPAD abuse, and malicious records through dynamic updates.

Show 4 lessonsHide lessons
  1. 16.116.1 LLMNR and NBT-NS Poisoning
  2. 16.216.2 WPAD Abuse
  3. 16.316.3 Malicious Records Through Dynamic Updates
  4. 16.4Module Summary and Knowledge Check
Module 17Trust Security

Module 17 of Defending Active Directory: moving across a forest trust without selective authentication, SID history across trusts and SID filtering, escalation from a child domain to its forest root, and abusing the inter-realm trust key.

Show 5 lessonsHide lessons
  1. 17.117.1 Moving Across a Forest Trust Without Selective Authentication
  2. 17.217.2 SID History Across Trusts and SID Filtering
  3. 17.317.3 Child Domain to Forest Root
  4. 17.417.4 Abusing Inter-Realm Trust Keys
  5. 17.5Module Summary and Knowledge Check
Module 18Certificate Services Attacks

Module 18 of Defending Active Directory: ESC1 and a requester who names the subject, ESC2 and ESC3 with any-purpose and enrollment agent certificates, ESC4 and editable templates, ESC6 and ESC7 on the CA's own settings and officers, and ESC8 relaying to web enrollment.

Show 6 lessonsHide lessons
  1. 18.118.1 ESC1: Requesting a Certificate as Anyone
  2. 18.218.2 ESC2 and ESC3
  3. 18.318.3 ESC4: Editable Templates
  4. 18.418.4 ESC6 and ESC7: CA Misconfiguration and CA Officer Abuse
  5. 18.518.5 ESC8: Relaying to Web Enrollment
  6. 18.6Module Summary and Knowledge Check

Detection Engineering

Module 19Detection Engineering for AD

Module 19 of Defending Active Directory: from single detections to a catalog and a deployable pack, correlating alerts into incidents, testing detections with labeled attacks, and tuning against the legitimate activity that looks like an attack in Active Directory.

Show 5 lessonsHide lessons
  1. 19.119.1 From Single Detections to a Catalog
  2. 19.219.2 Correlating Signals Into Incidents
  3. 19.319.3 Testing Detections With Your Own Attacks
  4. 19.419.4 Tuning Against AD Look-Alikes
  5. 19.5Module Summary and Knowledge Check
Module 20Microsoft Defender for Identity

Module 20 of Defending Active Directory: what the sensors see and miss, investigating a reconnaissance alert, investigating a credential-access alert, and the posture assessments as a work queue.

Show 5 lessonsHide lessons
  1. 20.120.1 What the Sensors See and Miss
  2. 20.220.2 Investigating a Reconnaissance Alert
  3. 20.320.3 Investigating a Credential-Access Alert
  4. 20.420.4 Posture Assessments as a Work Queue
  5. 20.5Module Summary and Knowledge Check

Response

Module 21Responding to AD Compromise

Module 21 of Defending Active Directory: classifying an intrusion's impact, scoping every account, host and controller it touched, credential containment and reset order, resetting krbtgt, and the AD incident response playbook.

Show 6 lessonsHide lessons
  1. 21.121.1 Has the Domain Been Compromised?
  2. 21.221.2 Scoping an AD Intrusion
  3. 21.321.3 Credential Containment and Reset Order
  4. 21.421.4 Resetting krbtgt
  5. 21.521.5 The AD Incident Response Playbook
  6. 21.6Module Summary and Knowledge Check
Module 22Persistence Hunting

Module 22 of Defending Active Directory: AdminSDHolder backdoors, SID history injection, DCShadow and rogue domain controllers, Skeleton Key and malicious authentication packages, golden certificates and stolen CA keys, and hunting a domain for persistence.

Show 7 lessonsHide lessons
  1. 22.122.1 AdminSDHolder Backdoors
  2. 22.222.2 SID History Injection
  3. 22.322.3 DCShadow and Rogue DCs
  4. 22.422.4 Skeleton Key and Malicious Authentication Packages
  5. 22.522.5 Golden Certificates and Stolen CA Keys
  6. 22.622.6 Hunting a Domain for Persistence
  7. 22.7Module Summary and Knowledge Check

Recovery

Module 23Backup and Forest Recovery

Module 23 of Defending Active Directory: backups an attacker cannot destroy or poison, restoring a deleted or altered privileged object, recovering the first domain controller in isolation, and the forest recovery runbook.

Show 5 lessonsHide lessons
  1. 23.123.1 Backups an Attacker Cannot Destroy or Poison
  2. 23.223.2 Restoring a Deleted or Altered Privileged Object
  3. 23.323.3 Recovering the First DC in Isolation
  4. 23.423.4 The Forest Recovery Runbook
  5. 23.5Module Summary and Knowledge Check
Module 24Building an AD Security Program

Module 24 of Defending Active Directory: baselines and standards with Tool 1, the AD security assessment, the operating cadence that runs every recurring check, and measuring AD security over time.

Show 4 lessonsHide lessons
  1. 24.124.1 Baselines and Standards
  2. 24.224.2 The Operating Cadence
  3. 24.324.3 Measuring AD Security Over Time
  4. 24.4Module Summary and Knowledge Check

Resources

ResourcesLab Domain Setup

What the course runs on, and an optional lab domain of your own for the Defend and Verify steps: the AD corpus and evidence folders, building a corp.ne.com controller, and the script that seeds it with Northgate's weaknesses.

Show 3 lessonsHide lessons
  1. 1The Course Evidence
  2. 2Building the Lab Domain
  3. 3Seeding Northgate's Weaknesses
ResourcesCase Walkthroughs

Six worked investigations on the course's Active Directory corpus, each from an alert or a detection row to a verdict: the Kerberoasting alert, svc-legacy's AS-REP, the LSASS read, the database copied over C$, the DCSync alert and the nightly backup.

Show 6 lessonsHide lessons
  1. 1The Kerberoasting Alert Still Marked New
  2. 2The AS-REP Request Nothing Alerted On
  3. 3The LSASS Read and the 2 a.m. Sign-In
  4. 4The Database That Left Over C$
  5. 5The DCSync Alert and the Second Row
  6. 6The Backup That Leaves Every Night
ResourcesPractice Playground

Where to practice what the course teaches: queries on the AD corpus in the page, graded exercises and challenge sets, configuration audits, and the tools the course builds.

Show 4 lessonsHide lessons
  1. 1The AD Corpus in the Page
  2. 2Graded Queries and Challenge Sets
  3. 3Configuration Audits
  4. 4Tools and Downloads
ResourcesOperational Reference

Every detection in Defending Active Directory, by phase of the course, in KQL, SPL, PowerShell and Sigma, generated from the course detection library.

Show 8 lessonsHide lessons
  1. 1Detections: Foundations
  2. 2Detections: Privileged Access
  3. 3Detections: Credential Theft
  4. 4Detections: Attack Paths
  5. 5Detections: Infrastructure
  6. 6Detections: Detection Engineering
  7. 7Detections: Response
  8. 8Detections: Recovery

Project

ResourcesProject: The Brackmoor Freight Intrusion

The Defending Active Directory project: a prepared case from another company's domain, worked with the course's own tools from the evidence pack alone, ending in a timeline, the attack path, a scope register, the detections that fired and those that did not, a containment and reset order, the persistence found, and a page for leadership. No submission, no grading.

Show 1 lessonHide lessons
  1. 1The Brief

Course Completion

CompletionCourse Exam

Defending Active Directory end-of-course exam: twenty-four tasks, one per teaching module, each answered by writing KQL against the course's AD corpus month and checked on the server.

Show 1 lessonHide lessons
  1. 1Course Completion. Defending Active Directory

Course overview

Active Directory decides who can sign in to almost everything an organization runs, which is why an attacker who controls it controls the business. This course teaches every part of AD through what an attacker can do with it: how Kerberos and NTLM authenticate, where privileged credentials end up, what a permission or a delegation setting lets an account do, and how certificate services, DNS and trusts extend the attack surface.

It is taught on Northgate Engineering's domain. A month of its domain controller telemetry sits in the page, queryable in KQL and SPL, and every module adds evidence files of the directory's own state. The course ends where most security courses stop: deciding whether a domain has been compromised, containing it, hunting what the attacker left behind, recovering the forest and running AD security as a program afterwards.

How this course works

Every attack, end to end. Each attack lesson shows how the attack works, the evidence it leaves, the detection that catches it, the control that stops it, and the check that proves the control is in place.

Four detection surfaces. Every detection is written for Sentinel KQL, Splunk SPL, PowerShell with Get-WinEvent and Sigma, so it works with whatever your organization runs, including no SIEM at all.

Every result is real. Every query in the course runs against the corpus in the page and every number in a lesson came from running it. Graded exercises and a challenge set in each module check your answers the same way.

What you will learn

✓ Explain how Kerberos, NTLM, replication and directory permissions work, and which Windows events record each
✓ Find the privileged accounts, exposed credentials, local administrator passwords and service accounts an attacker would use, and close the paths to tier 0
✓ Investigate Kerberos attacks, NTLM relay, ACL abuse, Group Policy abuse, delegation abuse and certificate services attacks from the evidence each leaves
✓ Map attack paths with BloodHound as a defender, and harden domain controllers, AD DNS and trusts
✓ Write and test AD detections in Sentinel KQL, Splunk SPL, PowerShell and Sigma, and work Defender for Identity alerts as investigations
✓ Decide whether a domain has been compromised, scope the intrusion, contain credentials in the right order and reset krbtgt
✓ Hunt the persistence an attacker leaves, from AdminSDHolder backdoors to a stolen CA key
✓ Keep backups an attacker cannot destroy, and recover a forest from them
✓ Run AD security as a program: a standard, an operating cadence and measures that move with risk

Who this course is for

SOC analysts, detection engineers, incident responders and infrastructure administrators who work with Windows domains, and people moving into those roles. No prior AD security knowledge is assumed; every concept is explained where it is first used, and the free Module 0 includes a Course Fit Check that shows where you sit.

What you will build

✓ An assessment tool that runs the course's checks against your domain and reports each line of your AD security standard as a pass or a fail
✓ Reports for privileged accounts, service account risk, dangerous permissions, delegation and attack paths to tier 0
✓ A detection pack that sweeps exported Windows event logs for the course's detections
✓ An incident response playbook and a persistence sweep for a domain you suspect is compromised
✓ A forest recovery runbook with a script that checks a restored domain controller before it rejoins
✓ An investigation of the Brackmoor Freight intrusion, a domain no module investigates, from its first phishing click to DCSync

What this course does not cover

Active Directory administration for its own sake, offensive tradecraft beyond what a defender needs to recognize an attack, SIEM engineering, and cloud identity beyond Entra Connect as a tier 0 server. Cloud identity and Windows endpoint forensics each have their own courses on the platform.

Things you need to know

What are the prerequisites?

None. Module 0 is free and explains what Active Directory is, how Northgate's domain is built and how to read the course's evidence before the first attack lesson.

Do I need a SIEM or a lab?

No. Every query runs in the page against the course's corpus, and every tool runs on the evidence files with PowerShell 7. A lab domain of your own is optional; the lab setup pages show how to build one with Northgate's weaknesses seeded so you can practice each fix.

How is the course assessed?

By a practical exam: twenty-four tasks, one per teaching module, each answered by querying the AD corpus or an exam evidence file and checked on the server. A score of 70 or more earns the Defending Active Directory certificate with CPE credit. The Project, separate from the exam, is an investigation of an intrusion no module covers.

Usage rights and disclaimer

Course materials: Licensed for individual professional development. You may use the tools you build in your own environment. You may not redistribute course content or share account credentials.

Attack techniques: Attacks are taught to the depth a defender needs to observe, detect and stop them, against fictional evidence. Running them against systems you do not own or have permission to test is illegal.

Fictional environment: All scenarios use Northgate Engineering and Brackmoor Freight. Any resemblance to real organizations is coincidental.

COURSE ASSESSMENT

End of Course Exam

Complete the course, then write the queries: twenty-four tasks answered against the AD corpus month, no time limit. Pass mark: 70. Earn your certificate with CPE credits.

24tasks
24modules
100percent
Take End of Course Exam

Answers are checked on the server. Certificate issued on pass.