Information
The macOS system must disable Screen Sharing and Apple Remote Desktop.
GROUP ID: V-277114
RULE ID: SV-277114r1149392
Support for both Screen Sharing and Apple Remote Desktop is nonessential and must be disabled.
The information system must be configured to provide only essential capabilities. Disabling Screen Sharing and Apple Remote Desktop helps prevent unauthorized connection of devices, transfer of information, and tunneling.
Solution
Configure the macOS system to disable Screen Sharing and Apple Remote Desktop with the following command:
/bin/launchctl bootout system/com.apple.screensharing
/bin/launchctl disable system/com.apple.screensharing
Note: This will apply to the whole system.