← Lab /Security & privacy

Static AV scans miss most Linux rootkits after trivial binary changes

Static, signature-based antivirus detection is unreliable for Linux rootkits, even when binaries are only trivially modified.

Security & privacy Elastic Security Labs 2 Apr 2026 Measurement Prototype evidence

Published as “Hooked on Linux: Rootkit Detection Engineering”

Why it matters

Static, file-based AV detection cannot be relied upon for Linux rootkits, so defenders must adopt runtime and behavioral monitoring.

Summary

The authors collected ten publicly available Linux rootkits and scanned the original binaries on VirusTotal, recording detections from 66 AV engines. They then stripped the binaries and added a single null byte to each, rescanning both variants. Stripping caused detection counts to drop sharply (e.g., Azazel from 36/66 to 19/66) and the null-byte modification also reduced detections (e.g., Azazel to 21/66). The experiment shows that even minimal, non-functional changes can defeat static signatures, leading the authors to recommend behavioral and runtime detection techniques instead.

What they found 2

  1. Stripping symbols from rootkit binaries dramatically reduces AV detections

    “As expected, stripping binaries generally resulted in a sharp drop in detection rates.”

  2. Appending a single null byte also significantly lowers detection counts

    “Even more telling is the impact of adding a single null byte: a modification that does not alter program logic, execution flow, or behavior, yet still significantly degrades detection for many samples.”

Caveats 5

  • Some rootkits (e.g., Bedevil) retained the same detection count after stripping because they are already stripped by default
  • A few samples still had non-zero detections after modification, indicating that not all AV engines rely solely on stripped metadata
  • Only ten rootkits were tested, all from public repositories and proof-of-concept code
  • Modifications were limited to stripping symbols and appending a null byte; more sophisticated obfuscation was not evaluated
  • VirusTotal results depend on the set of AV engines present at the time of testing and may change

What’s new here 4

  • Quantitative measurement of static AV detection fragility on a set of Linux rootkits
  • Detection rules for user-space shared-object loading via LD_PRELOAD and ld.so.preload
  • Auditd rules to monitor kernel module loading (init_module/finit_module) and kill-signal abuse
  • Guidance for detecting eBPF and io_uring based rootkits through syscall tracing