Check: UBTU-24-300039
Canonical Ubuntu 24.04 LTS STIG:
UBTU-24-300039
(in version v1 r1)
Title
Ubuntu 24.04 LTS must disable automatic mounting of Universal Serial Bus (USB) mass storage driver. (Cat II impact)
Discussion
Without authenticating devices, unidentified or unknown devices may be introduced, thereby facilitating malicious activity. Peripherals include, but are not limited to, devices such as flash drives, external storage, and printers. Satisfies: SRG-OS-000690-GPOS-00140, SRG-OS-000378-GPOS-00163
Check Content
Verify that Ubuntu 24.04 LTS disables ability to load the USB storage kernel module with the following command: $ sudo grep usb-storage /etc/modprobe.d/* | grep "/bin/true" /etc/modprobe.d/DISASTIG.conf:install usb-storage /bin/true If the command does not return any output, or the line is commented out, this is a finding. Verify Ubuntu 24.04 LTS disables the ability to use USB mass storage device. $ sudo grep usb-storage /etc/modprobe.d/* | grep -i "blacklist" /etc/modprobe.d/DISASTIG.conf:blacklist usb-storage If the command does not return any output, or the line is commented out, this is a finding.
Fix Text
Configure Ubuntu 24.04 LTS to disable using the USB storage kernel module with the following command: $ sudo su -c "echo install usb-storage /bin/true >> /etc/modprobe.d/DISASTIG.conf" Configure Ubuntu 24.04 LTS to disable the ability to use USB mass storage devices with the following command: $ sudo su -c "echo blacklist usb-storage >> /etc/modprobe.d/DISASTIG.conf"
Additional Identifiers
Rule ID: SV-270718r1067128_rule
Vulnerability ID: V-270718
Group Title: SRG-OS-000690-GPOS-00140
Expert Comments
CCIs
Number | Definition |
---|---|
CCI-001958 |
Authenticate organization-defined devices and/or types of devices before establishing a local, remote, and/or network connection. |
CCI-003959 |
Prohibit the use or connection of unauthorized hardware components. |
Controls
Number | Title |
---|---|
IA-3 |
Device Identification and Authentication |