mirror of
https://github.com/usnistgov/macos_security.git
synced 2026-02-03 05:53:24 +00:00
compliance script should be able to say which rules fail #174
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 @bernstei on GitHub.
Originally assigned to: @robertgendler on GitHub.
There is currently no nice way that I can find to tell which rules failed in a compliance scan. The compliance report (1) only lists a number. The compliance scan (2) scrolls by fast and can't be searched. Running the remediation commands (3) implicitly lists the once that it can remediate, but there are some, line filevault, that it cannot and therefore don't get listed there.
The only way I've found if
defaults read /Library/Preferences/org.....audit.plist | lessand then searching forfinding = 1, which is not that nice. A variant of the report (1) that lists the failed tests would be helpful.@robertgendler commented on GitHub:
The compliance script actually writes to unified logging as well as the /Library/Logs/$baseline_baseline.log
The /Library/Logs is JUST the last run of the compliance script.
You can run
log stream --predicate 'eventMessage CONTAINS "mSCP"'or do alog show --last 5m or 1d or whatever