3 ms·
I forgot all about grsec - sad to see its no longer publicly available. Thanks for the tip on IOMMU and your other measures.
by xfitm3 6y ago
I forgot all about grsec - sad to see its no longer publicly available. Thanks for the tip on IOMMU and your other measures.
- segfaultbuserr 6y agoJust a note for you (and other readers), as I think it needs some elaboration. > no ptrace() to arbitrary process Traditionally, ptrace() restriction is a grsec feature. But in mainline kernels, the same feature is available in the Yama module, see [0]. Use Yama with "kernel.yama.ptrace_scope = 3" will permanently disable ptrace() for all users, including root, and it cannot be enabled again. Then, you should also compile your own kernel, so you can disable /dev/kmem (CONFIG_DEVKMEM), /dev/mem (CONFIG_DEVMEM) and /proc/kcore (CONFIG_PROC_KCORE) in the Linux kernel. Also, I forgot to mention kexec(), which allows the attacker to execute another kernel without rebooting, so CONFIG_KEXEC should be disabled as well. And the list goes on and on, I think it's necessary to download an old grsec kernel, and using the configuration section of grsec as a checklist (and try disabling them using mainline technique if possible) if your security is serious business. If you do these things, it will block the technique described in the original article. [0] https://www.kernel.org/doc/Documentation/security/Yama.txt https://www.kernel.org/doc/Documentation/security/Yama.txt