OL 9 file system automount function must be disabled unless required.

STIG ID: OL09-00-002000  |  SRG: SRG-OS-000114-GPOS-00059 |  Severity: medium |  CCI: CCI-000778,CCI-001958 |  Vulnerability Id: V-271639

Vulnerability Discussion

An authentication process resists replay attacks if it is impractical to achieve a successful authentication by recording and replaying a previous authentication message.

Satisfies: SRG-OS-000114-GPOS-00059, SRG-OS-000378-GPOS-00163

Check

Verify that OL 9 file system automount function has been disabled and masked with the following command:

$ systemctl is-enabled autofs
masked

If the returned value is not "masked" and is not documented as operational requirement with the information system security officer (ISSO), this is a finding.

Fix

Configure OL 9 to disable and mask the ability to automount devices.

The autofs service can be disabled and masked with the following command:

$ sudo systemctl mask --now autofs.service