Regulations don't care how good your AD design is — they care about proof. This episode dissects aligning Active Directory with SOX, HIPAA, PCI-DSS, and GDPR: audit policy, reporting who has access to what, change management, and certificate lifecycle.

In episode 27 we built AD for enterprise scale. Organizations that large live under scrutiny: regulators, auditors, and clients demand proof. The question asked isn't "is your AD design good?", but "prove who has access to what, who changed what, and when?".
Compliance is the opposite of trust: it forces an organization to prove its controls, not just claim them. This episode dissects turning AD from merely a directory into a source of compliance evidence — from audit policy to reports you can show an auditor.
Every regulation has different language and focus, but they all boil down to the same thing: who can access what, and what trace is left behind.
| Regulation | Focus | AD relevance |
|---|---|---|
| SOX | Financial reporting integrity | Access to financial systems, segregation of duties, audit trail |
| HIPAA | Health data confidentiality | PHI access controls, audit logs, minimum necessary principle |
| PCI-DSS | Card data security | Strong authentication, 1-year log retention, least privilege |
| GDPR | Personal data of EU citizens | Account lifecycle, subject access rights, processing documentation |
The first step of compliance isn't enabling every setting — it's mapping AD controls to the regulation requirements relevant to your organization. Certifications like SOC 2 or ISO 27001 often become the framework that ties it all together.
Auditing in Windows is divided into categories: Account Logon, Logon/Logoff, Account Management, Directory Service Access, Policy Change, Privilege Use, and Object Access. For a domain, a key point: domain account logon events are recorded on the DC, not the user's computer — so audit must be enabled on DCs.
Enable via GPO (Computer Configuration, Windows Settings, Security Settings, Advanced Audit Policy Configuration) or directly with auditpol for a quick test:
auditpol /set /subcategory:"Kerberos Authentication Service" /success:enable /failure:enable
auditpol /set /subcategory:"Directory Service Access" /success:enable /failure:enable
auditpol /set /subcategory:"User Account Management" /success:enable /failure:enableImportant
The Directory Service Access category only produces events if there's a SACL (System Access Control List) on the object. Without a SACL on the domain root for the "Replicating Directory Changes" permission, you won't see DCSync events — one of the most dangerous attacks on AD.
Install a SACL on the domain root for replication rights and monitor event 4662 to detect DCSync attempts before credential hashes leak.
Privileged access is the zone auditors watch most closely. Focus auditing on:
adminCount attribute indicating they were once privileged group members — including those that maybe shouldn't be.A simple report for finding privileged accounts:
Get-ADUser -Filter "adminCount -eq 1" -Properties adminCount, PasswordNeverExpires, PasswordLastSet |
Select-Object SamAccountName, PasswordNeverExpires, PasswordLastSetIntegrate with the monitoring from episode 23: every privileged group change must trigger an alert, not just be recorded in a log.
Two concepts inseparable from compliance:
Back up GPOs periodically (GPMC) and keep version archives. This gives two benefits: fast rollback and proof of "what changed, when, and by whom" for auditors.
Auditors aren't interested in processes — they're interested in answers to specific questions. Prepare reports that answer them routinely:
-Recursive:Get-ADGroupMember -Identity "Share-Proyek-A" -Recursive |
Select-Object Name, SamAccountName | Sort-Object SamAccountName$cutoff = (Get-Date).AddDays(-90)
Get-ADUser -Filter * -Properties LastLogonDate |
Where-Object { $_.LastLogonDate -lt $cutoff } |
Select-Object SamAccountName, LastLogonDatePasswordNeverExpires, accounts without required password changes, and PSO status (episode 11).Schedule these reports as monthly reporting and keep the results — report archives are proof that the review process actually runs.
If you run AD CS (episode 18), compliance covers the certificate lifecycle: enrollment, renewal, revocation, and CRL publication. Things that get audited:
Evidence without retention is meaningless. Set a retention policy:
In episode 28 you understood compliance as work of proving: mapping regulations (SOX, HIPAA, PCI-DSS, GDPR) to AD controls, enabling the right advanced audit policy with SACLs for DCSync, auditing privileged access, applying change management and separation of duties, producing access reports you can show an auditor, maintaining the certificate lifecycle, and setting retention for logs, backups, and archives.
Key points:
After proving controls, there's one step forward demanded by almost all regulations and modern security trends: strengthening authentication itself. In episode 29 we dissect Modern Authentication & Passwordless: Windows Hello for Business, FIDO2, passkeys, MFA, and Conditional Access in the Microsoft Entra ID era. See you there!