mirror of
https://github.com/mandiant/capa-rules
synced 2026-06-08 15:41:20 +00:00
c1d20764ad
* use sequence scope instead of thread scope for "static: function" rules * use sequence scope instead of thread scope for "static: basic block" rules * make runtime linking rules more concise * doc: describe sequence scope * rename "sequence" scope to "span of calls" scope * Update anti-analysis/anti-av/check-for-sandbox-and-av-modules.yml Co-authored-by: Mike Hunhoff <mike.hunhoff@gmail.com> * Update anti-analysis/anti-vm/vm-detection/check-for-windows-sandbox-via-device.yml Co-authored-by: Mike Hunhoff <mike.hunhoff@gmail.com> * Update collection/get-geographical-location.yml Co-authored-by: Mike Hunhoff <mike.hunhoff@gmail.com> * Update collection/file-managers/gather-classicftp-information.yml Co-authored-by: Mike Hunhoff <mike.hunhoff@gmail.com> * Update collection/database/wmi/reference-wmi-statements.yml Co-authored-by: Mike Hunhoff <mike.hunhoff@gmail.com> * Update collection/database/sql/reference-sql-statements.yml Co-authored-by: Mike Hunhoff <mike.hunhoff@gmail.com> --------- Co-authored-by: Mike Hunhoff <mike.hunhoff@gmail.com>
27 lines
808 B
YAML
27 lines
808 B
YAML
rule:
|
|
meta:
|
|
name: run PowerShell expression
|
|
namespace: load-code/powershell/
|
|
authors:
|
|
- anamaria.martinezgom@mandiant.com
|
|
scopes:
|
|
static: function
|
|
dynamic: span of calls
|
|
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 "
|