Interview Prep/Linux/Security, hardening and incident response

You need to restrict which kernel modules can load, for example blocking USB storage on servers. How?

BeginnerScenarioSecurity, hardening and incident response
Answer

Situation read → modprobe blacklist plus install override.

What I'd do → /etc/modprobe.d/disable-usb-storage.conf:

blacklist usb-storage
install usb-storage /bin/false

Unload if loaded: sudo modprobe -r usb-storage; rebuild initramfs if needed; check with lsmod | grep usb_storage.

Why → blacklist alone only stops auto-loading by alias; install ... /bin/false blocks explicit loads too.

Interview tip → Mention CIS also recommends disabling rare filesystems like cramfs and udf this way.

All Linux questions Roadmap: Linux

More on Security, hardening and incident response