Detection rules › Sigma
Potential PowerShell Execution Via DLL
Detects potential PowerShell execution from a DLL instead of the usual PowerShell process as seen used in PowerShdll. This detection assumes that PowerShell commands are passed via the CommandLine.
MITRE ATT&CK coverage
| Tactic | Techniques |
|---|---|
| Defense Evasion | T1218.011 System Binary Proxy Execution: Rundll32 |
Event coverage
| Provider | Event ID | Title |
|---|---|---|
| Sysmon | 1 | Process creation |
Stages and Predicates
Stage 1: all of selection_img
or:
Image|endswith: '\InstallUtil.exe'
Image|endswith: '\RegAsm.exe'
Image|endswith: '\RegSvcs.exe'
Image|endswith: '\regsvr32.exe'
Image|endswith: '\rundll32.exe'
OriginalFileName: InstallUtil.exe
OriginalFileName: REGSVR32.EXE
OriginalFileName: RUNDLL32.EXE
OriginalFileName: RegAsm.exe
OriginalFileName: RegSvcs.exe
Stage 2: all of selection_cli
or:
CommandLine|contains: Default.GetString
CommandLine|contains: DownloadString
CommandLine|contains: FromBase64String
CommandLine|contains: 'ICM '
CommandLine|contains: 'IEX '
CommandLine|contains: Invoke-Command
CommandLine|contains: Invoke-Expression
Indicators
Each row is a field, operator, and value that the rule matches. The corpus column counts how many other rules in the catalog look for the same combination: high numbers point to widely-used, community-vetted indicators. Blank or 1 shows that the indicator is specific to this rule.
| Field | Kind | Values |
|---|---|---|
CommandLine | match |
|
Image | ends_with |
|
OriginalFileName | eq |
|