1.1.23 Disable Automounting

Information

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



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.

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.

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.

Solution

Run the following command to mask autofs:

# systemctl --now mask autofs

See Also

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

Item Details

Category: SYSTEM AND COMMUNICATIONS PROTECTION

References: 800-53|SC-18(4), CSCv6|9.1, CSCv7|8.4, CSCv7|8.5

Plugin: Unix

Control ID: 12b511d2afa52bf8a6ab101896b31f2421bc7d38463b43db00f03271d6d80e34