Information
macOS can act as an NFS fileserver. NFS sharing could be enabled to allow someone on another computer to mount shares and gain access to information from the user's computer. File sharing from a user endpoint has long been considered questionable, and Apple has removed that capability from the GUI. NFSD is still part of the Operating System and can be easily turned on to export shares and provide remote connectivity to an end-user computer.
Rationale:
File serving should not be done from a user desktop. Dedicated servers should be used. Open ports make it easier to exploit the computer.
Impact:
The nfs server is both a point of attack for the system and a means for unauthorized file transfers.
Solution
Run the following command to disable the nfsd fileserver services:
$ sudo launchctl disable system/com.apple.nfsd
Remove the exported Directory listing.
$ sudo rm /etc/exports
Item Details
Category: CONFIGURATION MANAGEMENT, SYSTEM AND SERVICES ACQUISITION
References: 800-53|CM-1, 800-53|CM-2, 800-53|CM-6, 800-53|CM-7, 800-53|CM-7(1), 800-53|CM-9, 800-53|SA-3, 800-53|SA-8, 800-53|SA-10, CSCv7|5.1, CSCv7|9.2
Control ID: 672950599e86a16e3b9d604263d9f023313f6c0ce7d9eeef7f7a46bb358d5776