Files
capa-rules/nursery/hook-routines-via-dlsym-rtld_next.yml
Willi Ballenthin 1c6168d3f0 add new linux rules to nursery (#870)
* add new linux rules to nursery

* file file name

* Update nursery/get-current-process-command-line.yml

* Update nursery/get-current-process-file-path.yml

* Update nursery/hook-routines-via-dlsym-rtld_next.yml
2024-01-11 15:20:02 +01:00

23 lines
631 B
YAML

rule:
meta:
name: hook routines via dlsym RTLD_NEXT
namespace: linking/hooking
authors:
- [email protected]
scopes:
static: basic block
dynamic: call
references:
- https://stackoverflow.com/questions/71695007/hook-library-function-using-custom-method-using-dlsym
- https://liveoverflow.com/hooking-on-linux-with-ld_preload-pwn-adventure-3/
features:
- and:
- api: dlsym
- or:
- and:
- arch: i386
- number: 0xFFFFFFFF = RTLD_NEXT
- and:
- arch: amd64
- number: 0xFFFFFFFFFFFFFFFF = RTLD_NEXT