Possible Group Membership Recon Through Whoami.EXE (via process_creation)
This rule 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.
SigmamediumWindowsv1
sigma
possible-group-membership-recon-through-whoami-exe-via-process-creation
title: Possible Group Membership Recon Through Whoami.EXE (via process_creation)
id: 96d206b3-1f4a-51e8-a40d-e4edada5e254
status: stable
description: This rule 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.
references:
- https://attack.mitre.org/techniques/T1033/
- https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/whoami
author: Huntrule Team
date: 2026-03-31
tags:
- attack.discovery
- attack.t1033
logsource:
category: process_creation
product: windows
detection:
selection_img:
- Image|endswith: '\whoami.exe'
- OriginalFileName: 'whoami.exe'
selection_cli:
CommandLine|contains:
- ' /groups'
- ' -groups'
condition: all of selection_*
falsepositives:
- Unknown
level: medium
Known false positives
- Unknown
Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.