DllUnregisterServer Function Call Via Msiexec.EXE

 Original Source: [Sigma source]
Title: DllUnregisterServer Function Call Via Msiexec.EXE
Status: test
Description:Detects MsiExec loading a DLL and calling its DllUnregisterServer function
References:
  -https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1218.007/T1218.007.md
  -https://lolbas-project.github.io/lolbas/Binaries/Msiexec/
  -https://twitter.com/_st0pp3r_/status/1583914515996897281
Author: frack113
Date: 2022-04-24
modified:2026-10-31
Tags:
  • -'attack.stealth'
  • -'attack.t1218.007'
Logsource:
  • product: windows
  • category: process_creation
Detection:
  selection_img:
Image|endswith:'\msiexec.exe' OriginalFileName:'msiexec.exe'   selection_cli:
    CommandLine|contains|windash: ' -z '
    CommandLine|contains: '.dll'
  filter_optional_msihandler:
    CommandLine|endswith: '\MsiExec.exe" /Z "C:\Windows\CCM\MsiHandler.dll"'
  condition:all of selection_* and not 1 of filter_optional_*
Falsepositives:
  -Unknown
Level: medium