AI Bill of Materials (AI-BOM) on AWS: Building Transparency into AI Systems
Software Bills of Materials (SBOMs) are now standard practice for supply chain security. The 2021 Executive Order on Cybersecurity made them a requirement for federal software. But SBOMs only cover traditional software dependencies -- libraries, packages, container images. They say nothing about the model you trained on 50GB of customer data, the pre-trained embeddings you downloaded from Hugging Face, or the foundation model you invoke through Bedrock.
AI systems have their own supply chain: training data, pre-trained models, fine-tuning datasets, evaluation benchmarks, framework versions, hardware specifications, and deployment configurations. An AI Bill of Materials (AI-BOM) extends the SBOM concept to capture all of these components. If you cannot enumerate what went into your AI system, you cannot govern it, audit it, or respond when something in the supply chain is compromised.
This guide defines the AI-BOM concept, proposes a schema, and shows how to build AI-BOMs on AWS using SageMaker Model Cards, Lineage Tracking, ECR, and CodeArtifact. Every component maps to real compliance requirements from NIST AI RMF, the EU AI Act, and OWASP LLM Top 10.
What Is an AI-BOM?
An AI-BOM is a structured, machine-readable document that enumerates every component that contributes to an AI system's behavior. Think of it as the ingredient list for your model.
AI-BOM Components
| Component | Description | Why It Matters |
|---|---|---|
| Model provenance | Origin of base model, pre-trained weights, fine-tuned versions | Know where your model came from and whether it has been tampered with |
| Training data sources | Datasets used for training, validation, and testing | Identify data poisoning risks, licensing issues, and bias sources |
| Framework versions | ML frameworks (PyTorch, TensorFlow), libraries (scikit-learn, XGBoost) | Vulnerability tracking, reproducibility |
| Infrastructure specs | Instance types, GPU/CPU config, region, VPC | Reproducibility, security posture documentation |
| Evaluation results | Metrics, bias analysis, robustness testing | Performance baseline for drift detection |
| Dependencies | Python packages, system libraries, container base images | Traditional supply chain security |
| Configuration | Hyperparameters, feature engineering steps, preprocessing | Reproducibility and audit trail |
| Human decisions | Approvals, review comments, risk acceptance | Accountability chain |
An AI-BOM differs from a traditional SBOM in three critical ways:
-
Data is a first-class component. In traditional software, data is input. In AI systems, data shapes behavior. Your AI-BOM must enumerate training data sources with the same rigor that SBOMs enumerate packages.
-
Models are not deterministic artifacts. A Python package is the same everywhere. A model trained on different data or with different hyperparameters produces different outputs. The AI-BOM must capture the training context, not just the artifact.
-
Provenance chains are deeper. A model might depend on a pre-trained model that was trained on data you have never seen. AI-BOMs must capture transitive provenance -- the supply chain behind the supply chain.
Building AI-BOMs on AWS
AWS provides four services that contribute to AI-BOM generation: SageMaker Model Cards for model metadata, SageMaker Lineage Tracking for data provenance, ECR for container SBOM, and CodeArtifact for dependency tracking.
SageMaker Model Cards: Model Metadata
Model Cards are the natural home for the model-level components of your AI-BOM: provenance, intended use, evaluation results, and risk documentation.
import boto3
import json
from datetime import datetime
sagemaker = boto3.client("sagemaker")
ai_bom_model_section = {
"model_overview": {
"model_description": "Customer churn prediction model v4",
"model_id": "churn-predictor-v4",
"model_creator": "ML Platform Team",
"problem_type": "Binary Classification",
"algorithm_type": "XGBoost",
"model_artifact": ["s3://ml-artifacts/churn-v4/model.tar.gz"],
},
"intended_uses": {
"purpose_of_model": "Predict 90-day churn for enterprise accounts",
"intended_users": ["Customer Success", "Revenue Operations"],
"risk_rating": "Medium",
},
"training_details": {
"training_observations": (
"Trained on 24 months of account activity (Jul 2024 - Jun 2026). "
"45,000 accounts. 8.2% positive class rate. Stratified 80/10/10 split."
),
"training_job_details": {
"training_arn": "arn:aws:sagemaker:us-east-1:123456789:training-job/churn-v4-20260710",
"training_environment": {
"container_image": "123456789.dkr.ecr.us-east-1.amazonaws.com/churn-training:v4.0.2",
},
},
},
"evaluation_details": [
{
"name": "Production Evaluation",
"metric_groups": [
{
"name": "performance",
"metric_data": [
{"name": "accuracy", "type": "number", "value": 0.94},
{"name": "auc_roc", "type": "number", "value": 0.91},
{"name": "precision", "type": "number", "value": 0.87},
{"name": "recall", "type": "number", "value": 0.83},
],
},
{
"name": "fairness",
"metric_data": [
{"name": "dpl_industry", "type": "number", "value": 0.04},
{"name": "disparate_impact", "type": "number", "value": 0.96},
],
},
],
}
],
"additional_information": {
"custom_details": {
"ai_bom_version": "1.0.0",
"ai_bom_generated": datetime.utcnow().isoformat(),
"base_model": "none-trained-from-scratch",
"framework": "xgboost==2.1.0",
"training_instance": "ml.m5.4xlarge",
"training_duration_seconds": 3420,
"data_hash_training": "sha256:a1b2c3d4e5f6...",
"data_hash_validation": "sha256:f6e5d4c3b2a1...",
"container_digest": "sha256:9f8e7d6c5b4a...",
},
},
}
response = sagemaker.create_model_card(
ModelCardName="churn-v4-ai-bom",
Content=json.dumps(ai_bom_model_section),
ModelCardStatus="Draft",
SecurityConfig={"KmsKeyId": "alias/ml-governance-key"},
Tags=[
{"Key": "ai-bom-version", "Value": "1.0.0"},
{"Key": "model-version", "Value": "v4"},
],
)
print(f"AI-BOM Model Card: {response['ModelCardArn']}")
SageMaker Lineage Tracking: Data Provenance
Lineage Tracking captures the complete ancestry of your model -- every dataset, processing step, and artifact in the chain. This is the data provenance component of your AI-BOM.
import boto3
from sagemaker.lineage.context import Context
from sagemaker.lineage.artifact import Artifact
from sagemaker.lineage.association import Association
from sagemaker.session import Session
sagemaker_session = Session()
# Create artifact for training data source
training_data_artifact = Artifact.create(
artifact_name="churn-training-data-v4",
source_uri="s3://ml-data/churn/training/v4/",
artifact_type="DataSet",
properties={
"collection_period": "2024-07-01 to 2026-06-30",
"record_count": "45000",
"positive_class_rate": "0.082",
"pii_status": "anonymized",
"data_quality_check": "passed-2026-07-01",
"schema_version": "v4",
"source_system": "data-warehouse-prod",
"extraction_query": "s3://ml-pipelines/churn/sql/training_extract_v4.sql",
},
sagemaker_session=sagemaker_session,
)
# Create artifact for feature engineering code
feature_eng_artifact = Artifact.create(
artifact_name="churn-feature-engineering-v4",
source_uri="s3://ml-pipelines/churn/processing/feature_engineering_v4.py",
artifact_type="Code",
properties={
"git_commit": "abc123def456",
"git_repo": "github.com/org/ml-pipelines",
"code_review": "PR-427-approved",
"test_coverage": "0.92",
},
sagemaker_session=sagemaker_session,
)
# Create artifact for the trained model
model_artifact = Artifact.create(
artifact_name="churn-model-v4",
source_uri="s3://ml-artifacts/churn-v4/model.tar.gz",
artifact_type="Model",
properties={
"framework": "xgboost-2.1.0",
"model_hash": "sha256:9f8e7d6c5b4a...",
"training_job": "churn-v4-20260710",
"instance_type": "ml.m5.4xlarge",
},
sagemaker_session=sagemaker_session,
)
# Create associations to build the lineage graph
Association.create(
source_arn=training_data_artifact.artifact_arn,
destination_arn=model_artifact.artifact_arn,
association_type="ContributedTo",
sagemaker_session=sagemaker_session,
)
Association.create(
source_arn=feature_eng_artifact.artifact_arn,
destination_arn=model_artifact.artifact_arn,
association_type="ContributedTo",
sagemaker_session=sagemaker_session,
)
print("Lineage graph created for AI-BOM data provenance")
ECR Container SBOM
Your training and inference containers are part of the AI supply chain. ECR provides container image scanning that generates a traditional SBOM for the container layer of your AI-BOM.
# Enable enhanced scanning for ML container images
aws ecr put-registry-scanning-configuration \
--scan-type ENHANCED \
--rules '[{
"repositoryFilters": [
{"filter": "ml-*", "filterType": "WILDCARD"},
{"filter": "churn-*", "filterType": "WILDCARD"}
],
"scanFrequency": "CONTINUOUS_SCAN"
}]'
# Get scan findings for the training container
aws ecr describe-image-scan-findings \
--repository-name "churn-training" \
--image-id imageTag="v4.0.2" \
--query '{
ImageDigest: imageDetail.imageDigest,
ScanStatus: imageScanStatus.status,
VulnerabilityCounts: imageScanFindings.findingSeverityCounts,
CriticalFindings: imageScanFindings.findings[?severity==`CRITICAL`].{
Name: name,
Severity: severity,
Package: attributes[?key==`package_name`].value | [0],
Version: attributes[?key==`package_version`].value | [0]
}
}' \
--output json
# Export SBOM for the inference container
aws ecr describe-images \
--repository-name "churn-inference" \
--image-ids imageTag="v4.0.2" \
--query 'imageDetails[0].{
Digest: imageDigest,
Tags: imageTags,
PushedAt: imagePushedAt,
Size: imageSizeInBytes,
ScanStatus: imageScanStatus.status
}' \
--output json
Compliance Tip: OWASP LLM05 (Supply Chain Vulnerabilities) specifically calls out risks from "outdated or deprecated components" and "vulnerable pre-trained models." Your AI-BOM container layer addresses the first risk. Your lineage tracking addresses the second. Together, they provide complete supply chain visibility.
AI-BOM Schema
There is no universally adopted AI-BOM standard yet, but the schema should be machine-readable, versionable, and comprehensive. Here is a proposed JSON schema that covers all critical components:
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "AI-BOM",
"description": "AI Bill of Materials - complete inventory of AI system components",
"type": "object",
"properties": {
"ai_bom_version": {"type": "string", "const": "1.0.0"},
"generated_at": {"type": "string", "format": "date-time"},
"generator": {"type": "string"},
"system": {
"type": "object",
"properties": {
"name": {"type": "string"},
"version": {"type": "string"},
"description": {"type": "string"},
"risk_level": {"type": "string", "enum": ["low", "medium", "high", "critical"]},
"owner": {"type": "string"},
"purpose": {"type": "string"}
},
"required": ["name", "version", "risk_level", "owner"]
},
"model": {
"type": "object",
"properties": {
"model_id": {"type": "string"},
"model_type": {"type": "string"},
"algorithm": {"type": "string"},
"framework": {"type": "string"},
"framework_version": {"type": "string"},
"base_model": {"type": ["string", "null"]},
"artifact_uri": {"type": "string"},
"artifact_hash": {"type": "string"},
"training_job_arn": {"type": "string"},
"training_instance_type": {"type": "string"},
"training_duration_seconds": {"type": "integer"},
"model_card_arn": {"type": "string"}
},
"required": ["model_id", "algorithm", "framework", "artifact_hash"]
},
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {"type": "string"},
"type": {"type": "string", "enum": ["training", "validation", "test", "calibration"]},
"uri": {"type": "string"},
"hash": {"type": "string"},
"record_count": {"type": "integer"},
"collection_period": {"type": "string"},
"source_system": {"type": "string"},
"pii_classification": {"type": "string"},
"quality_check_status": {"type": "string"},
"lineage_artifact_arn": {"type": "string"}
},
"required": ["name", "type", "hash"]
}
},
"dependencies": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {"type": "string"},
"version": {"type": "string"},
"type": {"type": "string", "enum": ["python-package", "system-library", "container-image", "pre-trained-model"]},
"source": {"type": "string"},
"hash": {"type": "string"},
"license": {"type": "string"},
"vulnerability_scan": {"type": "string", "enum": ["clean", "low", "medium", "high", "critical"]}
},
"required": ["name", "version", "type"]
}
},
"infrastructure": {
"type": "object",
"properties": {
"cloud_provider": {"type": "string"},
"region": {"type": "string"},
"training_instance": {"type": "string"},
"inference_instance": {"type": "string"},
"vpc_id": {"type": "string"},
"encryption_key_arn": {"type": "string"}
}
},
"evaluation": {
"type": "object",
"properties": {
"metrics": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {"type": "string"},
"value": {"type": "number"},
"dataset": {"type": "string"}
}
}
},
"bias_analysis": {
"type": "object",
"properties": {
"tool": {"type": "string"},
"date": {"type": "string", "format": "date"},
"facets_tested": {"type": "array", "items": {"type": "string"}},
"result": {"type": "string"},
"report_uri": {"type": "string"}
}
}
}
},
"approvals": {
"type": "array",
"items": {
"type": "object",
"properties": {
"approver": {"type": "string"},
"role": {"type": "string"},
"date": {"type": "string", "format": "date-time"},
"decision": {"type": "string", "enum": ["approved", "rejected", "conditional"]},
"conditions": {"type": "string"}
}
}
},
"compliance_mappings": {
"type": "array",
"items": {
"type": "object",
"properties": {
"framework": {"type": "string"},
"control": {"type": "string"},
"evidence_type": {"type": "string"},
"evidence_uri": {"type": "string"}
}
}
}
},
"required": ["ai_bom_version", "generated_at", "system", "model", "data"]
}
This schema is extensible. Add sections for your specific needs -- regulatory metadata, custom evaluation criteria, deployment configurations -- while maintaining the core structure that compliance tools can parse.
Automating AI-BOM Generation from SageMaker Pipelines
The most valuable AI-BOM is one that generates itself. By hooking into SageMaker Pipelines, you can automatically produce an AI-BOM every time a model is trained.
import boto3
import json
import hashlib
from datetime import datetime
def generate_ai_bom(training_job_name: str, model_package_arn: str) -> dict:
"""
Generate an AI-BOM from a completed SageMaker training job
and registered model package. Called as a pipeline step.
"""
sagemaker = boto3.client("sagemaker")
s3 = boto3.client("s3")
# Fetch training job details
training_job = sagemaker.describe_training_job(TrainingJobName=training_job_name)
# Fetch model package details
model_package = sagemaker.describe_model_package(ModelPackageName=model_package_arn)
# Fetch lineage artifacts
lineage = sagemaker.query_lineage(
StartArns=[model_package_arn],
Direction="Ascendants",
MaxDepth=10,
)
# Build AI-BOM
ai_bom = {
"ai_bom_version": "1.0.0",
"generated_at": datetime.utcnow().isoformat(),
"generator": "sagemaker-pipeline-ai-bom-v1",
"system": {
"name": training_job_name.rsplit("-", 1)[0],
"version": model_package.get("ModelPackageVersion", "unknown"),
"risk_level": model_package.get("CustomerMetadataProperties", {}).get(
"risk_level", "medium"
),
"owner": model_package.get("CustomerMetadataProperties", {}).get(
"owner", "ML Platform Team"
),
},
"model": {
"model_id": training_job_name,
"algorithm": training_job["AlgorithmSpecification"].get(
"TrainingImage", "custom"
),
"framework": training_job.get("HyperParameters", {}).get(
"sagemaker_program", "unknown"
),
"artifact_uri": training_job["ModelArtifacts"]["S3ModelArtifacts"],
"artifact_hash": f"sha256:{hashlib.sha256(training_job_name.encode()).hexdigest()[:16]}",
"training_job_arn": training_job["TrainingJobArn"],
"training_instance_type": training_job["ResourceConfig"]["InstanceType"],
"training_duration_seconds": training_job.get("TrainingTimeInSeconds", 0),
},
"data": [],
"dependencies": [],
"infrastructure": {
"cloud_provider": "aws",
"region": training_job["TrainingJobArn"].split(":")[3],
"training_instance": training_job["ResourceConfig"]["InstanceType"],
"encryption_key_arn": training_job["ResourceConfig"].get(
"VolumeKmsKeyId", "none"
),
},
"evaluation": {
"metrics": [
{"name": k, "value": float(v), "dataset": "validation"}
for k, v in training_job.get("FinalMetricDataList", [{}])[0].items()
if k != "Timestamp"
] if training_job.get("FinalMetricDataList") else [],
},
}
# Extract data sources from lineage
for vertex in lineage.get("Vertices", []):
if vertex.get("Type") == "DataSet":
ai_bom["data"].append({
"name": vertex.get("Arn", "").split("/")[-1],
"type": "training",
"uri": vertex.get("Arn", ""),
"hash": "pending-calculation",
"lineage_artifact_arn": vertex.get("Arn", ""),
})
# Store AI-BOM as evidence
bom_key = f"ai-bom/{training_job_name}/{datetime.utcnow().strftime('%Y%m%d')}.json"
s3.put_object(
Bucket="ml-governance-evidence",
Key=bom_key,
Body=json.dumps(ai_bom, indent=2, default=str),
ServerSideEncryption="aws:kms",
Metadata={
"ai-bom-version": "1.0.0",
"training-job": training_job_name,
},
)
return ai_bom
Integrate this function as a Lambda step in your SageMaker Pipeline. After training completes and the model is registered, the AI-BOM is generated automatically and stored as governance evidence. No manual work required.
Compliance Mappings
AI-BOMs address specific requirements across multiple compliance frameworks:
| Framework | Control | AI-BOM Component | Evidence |
|---|---|---|---|
| NIST AI RMF | MAP 2.1 (Interdependencies) | Full AI-BOM | Complete component inventory |
| NIST AI RMF | MAP 2.3 (Scientific integrity) | Data provenance | Lineage tracking artifacts |
| NIST AI RMF | MANAGE 4.2 (Documentation) | Model metadata | Model Card + AI-BOM JSON |
| EU AI Act | Article 11 (Technical documentation) | Full AI-BOM | AI-BOM as Annex IV documentation |
| EU AI Act | Article 10 (Data governance) | Data sources | Lineage + Glue catalog entries |
| EU AI Act | Article 15 (Cybersecurity) | Dependencies, container SBOM | ECR scan results, dependency list |
| OWASP LLM | LLM03 (Training data poisoning) | Data provenance | Lineage tracking with hashes |
| OWASP LLM | LLM05 (Supply chain vulnerabilities) | Dependencies, container SBOM | ECR scan, CodeArtifact audit |
| ISO 42001 | 8.4 (AI system documentation) | Full AI-BOM | AI-BOM as documentation artifact |
| ISO 42001 | 8.6 (Data for AI systems) | Data sources | Data catalog + lineage |
| SOC 2 | CC8.1 (Change management) | Model versioning | Model Registry + AI-BOM diff |
Key Takeaway: An AI-BOM is not just a transparency tool. It is a compliance accelerator. A single AI-BOM satisfies documentation requirements across NIST AI RMF, EU AI Act, OWASP LLM Top 10, ISO 42001, and SOC 2. Generate it once, map it to every framework.
Using Claw GRC for AI-BOM Management
Claw GRC auto-generates AI-BOMs from your AWS metadata and integrates them into your compliance program:
Automated AI-BOM generation:
- Pulls model metadata from SageMaker Model Cards and Model Registry
- Extracts data provenance from SageMaker Lineage Tracking
- Ingests container SBOMs from ECR enhanced scanning
- Aggregates dependency information from CodeArtifact
- Generates complete AI-BOMs in the standard schema
AI-BOM lifecycle management:
- Version tracking (AI-BOM diff between model versions)
- Vulnerability alerting (notify when a dependency in any AI-BOM has a new CVE)
- Staleness detection (flag AI-BOMs that have not been regenerated after a model update)
- Cross-model dependency analysis (which models share data sources or base models)
Compliance mapping:
- Each AI-BOM component automatically mapped to applicable framework controls
- Gap analysis showing AI-BOMs with missing components for specific frameworks
- Audit-ready evidence packages with AI-BOMs organized by framework
For the complete picture of AWS AI governance, see the Complete Guide to AWS AI/ML Governance. For deeper coverage of model documentation and lineage tracking, see SageMaker Model Cards for Compliance and SageMaker ML Lineage Tracking. For supply chain security context, see OWASP LLM Top 10 Compliance.