Skip to content

Generate Mapping

The generate_mapping.py script creates custom rules and baselines for compliance frameworks not included in the project. You provide a CSV that maps your framework’s controls to a supported framework (like NIST 800-53r5).


Create a CSV with two columns:

ColumnDescription
Column 1Your framework’s control identifier
Column 2Corresponding controls from a supported framework

The first row should contain the framework names:

800-171r2,800-53r5
3.1.1,"AC-2, AC-3, AC-17"
3.1.2,"AC-2, AC-3, AC-17"
3.1.3,AC-4
3.1.4,AC-5

  1. Run the mapping script

    Terminal window
    ./scripts/generate_mapping.py PATH_TO_CSV

    Example:

    Terminal window
    ./scripts/generate_mapping.py ~/Desktop/171-to-53.csv
  2. Find your files

    OutputLocation
    Custom rule filesbuild/800-171r2/rules/
    Generated baselinebuild/baselines/800-171r2.yaml

FlagDescription
-f FRAMEWORKSource framework to map from (default: 800-53r5)

Example mapping to CIS Controls:

Terminal window
./scripts/generate_mapping.py ~/Desktop/cis-mapping.csv -f "cis/controls v8"