Detection rules › Sigma
PowerShell Core DLL Loaded By Non PowerShell Process
Detects loading of essential DLLs used by PowerShell by non-PowerShell process. Detects behavior similar to meterpreter's "load powershell" extension.
MITRE ATT&CK coverage
| Tactic | Techniques |
|---|---|
| Execution | T1059.001 Command and Scripting Interpreter: PowerShell |
Event coverage
| Provider | Event ID | Title |
|---|---|---|
| Sysmon | 7 | Image loaded |
Stages and Predicates
Stage 1: selection
or:
Description: System.Management.Automation
ImageLoaded|endswith: '\System.Management.Automation.dll'
ImageLoaded|endswith: '\System.Management.Automation.ni.dll'
OriginalFileName: System.Management.Automation.dll
Stage 2: not 1 of filter_main_*
or:
or:
Image|contains: 'C:\Program Files\WindowsApps\Microsoft.PowerShellPreview'
Image|contains: '\AppData\Local\Microsoft\WindowsApps\Microsoft.PowerShellPreview'
Image|endswith: '\pwsh.exe'
or:
Image|startswith: 'C:\Windows\Microsoft.NET\Framework64\'
Image|startswith: 'C:\Windows\Microsoft.NET\FrameworkArm64\'
Image|startswith: 'C:\Windows\Microsoft.NET\FrameworkArm\'
Image|startswith: 'C:\Windows\Microsoft.NET\Framework\'
Image|endswith: '\mscorsvw.exe'
Image: 'C:\Program Files\PowerShell\7-preview\pwsh.exe'
Image: 'C:\Program Files\PowerShell\7\pwsh.exe'
Image: 'C:\WINDOWS\System32\RemoteFXvGPUDisablement.exe'
Image: 'C:\WINDOWS\System32\sdiagnhost.exe'
Image: 'C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe'
Image: 'C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell_ise.exe'
Image: 'C:\Windows\SysWOW64\winrshost.exe'
Image: 'C:\Windows\SysWOW64\wsmprovhost.exe'
Image: 'C:\Windows\System32\ServerManager.exe'
Image: 'C:\Windows\System32\SyncAppvPublishingServer.exe'
Image: 'C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe'
Image: 'C:\Windows\System32\WindowsPowerShell\v1.0\powershell_ise.exe'
Image: 'C:\Windows\System32\dsac.exe'
Image: 'C:\Windows\System32\runscripthelper.exe'
Image: 'C:\Windows\System32\winrshost.exe'
Image: 'C:\Windows\System32\wsmprovhost.exe'
Stage 3: not 1 of filter_optional_*
or:
or:
Image|endswith: '\thor.exe'
Image|endswith: '\thor64.exe'
Image|startswith: 'C:\Windows\Temp\asgard2-agent\'
or:
Image|startswith: 'C:\Program Files (x86)\Microsoft SQL Server Management Studio'
Image|startswith: 'C:\Program Files\Microsoft SQL Server Management Studio'
Image|endswith: '\IDE\Ssms.exe'
or:
Image|startswith: 'C:\Program Files (x86)\Microsoft SQL Server\'
Image|startswith: 'C:\Program Files\Microsoft SQL Server\'
Image|endswith: '\Tools\Binn\SQLPS.exe'
Image|endswith: '\Citrix\ConfigSync\ConfigSyncRun.exe'
Image: null
Image|startswith: 'C:\Program Files (x86)\Microsoft Visual Studio\'
Image|startswith: 'C:\Program Files\Microsoft Visual Studio\'
Image|startswith: 'C:\ProgramData\chocolatey\choco.exe'
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 |
|---|---|---|
Description | eq |
|
Image | ends_with |
|
Image | eq |
|
Image | match |
|
Image | starts_with |
|
ImageLoaded | ends_with |
|
OriginalFileName | eq |
|