# MSIEXEC

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). Msiexec.exe is 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 is signed and native on Windows systems, msiexec.exe can be used to bypass application control solutions that do not account for its potential abuse.

**Example**

In the following Demo a simple MSI payload (DLL) was created and used MSIexec for execution will see the flow of execution by using Process Explorer. MSIexec is capable of running dll payloads for the DLLRegisterServer parameter available in the utility\[ **/z & /y**].

![](/files/-MRkYC8kznzby6NbXgNc)

**DEMO-MSIEXEC:**

![](/files/-MRkYHv0kJZa0AYGcfoF)

References:

<https://lolbas-project.github.io/lolbas/Binaries/Msiexec/>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://dmcxblue.gitbook.io/red-team-notes-2-0/red-team-techniques/defense-evasion/t1218-signed-binary-proxy-execution/untitled-5.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
