AD.CLOUDSCHOOL.AI · PAGE 13 OF 14

Active Directory security and hardening

Tiered administration, privileged groups, Protected Users, Windows LAPS, gMSA and dMSA, krbtgt resets, auditing and attack paths.

Why AD is the main target

Whoever controls AD controls every domain-joined machine, every file share and often the cloud tenant through sync. Most ransomware incidents include a step where attackers become Domain Admin. Securing AD is about cutting the paths from a phished user to that point.

  • Credential theft: pass-the-hash, pass-the-ticket, Kerberoasting, AS-REP roasting, password spraying.
  • Privilege paths: admins logging on to workstations, nested groups, writable ACLs on privileged objects, unconstrained delegation, vulnerable AD CS templates.
  • Persistence: golden and silver tickets, DCSync rights, AdminSDHolder ACL changes, rogue GPOs, SID history.

Tiered administration

TierContainsRule
Tier 0 (control plane)DCs, AD CS, Entra Connect, AD FS, PAM tools, backup of DCs, their adminsTier 0 admins log on only to Tier 0 systems, from privileged access workstations (PAWs).
Tier 1 (servers)Member servers and appsSeparate server admin accounts; never used on workstations.
Tier 2 (devices)Workstations and user devicesHelpdesk accounts with rights only on devices.

Enforce it with GPO user rights (Deny log on locally / through RDP / as a batch job / as a service) and authentication policies and silos. Microsoft's current guidance calls this the Enterprise Access Model.

Privileged groups and accounts

  • Keep Enterprise Admins and Schema Admins empty except during changes; keep Domain Admins to a handful of named accounts.
  • Watch the less obvious powerful groups: Administrators, Account Operators, Backup Operators, Server Operators, Print Operators, DnsAdmins, Group Policy Creator Owners, Cert Publishers, Key Admins.
  • AdminSDHolder resets ACLs on protected accounts every hour (SDProp). Check its ACL; attackers use it for persistence.
  • Protected Users group: no NTLM, no DES or RC4, no delegation, no cached credentials, 4-hour TGT. Put all admin accounts in it (test service accounts first; do not add computer or service accounts).
  • Mark admin accounts Account is sensitive and cannot be delegated.
  • Remove DCSync rights (Replicating Directory Changes All) from anything that is not a DC or a sync service.
Get-ADGroupMember "Domain Admins" -Recursive | Select Name, objectClass
Get-ADUser -Filter 'adminCount -eq 1' -Properties adminCount | Select Name
Get-ADComputer -Filter 'TrustedForDelegation -eq $true' | Select Name     # unconstrained delegation
Get-ADUser -Filter 'DoesNotRequirePreAuth -eq $true'                      # AS-REP roastable

Local admin and service accounts

Windows LAPS

Built into Windows. Gives every machine a unique, rotated local admin password stored (encrypted) in AD or Entra ID. Can also manage the DSRM password on DCs. Update-LapsADSchema, then a GPO.

gMSA

Group managed service accounts: AD rotates a 240-byte password; listed servers fetch it. Ends Kerberoasting of service accounts. Needs a KDS root key: Add-KdsRootKey.

dMSA

Delegated managed service accounts (Windows Server 2025) replace an old service account in place and bind it to specific machines.

krbtgt

Reset the krbtgt password twice (waiting for replication between resets) after a compromise, and once or twice a year as hygiene. Invalidates forged golden tickets.

Domain controller hardening checklist

  1. Patch DCs every month first in a test site; see updates.cloudschool.ai.
  2. Server Core, no other roles or software, no internet browsing, no email on DCs.
  3. Apply the Microsoft security baseline for domain controllers.
  4. Require LDAP signing and channel binding, SMB signing, and disable the Print Spooler on DCs.
  5. Disable NTLMv1, plan NTLM restriction; remove RC4 from accounts (msDS-SupportedEncryptionTypes).
  6. Turn on Credential Guard and LSA protection (RunAsPPL) where supported.
  7. Advanced audit policy: account logon, account management, DS access (Directory Service Changes), logon/logoff, policy change, privilege use.
  8. Forward DC logs to a SIEM; deploy Microsoft Defender for Identity or a similar ITDR tool.
  9. Back up DCs offline and test restores (see Backup and restore).
  10. Lock down AD CS (see PKI security) and the Entra Connect server as Tier 0.

Assess your exposure

  • Read your own attack paths with graph tools used by both defenders and red teams, run only with written approval.
  • Free assessments: Microsoft Defender for Identity security posture, PingCastle-style health reports, Purple Knight-style indicator checks.
  • Check ACLs on the domain head, AdminSDHolder, GPOs linked to DCs and the Domain Controllers OU with dsacls and AD Explorer snapshots, and user rights on DCs with AccessChk.
  • Offensive and defensive deep dives: blueteam.cloudschool.ai and redteam.cloudschool.ai.