{"id":"97a80ec7-0e2f-4d05-9ef4-65760e634f6b","title":"Security Privileges Enumeration Via Whoami.EXE","description":"Detects a whoami.exe executed with the /priv command line flag instructing the tool to show all current user privileges. This is often used after a privilege escalation attempt.","author":"Florian Roth (Nextron Systems)","status":"test","level":"high","date":"2021-05-05","modified":"2023-02-28","tags":["attack.privilege-escalation","attack.discovery","attack.t1033"],"technique_ids":["T1033"],"logsource":{"category":"process_creation","product":"windows"},"falsepositives":["Unknown"],"references":["https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/whoami"],"source_path":"rules/windows/process_creation/proc_creation_win_whoami_priv_discovery.yml","source_sha256":"fcf5fd0129a71657d21f6a5d685e33b5f1053506171b3b02f85aa0fbd68fa2f9","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/process_creation/proc_creation_win_whoami_priv_discovery.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: Security Privileges Enumeration Via Whoami.EXE\nid: 97a80ec7-0e2f-4d05-9ef4-65760e634f6b\nstatus: test\ndescription: Detects a whoami.exe executed with the /priv command line flag instructing the tool to show all current user privileges. This is often used after a privilege escalation attempt.\nreferences:\n    - https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/whoami\nauthor: Florian Roth (Nextron Systems)\ndate: 2021-05-05\nmodified: 2023-02-28\ntags:\n    - attack.privilege-escalation\n    - attack.discovery\n    - attack.t1033\nlogsource:\n    category: process_creation\n    product: windows\ndetection:\n    selection_img:\n        - Image|endswith: '\\whoami.exe'\n        - OriginalFileName: 'whoami.exe'\n    selection_cli:\n        CommandLine|contains:\n            - ' /priv'\n            - ' -priv'\n    condition: all of selection_*\nfalsepositives:\n    - Unknown\nlevel: high\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1033","id":"T1033","name":"System Owner/User Discovery","page":"techniques/enterprise/T1033/"}],"data_path":"data/detection-rules/97a80ec7-0e2f-4d05-9ef4-65760e634f6b.json","kind":"sigma"}
