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>
This commit is contained in:
Willi Ballenthin 2025-01-29 02:27:13 -07:00 committed by GitHub
parent b4e0c8cdf8
commit c1d20764ad
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
364 changed files with 438 additions and 410 deletions

View file

@ -6,7 +6,7 @@ rule:
- jakub.jozwiak@mandiant.com
scopes:
static: function
dynamic: thread
dynamic: span of calls
references:
- https://github.com/S4R1N/AlternativeShellcodeExec/blob/master/CopyFile2/CopyFile2.cpp
examples:

View file

@ -6,7 +6,7 @@ rule:
- jakub.jozwiak@mandiant.com
scopes:
static: function
dynamic: thread
dynamic: span of calls
references:
- https://github.com/S4R1N/AlternativeShellcodeExec/blob/master/CreateThreadPoolWait/CreateThreadPoolWait.cpp
examples:

View file

@ -9,7 +9,7 @@ rule:
description: Detect usage of various WinAPI functions that accept callback functions as parameters in order to execute arbitrary shellcode
scopes:
static: function
dynamic: thread
dynamic: span of calls
att&ck:
- Defense Evasion::Reflective Code Loading [T1620]
mbc:

View file

@ -6,7 +6,7 @@ rule:
- jakub.jozwiak@mandiant.com
scopes:
static: function
dynamic: thread
dynamic: span of calls
mbc:
- Defense Evasion::Process Injection::Injection via Windows Fibers [E1055.m05]
references:

View file

@ -6,7 +6,7 @@ rule:
- moritz.raabe@mandiant.com
scopes:
static: function
dynamic: thread
dynamic: span of calls
mbc:
- Memory::Allocate Memory [C0007]
- Process::Create Thread [C0038]