2e689eca54
- Removed "Contains" modifier from "OriginalFileName" across all rules. - Added "Image" field back in the rules highlighted by Florian
27 lines
897 B
YAML
27 lines
897 B
YAML
title: Run Whoami Showing Privileges
|
|
id: 97a80ec7-0e2f-4d05-9ef4-65760e634f6b
|
|
status: experimental
|
|
description: Detects a whoami.exe executed with the /priv command line flag instructing the tool to show all current user privieleges. This is often used after a privilege escalation attempt.
|
|
references:
|
|
- https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/whoami
|
|
author: Florian Roth
|
|
date: 2021/05/05
|
|
modified: 2022/05/13
|
|
tags:
|
|
- attack.privilege_escalation
|
|
- attack.discovery
|
|
- attack.t1033
|
|
logsource:
|
|
category: process_creation
|
|
product: windows
|
|
detection:
|
|
selection_img:
|
|
- Image|endswith: '\whoami.exe'
|
|
- OriginalFileName: 'whoami.exe'
|
|
selection_cli:
|
|
CommandLine|contains: '/priv'
|
|
condition: all of selection*
|
|
falsepositives:
|
|
- Administrative activity (rare lookups on current privileges)
|
|
level: high
|