CmdID

CmdID / Rules / Windows

HAFNIUM Exchange Exploitation Activity

A Sigma rule for process creation on Windows, from SigmaHQ’s emerging threats rules, by Florian Roth (Nextron Systems).

critical 2 ATT&CK techniques 3 programs it names

What it looks for

its detection, as SigmaHQ writes it
detection:
  selection_7zip:
    CommandLine|contains|all:
      - ' -t7z '
      - 'C:\Programdata\pst'
      - '\it.zip'
  selection_attrib:
    CommandLine|contains|all:
      - 'attrib'
      - ' +h '
      - ' +s '
      - ' +r '
      - '.aspx'
  selection_makecab_1:
    CommandLine|contains|all:
      - 'inetpub\wwwroot\'
      - '.dmp.zip'
    Image|endswith: '\makecab.exe'
  selection_makecab_2:
    CommandLine|contains:
      - 'Microsoft\Exchange Server\'
      - 'compressionmemory'
      - '.gif'
    Image|endswith: '\makecab.exe'
  selection_opera_1:
    Image|endswith: 'Opera_browser.exe'
    ParentImage|endswith:
      - '\services.exe'
      - '\svchost.exe'
  selection_opera_2:
    Image|endswith: 'Users\Public\opera\Opera_browser.exe'
  selection_other:
    CommandLine|contains:
      - 'Windows\Temp\xx.bat'
      - 'Windows\WwanSvcdcs'
      - 'Windows\Temp\cw.exe'
  selection_rundll32:
    CommandLine|contains|all:
      - '\comsvcs.dll'
      - 'Minidump'
      - 'full '
      - '\inetpub\wwwroot'
  selection_vsperfmon:
    - Image|contains: '\ProgramData\VSPerfMon\'
    - CommandLine|contains|all:
        - 'schtasks'
        - 'VSPerfMon'
  selection_vssadmin:
    CommandLine|contains|all:
      - 'vssadmin list shadows'
      - 'Temp\__output'
  condition: 1 of selection*

The rule’s detection, its selections and fields in order of name. The whole rule, with its references and false positives, is on SigmaHQ, by Florian Roth (Nextron Systems), under the Detection Rule License 1.1. CmdID evaluates it on a command line alone: a test on what a command line cannot show, such as the parent process or the user, is not met.

None of the everyday examples and documented commands on CmdID’s program pages trips it. To see whether a command line does, paste it into CmdID.

Programs and files it names

their pages here

ATT&CK

the techniques it is tagged with
T1053Scheduled Task/Job
T1546Event Triggered Execution