mirror of
https://github.com/usnistgov/macos_security.git
synced 2026-02-03 14:03:24 +00:00
system_settings_ssh_disable (Commands discrepancy) #43
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @narender34 on GitHub.
Originally assigned to: @robertgendler on GitHub.
observed that the CIS Benchmark guidance and the macOS Security Project utilize different commands to verify the same control. Specifically, for the control 2.3.3.5-Ensure Remote Login is Disabled system_settings_ssh_disable, the CIS Benchmark recommends using the following command to verify the status:
/usr/bin/sudo /usr/sbin/systemsetup -getremoteloginHowever, when using Jamf Compliance Editor and its associated scripts, a different command is used for verification:
/bin/launchctl print-disabled system | /usr/bin/grep -c '"com.openssh.sshd" => disabled'This discrepancy led to situations where other security products, which reference CIS Benchmark controls, flag control as non-compliant because they expect the CIS-recommended verification method.
@robertgendler commented on GitHub:
This has been discussed with CIS, DISA, and the team. Checks (basically any service [screen sharing, ssh, smb, etc]) will get updated to also kill the service if found running.
@robertgendler commented on GitHub:
This was solved and added.
Slightly different but same result, killing all the services if running..