Skip to content

Conversation

@maheshbhatiya73
Copy link
Member

  • Implemented Rust-based eBPF probe to track shell start (bash/sh/zsh) via kprobe on do_execveat_common
  • Added tracepoint handler for sched_process_exit to calculate session duration
  • Used aya-bpf's ring buffer (bpf_ringbuf_output) to send SshSessionEvent structs
  • Created Go agent to load ssh_session_monitor.o, attach kprobe and tracepoint
  • Go agent reads from ringbuf, parses event, and prints PID, UID, command, start time, and session duration

… ringbuf

- Implemented Rust-based eBPF probe to track shell start (bash/sh/zsh) via kprobe on do_execveat_common
- Added tracepoint handler for sched_process_exit to calculate session duration
- Used aya-bpf's ring buffer (bpf_ringbuf_output) to send SshSessionEvent structs
- Created Go agent to load ssh_session_monitor.o, attach kprobe and tracepoint
- Go agent reads from ringbuf, parses event, and prints PID, UID, command, start time, and session duration
@maheshbhatiya73 maheshbhatiya73 merged commit 9c1f17b into main Jul 11, 2025
1 check passed
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