Rundll32 Execution With Uncommon DLL Extension

Detects the execution of rundll32 with a command line that doesn't contain a common extension

Sigma rule (View on GitHub)

 1title: Rundll32 Execution With Uncommon DLL Extension
 2id: c3a99af4-35a9-4668-879e-c09aeb4f2bdf
 3status: experimental
 4description: Detects the execution of rundll32 with a command line that doesn't contain a common extension
 5references:
 6    - https://twitter.com/mrd0x/status/1481630810495139841?s=12
 7author: Tim Shelton, Florian Roth (Nextron Systems), Yassine Oukessou
 8date: 2022/01/13
 9modified: 2024/02/09
10tags:
11    - attack.defense_evasion
12    - attack.t1218.011
13logsource:
14    category: process_creation
15    product: windows
16detection:
17    selection:
18        - Image|endswith: '\rundll32.exe'
19        - OriginalFileName: 'RUNDLL32.EXE'
20    filter_main_null:
21        CommandLine: null
22    filter_main_empty:
23        CommandLine: ''
24    filter_main_known_extension:
25        - CommandLine|contains:
26              # Note: This aims to cover: single and double quotes in addition to spaces and comma "," usage.
27              - '.cpl '
28              - '.cpl,'
29              - '.cpl"'
30              - ".cpl'"
31              - '.dll '
32              - '.dll,'
33              - '.dll"'
34              - ".dll'"
35              - '.inf '
36              - '.inf,'
37              - '.inf"'
38              - ".inf'"
39        - CommandLine|endswith:
40              # Note: This aims to cover: single and double quotes in addition to spaces and comma "," usage.
41              - '.cpl'
42              - '.dll'
43              - '.inf'
44    filter_main_localserver:
45        CommandLine|contains: ' -localserver '
46    filter_main_zzzzInvokeManagedCustomActionOutOfProc:
47        ParentImage|endswith: '\msiexec.exe'
48        CommandLine|contains|all:
49            - ':\Windows\Installer\'
50            - '.tmp'
51            - 'zzzzInvokeManagedCustomActionOutOfProc'
52    condition: selection and not 1 of filter_main_*
53falsepositives:
54    - Unknown
55level: medium

References

Related rules

to-top