AI bill of materials in CycloneDX
Last updated 24 November 2026
An AI bill of materials, or AI-BOM, lists the AI agent parts a team relies on and the risks known in them, in a file other tools can read. Spellwarden writes it in CycloneDX 1.7, the bill of materials standard that Ecma International also publishes as ECMA-424: skills, plugins and marketplaces, MCP servers, repositories, A2A agent cards and items seen only at runtime, with their open and accepted findings. Give it to a customer's security review, to an auditor or to your own inventory system.
Two ways to get one
| From | What it covers | Plan |
|---|---|---|
The open-source scanner, spellwarden scan --format cyclonedx | One repository, or with --user the agent configuration of one workstation. | Free, for everyone |
| Spellwarden, for your organisation | Everything the organisation tracks: its skills, MCP servers, repositories, agent cards, items seen only at runtime and findings, with the same counts as the dashboard. | Enterprise |
Both files are written by one module of the open-source scanner, so a skill, a server or a finding looks the same in each.
From the free scanner
Scanner 1.14.0 and later write the format like any other report. Give --format once per report, each with its own --output; the second line also prints the usual text report:
spellwarden scan --format cyclonedx --output ai-bom.cdx.json
spellwarden scan --format text --format cyclonedx --output ai-bom.cdx.json- Skills, plugins, marketplaces, instruction files and configuration documents are components. MCP servers and A2A agent cards are services. Findings are vulnerabilities, each naming the component or service it is in.
- A finding on a configuration document, such as a server launched from an unpinned package (SW-CFG-003), names the document, and the document depends on the servers it defines.
- A finding accepted in the baseline file is listed as accepted, with the baseline's reason and the date the entry expires.
- With
--probe, each remote server lists the names of the tools the probe read. - Paths are relative to the scan root and the file holds no absolute path. Its timestamp is the
--as-ofdate at midnight UTC and its serial number is computed from the content, so the same scan gives the same file.
On a developer's machine, spellwarden scan --user --format cyclonedx writes the same kind of file for the agent configuration of the home directory. Its subject is a device named workstation, with no identifier of the machine, and --inventory writes one that lists what is installed and no findings.
For your whole organisation
The organisation's AI-BOM is part of the Enterprise plan. On Team and during a trial the button is shown locked, and the API and the connector answer plan_required.
From the dashboard
- Open the organisation's Overview page.
- Select Download AI-BOM. The button says Building the AI-BOM while Spellwarden builds the file in the background.
- The download starts by itself when the file is ready. If you leave the page first, the export is not lost: start it again or fetch it through the API.
When the file leaves findings out, because it lists at most 25,000 or because a finding's item is not in the file, a line under the button says how many are counted but not listed. Viewers do not see the button, because building an export needs permission to change data, and the live demo does not show it either.
From the API
| Method | Path | What it does | Scope |
|---|---|---|---|
| POST | /orgs/{slug}/ai-bom | Starts an export. The body is empty or {}; any field is refused. Answers 202 with the export. | data:write |
| GET | /orgs/{slug}/ai-bom | Lists the organisation's exports, newest first, 50 a page. | data:read |
| GET | /orgs/{slug}/ai-bom/{id} | Shows one export, with a download link while it is ready. | data:read |
Paths are relative to https://dash.spellwarden.ai/api/v1, and a key goes in the x-api-key header, as for every route of the API. Start an export, then ask for it until it is ready:
curl -X POST -H "x-api-key: $SPELLWARDEN_API_KEY" \
https://dash.spellwarden.ai/api/v1/orgs/<your-organisation>/ai-bom
curl -H "x-api-key: $SPELLWARDEN_API_KEY" \
https://dash.spellwarden.ai/api/v1/orgs/<your-organisation>/ai-bom/<export id>An export has an id, a status of building, ready or failed, an error when it failed, and once ready its size, sha256, counts, vulnerabilities_omitted, runtime_partial, a url that works for 15 minutes and url_expires_at. Ask again for a fresh link. The file is named spellwarden-ai-bom-<organisation>-<YYYYMMDD>.cdx.json and served as application/vnd.cyclonedx+json.
From Claude
The connector's tool export_ai_bom starts an export; called again with the export's id, it returns the status and, once the file is ready, the link. A read only connection can fetch an export but cannot start one. Spellwarden connector for Claude shows how to connect it.
Who can export, and how often
- Owners, managers and members can start an export, and so can a read and write API key or a connection with read and write access. Viewers, read keys and read only connections can list exports and download a ready one. CI, ingest and workstation keys can do neither.
- An organisation can start 10 exports an hour. More is answered
429with aRetry-Afterheader. - Each export is kept for 30 days, and each download link works for 15 minutes. An export whose file is gone shows
purged; build a new one. - Starting an export is recorded in the audit log as
ai_bom.requested.
When an export fails
| Error | What happened | What to do |
|---|---|---|
start_failed | The background job could not be started. | Try again. |
job_failed | The build stopped before it finished. | Try again, and write to us if it keeps failing. |
timed_out | The export was still building after 15 minutes. | Try again, and write to us if it keeps failing. |
too_large | The organisation is too large for the build to finish in 270 seconds. No partial file is published. | Write to us. |
org_unavailable | The organisation was deleted or suspended while the export was building. | Nothing: no file is built for it. |
The dashboard says the same in words, for example This organisation is too large for the AI-BOM to finish. Contact support. Support is at hello.invalid [at] spellwarden [dot] ai.
What the organisation's file lists
Each part of your organisation becomes one part of the CycloneDX file. Every property Spellwarden adds starts with spellwarden:, and the kind of each part is in spellwarden:kind.
| In Spellwarden | In the file | What it carries |
|---|---|---|
| Your organisation | metadata.component, type application | The organisation's name; the reference org:<slug>. |
| Spellwarden | metadata.tools, type application, and metadata.properties | In metadata.tools: the scanner version the service runs and a link to spellwarden.ai. In metadata.properties: the property spellwarden:service, the service dash.spellwarden.ai. |
| Skill | A component, type library | Name, version when known, the SHA-256 of the package, the repository link of a skill from git, its source, commit and path, whether it is Curated or Quarantined, and the status of its latest scan. |
| Plugin | A component, type library | One per marketplace and plugin name among skills installed from a plugin marketplace. The marketplace depends on its plugins, and a plugin on its skills. |
| Marketplace | A component, type data | Its address, as a distribution reference. |
| MCP server | A service | Name, version, the endpoint of a remote server, whether it needs authentication (false for none, true for a static key or OAuth, left out when unknown), its transport, authentication mode and migration status, the command identity of a local server, and up to 200 tool names. Never its arguments, environment values, headers or tool descriptions. |
| Repository | A component, type application | Its identity, with the scan root when it is not the root, its repository link, the status and commit of its latest attested scan, how many items of each kind that scan found, and how many agent cards it held. |
| A2A agent card | A service | The card's path in the repository, or the address of a remote agent; whether it came from the repository or a remote agent, its status, card format, protocol versions, migration status and signature status. The repository depends on its agents. |
| Item seen only at runtime | A service for a server, a component for a skill | Servers and skills your agents used in the last 90 days that Spellwarden does not know, with spellwarden:runtime_only true, the first and last day seen and the number of calls. |
| Open finding | A vulnerability, analysis in_triage | The rule id, a link to the rule's page, the rule's fix sentence as its recommendation, the severity, the title, the part it affects, when it was first seen and where it is. |
| Accepted finding | A vulnerability, analysis exploitable | As an open finding, with the response will_not_fix and the note written when it was accepted. |
| The counts the dashboard shows | metadata.properties | See the counts below. |
From scanner 1.16.2, addresses in the file are written as valid IRI references: characters such as <, { or | are percent-encoded, and credentials in an address's path are masked.
A repository's plugins, marketplaces and instruction files are counted on the repository, not listed: the repository's scan keeps their numbers only. Evidence excerpts are never in the file. Workstation inventories are not in it either: they stay on their own page of the dashboard. Models, datasets, eval results, members and keys are not part of an AI-BOM.
Open and accepted findings
- An open finding has the analysis state
in_triage: it is known and not yet resolved. - An accepted finding has the state
exploitablewith the responsewill_not_fix: someone in your organisation accepted the risk, and the note they wrote is in the analysis, cut to 500 characters. CycloneDX has no state for accepted risk; exploitable with will_not_fix says the risk is real and was accepted, not that it was disproved. The note travels with the file, so write notes that you are happy for a customer or an auditor to read. - A fixed or superseded finding is not in the file: the file states the open and the accepted risk. A finding covered by a shared rule your organisation adopted leaves the open list, as in the dashboard, and stays listed when it is accepted.
- A finding of a baseline rule links to its page on spellwarden.ai. A finding someone reported by hand has no rule id and no link, and its description is the title its reporter wrote. A finding of an organisation rule keeps its SW-ORG id and has no link, because organisation rules have no public page.
An accepted finding of the rule SW-SKL-001 looks like this in the organisation's file; the link carries campaign tags so that Spellwarden can tell visits that come from an AI-BOM:
{
"bom-ref": "finding:0195f0c2a1b27c3d",
"id": "SW-SKL-001",
"source": {
"name": "Spellwarden",
"url": "https://spellwarden.ai/docs/rules/sw-skl-001?utm_source=ai-bom&utm_medium=export&utm_campaign=ai-bom"
},
"ratings": [
{
"source": {
"name": "Spellwarden",
"url": "https://spellwarden.ai/docs/rules/sw-skl-001?utm_source=ai-bom&utm_medium=export&utm_campaign=ai-bom"
},
"severity": "high",
"method": "other"
}
],
"description": "Prompt-injection phrases in skill instructions",
"created": "2026-11-10T09:12:00Z",
"analysis": {
"state": "exploitable",
"response": [
"will_not_fix"
],
"detail": "Quoted as an example of what the skill refuses."
},
"affects": [
{
"ref": "skill:0195f0c2a1b27c3e"
}
],
"properties": [
{
"name": "spellwarden:location",
"value": "SKILL.md:12"
},
{
"name": "spellwarden:origin",
"value": "rule"
},
{
"name": "spellwarden:status",
"value": "accepted"
}
],
"recommendation": "Delete the sentence that tells the model to ignore its instructions or keep things from the user, and describe the task in plain steps instead."
}The counts, and the dashboard numbers they equal
The file's counts come from the same reads as the dashboard, so each one equals a number you can see there at the same time. The target is one of skill, mcp_server or repository.
| Property | Equals |
|---|---|
spellwarden:count:skills | The skills on the Overview page. |
spellwarden:count:mcp_servers | The MCP servers on the Overview page. |
spellwarden:count:repositories | The repositories on the Overview page. |
spellwarden:count:open:<target>:<severity> | The open findings of that target and severity on the Overview page. |
spellwarden:count:accepted:<target> | The accepted findings of that target on the Findings page. |
spellwarden:count:runtime_only_servers and spellwarden:count:runtime_only_skills | The servers and skills Spellwarden does not know on the Runtime page with the period set to 90 days, not the Overview page's runtime card, which counts 7 days. |
spellwarden:count:agent_cards | The agent cards listed on the repository pages. |
spellwarden:count:plugins and spellwarden:count:marketplaces | The plugins and marketplaces listed in the file. |
Beside the counts, spellwarden:vulnerabilities_omitted and spellwarden:agent_cards_omitted say how many findings and agent cards were counted but not listed, spellwarden:runtime_days is 90, spellwarden:runtime_partial says whether the runtime records were read in full, and spellwarden:runtime_hidden_items counts runtime items that are folded or hidden in the dashboard and so not listed.
Limits
- The file lists up to the 25,000 most severe findings, newest first within a severity. Past that,
spellwarden:vulnerabilities_omittedsays how many more were counted. Findings whose target is not listed in the file are also left out and counted there. Every count still counts all of them, and the export and the dashboard say it too. - It lists at most 50 agent cards per repository, the ones a repository's latest scan keeps. The repository says how many cards the scan held, and
spellwarden:agent_cards_omittedgives the total left out. The scan judged every card, and their findings are listed on the repository. - It lists up to 200 tool names per MCP server, as many as a server holds.
- It reads up to 20,000 runtime records. Past that,
spellwarden:runtime_partialis true and the dashboard says so. - A build that does not finish within 270 seconds ends with
too_largeand publishes no file, never a partial one.
Check the file against the schema
Both files declare "specVersion": "1.7" and the schema http://cyclonedx.org/schema/bom-1.7.schema.json. Spellwarden's own tests check every file against release 1.7.2 of the CycloneDX schema, offline. To do the same, download the four schema files of that release once, save the script below as validate.py and run it on your file:
mkdir cyclonedx-1.7.2
for name in bom-1.7 spdx jsf-0.82 cryptography-defs; do
curl -sSf -o cyclonedx-1.7.2/$name.schema.json \
https://raw.githubusercontent.com/CycloneDX/specification/1.7.2/schema/$name.schema.json
done
uv run --with jsonschema python validate.py spellwarden-ai-bom.cdx.json# validate.py: checks a CycloneDX file against the schema files in the folder beside it, offline.
import json
import sys
from pathlib import Path
from jsonschema import Draft7Validator
from referencing import Registry, Resource
folder = Path("cyclonedx-1.7.2")
schemas = [json.loads(path.read_text(encoding="utf-8")) for path in folder.glob("*.schema.json")]
registry = Registry().with_resources((schema["$id"], Resource.from_contents(schema)) for schema in schemas)
bom = next(schema for schema in schemas if schema["$id"].endswith("/bom-1.7.schema.json"))
document = json.loads(Path(sys.argv[1]).read_text(encoding="utf-8"))
errors = list(Draft7Validator(bom, registry=registry).iter_errors(document))
for error in errors:
print("/".join(str(part) for part in error.absolute_path), error.message)
print(f"{len(errors)} problems")
sys.exit(1 if errors else 0)The script reads the schema files from the folder, never from the network, and prints each problem with the place in the file. It exits with 0 when the file is valid.