1.1.20 Disable Automounting

Information

autofs allows automatic mounting of devices, typically including CD/DVDs and USB drives.

Rationale:

With automounting enabled anyone with physical access could attach a USB drive or disc and have its contents available in system even if they lacked permissions to mount it themselves.

Solution

Run the following command to disable autofs :

# systemctl disable autofs

Impact:

The use of portable hard drives is very common for workstation users. If your organization allows the use of portable storage or media on workstations and physical access controls to workstations is considered adequate there is little value add in turning off automounting.




Notes:

Additional methods of disabling a service exist. Consult your distribution documentation for appropriate methods.

This control should align with the tolerance of the use of portable drives and optical media in the organization. On a server requiring an admin to manually mount media can be part of defense-in-depth to reduce the risk of unapproved software or information being introduced or proprietary software or information being exfiltrated. If admins commonly use flash drives and Server access has sufficient physical controls, requiring manual mounting may not increase security.

This Benchmark recommendation maps to:

Red Hat Enterprise Linux 7 Security Technical Implementation Guide:

Version 2, Release: 3 Benchmark Date: 26 Apr 2019



Vul ID: V-71985

Rule ID: SV-86609r2_rule

STIG ID: RHEL-07-020110

Severity: CAT II

See Also

https://workbench.cisecurity.org/files/2688

Item Details

Category: MEDIA PROTECTION

References: 800-53|MP-2, CSCv7|8.5, CSCv7|13.7

Plugin: Unix

Control ID: 4b9839e8b8a27224e91b9472beab17949cc946005882b3c8a4858fd118700e26