Active Directory Hardening Guidebook

Welcome to the Active Directory Hardening Guidebook. This repository contains a structured, production-grade set of hardening requirements and guidelines specifically designed for securing modern Active Directory (AD) environments in air-gapped (offline) settings.

The guide is tailored for:

  • Domain Controllers: Windows Server 2016 (and above).
  • Clients: Windows 10 (and above) enterprise workstations.
  • Environment: High-security, isolated (air-gapped) environments with no direct internet connection, no Azure/Entra ID integrations, and no external cloud services.

All security recommendations contained herein are aligned with the following cybersecurity standards:

  • ANSSI (French National Agency for the Security of Information Systems) - Hardening an Active Directory Directory Service
  • CIS Benchmarks (Center for Internet Security) - Windows Server 2016 & Windows 10
  • Microsoft Security Baselines

Table of Contents

The guidebook is organized into eight functional modules:

  1. Module 1: Architecture & Administrative Tiering
  2. Module 2: Domain Controller Hardening
  3. Module 3: Identities & Services Hardening
  4. Module 4: Network Configuration & Firewalling
  5. Module 5: Logging, Monitoring & SIEM
  6. Module 6: Secure Operations & Maintenance
  7. Module 7: Privileged Access Workstations (PAWs) Hardening
  8. Module 8: Endpoint Hardening

Compliance Mapping Matrix

Below is a cross-reference matrix mapping each guidebook module to specific guidelines from ANSSI, CIS, and Microsoft Security Baselines:

Module ANSSI AD Guide Recommendation CIS Windows Server/10 Benchmark Microsoft Security Baseline Focus
M1: Architecture

- Restrict Tier Logons

- Restrict Management Protocols

- Audit Privileged Groups

- Keep Functional Levels Up-To-Date

- Default Policies Management

- Harden Domain Trusts
ANSSI R1, R2, R3 (Tiering Model)

ANSSI R8 (Management subnets)
Section 18.2 (User Rights)

Section 19 (Windows Defender Firewall)
Privileged access boundaries, logon blocks, and management protocol restrictions.
M2: Domain Controllers

- Disable SMBv1

- Disable Multicast Name Resolution

- Disable NTLMv1

- Enforce LDAP Server Signing

- Enforce LDAP Channel Binding

- Enable LSA Protection

- Enable Credential Guard

- Disable Print Spooler Service

- Enforce SMB Message Signing

- Restrict Kerberos Encryption Types

- Restrict Remote SAM API Access

- Disable Unnecessary Services

- Enable Kerberos Armoring

- Restrict NTLM

- Migrate SYSVOL Replication to DFSR

- Harden adminSDHolder Permissions

- Harden Microsoft DNS AD Container Permissions

- Harden Virtualization Hosts for Domain Controllers

- Enforce RDP Restricted Admin Mode

- Windows Defender Antivirus DC Baseline

- Configure AppLocker Policies on Domain Controllers
R19, R20 (LDAP Signing/Channel Binding), R22 (Spooler), R14 (LSA) Section 2.3 (Security Options), Section 18.9 (System Services) Credential Guard, Device Guard, Protocol Deprecation, AppLocker
M3: Identities & Services

- Enforce Fine-Grained Password Policies

- Enable LAPS

- Implement Group Managed Service Accounts (gMSA)

- Restrict Kerberos Delegation

- Configure and Populate Protected Users Group

- Rename and Disable Default Accounts

- Restrict Interactive Logons for Service Accounts

- Enforce User/Service Account Kerberos Encryption

- Enforce Kerberos Pre-Authentication

- Restrict Schema Administrators Group Membership

- Enforce Accidental Deletion Protection on OUs

- Configure AD Authentication Silos

- Clean Up adminCount Attribute Orphans

- Renew KDS Root Keys and gMSA Secrets

- Harden ADCS PKI

- Configure Point and Print Restrictions

- Disable Machine Account Quota

- Restrict Pre-Windows 2000 Compatible Access Group
R9 (LAPS), R35 (gMSA), R15, R16 (Kerberos Delegation), R14 Section 1.1 (Account Policies), Section 2.2.4 (User Rights), Section 2.3.10 (Network Security) Password Complexity, Kerberos Encryption, LAPS Configuration, Point and Print restrictions, Machine Account Quota restriction, anonymous access restrictions
M4: Network & Firewall

