Suspicious Msiexec Execute Arbitrary DLL
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)
Sigma rule (View on GitHub)
1title: Suspicious Msiexec Execute Arbitrary DLL
2id: 6f4191bb-912b-48a8-9ce7-682769541e6d
3status: test
4description: |
5 Adversaries may abuse msiexec.exe to proxy execution of malicious payloads.
6 Msiexec.exe is the command-line utility for the Windows Installer and is thus commonly associated with executing installation packages (.msi)
7references:
8 - https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/msiexec
9 - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1218.007/T1218.007.md
10 - https://twitter.com/_st0pp3r_/status/1583914515996897281
11author: frack113
12date: 2022-01-16
13modified: 2024-03-13
14tags:
15 - attack.defense-evasion
16 - attack.t1218.007
17logsource:
18 category: process_creation
19 product: windows
20detection:
21 selection:
22 Image|endswith: '\msiexec.exe'
23 CommandLine|contains|windash: ' -y'
24 filter_apple:
25 CommandLine|contains:
26 - '\MsiExec.exe" /Y "C:\Program Files\Bonjour\mdnsNSP.dll'
27 - '\MsiExec.exe" /Y "C:\Program Files (x86)\Bonjour\mdnsNSP.dll'
28 - '\MsiExec.exe" /Y "C:\Program Files (x86)\Apple Software Update\ScriptingObjectModel.dll'
29 - '\MsiExec.exe" /Y "C:\Program Files (x86)\Apple Software Update\SoftwareUpdateAdmin.dll'
30 - '\MsiExec.exe" /Y "C:\Windows\CCM\'
31 - '\MsiExec.exe" /Y C:\Windows\CCM\' # also need non-quoted execution
32 - '\MsiExec.exe" -Y "C:\Program Files\Bonjour\mdnsNSP.dll'
33 - '\MsiExec.exe" -Y "C:\Program Files (x86)\Bonjour\mdnsNSP.dll'
34 - '\MsiExec.exe" -Y "C:\Program Files (x86)\Apple Software Update\ScriptingObjectModel.dll'
35 - '\MsiExec.exe" -Y "C:\Program Files (x86)\Apple Software Update\SoftwareUpdateAdmin.dll'
36 - '\MsiExec.exe" -Y "C:\Windows\CCM\'
37 - '\MsiExec.exe" -Y C:\Windows\CCM\' # also need non-quoted execution
38 condition: selection and not 1 of filter_*
39falsepositives:
40 - Legitimate script
41level: medium
References
Related rules
- DllUnregisterServer Function Call Via Msiexec.EXE
- MSI Installation From Web
- MsiExec Web Install
- PowerShell WMI Win32_Product Install MSI
- Suspicious MsiExec Embedding Parent