Group Membership Reconnaissance Via Whoami.EXE

Detects the execution of whoami.exe with the /group command line flag to show group membership for the current user, account type, security identifiers (SID), and attributes.

Sigma rule (View on GitHub)

 1title: Group Membership Reconnaissance Via Whoami.EXE
 2id: bd8b828d-0dca-48e1-8a63-8a58ecf2644f
 3status: test
 4description: Detects the execution of whoami.exe with the /group command line flag to show group membership for the current user, account type, security identifiers (SID), and attributes.
 5references:
 6    - https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/whoami
 7author: Nasreddine Bencherchali (Nextron Systems)
 8date: 2023/02/28
 9tags:
10    - attack.discovery
11    - attack.t1033
12logsource:
13    category: process_creation
14    product: windows
15detection:
16    selection_img:
17        - Image|endswith: '\whoami.exe'
18        - OriginalFileName: 'whoami.exe'
19    selection_cli:
20        CommandLine|contains:
21            - ' /groups'
22            - ' -groups'
23    condition: all of selection_*
24falsepositives:
25    - Unknown
26level: medium

References

Related rules

to-top