Protecting the Forest, Starting at the Roots: AD Hardening & Defence using Modern Techniques
James Spencer (Identity & Authentication Threat Hunter · CrowdStrike)
BSides Canberra VIII (2025) · Day 2 · Main Track
Overview
In his compelling talk at BSides Canberra, James Spencer, an Identity & Authentication Threat Hunter at CrowdStrike, delved into the critical yet often misunderstood realm of Active Directory (AD) hardening. Titled "Protecting the Forest, Starting at the Roots: AD Hardening & Defence using Modern Techniques," Spencer's presentation challenges conventional wisdom and industry practices, asserting that a staggering 95% of the Active Directory attacks he observes weekly, perpetrated by both criminals and nation-states, are entirely avoidable. He argues that AD administrators have been dealt a "bad hand," inheriting a business-critical product that is inherently insecure by default, requires extensive knowledge to secure, and is often documented with an attacker-centric bias.

Key moments
- 0:00 Introduction: AD's inherent insecurity and attack prevalence
- 10:00 Domain Admin group: Microsoft's 'trillion dollar mistake'
- 28:30 RPC Filters: Granular control over exposed interfaces
- 32:00 Protected Users group: Disabling dangerous legacy mechanisms
- 36:00 Authentication Silos & FAST: Enforcing where users can log in
- 42:00 Tiering Model & Privileged Access Workstations (PAWs)
- 47:30 Threat hunting: Building detections with audit-only policies
- 52:00 Actionable steps to start hardening Active Directory
Protecting the Forest, Starting at the Roots: AD Hardening & Defence using Modern Techniques
Speakers: James Spencer, Identity & Authentication Threat Hunter, CrowdStrike
Conference: BSides Canberra
YouTube: https://www.youtube.com/watch?v=WM5ULUE-7h4
Overview
In his compelling talk at BSides Canberra, James Spencer, an Identity & Authentication Threat Hunter at CrowdStrike, delved into the critical yet often misunderstood realm of Active Directory (AD) hardening. Titled "Protecting the Forest, Starting at the Roots: AD Hardening & Defence using Modern Techniques," Spencer's presentation challenges conventional wisdom and industry practices, asserting that a staggering 95% of the Active Directory attacks he observes weekly, perpetrated by both criminals and nation-states, are entirely avoidable. He argues that AD administrators have been dealt a "bad hand," inheriting a business-critical product that is inherently insecure by default, requires extensive knowledge to secure, and is often documented with an attacker-centric bias.
Spencer's core premise is that current AD security approaches are often reactive, focusing on mitigating known attacks rather than addressing fundamental weaknesses. He aims to shift this paradigm by presenting a proactive blueprint for securing AD from its core principles, effectively "killing off entire classes of attacks." The talk is geared towards practical, production-ready techniques that leverage native Windows tooling, can be retrofitted into brownfield environments, and prioritize the most critical accounts and machines. By assuming workstation and end-user compromise as a baseline, Spencer advocates for a defense strategy that targets the root causes of AD vulnerabilities, emphasizing that administrative privileges are a burden to be minimized and secured, not a right or status symbol.
Background
▶ Watch: Introduction: AD's inherent insecurity and attack prevalence (0:00)
Active Directory, often dubbed the "heartbeat" of corporate IT, is a sprawling suite of tools built upon a foundation of various open technical standards. Its directory service is rooted in X.500 and LDAP, while authentication is powered by MIT's Kerberos from Project Athena. Remote Procedure Call (RPC) derives from systems like VAX and Solaris, and Public Key Infrastructure (PKI) from X.509. Microsoft, true to form, extended these standards with "a million extensions," alongside enhanced features inherited from NT4 like Group Policy and DFS. Crucially, AD's design prioritized interoperability with existing, older systems, leading to the continued presence of legacy protocols like LAN Manager hashes and NTLM.
A significant challenge arises from AD being a "product of its time," launched before the widespread adoption of modern cryptographic standards like AES. Consequently, it's riddled with outdated algorithms such as Triple DES, MD4, MD5, and RC4. Furthermore, AD operates on a default-allow model, where users can log in anywhere by default, necessitating explicit restrictions. Its "everything's a server" philosophy results in a colossal attack surface. Spencer highlights that Microsoft's unwavering commitment to backwards compatibility means insecure defaults rarely change, complicating hardening efforts. Auditing AD is notoriously difficult, with tools like BloodHound being lauded as the first to truly grasp its graph-like complexity. The attack surface is so vast that new exploits often stem from rediscovering forgotten Microsoft features from the 1990s. While acknowledging the ACSC's guide on detecting and mitigating Active Directory compromises as an "amazing guide," Spencer notes its reactive nature, typically used after a compromise. This leaves many administrators cobbling together mitigations from attack tool READMEs rather than following a definitive, proactive security framework.
Historically, AD's lineage traces back to LAN Manager (1987-1994), NT Domains (1993-2000), and even Exchange 4's directory service, which formed the basis of Windows 2000's Active Directory in 1999. Although Azure Active Directory (now Entra ID) was launched in 2008, signifying Microsoft's move towards cloud identity, on-premises AD remains ubiquitous, powering 95% of enterprises and 88% of the Fortune 1000. This enduring presence, coupled with backwards compatibility for primitives dating back "a generation ago," creates a persistent vulnerability landscape, especially concerning cryptography.
Key Findings
▶ Watch: RPC Filters: Granular control over exposed interfaces (28:30)
Spencer categorizes the predominant Active Directory attacks into three overarching themes: Overprivilege, Attack Surface, and Persistence. Each category represents a systemic flaw deeply embedded in AD's architecture and common administrative practices.
Overprivilege is identified as a "trillion dollar mistake" by Spencer, referring specifically to the Domain Admin (DA) group. Unlike modern roles like Schema Admin, which grant specific, limited privileges, the DA group confers "god mode" access: full control over every object, replication rights for the entire domain, and local administrator privileges on every workstation and server. A single compromised DA account renders a domain untrustable, often necessitating a full rebuild—a recommendation rarely followed in practice. Despite decades of warnings, DA accounts are still "absolutely everywhere," often used as a blunt instrument for any IT problem. Spencer strongly disagrees with Microsoft's guidance to retain Domain Admins in the built-in Administrators group for supportability, advocating for their removal for "disaster avoidance." He emphasizes that removing local admin rights from end-users is insufficient; the true targets are IT administrators' accounts, which often possess wide-ranging, unrestricted access and are frequently exempted from security policies. Spencer quotes Ryan from Lithnet, comparing domain admin accounts to uranium: they should be few, handled by trained professionals, minimized in contact, and used only in approved containment areas. The core takeaway: "administrative privileges are a burden that you are carrying and not a right," and if one isn't "terrified to be a domain admin," they shouldn't be one.
The Attack Surface of Active Directory is "almost comically large." Spencer details several critical protocols and mechanisms:
- NTLM: A challenge-response authentication protocol, NTLMv1 uses Triple DES and is unsalted, making it easily rainbow tabled. NTLMv2 improved to MD5 HMAC and mutual authentication but remains vulnerable. It often serves as a fallback when Kerberos fails, making it pervasive. Attacks include coercing or tricking servers/workstations into sending credentials for cracking or relay attacks. Spencer shares a real-world example where an attacker issued a certificate for a PKI server via NTLM relay within six minutes of gaining initial access. Microsoft has officially deprecated NTLM, but replacements are not yet publicly available.
- Kerberos: While a "very solid protocol" due to its extensibility (pre-authentication data, e-types), Microsoft's additions, notably RC4 encryption, introduced weaknesses. Kerberoasting, popularized by Red Siege, exploits the use of service account passwords as symmetric keys, allowing offline cracking of weak passwords. Forgery attacks, like Golden Ticket or Silver Ticket, allow attackers to mint or forward tickets after stealing specific secrets. Delegation, particularly unconstrained delegation, where a service can act on a user's behalf without restriction, is highly dangerous. A real-world case involved a VPN device compromise leading to Kerberoasting a 15-year-old RC4-enabled domain admin service account, resulting in domain replication and secret exfiltration within five minutes.
- RPC and SMB: Spencer highlights the often-underestimated attack surface of Remote Procedure Call (RPC) and Server Message Block (SMB). RPC exposes interfaces and endpoints over the network, allowing remote execution of operations. A default domain controller can have 77 open RPC interfaces. The default IPC$ share over SMB allows connections to these interfaces. Examples of abused interfaces include Service Control Manager (used by PSExec), Remote Registry, SAM, Volume Shadow Copy, Scheduled Tasks, and ADCS certificate requests. Tools like Impacket extensively leverage these RPC interfaces for remote attacks. Spencer notes a small subset of RPC/SMB attacks observed in a single month, ranging from remote service starts to NTLM coercion and credential theft.
Finally, Persistence in Active Directory is facilitated by poorly protected, long-term, often unchangeable secrets. These include user password hashes, the hash of the KBTGT account (used for signing/encrypting Kerberos tickets), trusted domain hashes, DPAPI backup keys (used for file encryption portability), and KDS root keys (for Group Managed Service Accounts (GMSAs) and LAPS passwords). Once DPAPI backup keys are stolen, Microsoft's only suggestion for recovery is to create an entirely new domain. Spencer concludes that once an attacker can replicate domain secrets, "it's game over," and there's no way to be 100% confident in a domain's recovery.
Technical Deep Dive
▶ Watch: Authentication Silos & FAST: Enforcing where users can log in (36:00)
Spencer outlines a comprehensive set of modern, native Windows techniques to harden Active Directory, focusing on reducing the attack surface and containing privileged access.
Making Danger Opt-In
The first principle is to make dangerous, legacy features opt-in rather than opt-out. Spencer suggests disabling a "huge number of these protocols that are not needed anymore," particularly if an environment doesn't require NT4 compatibility. This isn't an all-or-nothing proposition; organizations should identify parts of their environment that don't need legacy protocols. A key example is questioning whether every workstation and server needs to be a file server, exposing their C-drive and RPC interfaces via SMB. For most modern environments managed by tools like Intune or SCCM, remote RPC to workstations and servers is often unnecessary. Similarly, while disabling NTLM entirely is challenging, parts of the environment might not be using it.
Auditing is crucial to identify where these protocols are still in use. Spencer proposes using Group Policy Objects (GPOs) to disable SMB and admin shares (C$, ADMIN$) by default, then creating AD groups for opt-in/opt-out to pilot changes. This allows gradual remediation, targeting the majority first, rather than striving for 100% compliance from the outset.
RPC Filters
For scenarios where RPC or SMB cannot be entirely disabled (e.g., on servers), Spencer introduces RPC filters, a little-known feature within the Windows Firewall. Previously, these filters were limited to entire interfaces, leading to dilemmas like the Directory Replication Service (DRS) Remote Protocol. Disabling the whole DRS interface would break domain replication, yet it contains sensitive opcodes for data replication alongside essential functions like crack names (used by every computer to resolve usernames to SIDs).
Crucially, newer versions of Windows now allow filtering at the opnum level, enabling granular control over specific RPC methods. Spencer mentions a recently released PowerShell module from Michael (behind DS Internals) that facilitates this. This means administrators can now permit domain controllers to replicate while blocking other specific replication operations or restricting who can call certain RPC methods. RPC filters can also be configured to allow calls only from specific users or IP addresses and support auditing for better visibility into RPC traffic.
Protected Users Group
Introduced in Server 2012 R2, the Protected Users group is an underappreciated control. When users are placed in this group, a suite of old protocols and dangerous mechanisms are automatically disabled for them, enforced at the Domain Controller (DC) level regardless of authentication source. Members of Protected Users:
- Cannot use NTLM (forced to use Kerberos).
- Cannot use DES or RC4 encryption in Kerberos.
- Cannot use Kerberos delegation (though Spencer notes this can break applications like SharePoint, it's appropriate for highly privileged accounts).
- Are forced to re-authenticate after 4 hours, preventing indefinite ticket renewal.
- Have their credentials not cached on workstations, mitigating credential theft from memory.
A significant benefit is the "amazing authentication logs" generated. Administrators gain high-fidelity detections, such as logs indicating when a Protected Admin attempts to log on from an unauthorized location using NTLM, providing valuable threat hunting leads.
Smart Cards (PKI)
Spencer advocates for smart cards as a more accessible and robust authentication method than often perceived, especially for administrators. By forcing certain users to log on with smart cards (e.g., YubiKeys), organizations can enforce certificate-based authentication, mitigating the risk of password theft, which is a common vector for domain admin compromises.
However, PKI itself can be an attack vector. Spencer recommends two tools to secure ADCS:
- Locksmith: A tool by Jake that audits certificate templates for misconfigurations that could lead to privilege escalation.
- TameMyCerts: A free project that allows defining custom policy modules for Active Directory Certificate Services (ADCS). This enables administrators to deny specific certificate requests and provides much better logging, offering greater visibility and control over certificate issuance.
FAST and Authentication Silos
Flexible Authentication Secure Tunneling (FAST), an RFC-standardized Kerberos extension implemented in Server 2012 R2, is a cornerstone of modern AD hardening. FAST stops offline dictionary attacks like Kerberoasting by encrypting the user's authentication session with an armor key derived from the computer's login. Crucially, it staples information about the originating computer to the user's Kerberos ticket.
Building upon FAST, Microsoft introduced Authentication Silos. These are configurable containers that allow administrators to define strict policies for users, service accounts, and computers, enforcing where they can be used and who can use them. For users, it dictates which computers they can log on to. For computers, it defines who can authenticate to them. This enforcement occurs at the Domain Controller, meaning even with valid credentials, authentication attempts from unauthorized locations will simply fail.
Spencer demonstrates this with a lab example where a domain admin password fails in hacking tools because the authentication originates from an unauthorized machine. Silos provide "amazing authentication logs" detailing why a login failed (e.g., "user not allowed to log on here"). A common use case is a Privileged Access Workstation (PAW) silo, where domain admin accounts are restricted to log on only from designated PAWs and domain controllers. This restriction holds even if an attacker possesses the credentials or a forged certificate, as the enforcement is device-specific and happens at the DC, independent of local workstation policy. Silos work on Windows 8.1+ clients and Linux, and can be enabled in audit mode to gather logs and identify exceptions before full enforcement.
Tiering and Blast Zones
Spencer integrates the concepts of Tiering (Microsoft's model) and Blast Zones (from Monash University's Active Directory security guide) as a strategic framework. Tiering structures AD based on privilege:
- T0: Domain Admins, PKI, Domain Controllers, and critically, the virtualization hosts running DCs. Compromise here grants control over everything.
- T1: Management plane elements like SCCM, backup systems, printing servers, and EDR solutions, which can manage other enterprise resources.
- T2: End users, workstations, and application servers.
The principle is simple: restrict what admins can control and where they can authenticate. Privileged Access Workstations (PAWs) are hardened physical machines dedicated solely to trusted admin work. Spencer vehemently advocates for physical PAWs, stating "I absolutely hate jump boxes" because logging into a trusted machine from an untrusted one still exposes credentials. PAWs, when combined with authentication silos, ensure sensitive credentials are only exposed to trusted devices, preventing lateral movement.
The Monash Enterprise Access Model further refines tiering into "blast zones." Instead of global domain admins, administrators are assigned specific, fine-grained delegations within smaller, isolated zones (e.g., an "Entra ID sync admin" in a dedicated zone). If an account in one zone is compromised, the damage is contained to that zone, significantly reducing the "blast radius" of an intrusion. This segmentation—for example, separating workstation management from server management with distinct SCCM instances—transforms an "extinction-level event" into a manageable incident.
Demo / Proof of Concept
▶ Watch: Tiering Model & Privileged Access Workstations (PAWs) (42:00)
While James Spencer did not conduct a live, interactive demonstration during the talk, he effectively illustrated the impact of both AD attack vectors and his proposed hardening techniques through compelling real-world case studies and practical lab scenarios. These examples serve as powerful proofs of concept, underscoring the urgency and efficacy of his recommendations.
For instance, Spencer detailed a real-world NTLM relay attack where an attacker, within six minutes of establishing an implant on a Linux box, was able to issue a certificate for a PKI server by relaying credentials. This demonstrated the speed and devastating potential of legacy protocol abuse. Similarly, he described a Kerberoasting attack that leveraged a 15-year-old, RC4-enabled domain admin service account to achieve domain replication and exfiltrate secrets within five minutes of a VPN device compromise. These cases highlight the rapid escalation of privileges and lateral movement that the "Attack Surface" and "Persistence" vulnerabilities enable.
Conversely, the effectiveness of Authentication Silos was demonstrated through a lab scenario where a valid domain admin password, when used with common hacking tools, failed to authenticate because the login attempt originated from an unauthorized machine. This practical example vividly illustrated how silos, enforced at the domain controller, can fundamentally break attacker tools and prevent credential reuse outside of approved contexts, even when an attacker possesses the highest-level credentials. These anecdotes, drawn from Spencer's extensive experience as a threat hunter, provide concrete evidence of the practical implications of both the vulnerabilities and the advanced hardening strategies discussed.
Defensive Implications
▶ Watch: Actionable steps to start hardening Active Directory (52:00)
Spencer concludes with practical defensive implications, emphasizing a shift from reactive "whack-a-mole" security to a proactive, principles-based approach tailored to each organization's unique environment.
A key concept is the use of invariants in security: administrators implicitly create assertions about what "can't happen" in their environment due to implemented controls. Spencer urges defenders to explicitly define these invariants and then create detections for when these "impossible" events do occur. These detections act as "assert statements" for security controls, immediately highlighting failures or bypasses.
He also proposes viewing detections as a "to-do list." Instead of simply deploying generic detection rules that often generate excessive noise (e.g., every domain admin login), Spencer advises setting an end goal (e.g., "domain admins should not log into workstations"). Then, filter out known legitimate exceptions. The remaining alerts become a prioritized list of issues to remediate, turning noisy detections into actionable insights specific to the environment.
Crucially, Spencer advocates for leveraging audit-only policies wherever possible. Many modern AD controls offer an audit mode, allowing organizations to deploy them without immediate enforcement. This enables defenders to:
- Research their own environment: Understand current behavior and identify edge cases.
- Build high-fidelity detections: Create alerts based on actual audit logs, minimizing false positives.
- Ease into enforcement: Gradually transition from audit to enforcement after understanding the impact.
Specific examples of audit-only policies include:
- Authentication Silos: Identify where users are logging in unexpectedly.
- RPC Filters: Detect unusual RPC traffic.
- NTLM Auditing: Gauge the extent of NTLM usage.
- TameMyCerts: Monitor ADCS certificate requests for potential abuse.
The overarching defensive strategy derived from the talk revolves around several core principles:
- Reduce Lateral Movement Risk: Aggressively disable unnecessary protocols like SMB and RPC on endpoints.
- Enhance Authentication Security: Implement certificate-based authentication (physical smart cards) for admins, coupled with robust PKI auditing.
- Limit Authentication Mechanisms: Utilize Protected Users and Authentication Silos to disable weak protocols (NTLM, RC4) and restrict where privileged accounts can be used.
- Reduce Blast Radius: Adopt a Monash Enterprise Access Model with Blast Zones to segment the environment and contain the damage of an intrusion.
- Proactive Auditing: Continuously monitor and detect deviations from expected behavior, using audit logs to drive remediation.
Spencer provides a clear roadmap for implementation, starting with quick wins like enabling Protected Users in audit mode, enabling Kerberos Armoring (for FAST), implementing LAPS, and restricting user rights. Subsequent steps involve culling Tier 0 accounts, piloting the disabling of legacy protocols, and gradually enforcing authentication silos for the most sensitive administrators, moving them to dedicated PAWs. This phased approach allows organizations to systematically strengthen their Active Directory defenses at the "roots" rather than chasing symptoms.
Key Takeaways
- Active Directory's Foundational Insecurity: AD's design, rooted in legacy standards and burdened by decades of backwards compatibility, creates inherent vulnerabilities, making 95% of attacks avoidable through proactive hardening.
- Overprivilege is a "Trillion Dollar Mistake": The widespread misuse and excessive privileges of accounts like Domain Admins are primary attack vectors, emphasizing that administrative privileges are a burden, not a right, and must be rigorously minimized and secured.
- Leverage Native Modern Controls: Windows offers powerful, often underutilized native features like RPC filters (with opnum-level granularity), the Protected Users group, and Authentication Silos (powered by FAST) that can fundamentally disrupt attacker techniques by enforcing authentication policies at the Domain Controller.
- Implement a Tiered Access Model with Blast Zones: Strategic segmentation of the environment into privilege tiers and "blast zones," combined with Privileged Access Workstations (PAWs), is crucial for containing breaches and significantly reducing the potential damage of a compromised account.
- Shift to Proactive, Audit-Driven Defense: Move beyond reactive mitigations by defining security invariants, building environment-specific detections as a "to-do list," and extensively utilizing "audit-only" modes of security controls to understand and harden the environment before full enforcement.
- Address Root Causes, Not Just Symptoms: Effective AD hardening focuses on systemic issues like authentication protocol abuse, vast attack surfaces, and persistent secrets, rather than playing "whack-a-mole" with individual attack tools.
About the Speaker(s)
James Spencer is an Identity & Authentication Threat Hunter on the Overwatch team at CrowdStrike, a global cybersecurity technology company. In his role, he is responsible for hunting identity and authentication attacks across diverse environments worldwide. Prior to his tenure at CrowdStrike, James contributed to identity security and tooling efforts at Monash University and Lithnet. He shared a personal anecdote from his first job out of high school as a SysAdmin, where he was granted domain admin privileges on day one, an experience he has since actively avoided, noting he has "not needed a production domain admin account" ever since. This background gives him a unique perspective on the challenges and solutions for securing Active Directory.
Reviews
- Dr. Zero (Offensive Security Researcher) — MUST SEE ★★★★★
- Heather Calloway (CISO) — MUST SEE ★★★★★