OL 9 must disable automatic mounting of Universal Serial Bus (USB) mass storage driver.
Overview
Finding ID | Version | Rule ID | IA Controls | Severity |
V-271702 | OL09-00-002332 | SV-271702r1091818_rule | Medium |
Description |
Without authenticating devices, unidentified or unknown devices may be introduced, thereby facilitating malicious activity. Peripherals include, but are not limited to, such devices as flash drives, external storage, and printers. |
STIG | Date |
Oracle Linux 9 Security Technical Implementation Guide | 2025-05-08 |
Details
Check Text (C-75752r1091816_chk) |
Verify that OL 9 disables automatic mounting of the USB storage kernel module with the following command: $ grep usb-storage /etc/modprobe.d/* | grep "/bin/true" install usb-storage /bin/true If the command does not return any output, or the line is commented out, this is a finding. Verify the operating system disables the ability to use USB mass storage device. $ grep usb-storage /etc/modprobe.d/* | grep -i "blacklist" blacklist usb-storage If the command does not return any output, or the line is commented out, this is a finding. |
Fix Text (F-75659r1091817_fix) |
Configure OL 9 to disable using the USB storage kernel module. Create a file under "/etc/modprobe.d" to contain the following: # sudo su -c "echo install usb-storage /bin/true >> /etc/modprobe.d/DISASTIG.conf" Configure the operating system to disable the ability to use USB mass storage devices. # sudo su -c "echo blacklist usb-storage >> /etc/modprobe.d/DISASTIG.conf" |