The point people are making is, effectively if the attacker has ability to inject kernel mods, they already have root privs... so they can undo most any protection you setup here.
The real value is blocking an attacker from getting the privs they want in the first place.
You're missing the point. If they have local root, it doesn't matter. They already own the box.
You can compile a kernel without module loading support, only building in the modules you want... but why bother? You're worrying about the wrong attack surface. You need to stop the attack before it gets root, not after.
View all comments
27
u/abotelho-cbn 17d ago
If malware can load kernel modules, you're fucked regardless.