Files
mandiant-capa-rules/load-code/powershell/run-powershell-expression.yml
T
Yacine Elhamer 0aea484e04 updated rules
2023-08-21 19:14:45 +02:00

27 lines
802 B
YAML

rule:
meta:
name: run PowerShell expression
namespace: load-code/powershell/
authors:
- anamaria.martinezgom@mandiant.com
scopes:
static: function
dynamic: process
att&ck:
- Execution::Command and Scripting Interpreter::PowerShell [T1059.001]
mbc:
- Execution::Command and Scripting Interpreter [E1059]
examples:
- 692f7fd6d198e804d6af98eb9e390d61:0x6000004
features:
- and:
- or:
- string: / iex\(/i
- string: / iex /i
- string: /Invoke-Expression/i
- api: System.Management.Automation.PowerShell::Create
- api: System.Management.Automation.PowerShell::AddScript
- api: System.Management.Automation.PowerShell::Invoke
- optional:
- substring: "powershell.exe "