LoFP LoFP / static format arguments - https://petri.com/command-line-wmi-part-3

Techniques

Sample rules

XSL Script Execution Via WMIC.EXE

Description

Detects the execution of WMIC with the “format” flag to potentially load XSL files. Adversaries abuse this functionality to execute arbitrary files while potentially bypassing application whitelisting defenses. Extensible Stylesheet Language (XSL) files are commonly used to describe the processing and rendering of data within XML files.

Detection logic

condition: selection and not 1 of filter_main_*
filter_main_known_format:
  CommandLine|contains:
  - Format:List
  - Format:htable
  - Format:hform
  - Format:table
  - Format:mof
  - Format:value
  - Format:rawxml
  - Format:xml
  - Format:csv
selection:
  CommandLine|contains|windash: -format
  Image|endswith: \wmic.exe