It's ahead of the tutorial articles - as you'd expect. It currently supports hiding (from lsmod and sysfs - including any cached dentries), hiding files for ext4 and a keyboard logger (although it only kprints the results). It performs all this using object manipulation and exported functions. No syscalls were modified or hooked.
It meant as a tutorial so I'm starting fairly basically and adding more and more complex functionality as times goes on. Currently it's controlled by a /proc entry - in fact one of the ideas behind the tutorial is until I create a custom load program (rather than use insmod and thus load_module in kernel/module.c), everything the module does should be un-doable - so it can be cleanly un-loaded.
Please give a me an email if you've got any suggestions or future areas you'd like me to explore.
Also, I know people usually like hooking tcpv*_seq_show, but it'd be good to see an open source version of using netfilter and passing in a bpf to hide traffic on the box.
Check out the latest version of Suterusu, I updated it a few times since your initial fork. There are currently more features in staging, but unfortunately I haven't worked on it in a while and they aren't polished enough for publication. https://github.com/mncoppola/suterusu
I actually found this fork before I found the poppopret repo. Bad Google.
Your rootkit helped me with some issues I had when writing my rootkit to deal with the proc vfs. Thank you very much for your hard work! Saved me some headaches in my time of need.
View all comments
3
u/nnewson Jun 21 '13 edited Jun 21 '13
I'm currently writing a Linux rootkit tutorial (based around the 3.8 kernel). The details of which can be found on website above.
The code can be found here: https://github.com/nnewson/km.git
It's ahead of the tutorial articles - as you'd expect. It currently supports hiding (from lsmod and sysfs - including any cached dentries), hiding files for ext4 and a keyboard logger (although it only kprints the results). It performs all this using object manipulation and exported functions. No syscalls were modified or hooked.
It meant as a tutorial so I'm starting fairly basically and adding more and more complex functionality as times goes on. Currently it's controlled by a /proc entry - in fact one of the ideas behind the tutorial is until I create a custom load program (rather than use insmod and thus load_module in kernel/module.c), everything the module does should be un-doable - so it can be cleanly un-loaded.
Please give a me an email if you've got any suggestions or future areas you'd like me to explore.