Skip to content

feat: add device-observe tool - #132

Open
qxp930712 wants to merge 2 commits into
DKapture:mainfrom
qxp930712:main
Open

feat: add device-observe tool#132
qxp930712 wants to merge 2 commits into
DKapture:mainfrom
qxp930712:main

Conversation

@qxp930712

Copy link
Copy Markdown

No description provided.

Monitor and control LD_PRELOAD usage via eBPF:
- execve/execveat tracepoints capture LD_PRELOAD from envp and stage the value in a pending LRU map keyed by tgid
- kprobe/begin_new_exec confirms successful exec and emits [DETECT]
- lsm/mmap_file guard returns -EPERM for unlisted preload libraries in enforce mode, aborting process startup
- whitelists keyed by inode (dev+ino) and uid, loaded from policy file (so=/uid=) or auto-collected system libraries
- ringbuf audit events ([DETECT]/[BLOCK]) consumed by the userspace daemon
- add demo/preload-guard suite covering baseline/monitor/enforce/allow cases
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants