In-Depth Study Of Linux Rootkits: Evolution, Detection, And Defense
Where
Talks
hack.lu 2024
Duration
29 min
Surveys Linux rootkit techniques from LD_PRELOAD hooks to eBPF and shows how responders can spot them.
Summary
The talk starts from an incident responder's concern: whether standard live-forensics tools can be trusted on a Linux host that may already be compromised. The speaker argues that rootkit techniques dating back more than twenty years are still in use, and that recent threat reports keep describing both user-space and kernel-space tampering.
The middle section walks through the main approaches. It covers user-space hooking through the dynamic loader, including LD_PRELOAD and loader tampering, with a demonstration in which a preloaded library alters the output of a simple text-printing command. It then moves to kernel-level methods such as loadable kernel modules, ftrace and kprobe hooks, system call table modification and eBPF programs. For each, the speaker points to artifacts worth checking, including preload configuration files, process environment variables, differences between /proc enumeration and direct lookups, lists of hooked kernel functions and kernel taint messages.
The closing part makes the case for layered checks. Statically linked binaries and alternate tools can expose discrepancies, memory snapshots analysed with Volatility can reveal kernel-level hooks, and a runtime kernel guard module was reported to detect most of the tested kernel rootkits when loaded before them. The main takeaway is that responders should compare results across independent tools and learn what a normal system looks like before trusting any single output.
Related talks
Talks·36 min
Jon Wade
Walks through an initial Linux incident response triage of a SystemdMiner sample using open-source logging tools.
Talks·28 min
Stephan Berger
Shows how forensic artifacts still expose attackers who try to erase their traces on Windows and Linux.
Breaking Ground·45 min
Matt Muir
Dissects two cloud malware families that use time stomping and renamed binaries to evade forensics and detection.


