SummitRoute / osxlockdown

[No longer maintained] Apple OS X tool to audit for, and remediate, security configuration settings.
MIT License
776 stars 51 forks source link

"Disable Screen Sharing" -- broken #57

Open kristovatlas opened 8 years ago

kristovatlas commented 8 years ago

The check command for this produces a false negative. I tested this by enabling screen sharing in System Preferences and running the following:

$ launchctl load /System/Library/LaunchDaemons/com.apple.screensharing.plist
/System/Library/LaunchDaemons/com.apple.screensharing.plist: Service is disabled

unloading this with launchctl appears to successfully stop the service, but only works for me when run with sudo privs.