Skip to content

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.


  1. Run the tailoring wizard

    Terminal window
    ./scripts/generate_baseline.py -k BASELINE -t

    Example:

    Terminal window
    ./scripts/generate_baseline.py -k 800-53r5_moderate -t
  2. Enter your organization details

    Enter a name for your tailored benchmark: MyOrgs_Benchmark
    Enter your name: Your Name
    Enter your organization: Your Org
  3. 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/?]:
    OptionDescription
    YInclude this rule
    nSkip this rule
    allInclude all remaining rules
    ?Show rule details
  4. 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):
  5. Find your files

    OutputLocation
    Tailored baselinebuild/baselines/MyOrgs_Benchmark.yaml
    Custom ODV rulescustom/rules/*.yaml

After tailoring, generate your outputs:

Terminal window
./scripts/generate_guidance.py build/baselines/MyOrgs_Benchmark.yaml -p -s

When you set custom ODV values, the project creates a YAML file for each tailored rule:

---
odv:
custom: 11

These files are stored in custom/rules/ and contain only your custom values.