pub struct GloballyLoadedLibrary {
pub path: String,
pub present_in_pid_count: usize,
pub total_pids_checked: usize,
pub prevalence: f64,
pub elf_report: Option<ElfCapabilityReport>,
}Expand description
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.
Fields§
§path: StringFilesystem path of the shared object (e.g. /usr/lib/evil.so).
present_in_pid_count: usizeNumber of inspected PIDs that have this library mapped.
total_pids_checked: usizeTotal number of PIDs inspected (the prevalence denominator).
prevalence: f64Fraction of inspected processes mapping this library, in [0.0, 1.0].
elf_report: Option<ElfCapabilityReport>Optional ELF capability analysis of the library, when available.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GloballyLoadedLibrary
impl RefUnwindSafe for GloballyLoadedLibrary
impl Send for GloballyLoadedLibrary
impl Sync for GloballyLoadedLibrary
impl Unpin for GloballyLoadedLibrary
impl UnsafeUnpin for GloballyLoadedLibrary
impl UnwindSafe for GloballyLoadedLibrary
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more