DllUnregisterServer Function Call Via Msiexec.EXE

Detects MsiExec loading a DLL and calling its DllUnregisterServer function

Sigma rule (View on GitHub)

 1title: DllUnregisterServer Function Call Via Msiexec.EXE
 2id: 84f52741-8834-4a8c-a413-2eb2269aa6c8
 3status: test
 4description: Detects MsiExec loading a DLL and calling its DllUnregisterServer function
 5references:
 6    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1218.007/T1218.007.md
 7    - https://lolbas-project.github.io/lolbas/Binaries/Msiexec/
 8    - https://twitter.com/_st0pp3r_/status/1583914515996897281
 9author: frack113
10date: 2022-04-24
11modified: 2026-10-19
12tags:
13    - attack.stealth
14    - attack.t1218.007
15logsource:
16    product: windows
17    category: process_creation
18detection:
19    selection_img:
20        - Image|endswith: '\msiexec.exe'
21        - OriginalFileName: '\msiexec.exe'
22    selection_cli:
23        CommandLine|contains|windash: ' -z '
24        CommandLine|contains: '.dll'
25    filter_optional_msihandler:
26        CommandLine|endswith: '\MsiExec.exe" /Z "C:\Windows\CCM\MsiHandler.dll"'
27    condition: all of selection_* and not 1 of filter_optional_*
28falsepositives:
29    - Unknown
30level: medium
31regression_tests_path: regression_data/rules/windows/process_creation/proc_creation_win_msiexec_dll/info.yml

References

Related rules

to-top