Has used the msiexec.exe command-line utility to download and execute malicious MSI files.1
- Tactic
- Stealth
- Platform
- Windows
- Version
- 3.0
- Created
- 24 January 2020
- Last modified
- 12 May 2026
- Contributors
- Alexandros Pappas; Ziv Kaspersky, Cymptom
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).[1] The Msiexec.exe binary may also be digitally signed by Microsoft.
Msiexec MITRE reference T1218.007
6 groups have been recorded using this technique. Newest first; each entry carries MITRE’s procedure text and a link to the group’s full record. Click a name to filter the rules below.
Has used msiexec to download and execute malicious Windows Installer files.123
Has used msiexec.exe to execute malicious files.1
Has used msiexec to download and execute malicious installer files over HTTP.1
Has used msiexec.exe to execute an MSI payload.1
All 6 groups for this technique
2 campaigns have been recorded using this technique. Listed newest first; dates are year-granularity and attribution is MITRE’s.
Mustang Panda initial payloads downloaded a Windows Installer MSI file that in turn dropped follow-on files leading to installation of PlugX during RedDelta Modified PlugX Infection Chain Operations.1
During the 3CX Supply Chain Attack, AppleJeus delivered components using a Windows Installer package (.msi). The MSI installer extracted several files and executed the 3CXDesktopApp.exe, which loaded the malicious library file ffmpeg.dll.1
All 2 campaigns for this technique
23 software entries are documented implementing this technique. MITRE files each as a tool or as malware; newest first, then by how many groups carry them.
Has been distributed via an MSI installer.1
Can create an instance of msiexec.exe and inject LODEINFO shellcode into the memory of the process.1
Has been installed via MSI Installer.1
Uses msiexec.exe for post-installation communication to command and control infrastructure.1 Msiexec.exe is executed referencing a remote resource for second-stage payload retrieval and execution.2
All 23 software entries for this technique · 6 newest in this preview
Offense vs defense T1218.007
Is defensive coverage keeping up with adversary use? Eight counts, each ranked against all 697 ATT&CK techniques. Attack sits left, defense right, so a shape leaning left means adversaries are better documented here than defenders are equipped. Hover any spoke for its percentile and the share of techniques that have more. The timeline below shows when each side arrived.
How it got here
Adversary activity (campaign spans) over cumulative rule output. Each source is plotted independently from zero, so neither line includes the other. Campaign dates are year-granularity.
Msiexec detection strategy DET0158
MITRE names one behaviour worth catching for this technique and breaks it into 1 analytic, one per platform. Each carries the log sources it needs and the fields you tune per environment.
Detection of Msiexec Abuse for Local, Network, and DLL Execution
AN0445 · Windows
Detection of msiexec.exe execution where command-line arguments reference remote MSI packages, UNC paths, HTTP/HTTPS URLs, or DLLs, correlated with subsequent module loads and/or network connections to previously unseen destinations. The behavioral chain links process creation of msiexec.exe with suspicious parameters, network activity to retrieve payloads, and module loading indicative of malicious installation or DLL execution.
Log sources
The data this analytic draws on. You do not need every component — each one you already collect covers part of it. Each links to its ATT&CK record.
| Data component | Name | Channel |
|---|---|---|
| Module LoadDC0016 | WinEventLog:Sysmon | EventCode=7 |
| Process CreationDC0032 | WinEventLog:Security | EventCode=4688 |
| Network Connection CreationDC0082 | WinEventLog:Sysmon | EventCode=3, 22 |
Tunable fields
MITRE calls these the analytic’s mutable elements: the thresholds and filters you set for your own environment.
| Field | What you tune |
|---|---|
| SuspiciousCommandlinePatterns | Patterns for identifying malicious msiexec.exe usage (e.g., UNC paths, external domains, DLL execution flags) |
| SuspiciousDestinationList | List of external domains or IP ranges considered suspicious for msiexec network connections |
| TimeWindow | Time range in seconds/minutes for correlating msiexec.exe execution with module load and network activity |
| LegitimateMSIHashes | Hash list of MSI packages considered known-good to reduce false positives |
Consider disabling the AlwaysInstallElevated 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.
Tests from Atomic Red Team (MIT licence) · technique definition