Skip to main content

Module unix_sockets

Module unix_sockets 

Source
Expand description

Linux Unix domain socket walker.

Enumerates Unix domain sockets from kernel memory by walking the unix_socket_table hash table of unix_sock structures. Unix sockets are used for local IPC and can reveal hidden communication channels between processes. Malware uses abstract Unix sockets (names starting with \0) for covert C2 channels. Equivalent to Volatility’s linux.sockstat for AF_UNIX.

Re-exports§

pub use crate::heuristics::classify_unix_socket;

Structs§

UnixSocketInfo
Information about a Unix domain socket extracted from kernel memory.

Functions§

socket_type_name
Map a kernel sk_type value to a human-readable socket type name.
walk_unix_sockets
Walk Unix domain sockets from kernel memory.