microsoft/retina
View on GitHubSupport capturing/tracing unix domain sockets with kprobe ebpf
Open
#225 opened on Apr 4, 2024
area/ebpfarea/pluginshelp wantedpriority/1type/enhancement
Repository metrics
- Stars
- (3,161 stars)
- PR merge metrics
- (PR metrics pending)
Description
Today Retina only watches for events from either tc prog or some drop reason kprobes, Retina should be watching for events of unix domain socket as well. This will need additional work to understand how to distinguish src and dest pod/container/process.
For starters, attaching to below kprobes:
kprobe/unix_stream_sendmsg
kprobe/unix_dgram_sendmsg
fentry/unix_stream_sendmsg
fentry/unix_dgram_sendmsg
Example: https://github.com/Asphaltt/sockdump