RHEL 10 must disable file system automount function unless required.

STIG ID: RHEL-10-701210  |  SRG: SRG-OS-000114-GPOS-00059 |  Severity: medium (CAT II)  |  CCI: CCI-000778,CCI-001958 |  Vulnerability Id: V-281323

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

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

Verify RHEL 10 is configured so that the file system automount function has been disabled with the following command:

$ systemctl is-enabled autofs
masked

If the returned value is not "masked", "disabled", or "not-found" and is not documented as an operational requirement with the information system security officer, this is a finding.

Fix

Configure RHEL 10 to disable the ability to automount devices.

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

$ sudo systemctl mask --now autofs.service