ALMA-09-031370 - AlmaLinux OS 9 must be configured to disable USB mass storage.

Information

USB mass storage permits easy introduction of unknown devices, thereby facilitating malicious activity.

Satisfies: SRG-OS-000095-GPOS-00049, SRG-OS-000378-GPOS-00163, SRG-OS-000114-GPOS-00059, SRG-OS-000690-GPOS-00140

Solution

To configure the system to prevent the usb-storage kernel module from being loaded, run the following command:

$ cat << EOF | tee /etc/modprobe.d/usb-storage.conf
install usb-storage /bin/false
blacklist usb-storage
EOF

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_CL_AlmaLinux_OS_9_V1R5_STIG.zip