Detect Permission Groups Discovery in Splunk
Adversaries may attempt to discover group and permission settings to understand which user accounts and groups are available, group memberships, and which users and groups have elevated permissions. This information informs targeting decisions and enables privilege escalation, lateral movement, and persistence planning. Common enumeration methods include native Windows commands (net group, net localgroup), PowerShell cmdlets (Get-ADGroup, Get-LocalGroup), LDAP queries, BloodHound/SharpHound collection, Linux identity commands (id, groups, getent group), and cloud-provider APIs. Threat actors including APT41, TA505, Volt Typhoon, and Scattered Spider have used these techniques in real-world intrusions.
MITRE ATT&CK
- Tactic
- Discovery
- Technique
- T1069 Permission Groups Discovery
- Canonical reference
- https://attack.mitre.org/techniques/T1069/
SPL Detection Query
index=wineventlog (sourcetype="XmlWinEventLog:Microsoft-Windows-Sysmon/Operational" EventCode=1)
OR (sourcetype="WinEventLog:Security" EventCode=4688)
| eval Image=coalesce(Image, NewProcessName)
| eval CommandLine=coalesce(CommandLine, ProcessCommandLine)
| eval ParentImage=coalesce(ParentImage, ParentProcessName)
| eval LowerCMD=lower(CommandLine)
| eval LowerImage=lower(Image)
| where
(
(match(LowerImage, "\\\\net\.exe$") OR match(LowerImage, "\\\\net1\.exe$"))
AND (match(LowerCMD, "group") OR match(LowerCMD, "localgroup"))
) OR (
(match(LowerImage, "\\\\powershell\.exe$") OR match(LowerImage, "\\\\pwsh\.exe$"))
AND match(LowerCMD, "(get-adgroup|get-adgroupmember|get-localgroup|get-localgroupmember|get-adprincipalGroupmembership)")
) OR (
(match(LowerImage, "\\\\dsquery\.exe$") OR match(LowerImage, "\\\\dsget\.exe$"))
AND match(LowerCMD, "group")
) OR (
match(LowerImage, "\\\\whoami\.exe$")
AND match(LowerCMD, "(/groups|/all|/priv)")
) OR (
match(LowerImage, "\\\\gpresult\.exe$")
) OR (
match(LowerCMD, "(sharphound|bloodhound|-collectionmethod)")
)
| eval IsDomainGroupQuery=if(match(LowerCMD, "(/domain|net group|dsquery group|get-adgroup)"), 1, 0)
| eval IsLocalGroupQuery=if(match(LowerCMD, "(localgroup|get-localgroup|whoami /groups)"), 1, 0)
| eval IsBloodHound=if(match(LowerCMD, "(sharphound|bloodhound|-collectionmethod)"), 1, 0)
| eval SuspiciousParent=if(match(lower(ParentImage), "(wscript|cscript|mshta|rundll32|regsvr32)"), 1, 0)
| table _time, host, User, Image, CommandLine, ParentImage, IsDomainGroupQuery, IsLocalGroupQuery, IsBloodHound, SuspiciousParent
| sort - _time Detects permission group discovery using Sysmon Event ID 1 (Process Creation) or Security Event ID 4688. Normalizes fields across both sourcetypes to handle environments with either or both configured. Covers net.exe/net1.exe group commands, PowerShell AD and local group cmdlets, dsquery/dsget group queries, whoami /groups and /all, gpresult, and BloodHound/SharpHound indicators. Flags domain vs local group queries and suspicious parent processes for analyst prioritization.
Data Sources
Required Sourcetypes
False Positives & Tuning
- IT administrators and helpdesk staff routinely running net localgroup or net group to troubleshoot access issues
- Active Directory management scripts and scheduled tasks using Get-ADGroup or Get-ADGroupMember for account provisioning
- Security tools and monitoring agents enumerating group memberships as part of posture assessment
- Software installation processes checking for local Administrators or specific service group membership
- Authorized BloodHound usage by red team or vulnerability management teams
- GPO deployment verification scripts using gpresult
Other platforms for T1069
Testing Methodology
Validate this detection against 5 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are available with Pro.
- Test 1Local Group Enumeration via net.exe
Expected signal: Sysmon Event ID 1: Two Process Create events for net.exe (or net1.exe, which net.exe spawns internally). CommandLine values: 'net localgroup' and 'net localgroup Administrators'. Security Event ID 4688 if command line auditing is enabled. Parent process will be cmd.exe or the shell used to execute the commands.
- Test 2Domain Group Enumeration via net.exe
Expected signal: Sysmon Event ID 1: Process Create for net.exe with CommandLine 'net group /domain' and 'net group "Domain Admins" /domain'. Network connection to domain controller on port 389 (LDAP) or 445 (SMB SAMR protocol). On the domain controller: Security Event ID 4661/4662 may fire for SAM group object access.
- Test 3PowerShell Active Directory Group Enumeration
Expected signal: Sysmon Event ID 1: Process Create for powershell.exe with CommandLine containing 'Get-ADGroup' and 'Get-ADGroupMember'. PowerShell ScriptBlock Log Event ID 4104 capturing the full script content. LDAP network traffic to domain controller on port 389/636.
- Test 4whoami Group Membership Query
Expected signal: Sysmon Event ID 1: Two Process Create events for whoami.exe. CommandLine values: 'whoami /groups' and 'whoami /all'. No network traffic (local token query). Output includes SID values, group names, and enabled privileges — this data is often captured via screen scraping in interactive sessions.
- Test 5Linux Group Discovery via id and getent
Expected signal: Linux auditd: syscall execve events for /usr/bin/id, /usr/bin/groups, /usr/bin/getent with respective arguments. Syslog entries if exec auditing is enabled. On systems with osquery or EDR agents: process creation events for each command with full argument lists.
References (11)
- https://attack.mitre.org/techniques/T1069/
- https://attack.mitre.org/techniques/T1069/001/
- https://attack.mitre.org/techniques/T1069/002/
- https://attack.mitre.org/techniques/T1069/003/
- https://www.crowdstrike.com/blog/hidden-administrative-accounts-bloodhound-to-the-rescue/
- https://learn.microsoft.com/en-us/defender-endpoint/advanced-hunting-deviceprocessevents-table
- https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/net-group
- https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1069.001/T1069.001.md
- https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1069.002/T1069.002.md
- https://github.com/BloodHoundAD/BloodHound
- https://www.mandiant.com/resources/blog/apt41-initiates-global-intrusion-campaign-using-multiple-exploits
Unlock Pro Content
Get the full detection package for T1069 including response playbook, investigation guide, and atomic red team tests.