Join our Newsletter — 33% off our NHI Course

How do attackers use MSI files?

Attackers use MSI files to install malicious software through a format many environments trust for software deployment. They may disguise payloads as legitimate installers, trigger custom actions, or use the installation process to run commands. Defenders should restrict software installation sources, inspect unsigned or unexpected packages, and monitor installer activity on endpoints.

Why MSI Files Work as an Attack Delivery Format

MSI packages are attractive to attackers because they fit a normal software deployment workflow. Many endpoints and enterprise tools expect installers to launch with elevated behaviour, which can make malicious activity look routine until the installation path is examined closely.

Attackers often rely on the trust people place in installer-like files. A disguised package can persuade a user to run it, while the installer engine itself provides a ready-made execution path for embedded payloads, scripts, or staged components.

Two properties matter most: first, MSI files are commonly associated with legitimate software installation; second, their execution model can include actions beyond simple file copying. That combination gives attackers a way to blend delivery, execution, and persistence into one package rather than dropping a separate standalone executable.

How the Installation Flow Gets Abused

An MSI can be abused at several points in the install sequence. A malicious package may contain a payload that unpacks during installation, run a custom action that executes commands, or trigger helper scripts that do the real malicious work after the installer starts.

This is why defenders should not treat “installer” as a safe label. The important question is whether the package source, signing status, and contents match what the organisation expects. If the installer is unsigned, unexpectedly packaged, or delivered outside approved channels, it deserves the same scrutiny as any other executable.

Attackers also benefit from the fact that installer activity can be overlooked in endpoint review. Processes that spawn during software installation may appear legitimate unless logging, parent-child process review, and file-write monitoring are in place to show what the package actually changed.

What Defenders Should Watch for and Control

Strong control starts with limiting where software can be installed from, then verifying the package before it is allowed to run. That includes checking for unexpected publisher details, unexpected command execution, and packages that request actions unrelated to the software a user thought they were installing.

Endpoint monitoring should focus on installer behaviour, not just file names. Look for suspicious command-line arguments, unusual child processes from msiexec, unexpected writes to startup locations, and network connections that occur during or immediately after installation.

Defenders should also treat MSI abuse as part of a broader software trust problem. If attackers can deliver code through a package that resembles normal deployment, the organisation needs controls that separate approved software distribution from arbitrary file execution. For practical detection ideas, MITRE ATT&CK Enterprise Matrix helps map installer abuse to execution, persistence, and credential access activity. For broader defensive context on malicious installer activity, CISA cyber threat advisories remain a useful reference point.

Risk and Threat Considerations

MSI abuse is risky because it can turn a trusted deployment mechanism into an execution channel. Once a malicious installer runs, the attacker may gain code execution under a context the user or endpoint policy is more likely to trust, which increases the chance of successful installation and follow-on activity.

Failure mechanism: The package is accepted as software installation rather than treated as an untrusted executable, so malicious actions hidden in custom actions, scripts, or embedded payloads execute with less friction and less user suspicion.

Impact: The result can be malware installation, persistence, endpoint compromise, and in some cases a foothold for lateral movement or credential theft if the installer runs with elevated rights or accesses sensitive system resources.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

MITRE ATT&CK addresses the attack and risk surface, while CIS Controls v8 and NIST SP 800-53 Rev 5 set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
MITRE ATT&CK T1218 — System Binary Proxy Execution MSI abuse often leverages trusted Windows installers to execute payloads.
T1059 — Command and Scripting Interpreter MSI custom actions can invoke commands or scripts during installation.
Recommendation — Map installer abuse to trusted binary execution and hunt for suspicious msiexec child processes. Inspect installer logs and endpoint telemetry for script or shell execution spawned by MSI actions.
CIS Controls v8 CIS-10 — Malware Defenses Defending against malicious installers requires detecting and blocking weaponised packages.
Recommendation — Block unapproved installers and alert on suspicious MSI execution and payload extraction.
NIST SP 800-53 Rev 5 SI-3 — Malicious Code Protection Malicious MSI delivery is a malware ingress problem that needs preventive and detective controls.
CM-7 — Least Functionality Restricting install sources and execution paths reduces the ability to run unapproved MSI content.
Recommendation — Scan and restrict installer execution paths to prevent malicious code introduction. Allow only approved software installation paths and remove unnecessary install privileges.

Practitioner Guidance

What to verify: Confirm that MSI execution is restricted to approved sources and that your tooling can distinguish legitimate deployment from ad hoc package execution. If the package is not from a managed software channel, treat it as suspect until proven otherwise.

What to measure: Track how often installer activity is seen outside normal deployment windows or on endpoints that should not be receiving software changes. A rising count of unexpected MSI launches is often an early signal of abuse or policy drift.

Common mistake: Teams often watch only for obvious malware filenames and ignore installer behaviour. That misses the core issue, which is that the package format itself can be used to hide execution in plain sight.

Practitioner takeaway: Treat MSI files as a software trust decision, not a file-type decision, and base your response on source control, execution monitoring, and unexpected install behaviour rather than the installer label alone.