Rule ID
SV-261286r1155779_rule
Version
V1R4
CCIs
Automatically mounting file systems permits easy introduction of unknown devices, thereby facilitating malicious activity.
Verify SLEM 5 disables the ability to automount devices.
Verify the automounter service is installed with the following command:
> sudo zypper se autofs
If it is installed, verify the automounter service is active with the following command:
> systemctl status autofs
autofs.service - Automounts filesystems on demand
Loaded: loaded (/usr/lib/systemd/system/autofs.service; disabled)
Active: inactive (dead)
If the "autofs" status is set to "active" this is a finding.Configure SLEM 5 to disable the ability to automount devices.
Turn off the automount service with the following command:
> sudo systemctl stop autofs
> sudo systemctl disable autofs