whoami_execution


Description

Detects the execution of whoami, which is often used by attackers after exloitation / privilege escalation but rarely used by administrators License: https://github.com/Neo23x0/sigma/blob/master/LICENSE.Detection.Rules.md.

Query · yara_l

events:
($selection.metadata.product_event_type = "1" and $selection.target.process.command_line = "whoami")

  condition:
    $selection
Raw source whoami_execution · YARA-L
Esc
Published by chronicle/detection-rules ↗, licensed under Apache 2.0 ↗. Reproduced here unmodified.
rule whoami_execution {
 meta:
    author = "Florian Roth"
    description = "Detects the execution of whoami, which is often used by attackers after exloitation / privilege escalation but rarely used by administrators  License: https://github.com/Neo23x0/sigma/blob/master/LICENSE.Detection.Rules.md."
    reference = "https://tdm.socprime.com/tdm/info/uA0vQNIJsZGW"
    version = "0.01"
    created = "2018/05/22"
    product = "windows"
    service = "sysmon"
    mitre = "discovery, t1033"

  events:
($selection.metadata.product_event_type = "1" and $selection.target.process.command_line = "whoami")

  condition:
    $selection
}

Detection rules belong to the projects that publish them and remain under their own licenses. This site indexes and links to them; it claims no rights in them.