UCF STIG Viewer Logo
Changes are coming to https://stigviewer.com. Take our survey to help us understand your usage and how we can better serve you in the future.
Take Survey

SMB File Sharing must be disabled.


Overview

Finding ID Version Rule ID IA Controls Severity
V-58295 AOSX-09-000139 SV-72725r1_rule Medium
Description
File Sharing is non-essential and 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 OS X 10.9 (Mavericks) Workstation Security Technical Implementation Guide 2017-01-05

Details

Check Text ( C-59121r1_chk )
SMB File Sharing must be disabled.

To check if SMB File Sharing is disabled, run the following command:

sudo /usr/libexec/PlistBuddy -c 'print com.apple.smbd:Disabled' /var/db/launchd.db/com.apple.launchd/overrides.plist

If the returned value isn't 'true', this is a finding.
Fix Text (F-63611r1_fix)
To disable SMB File Sharing, run the following command:

sudo defaults write /private/var/db/launchd.db/com.apple.launchd/overrides.plist 'com.apple.smbd' -dict Disabled -bool true