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>
23 lines
785 B
YAML
23 lines
785 B
YAML
rule:
|
|
meta:
|
|
name: execute shellcode via Windows fibers
|
|
namespace: load-code/shellcode
|
|
authors:
|
|
- jakub.jozwiak@mandiant.com
|
|
scopes:
|
|
static: function
|
|
dynamic: span of calls
|
|
mbc:
|
|
- Defense Evasion::Process Injection::Injection via Windows Fibers [E1055.m05]
|
|
references:
|
|
- https://www.ired.team/offensive-security/code-injection-process-injection/executing-shellcode-with-createfiber
|
|
- https://github.com/S4R1N/AlternativeShellcodeExec/blob/master/FiberContextEdit/Source.cpp
|
|
examples:
|
|
- f03bdb9fa52f7b61ef03141fefff1498ad2612740b1fdbf6941f1c5af5eee70a:0x4026E0
|
|
features:
|
|
- and:
|
|
- match: allocate or change RWX memory
|
|
- api: ConvertThreadToFiber
|
|
- api: CreateFiber
|
|
- api: SwitchToFiber
|