Tailoring Rules
Tailoring lets you create a customized baseline by choosing which rules to include and setting organization-defined values (ODVs). This is different from customizing individual rules.
Tailor a Baseline
Section titled “Tailor a Baseline”-
Run the tailoring wizard
Terminal window ./scripts/generate_baseline.py -k BASELINE -tExample:
Terminal window ./scripts/generate_baseline.py -k 800-53r5_moderate -t -
Enter your organization details
Enter a name for your tailored benchmark: MyOrgs_BenchmarkEnter your name: Your NameEnter your organization: Your Org -
Choose rules to include
For each rule, you’ll be prompted:
Would you like to include the rule for "audit_acls_files_configure"? [Y/n/all/?]:Option Description YInclude this rule nSkip this rule allInclude all remaining rules ?Show rule details -
Set ODV values
For rules with ODVs, enter your value or press Enter for the default:
Enter the ODV for "pwpolicy_account_lockout_enforce" or press Enter for the recommended value (3): -
Find your files
Output Location Tailored baseline build/baselines/MyOrgs_Benchmark.yamlCustom ODV rules custom/rules/*.yaml
Generate from Tailored Baseline
Section titled “Generate from Tailored Baseline”After tailoring, generate your outputs:
./scripts/generate_guidance.py build/baselines/MyOrgs_Benchmark.yaml -p -sCustom Rule File Format
Section titled “Custom Rule File Format”When you set custom ODV values, the project creates a YAML file for each tailored rule:
---odv: custom: 11These files are stored in custom/rules/ and contain only your custom values.
Next Steps
Section titled “Next Steps”- Customize Rules - Modify rule behavior beyond ODVs
- Exempting Rules - Exclude rules from compliance checks