generate_guidance fails when using all_rules on the Sonoma branch #100

Closed
opened 2026-01-19 18:29:14 +00:00 by michael · 1 comment
Owner

Originally created by @RVRX on GitHub.

Summary

generate guidance fails when using all_rules on the sonoma branch.

Steps to reproduce

user@My-MacBook-Pro:~/Desktop/github/macos_security_remux/macos_security (main=) % ./scripts/generate_guidance.py baselines/all_rules.yaml
Profile YAML: baselines/all_rules.yaml
Output path: /Users/user/Desktop/github/macos_security_remux/macos_security/build/all_rules/all_rules.adoc
Generating HTML file from AsciiDoc...
Generating PDF file from AsciiDoc...

user@My-MacBook-Pro:~/Desktop/github/macos_security_remux/macos_security (main=) % git switch sonoma
Switched to branch 'sonoma'
Your branch is up to date with 'origin/sonoma'.

user@My-MacBook-Pro:~/Desktop/github/macos_security_remux/macos_security (sonoma=) % ./scripts/generate_guidance.py baselines/all_rules.yaml
Profile YAML: baselines/all_rules.yaml
Output path: /Users/user/Desktop/github/macos_security_remux/macos_security/build/all_rules/all_rules.adoc
Rule file not found in library, checking in custom folder for rule: os_safari_javascript_enabled
Traceback (most recent call last):
  File "/Users/user/Desktop/github/macos_security_remux/macos_security/./scripts/generate_guidance.py", line 2222, in <module>
    main()
  File "/Users/user/Desktop/github/macos_security_remux/macos_security/./scripts/generate_guidance.py", line 1935, in main
    rule_location = rule_path[0]
IndexError: list index out of range

Operating System version

Sonoma 14.3.1

Intel or Apple Silicon

Apple M1

Originally created by @RVRX on GitHub. <!--- Please read this! Before opening a new issue, make sure to search for keywords in the issues filtered by the "regression" or "bug" label and verify the issue you're about to submit isn't a duplicate. ---> ### Summary generate guidance fails when using `all_rules` on the sonoma branch. ### Steps to reproduce ``` user@My-MacBook-Pro:~/Desktop/github/macos_security_remux/macos_security (main=) % ./scripts/generate_guidance.py baselines/all_rules.yaml Profile YAML: baselines/all_rules.yaml Output path: /Users/user/Desktop/github/macos_security_remux/macos_security/build/all_rules/all_rules.adoc Generating HTML file from AsciiDoc... Generating PDF file from AsciiDoc... user@My-MacBook-Pro:~/Desktop/github/macos_security_remux/macos_security (main=) % git switch sonoma Switched to branch 'sonoma' Your branch is up to date with 'origin/sonoma'. user@My-MacBook-Pro:~/Desktop/github/macos_security_remux/macos_security (sonoma=) % ./scripts/generate_guidance.py baselines/all_rules.yaml Profile YAML: baselines/all_rules.yaml Output path: /Users/user/Desktop/github/macos_security_remux/macos_security/build/all_rules/all_rules.adoc Rule file not found in library, checking in custom folder for rule: os_safari_javascript_enabled Traceback (most recent call last): File "/Users/user/Desktop/github/macos_security_remux/macos_security/./scripts/generate_guidance.py", line 2222, in <module> main() File "/Users/user/Desktop/github/macos_security_remux/macos_security/./scripts/generate_guidance.py", line 1935, in main rule_location = rule_path[0] IndexError: list index out of range ``` ### Operating System version Sonoma 14.3.1 ### Intel or Apple Silicon Apple M1
Author
Owner

@brodjieski commented on GitHub:

Sonoma branch now has updated all_rules.yaml baseline.

@brodjieski commented on GitHub: Sonoma branch now has updated `all_rules.yaml` baseline.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: usnistgov/macos_security#100