- Each file includes a YAML front matter block with attributes such as
sequence,title,layout,doc-status, andtype.- The
typeattribute is scalar and specifies the Risk or Mitigation classification.
- The
- Risk files are named using the prefix
ri-*(e.g.,ri-1.md,ri-2.md). - Mitigation files are named using the prefix
mi-*(e.g.,mi-1.md,mi-2.md). - The title may be appended by converting to lower case and converting runs of nonalphanumeric characters to a single hyphen.
- The
scripts/rename-with-titles.shscript can rename the_risks/ri-*.mdor_mitigations/mi-*.mdfiles based on the sequence number and title in the YAML header. - The cross-linking between the Risk and Mitigation pages works
Mitigations are associated with Risks via the mitigates list in mi-*.md files. For example:
mitigates:
- ri-1
The author of the link does not have to worry about the title appended to the filename through the magic of brute-force looping through all the document objects and inspecting the sequence numbers for a match.
Note: Risk files (ri-*.md) do NOT have a mitigations: section - the relationship is
one-way from mitigations to risks.
In ri-*.md files, other risks may be referenced:
related_risks:
- ri-4
In mi-*.md files, other mitigations may be referenced:
related_mitigations:
- mi-8
- The
risk-id.htmlandmitigation-id.htmltemplates enforce a numbering convention where risks and mitigations are prefixed withAIR-*.- For risks, the numbering follows the format
AIR-<risk_type>-<number>. - For mitigations, the numbering follows the format
AIR-<mitigation_type>-<number>.
- For risks, the numbering follows the format
Risk and Mitigation types are defined in _config.yml.
Order in which the Risk and Mitigation types are presented are defined
in index.md.
Risk files (ri-*.md) can include several types of external references.
The nist-sp-800-53r5_references: section references keys from _data/nist-sp-800-53r5.yml.
The nist-ai-600-1_references: section references keys from _data/nist-ai-600-1.yml.
Each reference links to the corresponding NIST control or section with deep PDF links.
The ffiec-itbooklets_references: section references keys from _data/ffiec-itbooklets.yml.
Each reference links to the corresponding FFIEC IT Handbook booklet.
The owasp-ml_references: section references keys from _data/owasp-ml.yml.
Each reference links to the corresponding OWASP Machine Learning Security Top 10 risk.
The owasp-llm_references: section references keys from _data/owasp-llm.yml.
Each reference links to the corresponding OWASP LLM Security Top 10 risk.
The eu-ai-act_references: section references keys from _data/eu-ai-act.yml.
Each reference links to the corresponding EU AI Act article.
All reference types are displayed as separate cards in the risk layout sidebar.
- Risks and mitigations are grouped by their
typeattribute and sorted by theirsequenceattribute in the index pages.
- The
_includes/risk-id.htmland_includes/mitigation-id.htmltemplates dynamically generate theAIR-*identifiers based on the file's metadata. - The
_layouts/risk.htmland_layouts/mitigation.htmltemplates format the_risks/ri-*.mdand_mitigations/mi-*.mdas HTML, including backlinks.
For instructions on setting up and running the Jekyll site locally, see DEVELOPMENT.md.