CmdID

CmdID / Rules / Windows

XSL Script Execution Via WMIC.EXE

A Sigma rule for process creation on Windows, by Timur Zinniatullin, oscd.community, Swachchhanda Shrawan Poudel.

medium 4 ATT&CK techniques 1 program it names

What it looks for

its detection, as SigmaHQ writes it
detection:
  filter_main_known_format:
    CommandLine|contains:
      - 'Format:List'
      - 'Format:htable'
      - 'Format:hform'
      - 'Format:table'
      - 'Format:mof'
      - 'Format:value'
      - 'Format:rawxml'
      - 'Format:xml'
      - 'Format:csv'
  filter_main_remote_operation:
    CommandLine|contains:
      - '://'
      - '\\\\'
  selection_cmd:
    CommandLine|contains|windash: '-format:'
  selection_img:
    - Image|endswith: '\wmic.exe'
    - OriginalFileName: 'wmic.exe'
    - Hashes|contains:
        - 'IMPHASH=1B1A3F43BF37B5BFE60751F2EE2F326E'
        - 'IMPHASH=37777A96245A3C74EB217308F3546F4C'
        - 'IMPHASH=9D87C9D67CE724033C0B40CC4CA1B206'
        - 'IMPHASH=B12619881D79C3ACADF45E752A58554A'
        - 'IMPHASH=16A48C3CABF98A9DC1BF02C07FE1EA00'
  condition: all of selection_* and not 1 of filter_main_*

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 Timur Zinniatullin, oscd.community, Swachchhanda Shrawan Poudel, 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
T1047Windows Management Instrumentation
T1059.005Command and Scripting Interpreter: Visual Basic
T1059.007Command and Scripting Interpreter: JavaScript
T1220XSL Script Processing