Keep Risky Kernel Modules From Loading
The hardening benchmark for this server class says three kernel modules must never load: usb-storage (USB drives), cramfs (an old filesystem) and dccp (an unused network protocol). Blacklisting alone isn't enough for the audit: a module must also fail to load when someone or something asks for it by name.
Add a file /etc/modprobe.d/cis-hardening.conf so that, for each of the three modules:
modprobe of it runs /bin/false instead.Leave the other files in /etc/modprobe.d as they are.
About this machine
Ubuntu 24.04 with no internet access. You are student with passwordless sudo. The grader checks the final state of the machine, not the commands you typed. Values like names and ports are generated for you.
Teaching or writing about this? Embed this lab on your page
Your machine is ready to start
A fresh, isolated Ubuntu machine boots in a few seconds with the task already set up.
No account needed: 3 of 3 free tries left. Guest machines last 30 minutes.