File sharing is usually nonessential and must be disabled if not required. 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 the SMB File Sharing service with the following command:
/bin/launchctl print-disabled system | /usr/bin/grep com.apple.smbd
"com.apple.smbd" => disabled
If the results are not "com.apple.smbd => disabled" or SMB file sharing has not been documented with the ISSO as an operational requirement, this is a finding.
Fix
Configure the macOS system to disable the SMB File Sharing service with the following command: