STIGhubSTIGhub
STIGhub— A free STIG search and compliance tool·STIGs updated 1 hour ago
Powered by Pylon·Privacy·Terms·Feedback·© 2026 Beacon Cloud Solutions, Inc.
← Back to Apple macOS 27 Security Technical Implementation Guide

V-288906

CAT II (Medium)

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

Rule ID

SV-288906r1316215_rule

STIG

Apple macOS 27 Security Technical Implementation Guide

Version

V1R1

CCIs

CCI-000213

Discussion

Support for NFS service 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 Content

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

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.