Trace of the Times: Rootkit Detection through Temporal Anomalies in Kernel Activity
Max Landauer, Leonhard Alton, Martina Lindorfer, Florian Skopik, Markus Wurzenberger, Wolfgang Hotwagner
TL;DR
The paper tackles kernel rootkit detection by exploiting temporal anomalies in kernel activity. It proposes a semi-supervised framework that injects in-kernel probes (via eBPF) to measure fine-grained delta times between inner system-call functions, detecting shifts with quantile-based Mahalanobis testing. A custom rootkit (CARAXES) and open data sets demonstrate high offline accuracy (up to $F_1$ around $0.987$ for function-grouping) and competitive online performance, with limitations tied to varying system conditions. The work contributes an open-source kernel-tracing toolchain, publicly available rootkit data, and a practical detection approach that complements signatures and cross-view methods for real-time defense. Its significance lies in enabling runtime, low-overhead rootkit detection through detailed internal timing analysis and reproducible evaluation data.
Abstract
Kernel rootkits provide adversaries with permanent high-privileged access to compromised systems and are often a key element of sophisticated attack chains. At the same time, they enable stealthy operation and are thus difficult to detect. Thereby, they inject code into kernel functions to appear invisible to users, for example, by manipulating file enumerations. Existing detection approaches are insufficient, because they rely on signatures that are unable to detect novel rootkits or require domain knowledge about the rootkits to be detected. To overcome this challenge, our approach leverages the fact that runtimes of kernel functions targeted by rootkits increase when additional code is executed. The framework outlined in this paper injects probes into the kernel to measure time stamps of functions within relevant system calls, computes distributions of function execution times, and uses statistical tests to detect time shifts. The evaluation of our open-source implementation on publicly available data sets indicates high detection accuracy with an F1 score of 98.7\% across five scenarios with varying system states.
