The macOS system must disable Network File System (NFS) service.
Overview
| Finding ID | Version | Rule ID | IA Controls | Severity |
| V-277086 | APPL-26-002003 | SV-277086r1148710_rule | CCI-000213 | medium |
| 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. | ||||
| STIG | Date | |||
| Apple macOS 26 (Tahoe) Security Technical Implementation Guide | 2026-02-11 | |||
Details
Check Text (C-277086r1148710_chk)
Verify the macOS system is configured to disable NFS service with the following commands:
isDisabled=$(/sbin/nfsd status | /usr/bin/awk '/nfsd service/ {print $NF}')
if [[ "$isDisabled" == "disabled" ]] && [[ -z $(/usr/bin/pgrep nfsd) ]]; then
echo "pass"
else
echo "fail"
fi
If the result is not "pass", this is a finding.
Fix Text (F-81146r1148709_fix)
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.