mirror of
https://github.com/usnistgov/macos_security.git
synced 2026-02-03 05:53:24 +00:00
Disabled launchctl reports incorrectly (Ventura) #227
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 @jmahlman on GitHub.
Originally assigned to: @golbiga, @brodjieski on GitHub.
Summary
MacOS Ventura changes how launchctl reports disabled services. Previously, the check
/bin/launchctl print-disabled systemfor a service would return=> trueif it was disabled. Ventura has changed this to=> disabled. For example:The check for ssh on Monterey
/bin/launchctl print-disabled system | /usr/bin/grep -c '"com.openssh.sshd" => true'would work but on Ventura this will now be/bin/launchctl print-disabled system | /usr/bin/grep -c '"com.openssh.sshd" => disabled'.The affected rules are:
os_httpd_disable, os_nfsd_disable, os_tftpd_disable, os_uucp_disable, system_settings_screen_sharing_disable, system_settings_smbd_disable, system_settings_ssh_disable
Steps to reproduce
Operating System version
macOS 13 Ventura Beta (22A5331f)
What is the current bug behavior?
The scan will successfully run and remediate but the audit will not report properly.
What is the expected correct behavior?
The audit should report correctly.
Output of checks
Sample check on Monterey:
Sample check on Ventura:
Possible fixes
Update the following rules:
os_httpd_disable, os_nfsd_disable, os_tftpd_disable, os_uucp_disable, system_settings_screen_sharing_disable, system_settings_smbd_disable, system_settings_ssh_disable
Replace any instance of
=> truewith=> disabled.@jmahlman commented on GitHub:
Forgot to add system_settings_rae_disable :)
@golbiga commented on GitHub:
The fixes have been merged into
dev_ventura. Closing issue.