Drootkit: Kernel-Level Rootkit Detection and Recovery Based on eBPF
- 30 September 2023
- journal article
- research article
- Published by World Scientific Pub Co Pte Ltd in Journal of Circuits, Systems and Computers
- Vol. 33 (04)
Abstract
The concealment of rootkits makes them a significant security threat. Kernel-level rootkits can be extremely dangerous as they have high system privileges. A typical type of kernel-level rootkits is to hook system calls which are essential for overall system functionality. This paper presents drootkit, a tool to detect kernel-level rootkits that hook system calls. Additionally, drootkit can recover damaged systems. This tool utilizes eBPF technology, ensuring both flexibility and security. When installing new kernel modules, the virtual address range of the initial kernel code will not be affected. In light of this, drootkit conducts bounds checking on all system calls within the system. In the case of system calls being hooked, drootkit can detect and recover them while issuing warning messages. For testing purposes, this paper also implements a malicious kernel module that can hook system calls and run on the arm64 platform. We have conducted an experiment that confirms drootkit’s capability to detect rootkits while also effectively restoring the system. Moreover, drootkit has very low system overhead and does not significantly affect system performance, making it a reliable choice for a backend program that can run for an extended period of time.Keywords
Funding Information
- Key Laboratory of PK System Technologies Research of Hainan
- National Natural Science Foundation of China (62141212, 62133014, 61972139, 61932010)
- Natural Science Foundation of Hunan Province (2021JJ30150, 2022JJ10021)
- Natural Science Foundation of Chongqing Municipality (cstc2021jcyj-msxmX0461, CSTB2022NSCQ-MSX1393)
This publication has 10 references indexed in Scilit:
- Rootkit Detection on Embedded IoT DevicesActa Cybernetica, 2021
- Kmon: An In-kernel Transparent Monitoring System for Microservice Systems with eBPF2021
- bpfbox2020
- On the Detection of Kernel-Level Rootkits Using Hardware Performance Counters2017
- Countering kernel rootkits with lightweight hook protection2009
- Multi-aspect profiling of kernel rootkit behavior2009
- Analysis of Tools for Detecting Rootkits and Hidden Processes2007
- Detecting and categorizing kernel-level rootkits to aid future detectionIEEE Security & Privacy, 2006
- On micro-kernel construction1995
- SPIN1994