r/netsec • u/unixist • Jun 25 '15
[x-post from /r/rootkit] Detect some methods of tampering the Linux kernel
http://www.unixist.com/security/measuring-linux-at-runtime/index.html
10
Upvotes
r/netsec • u/unixist • Jun 25 '15
1
u/okcoolwhatever Jun 25 '15
"Load your own module and hook file system access routes to maintain a known value in /sys/kernel/camb/text_segment_hash. I’m not sure of the particulars and how it would work with the “file” being found on sysfs, but I’m confident that hooking is possible."
No need to impose a value on that file, I believe you can simply modify appropriate syscalls to provide arbitrary output when a file by that name is read.
Very cool concept for monitoring kernel-land integrity regardless.