mirror of
https://github.com/mandiant/capa-rules.git
synced 2026-10-12 02:18:39 +00:00
34 lines
1012 B
YAML
34 lines
1012 B
YAML
rule:
|
|
meta:
|
|
name: get process heap flags
|
|
namespace: host-interaction/process
|
|
authors:
|
|
- [email protected]
|
|
scopes:
|
|
static: basic block
|
|
dynamic: unsupported
|
|
att&ck:
|
|
- Discovery::Process Discovery [T1057]
|
|
references:
|
|
- https://github.com/LordNoteworthy/al-khaser/blob/bed03d2f849d9060c68f8d5905bd204d0cb3f593/al-khaser/AntiDebug/ProcessHeap_Flags.cpp#L13
|
|
examples:
|
|
- al-khaser_x86.exe_:0x425470
|
|
features:
|
|
- and:
|
|
- or:
|
|
- match: PEB access
|
|
- api: GetProcessHeap
|
|
- or:
|
|
- and:
|
|
- arch: i386
|
|
- offset: 0x18 = PEB->ProcessHeap
|
|
- or:
|
|
- offset: 0x40 = ProcessHeap->HeapFlags >= Vista
|
|
- offset: 0xC = ProcessHeap->HeapFlags < Vista
|
|
- and:
|
|
- arch: amd64
|
|
- offset: 0x30 = PEB->ProcessHeap
|
|
- or:
|
|
- offset: 0x70 = ProcessHeap->HeapFlags >= Vista
|
|
- offset: 0x14 = ProcessHeap->HeapFlags < Vista
|