- Configure AD Port Matrix

- Restrict RPC Dynamic Ports

- Configure Workstation and Server Isolation

- Configure IPsec Domain Isolation

- Harden IPsec Cryptographic Configurations

- Harden TLS Protocols, Cipher Suites, and Elliptic Curves

- Enforce SMBv3 Security

- Configure Firewall Logging

- Configure Hardened UNC Paths

- Harden WinRM Service and Restrict RPC Clients
R7 (IPsec), R8 (Administration subnets), R19 (Hardened UNC Paths) Section 19 (Windows Defender Firewall) Network Isolation, IPsec Domain Security, WinRM and RPC Client Hardening
M5: Logging & SIEM

- Configure Advanced Security Audit Policies

- Configure PowerShell and Command-Line Auditing

- Deploy and Harden Microsoft Sysmon

- Configure Secure SIEM Log Shipping
R48 (Audit Policy), R50 (PowerShell Log), R52 (Sysmon/WEC) Section 9 (Audit Policy), Section 18.8 (PowerShell Logging) Advanced Audit Policy, Transcription, Command Line Logs
M6: Ops & Maintenance

- Secure Operations and Maintenance Baseline

- Enforce KRBTGT Password Rotation

- Enable and Configure AD Recycle Bin

- Establish and Maintain Group Policy ADMX Central Store

- Implement Third-Party/Custom GPO Templates

- Configure Dedicated WSUS for Tier 0
R54 (AD Backup), R57 (Vulnerability Assessment) Section 18.3 (System/Recovery Options) Patch Management, Offline Disaster Recovery
M7: PAWs Hardening

- Configure AppLocker Policies for PAWs

- Enable LSA Protection for PAWs

- Restrict Local Administrators Group for PAWs

- Enable BitLocker for PAWs

- UEFI Firmware Security

- Hardware Virtualization

- Disable WPBT

- Windows Defender Antivirus PAW Baseline

- Configure User Rights Assignments for PAWs

- Enable VBS and Credential Guard for PAWs

- Harden DMA and Physical Security for PAWs
R58 (Use of PAWs) Section 18.2.1 (LSA Protection), Section 18.8 (Device Guard/HVCI), Section 18.2.1.1 (BitLocker Startup Auth), Section 18.2.1.2 (Enhanced PINs), Section 18.2.1.3 (PIN Length) VBS, AppLocker, Device Guard, and secure BitLocker disk encryption with Startup PIN.
M8: Endpoint Hardening

- Harden Network and Name Resolution

- UAC Policies

- Disable AutoPlay

- Block Removable Storage

- Restrict RDP

- Restrict Local Admins

- Defender Antivirus

- WSUS Configuration

- Enable Secure Boot

- Enable VBS and Credential Guard

- Configure WDAC

- Enable BitLocker and Network Unlock

- UEFI Firmware Security

- Hardware Virtualization

- Disable WPBT

- Configure User Rights Assignments

- Harden DMA and Physical Security

- Configure Account Policies

- Configure User Profile Restrictions
ANSSI R19 (Client signing)

ANSSI R9 (LAPS context)

ANSSI R58 (PAW / Endpoint encryption)
Section 9.1 (LLMNR)

Section 2.3.17 (UAC)

Section 18.3.1 (AutoPlay)

Section 18.9.82 (USB)

Section 18.2.1 (NLA)

Section 5.5 (Admins)

Section 18.9.47 (Defender)

Section 18.2.2 (WSUS)

Section 18.8.14.1 (Secure Boot/VBS)

Section 18.8.14.2 (Credential Guard)

Section 18.8.14.3 (WDAC)

Section 18.2.1.1 (Startup Auth)

Section 18.2.1.5 (Network Unlock)
Comprehensive Tier 2 workstation security configurations, network resolution controls, offline defense settings, and disk encryption.

Script Verification

To ensure that the markdown files contain valid links and that all embedded PowerShell code snippets are syntactically correct, you can run the verification script located in the root of this workspace.

Running the Verification Script

Open a PowerShell console and run:

.\Verify-ADHardeningDocs.ps1

The script parses all markdown documents, verifies internal relative links, and runs a syntax parser on all powershell code blocks without executing them.

results matching ""

    No results matching ""