2019-02-11 13:02:33 +01:00
|
|
|
title: Suspicious PowerShell Keywords
|
2019-11-12 23:12:27 +01:00
|
|
|
id: 1f49f2ab-26bc-48b3-96cc-dcffbc93eadf
|
2019-02-11 13:02:33 +01:00
|
|
|
status: experimental
|
|
|
|
|
description: Detects keywords that could indicate the use of some PowerShell exploitation framework
|
|
|
|
|
date: 2019/02/11
|
2021-10-16 08:18:49 +02:00
|
|
|
modified: 2021/10/16
|
2019-10-28 22:14:14 -07:00
|
|
|
author: Florian Roth, Perez Diego (@darkquassar)
|
2019-02-11 13:02:33 +01:00
|
|
|
references:
|
|
|
|
|
- https://posts.specterops.io/entering-a-covenant-net-command-and-control-e11038bcf462
|
2019-10-28 22:14:14 -07:00
|
|
|
- https://github.com/PowerShellMafia/PowerSploit/blob/master/CodeExecution/Invoke-ReflectivePEInjection.ps1
|
|
|
|
|
- https://github.com/hlldz/Invoke-Phant0m/blob/master/Invoke-Phant0m.ps1
|
2021-06-10 09:41:55 +02:00
|
|
|
- https://gist.github.com/MHaggis/0dbe00ad401daa7137c81c99c268cfb7
|
2019-02-11 13:02:33 +01:00
|
|
|
tags:
|
|
|
|
|
- attack.execution
|
2020-06-16 14:46:08 -06:00
|
|
|
- attack.t1059.001
|
2020-08-24 00:01:50 +00:00
|
|
|
- attack.t1086 #an old one
|
2019-02-11 13:02:33 +01:00
|
|
|
logsource:
|
|
|
|
|
product: windows
|
2021-10-16 08:18:49 +02:00
|
|
|
category: ps_script
|
2021-08-30 19:49:44 +02:00
|
|
|
definition: Script block logging must be enabled for 4104
|
2019-02-11 13:02:33 +01:00
|
|
|
detection:
|
2021-08-30 19:49:44 +02:00
|
|
|
framework:
|
|
|
|
|
ScriptBlockText|contains:
|
|
|
|
|
- "System.Reflection.Assembly.Load($"
|
|
|
|
|
- "[System.Reflection.Assembly]::Load($"
|
|
|
|
|
- "[Reflection.Assembly]::Load($"
|
|
|
|
|
- "System.Reflection.AssemblyName"
|
|
|
|
|
- "Reflection.Emit.AssemblyBuilderAccess"
|
|
|
|
|
- "Runtime.InteropServices.DllImportAttribute"
|
|
|
|
|
- "SuspendThread"
|
|
|
|
|
- "rundll32"
|
|
|
|
|
# - "FromBase64"
|
|
|
|
|
- "Invoke-WMIMethod"
|
|
|
|
|
- "http://127.0.0.1"
|
|
|
|
|
condition: framework
|
2019-02-11 13:02:33 +01:00
|
|
|
falsepositives:
|
|
|
|
|
- Penetration tests
|
|
|
|
|
level: high
|