Active Directory DFIR Investigation Cheat Sheet and Matrix
1. Critical Windows Event IDs in Active Directory DFIR
Section titled β1. Critical Windows Event IDs in Active Directory DFIRβ| Event ID | Channel / Provider | Forensic Operational Meaning | Key Fields to Inspect |
|---|---|---|---|
| 4624 | Security (Host/DC) | Successful Logon | LogonType, LogonProcessName, TargetUserSid, IpAddress |
| 4625 | Security (Host/DC) | Failed Logon Attempt | Status, SubStatus (e.g., 0xC000006A bad password) |
| 4627 | Security (Host) | Token Group Memberships | GroupMembership (SIDs injected during token creation) |
| 4662 | Security (DC) | Directory Service Object Access (DCSync) | Properties (1131f6ad-9c07... = DCSync GUID) |
| 4672 | Security (Host) | Special Privileges Assigned | PrivilegeList (SeDebugPrivilege, SeBackupPrivilege) |
| 4675 | Security (DC) | SIDs Filtered During Trust Traversal | FilteredSIDs (sIDHistory injection attempt blocked) |
| 4720 | Security (DC/Host) | User Account Created | TargetUserName, SubjectUserName |
| 4728 | Security (DC) | Member Added to Global Security Group | MemberName, TargetUserName |
| 4732 | Security (DC/Host) | Member Added to Local Group (FSP / Admin) | MemberName (DistinguishedName or FSP SID) |
| 4768 | Security (DC) | Initial Kerberos TGT Request | TargetUserName, TicketOptions, PreAuthType |
| 4769 | Security (DC) | Kerberos TGS Request (Service or Referral) | ServiceName (krbtgt/*), TicketEncryptionType (0x17) |
| 4776 | Security (DC) | Netlogon Credential Validation (NTLM) | PackageName, TargetUserName, Status |
| 7045 | System (Host) | New Service Installed (PsExec, smbexec) | ServiceName, ImagePath |
| 8004 | NTLM/Operational (DC) | Forwarded NTLM Netlogon Authentication | UserName, DomainName, DirectTarget |
2. Windows Logon Types Decoded
Section titled β2. Windows Logon Types Decodedβ| Type | Designation | Technical Context | Associated Attack Vector |
|---|---|---|---|
| 2 | Interactive | Local console / keyboard logon | Credential dumping from LSASS memory |
| 3 | Network | SMB, RPC, WMI, HTTP connection | Lateral movement, Pass-the-Hash, NetExec |
| 4 | Batch | Scheduled task execution under service account | Hardcoded credentials in Task Scheduler |
| 5 | Service | Windows Service start | Local privilege escalation |
| 7 | Unlock | Session unlock by user | Confirmation of physical presence |
| 8 | NetworkCleartext | IIS basic authentication with cleartext credentials | Network credential sniffing |
| 9 | NewCredentials | runas /netonly execution | Mimikatz / Overpass-the-Hash signature |
| 10 | RemoteInteractive | Remote Desktop Protocol (RDP) session | Interactive session hijacking and memory theft |
3. Rapid Kerberos Attack Classification Matrix
Section titled β3. Rapid Kerberos Attack Classification Matrixβββββββββββββββββββββ¬βββββββββββββββββββββββ¬βββββββββββββββββββββββββ¬ββββββββββββββββββββββββββ Attack Vector β Compromised Key β Operational Blast β Characteristic DC Log βββββββββββββββββββββΌβββββββββββββββββββββββΌβββββββββββββββββββββββββΌβββββββββββββββββββββββββ€β Golden Ticket β krbtgt (Domain) β Full Forest (Tier 0) β Event 4769 WITHOUT 4768ββ Silver Ticket β Host / Service Key β Single Service Only β ZERO telemetry on DCs ββ DCSync β Replication Rights β Full NTDS Database Dumpβ Event 4662 (Rep GUID) ββ Kerberoasting β Weak Service Passwordβ Offline TGS Cracking β Event 4769 burst (RC4) ββ AS-REP Roasting β No Pre-Auth Account β Offline TGT Cracking β Event 4768 PreAuth=0 βββββββββββββββββββββ΄βββββββββββββββββββββββ΄βββββββββββββββββββββββββ΄βββββββββββββββββββββββββ4. The 6 Vital PowerShell Commands During an Incident
Section titled β4. The 6 Vital PowerShell Commands During an Incidentβ1. Enumerate Domain Admins and Enterprise Admins
Section titled β1. Enumerate Domain Admins and Enterprise AdminsβGet-ADGroupMember -Identity "Domain Admins" -Recursive | Select-Object Name, SamAccountName, ObjectClassGet-ADGroupMember -Identity "Enterprise Admins" -Recursive | Select-Object Name, SamAccountName2. Identify Unconstrained Delegation Hosts
Section titled β2. Identify Unconstrained Delegation HostsβGet-ADComputer -Filter {TrustedForDelegation -eq $True} | Select-Object Name, DNSHostName3. List All External Accounts with Local Permissions (FSPs)
Section titled β3. List All External Accounts with Local Permissions (FSPs)βGet-ADObject -SearchBase "CN=ForeignSecurityPrincipals,DC=domain,DC=local" -Filter * -Properties memberOf | Select-Object Name, whenCreated, memberOf4. Audit SID Filtering Quarantine Status
Section titled β4. Audit SID Filtering Quarantine Statusβnetdom trust LOCAL_DOMAIN /Domain:REMOTE_DOMAIN /quarantine5. Audit Principals Possessing DCSync Permissions
Section titled β5. Audit Principals Possessing DCSync PermissionsβGet-Acl "AD:\DC=domain,DC=local" | Select-Object -ExpandProperty Access | Where-Object { $_.ActiveDirectoryRights -match 'ExtendedRight' -and $_.ObjectType -eq '1131f6ad-9c07-11d1-f79f-00c04fc2dcd2' }6. Hunt Recently Modified GPO Templates in SYSVOL
Section titled β6. Hunt Recently Modified GPO Templates in SYSVOLβGet-ChildItem -Path "\\$env:USERDNSDOMAIN\SYSVOL\$env:USERDNSDOMAIN\Policies" -Recurse | Sort-Object LastWriteTime -Descending | Select-Object -First 15 FullName, LastWriteTime5. Emergency Incident Remediation Matrix
Section titled β5. Emergency Incident Remediation Matrixβ| Crisis Scenario | Immediate Action (Hour 0) | Intermediate Action (Hour 2) | Full Recovery (Day 1) |
|---|---|---|---|
| DCSync or Golden Ticket | Isolate source pivot host | First krbtgt password reset | Second krbtgt reset + rotate trust keys |
| Fleet Pass-the-Hash (SAM) | Network-isolate impacted hosts | Enforce LAPS across 100% of fleet | Set LocalAccountTokenFilterPolicy = 0 |
| Entra Connect Compromise | Block attacker IP on DCs | Reset on-premise MSOL_ account | Reset cloud sync account & credentials |
| Weaponized SYSVOL GPO | Unlink malicious GPO | Purge files from SYSVOL | Force gpupdate /force enterprise-wide |
Key Takeaways
Section titled βKey Takeawaysβ- Identity $\rightarrow$ Authentication $\rightarrow$ Authorization $\rightarrow$ Access $\rightarrow$ Action: Never skip an investigative step.
- The SID is the only immutable identity anchor resilient against account renaming and spoofing.
- Consecutive double
krbtgtrotation respecting replication latency is the only method to eradicate Golden Tickets. - Endpoint log collection is indispensable: local NTLM and Silver Tickets never appear on domain controllers.
References & Further Reading
Section titled βReferences & Further Readingβ- Microsoft Learn: Active Directory Security Technical Documentation
- Card 01 β Windows Identities: Local Accounts vs Domain Accounts
- Card 10 β Administrative Boundaries in Windows and Active Directory
- Card 26 β DCSync: Mechanics, Prerequisites, and Forensic Artefacts
- Card 27 β Golden Ticket vs Silver Ticket: Creation, Scope, and Detection
- Card 33 β Active Directory Investigation Decision Tree