Files
mandiant-capa-rules/host-interaction/process/inject/inject-shellcode-using-extra-window-memory.yml
Willi Ballenthin c1d20764ad use "span of calls" scope (#973)
* 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>
2025-01-29 10:27:13 +01:00

30 lines
926 B
YAML

rule:
meta:
name: inject shellcode using extra window memory
namespace: host-interaction/process/inject
authors:
- jakub.jozwiak@mandiant.com
scopes:
static: function
dynamic: span of calls
att&ck:
- Defense Evasion::Process Injection::Extra Window Memory Injection [T1055.011]
mbc:
- Defense Evasion::Process Injection [E1055]
references:
- https://unprotect.it/technique/extra-window-memory-injection/
- https://github.com/SafeBreach-Labs/pinjectra/blob/master/Pinjector/SetWindowLongPtrA.cpp
examples:
- 592cfd22bba96ef3aab566fe7bf82aff5e1b4130856d1f7f847d03d4689af7e7:0x1400010C0
features:
- and:
- match: find taskbar
- match: open process
- match: write process memory
- or:
- api: SetWindowLong
- api: SetWindowLongPtr
- or:
- api: PostMessage
- api: SendNotifyMessage