{"id":"8de1cbe8-d6f5-496d-8237-5f44a721c7a0","title":"Whoami.EXE Execution Anomaly","description":"Detects the execution of whoami.exe with suspicious parent processes.","author":"Florian Roth (Nextron Systems)","status":"test","level":"medium","date":"2021-08-12","modified":"2025-03-06","tags":["attack.discovery","attack.t1033","car.2016-03-001"],"technique_ids":["T1033"],"logsource":{"category":"process_creation","product":"windows"},"falsepositives":["Admin activity","Scripts and administrative tools used in the monitored environment","Monitoring activity"],"references":["https://brica.de/alerts/alert/public/1247926/agent-tesla-keylogger-delivered-inside-a-power-iso-daa-archive/","https://app.any.run/tasks/7eaba74e-c1ea-400f-9c17-5e30eee89906/","https://www.youtube.com/watch?v=DsJ9ByX84o4&t=6s"],"source_path":"rules/windows/process_creation/proc_creation_win_whoami_parent_anomaly.yml","source_sha256":"07a23606d2d8234926302a9aa167be225bf48ecd4ed21d1938c30a63a1ffdbeb","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/process_creation/proc_creation_win_whoami_parent_anomaly.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: Whoami.EXE Execution Anomaly\nid: 8de1cbe8-d6f5-496d-8237-5f44a721c7a0\nstatus: test\ndescription: Detects the execution of whoami.exe with suspicious parent processes.\nreferences:\n    - https://brica.de/alerts/alert/public/1247926/agent-tesla-keylogger-delivered-inside-a-power-iso-daa-archive/\n    - https://app.any.run/tasks/7eaba74e-c1ea-400f-9c17-5e30eee89906/\n    - https://www.youtube.com/watch?v=DsJ9ByX84o4&t=6s\nauthor: Florian Roth (Nextron Systems)\ndate: 2021-08-12\nmodified: 2025-03-06\ntags:\n    - attack.discovery\n    - attack.t1033\n    - car.2016-03-001\nlogsource:\n    category: process_creation\n    product: windows\ndetection:\n    selection:\n        - Image|endswith: '\\whoami.exe'\n        - OriginalFileName: 'whoami.exe'\n    filter_main_known_parents:\n        # This list can be any legitimate shell or application that you expect whoami to run from\n        ParentImage|endswith:\n            - '\\cmd.exe'\n            - '\\powershell_ise.exe'\n            - '\\powershell.exe'\n            - '\\pwsh.exe'\n    filter_optional_ms_monitoring_agent:\n        ParentImage|endswith: ':\\Program Files\\Microsoft Monitoring Agent\\Agent\\MonitoringHost.exe'\n    filter_main_parent_null:\n        ParentImage: null\n    filter_main_parent_empty:\n        ParentImage:\n            - ''\n            - '-'\n    condition: selection and not 1 of filter_main_* and not 1 of filter_optional_*\nfalsepositives:\n    - Admin activity\n    - Scripts and administrative tools used in the monitored environment\n    - Monitoring activity\nlevel: medium\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/8de1cbe8-d6f5-496d-8237-5f44a721c7a0.json","kind":"sigma"}
