Expand description
Library prevalence analysis for LD_PRELOAD rootkit detection.
Structs§
- Globally
Loaded Library - A shared library and how widely it is mapped across processes — the core signal for LD_PRELOAD-style rootkit detection: a malicious preload is injected into every process, so an unusually high prevalence is suspicious.
- Volatility
ElfEntry - One row of Volatility’s
linux.elfsoutput — a memory-mapped ELF image in a process, used as an alternative prevalence source to/proc/<pid>/maps.
Functions§
- find_
globally_ loaded_ from_ elfs - Prevalence ranking from
VolatilityElfEntryrows: each path’s fraction of distinct PIDs mapping it, filtered bythreshold. Returns(path, prevalence). - find_
globally_ loaded_ libraries - Rank shared objects by how many inspected processes map them, keeping only
.solibraries whose prevalence meetsthreshold— the LD_PRELOAD candidates. - parse_
linux_ elfs_ tsv - Parse Volatility
linux.elfsTSV output intoVolatilityElfEntryrows (skips the header and blank/comment lines; tolerant of short rows).