description:Detects loading of essential DLL used by PowerShell, but not by the process powershell.exe. Detects meterpreter's "load powershell" extension.
author:Tom Kern, oscd.community
date:2019/11/14
modified:2019/11/30
references:
- https://adsecurity.org/?p=2921
- https://github.com/p3nt4/PowerShdll
tags:
- attack.t1086
- attack.execution
logsource:
product:windows
service:sysmon
detection:
selection:
EventID:7
ImageLoaded|endswith:
- '\System.Management.Automation.Dll'
- '\System.Management.Automation.ni.Dll'
filter:
Image|endswith:
- '\powershell.exe'
- '\WINDOWS\System32\sdiagnhost.exe'
User:'NT AUTHORITY\SYSTEM'
condition:selection and not filter
falsepositives:
- Used by some .NET binaries, minimal on user workstation.