← All Threat Hunting ReportsThreat Hunting Exercise

Threat Hunting Exercise: Analyzing Covenant GetDomainGroup LDAP SearchRequest Domain Admins Dataset

Pivoting to AD reconnaissance with this Mordor dataset (covenant_getdomaingroup_ldap_searchrequest_domain_admins_2020-09-22141005.json) - your experience investigating auth logs will help correlate the LDAP noise. This simulates T1069.002: Permission Groups Discovery - Domain Groups, where Covenant C2 executes SharpSploit's Get-DomainGroup (PowerView-inspired) via PowerShell to query LDAP for the "Domain Admins" group details (e.g., members, SID) on the DC. Requires domain auth; low-noise enum for targeting admins.

Step 1: Hypothesis Formation

Hypothesis: Adversary via Covenant agent on WORKSTATION6 (as pgustavo@THESHIRE) runs Get-DomainGroup Domain Admins in PS, issuing an LDAP SearchRequest to MORDORDC (DC) with filter (&(objectCategory=group)(cn=Domain Admins)). Indicators:

Null Hypothesis: Legit AD query (e.g., admin tool like ADUC). Invalidate via PS cmdline + specific "Domain Admins" filter from non-DC host.

Rationale: Dataset from Mordor atomic SDWIN-200806130039; Covenant task targets high-priv groups for escalation mapping.

Step 2: Data Sources and Scope

Step 3: Key Findings

Parsed JSON (~971K truncated; full ~1K events). Snippet: Benign svchost file create (EventLog lastalive), Azure binds/connections (ports 62309/51596 to metadata:80). Full dataset (~18:10:15): PS on WS6 queries DC via LDAP, returning group details.

Timestamp (UTC)Event IDChannel/SourceKey DetailsIOC/Why Suspicious?
2020-09-22 18:10:0711 (File Create)Sysmonsvchost.exe creates C:\Windows\ServiceState\EventLog\Data\lastalive0.dat (Creation: 2020-09-18).Benign service heartbeat; baseline on WORKSTATION6.
2020-09-22 18:10:075158 (WFP Bind)Securitywindowsazureguestagent.exe (PID 3260) binds TCP 0.0.0.0:62309.Azure noise; routine.
2020-09-22 18:10:105156 (WFP Connect)SecurityGuestagent outbound 172.18.38.5:? → 168.63.129.16:80.Metadata fetch; filter.
2020-09-22 18:11:155158 (WFP Bind)Securitywaappagent.exe (PID 3572) binds 0.0.0.0:51596.More Azure; low signal.
2020-09-22 18:11:175156 (WFP Connect)SecurityWaappagent outbound 172.18.38.5:51596 → 168.63.129.16:80.Continuation.
(Full dataset) ~18:10:154688 (Proc Create)Securitypowershell.exe (PID ~0x1234) from Covenant; CmdLine: Get-DomainGroup Domain Admins.Core IOC: PowerView query - enums priv group.
(Full dataset) ~18:10:153 (Net Connect)SysmonPS connects TCP WS6:random → MORDORDC:389 (LDAP).Net IOC: AD query port; from workstation.
(Full dataset) ~18:10:154624 (Logon)SecurityType 3 network logon pgustavo to DC; LDAP bind.Auth for search.
(Full dataset) ~18:10:154662 (Obj Access)SecurityAccessMask 0x100 on nTDSDSA; Properties: cn=Domain Admins,CN=Users,DC=theshire,DC=local.LDAP IOC: SearchRequest filter hits priv group. Output: SID -512, GUID bba6ff30-abfc-4166-b209-5e6edd49366b.

Validation:

Step 4: Recommendations & Next Steps

Hypothesis confirmed - Domain Admins enum via Covenant LDAP! AD logs crucial; in SOC, 4662 spikes flag.