h3xduck
eBPF is mostly available by default in Linux and presents an attack vector to which system administrators are usually unfamiliar with. Following the latest research on the matter by Jeff Dileo at DEFCON27 in 2019, Guillaume Fournier and Sylvain Afchain at DEFCON29 and Patrick H. at DEFCON29 in 2021, our rootkit TripleCross reuses and extends these techniques to build a rootkit that features:
- A library injection module to execute malicious code by writing at a process' virtual memory via a GOT hijacking technique.
- An execution hijacking module that modifies data passed to the kernel to execute malicious programs.
- A local privilege escalation module that allows for running malicious programs with root privileges.
- A backdoor with Command and Control (C2) capabilities that can monitor the network and execute commands sent from a remote rootkit client. It incorporates multiple activation triggers so that these actions are transmitted stealthily.
- A rootkit client that allows an attacker to establish 3 different types of shell-like connections to send commands and actions that control the rootkit state remotely.
- A persistence module that ensures the rootkit remains installed maintaining full privileges even after a reboot event.
- A stealth module that hides rootkit-related files and directories from the user.
This project was part of bachelor's thesis, I am the student that developed the project and I am here to answer any questions if needed!