Files
mandiant-capa-rules/host-interaction/process/inject/inject-shellcode-using-window-subclass-procedure.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

33 lines
1.1 KiB
YAML

rule:
meta:
name: inject shellcode using window subclass procedure
namespace: host-interaction/process/inject
authors:
- jakub.jozwiak@mandiant.com
scopes:
static: function
dynamic: span of calls
att&ck:
- Defense Evasion::Process Injection [T1055]
mbc:
- Defense Evasion::Process Injection [E1055]
references:
- https://www.hexacorn.com/blog/2017/10/26/propagate-a-new-code-injection-trick/
- https://modexp.wordpress.com/2018/08/23/process-injection-propagate/
- https://github.com/Fahersto/code_injection/blob/master/shellcode_injection/propagate_injection.cpp
examples:
- 6c440a5ce8509984dcc4e703d0e4dd9bffc4efd769dc8543f8d2e0cd86452822:0x25D7F1425
features:
- and:
- match: find graphical window
- match: open process
- match: write process memory
- api: user32.SetProp
- or:
- api: PostMessage
- api: SendNotifyMessage
- string: "UxSubclassInfo"
- or:
- string: "ToolbarWindow32"
- string: "SHELLDLL_DefView"