mirror of
https://github.com/usnistgov/macos_security.git
synced 2026-02-03 14:03:24 +00:00
Compliance Count CIS lvl2 #60
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 @anthonydarte on GitHub.
Summary
The result of the exemption count is incorrect compared to the actual count in the org.cis_lvl2.audit.plist file.
CIS Lvl 2
Steps to reproduce
You only need to add exemptions for rules starting with 'OS' in the org.cis_lvl2.audit.plist file:
os_nfsd_disable,
os_password_hint_remove,
os_policy_banner_loginwindow_enforce,
while the rules with 'pw' are fine:
pwpolicy_account_lockout_enforce,
pwpolicy_account_lockout_timeout_enforce,
pwpolicy_alpha_numeric_enforce,
pwpolicy_custom_regex_enforce,
pwpolicy_history_enforce,
pwpolicy_max_lifetime_enforce,
pwpolicy_minimum_length_enforce,
pwpolicy_special_character_enforce.
Operating System version
MacOS 15.3
Intel or Apple Silicon
Apple Silicon Mac
What is the current bug behavior?
With --stats, there are only 8.
What is the expected correct behavior?
The total number of exemptions should be 11
Relevant logs and/or screenshots
Output of checks
Possible fixes
For me, the problem seems to come from this function.
I have the impression that it comes from the osascript.
@brodjieski commented on GitHub:
Hello!
If the system is passing those rules, they will not be reported as exempt, since they are naturally compliant. The exemption reports those items that fail, but get the OK since they are exempt from requiring the rule.
If you are still failing those checks, but they are not reporting as exempt, send along your .plist file and I'll see if I can troubleshoot further.
Thanks!
@anthonydarte commented on GitHub:
Indeed, the exempted rules are properly respected. I understand the error better now. Thank you.