Msiexec.exe Loads a DLL and Calls DllUnregisterServer via /z

Alert when msiexec.exe runs with -z and a .dll on the command line, consistent with DLL DllUnregisterServer execution.

FreeReviewedSigma · Medium · v4
Product
windows
Category
process_creation
Author
frack113 (SigmaHQ), DRL 1.1
Published
2022-04-24
Updated
2026-10-21

ATT&CK techniques

Defense Evasion
  1. Recon

  2. Resource Dev

  3. Initial Access

  4. Execution

  5. Persistence

  6. Priv Esc

  7. Defense Evasion

  8. Cred Access

  9. Discovery

  10. Lateral Movement

  11. Collection

  12. C2

  13. Exfiltration

  14. Impact

What it detects

This rule identifies executions where msiexec.exe loads a DLL and the command-line indicates use of the /z option together with a .dll argument. It matters because invoking DLL entry-point style functionality through installer components can be used for stealthy code execution. The detection relies on Windows process creation telemetry, matching msiexec.exe in image/original filename and filtering on specific command-line patterns.

Related detections9 linkedT1218.007 — drag to rearrange
Suspicious Remote MSI Package Installation via msiexec (via process_creation)
Suspicious Remote MSI Installation over WebDAV (via process_creation)
Suspicious MSI Installation from Public Music Directory via Msiexec (via process_creation)
Suspicious Msiexec Installation of Remote MSI from WebDAV Share (via process_creation)
Suspicious msiexec Remote Passive Install Loader
Suspicious Silent MSI Installation of Non-Standard BIN Payload via Msiexec (via process_creation)
Suspicious Antivirus Uninstallation via msiexec (via process_creation)
Suspicious Screensaver File Executed as Installer via process_creation
Suspicious Remote MSI Installation from Amazon S3 via msiexec
Msiexec.exe Loads a DLL and Calls DllUnregisterServer via /z
Pivot detection · T1218.007 · 9 related

Changelog

v4
  1. v4
    Candidate ingested via manual entry.2026-10-21
  2. v1
    No changelog recorded for this version.2026-07-30

Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.