microsoft/retina

Support capturing/tracing unix domain sockets with kprobe ebpf

Open

#225 opened on Apr 4, 2024

View on GitHub
 (4 comments) (0 reactions) (0 assignees)Go (293 forks)auto 404
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

Contributor guide