Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Adversaries may abuse msiexec.exe to proxy execution of malicious payloads.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-02 | ✗→✓ | ▲ Improved | 26% | 0% |
| case-04 | ✗→✓ | ▲ Improved | -17% | 0% |
| case-15 | ✓→✗ | ▼ Worse | 32% | 0% |
| case-22 | ✓→✓ | = Same ✓ | 18% | 0% |
| case-05 | ✓→✓ | = Same ✓ | -2% | 0% |
> Sub-technique of: T1218
Adversaries may abuse msiexec.exe to proxy execution of malicious payloads. Msiexec.exe is the command-line utility for the Windows Installer and is thus commonly associated with executing installation packages (.msi). The Msiexec.exe binary may also be digitally signed by Microsoft.
Adversaries may abuse msiexec.exe to launch local or network accessible MSI files. Msiexec.exe can also execute DLLs. Since it may be signed and native on Windows systems, msiexec.exe can be used to bypass application control solutions that do not account for its potential abuse. Msiexec.exe execution may also be elevated to SYSTEM privileges if the <code>AlwaysInstallElevated</code> policy is enabled.
Platforms: Windows
The following tests are from Atomic Red Team and provide actionable ways to test this technique:
Executes an MSI containing embedded JScript code using msiexec.exe
Supported Platforms: windows
cmd#{msi_exe} /q /#{action} "#{msi_payload}"
Dependencies:
Executes an MSI containing embedded VBScript code using msiexec.exe
Supported Platforms: windows
cmd#{msi_exe} /q /#{action} "#{msi_payload}"
Dependencies:
Executes an MSI containing an embedded DLL using msiexec.exe
Supported Platforms: windows
cmd#{msi_exe} /q /#{action} "#{msi_payload}"
Dependencies:
Executes an MSI containing an embedded EXE using msiexec.exe
Supported Platforms: windows
cmd#{msi_exe} /q /#{action} "#{msi_payload}"
Dependencies:
Executes an MSI containing embedded JScript code using the WMI Win32_Product class
Supported Platforms: windows
powershellInvoke-CimMethod -ClassName Win32_Product -MethodName #{action} -Arguments @{ PackageLocation = '#{msi_payload}' }
Dependencies:
If Atomic Red Team tests are not applicable, manually verify the technique by:
Consider disabling the <code>AlwaysInstallElevated</code> policy to prevent elevated execution of Windows Installer packages.
Restrict execution of Msiexec.exe to privileged accounts or groups that need to use it to lessen the opportunities for malicious usage.
| Finding | Severity | Impact | | ---------------------------- | -------- | --------------- | | Msiexec technique applicable | High | Defense Evasion |
| CWE ID | Title | | ------- | ---------------------------- | | CWE-693 | Protection Mechanism Failure |
Other measured skills in the registry, with their headline benchmark lift.