mirror of
https://github.com/usnistgov/macos_security.git
synced 2026-02-09 00:09:55 +00:00
unable to generate tailored baseline #109
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 @ericbeme on GitHub.
Summary
unable to generate tailored baseline based off of stif
Steps to reproduce
try to tailor a baseline
Operating System version
Sonoma 14.3.1. (yes i am working out of the right branch)...
Intel or Apple Silicon
Apple Silicon Mac
What is the current bug behavior?
asks normal questions until os_install_log_retention_configure" in your benchmark? [Y/n/all/?]: y
then stops and outputs the following:
ODV value: Number of days.
Traceback (most recent call last):
File "/Users/mediaadmin/macos_security/./scripts/generate_baseline.py", line 562, in
main()
File "/Users/mediaadmin/macos_security/./scripts/generate_baseline.py", line 551, in main
odv_baseline_rules = odv_query(found_rules, benchmark)
File "/Users/mediaadmin/macos_security/./scripts/generate_baseline.py", line 442, in odv_query
if isinstance(rule.rule_odv[benchmark], int):
KeyError: 'stig'
What is the expected correct behavior?
continue to ask ?'s to tailor baseline
Relevant logs and/or screenshots
@robertgendler commented on GitHub:
Thanks for finding this! @brodjieski just fixed it and PR #367 should have fixed it and some other DISA STIG related issues.