EXPLORE
← Back to Explore
sigmamediumHunting

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.

MITRE ATT&CK

discovery

Detection Query

selection_img:
  - Image|endswith: \whoami.exe
  - OriginalFileName: whoami.exe
selection_cli:
  CommandLine|contains:
    - " /groups"
    - " -groups"
condition: all of selection_*

Author

Nasreddine Bencherchali (Nextron Systems)

Created

2023-02-28

Data Sources

windowsProcess Creation Events

Platforms

windows

Tags

attack.discoveryattack.t1033
Raw Content
title: Group Membership Reconnaissance Via Whoami.EXE
id: bd8b828d-0dca-48e1-8a63-8a58ecf2644f
status: test
description: 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://learn.microsoft.com/en-us/windows-server/administration/windows-commands/whoami
author: Nasreddine Bencherchali (Nextron Systems)
date: 2023-02-28
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