T1069 Splunk · SPL

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

Splunk (SPL)
spl
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
medium severity medium confidence

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

Process: Process CreationCommand: Command ExecutionSysmon Event ID 1Windows Security Event ID 4688

Required Sourcetypes

XmlWinEventLog:Microsoft-Windows-Sysmon/OperationalWinEventLog:Security

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
Download portable Sigma rule (.yml)

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.

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

Unlock Pro Content

Get the full detection package for T1069 including response playbook, investigation guide, and atomic red team tests.

Response PlaybookInvestigation GuideHunting QueriesAtomic Red Team TestsTuning Guidance

Related Detections