Lion Cipher Lab
Write an AI bill of materials for a model with CycloneDX and fail the build when it drifts
- AI Security
- Intermediate
- ~50 min
- Free · no account required
Why it matters
A model is built from parts you did not write: training data, a base model, libraries. When something goes wrong with one of them, the first question is which of your systems use it. An AI bill of materials answers that, the same way an SBOM does for code. CycloneDX, an open standard for bills of materials, can describe machine-learning models and datasets as components, with a model card for facts about the model. The value only appears when the BOM is checked automatically against reality, so this lab builds the check as well as the file.
What you'll learn
- explaining what an AI bill of materials records and why teams want one
- describing a model as a CycloneDX machine-learning-model component with a model card
- recording a training dataset as its own component and linking the two
- validating a BOM with the CycloneDX CLI and failing a build on errors
- catching a swapped model file by comparing its SHA-256 with the BOM
Steps in this lab
- What an AI bill of materials is for
- Make a stand-in model file
- Write the BOM
- Validate it with the CycloneDX CLI
- Break the BOM on purpose to see validation work
- Write the drift gate
- Swap the model and watch the gate stop
- What a BOM does and does not tell you
- Clean up
Open the full interactive lab →