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

Severity
Group ID
Group Title
Version
Rule ID
Date
STIG Version
mediumV-268479SRG-OS-000080-GPOS-00048APPL-15-002003SV-268479r1034377_rule2025-02-201
Description
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.
ℹ️ Check
Verify the macOS system is configured to disable NFS service with the following command: /bin/launchctl print-disabled system | /usr/bin/grep -c '"com.apple.nfsd" => disabled' If the result is not "1", this is a finding.
✔️ Fix
Configure the macOS system to disable NFS service with the following command: /bin/launchctl disable system/com.apple.nfsd The system may need to be restarted for the update to take effect.