Msdeploy.exe

type: OtherMSBinaries
Microsoft tool used to deploy Web Applications.

Full path

C:\Program Files\IIS\Microsoft Web Deploy V2\msdeploy.exe
C:\Program Files (x86)\IIS\Microsoft Web Deploy V2\msdeploy.exe
C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe
C:\Program Files (x86)\IIS\Microsoft Web Deploy V3\msdeploy.exe
C:\Program Files\IIS\Microsoft Web Deploy V4\msdeploy.exe
C:\Program Files (x86)\IIS\Microsoft Web Deploy V4\msdeploy.exe
C:\Program Files\IIS\Microsoft Web Deploy V5\msdeploy.exe
C:\Program Files (x86)\IIS\Microsoft Web Deploy V5\msdeploy.exe

Commands

  1. ExecuteUser T1218

    Local execution of batch file using msdeploy.exe.

    msdeploy.exe -verb:sync -source:RunCommand -dest:runCommand="{PATH_ABSOLUTE:.bat}"

    Launch .bat file via msdeploy.exe.

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

    Execute: CMD

  2. AWL BypassUser T1218

    Local execution of batch file using msdeploy.exe.

    msdeploy.exe -verb:sync -source:RunCommand -dest:runCommand="{PATH_ABSOLUTE:.bat}"

    Launch .bat file via msdeploy.exe.

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

    Execute: CMD

  3. CopyUser T1105

    Copy file.

    msdeploy.exe -verb:sync -source:filePath={PATH_ABSOLUTE:.source.ext} -dest:filePath={PATH_ABSOLUTE:.dest.ext}

    Copy file from source to destination.

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

Detection

Resources

acknowledgement: Pierre-Alexandre Braeken @pabraeken, Avihay Eldad @AvihayEldad