Whoami.EXE Execution With Output Option

 Original Source: [Sigma source]
Title: Whoami.EXE Execution With Output Option
Status: test
Description:Detects the execution of "whoami.exe" with the "/FO" flag to choose CSV as output format or with redirection options to export the results to a file for later use.
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
Author: Florian Roth (Nextron Systems), Nasreddine Bencherchali (Nextron Systems)
Date: 2023-02-28
modified:2023-12-04
Tags:
  • -'attack.discovery'
  • -'attack.t1033'
  • -'car.2016-03-001'
Logsource:
  • category: process_creation
  • product: windows
Detection:
  selection_main_img:
Image|endswith:'\whoami.exe' OriginalFileName:'whoami.exe'   selection_main_cli:
    CommandLine|contains:
      -' /FO CSV'
      -' -FO CSV'

  selection_special:
    CommandLine|contains: 'whoami*>'
  condition:all of selection_main_* or selection_special
Falsepositives:
  -Unknown
Level: medium