1.59 APPL-26-002003

Information

The macOS system must disable Network File System (NFS) service.

GROUP ID: V-277086
RULE ID: SV-277086r1148710

Support for NFS services is nonessential and, therefore, must be disabled. Enabling any service increases the attack surface for an intruder. By disabling unnecessary services, the attack surface is minimized.

Solution

Configure the macOS system to disable NFS service with the following commands:

/bin/launchctl disable system/com.apple.nfsd
/bin/rm -rf /etc/exports

The system may need a restart for the update to take effect.

See Also

https://workbench.cisecurity.org/benchmarks/26538