The OL 8 file system automounter must be disabled.

STIG ID: OL08-00-040070  |  SRG: SRG-OS-000114-GPOS-00059 |  Severity: medium (CAT II)  |  CCI: CCI-000778 |  Vulnerability Id: V-248836

Vulnerability Discussion

Without identifying 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.

Check

Note: If the "autofs" service is not installed, this requirement is not applicable.

Verify OL 8 disables the ability to automount devices.

Determine if the automounter service is active with the following command:

$ systemctl is-enabled autofs
masked

If the returned value is not "masked", "disabled", or "not-found", this is a finding.

Fix

Configure OL 8 to disable the ability to automount devices.

The "autofs" service can be disabled with the following command:

$ sudo systemctl mask --now autofs.service