Msiexec Quiet Installation

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: Msiexec Quiet Installation
 2id: 79a87aa6-e4bd-42fc-a5bb-5e6fbdcd62f5
 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://docs.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/1583914244344799235
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_img:
22        - Image|endswith: '\msiexec.exe'
23        - OriginalFileName: 'msiexec.exe'
24    selection_cli:
25        # Note that there is no space before and after the arguments because it's possible to write a commandline as such
26        # Example: msiexec -q/i [MSI Package]
27        CommandLine|contains|windash:
28            - '-i'
29            - '-package'
30            - '-a'
31            - '-j'
32    selection_quiet:
33        CommandLine|contains|windash: '-q'
34    filter_user_temp:
35        # The %temp% is a very common location for installers
36        ParentImage|startswith: 'C:\Users\'
37        ParentImage|contains: '\AppData\Local\Temp\'
38    filter_system_temp:
39        ParentImage|startswith: 'C:\Windows\Temp\'
40    filter_ccm:
41        ParentImage: 'C:\Windows\CCM\Ccm32BitLauncher.exe'
42        IntegrityLevel: 'System'
43    condition: all of selection_* and not 1 of filter_*
44falsepositives:
45    - WindowsApps installing updates via the quiet flag
46level: medium

References

Related rules

to-top