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).
CSV Format
Section titled “CSV Format”Create a CSV with two columns:
| Column | Description |
|---|---|
| Column 1 | Your framework’s control identifier |
| Column 2 | Corresponding controls from a supported framework |
The first row should contain the framework names:
800-171r2,800-53r53.1.1,"AC-2, AC-3, AC-17"3.1.2,"AC-2, AC-3, AC-17"3.1.3,AC-43.1.4,AC-5Generate Custom Mapping
Section titled “Generate Custom Mapping”-
Run the mapping script
Terminal window ./scripts/generate_mapping.py PATH_TO_CSVExample:
Terminal window ./scripts/generate_mapping.py ~/Desktop/171-to-53.csv -
Find your files
Output Location Custom rule files build/800-171r2/rules/Generated baseline build/baselines/800-171r2.yaml
Command Reference
Section titled “Command Reference”| Flag | Description |
|---|---|
-f FRAMEWORK | Source framework to map from (default: 800-53r5) |
Example mapping to CIS Controls:
./scripts/generate_mapping.py ~/Desktop/cis-mapping.csv -f "cis/controls v8"Next Steps
Section titled “Next Steps”- Tailoring a Baseline - Customize the generated baseline
- How to Generate Guidance - Generate documentation from your baseline