Skip to content

Commit

Permalink
make runtime linking rules more concise
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-hunhoff committed Jan 16, 2025
1 parent 1f4c7a4 commit 52b9f09
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 19 deletions.
18 changes: 3 additions & 15 deletions linking/runtime-linking/link-many-functions-at-runtime.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,12 @@ rule:
- joakim@intezer.com
scopes:
static: function
dynamic: sequence
dynamic: thread
att&ck:
- Execution::Shared Modules [T1129]
examples:
- b7b5e1253710d8927cbe07d52d2d2e10:0x401000
features:
- or:
- and:
- os: windows
- match: link function at runtime on Windows
- or:
- count(api(kernel32.GetProcAddress)): 5 or more
- count(api(ntdll.LdrGetProcedureAddress)): 5 or more
- and:
- or:
- os: linux
- os: android
- match: link function at runtime on Linux
- or:
- count(api(dlsym)): 5 or more
- count(api(dlvsym)): 5 or more
- count(match(link function at runtime on Windows)): 5 or more
- count(match(link function at runtime on Linux)): 5 or more
5 changes: 1 addition & 4 deletions nursery/link-function-at-runtime-on-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,14 @@ rule:
- joakim@intezer.com
scopes:
static: function
dynamic: sequence
dynamic: call
att&ck:
- Execution::Shared Modules [T1129]
features:
- and:
- or:
- os: linux
- os: android
- or:
- api: dlopen
- api: dlmopen
- or:
- api: dlsym
- api: dlvsym

0 comments on commit 52b9f09

Please sign in to comment.