2.2.7 Ensure nfs-utils is not installed or the nfs-server service is masked

Information

The Network File System (NFS) is one of the first and most widely distributed file systems in the UNIX environment. It provides the ability for systems to mount file systems of other servers through the network.

Rationale:

If the system does not require network shares, it is recommended that the nfs-utils package be removed to reduce the attack surface of the system.

Note: many of the libvirt packages used by Enterprise Linux virtualization are dependent on the nfs-utils package. If the nfs-package is required as a dependency, the nfs-server should be disabled and masked to reduce the attack surface of the system.

Solution

Run the following command to remove nfs-utils:

# yum remove nfs-utils

OR
If the nfs-package is required as a dependency:
Run the following command to stop and mask the nfs-server service:

# systemctl --now mask nfs-server

See Also

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

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-7b., CSCv7|9.2

Plugin: Unix

Control ID: 3aabca5f99bae081f3c8effbe85da65cade7a8bb128ab1a67bec59348adfd409