2019-12-19 23:56:36 +01:00
title : In-memory PowerShell
id : 092bc4b9-3d1d-43b4-a6b4-8c8acd83522f
2019-12-01 23:26:00 +01:00
status : experimental
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'
2020-05-23 10:56:23 -04:00
- '\powershell_ise.exe'
2019-12-01 23:26:00 +01:00
- '\WINDOWS\System32\sdiagnhost.exe'
2020-05-23 07:05:09 -04:00
# User: 'NT AUTHORITY\SYSTEM' # if set, matches all powershell processes not launched by SYSTEM
2019-12-01 23:26:00 +01:00
condition : selection and not filter
falsepositives :
- Used by some .NET binaries, minimal on user workstation.
level : high
enrichment :
- EN_0001_cache_sysmon_event_id_1_info # http://bit.ly/314zc6x
- EN_0003_enrich_other_sysmon_events_with_event_id_1_data # http://bit.ly/2ojW7fw