Skip to main content

Nexus SymBiote: an Agent Bill of Materials for AI agent supply chains

Nexus SymBiote

Know what your AI agents are built from. Gate them on evidence. Catch drift before it ships.

CI CodeQL Python 3.11 | 3.12 | 3.13 | 3.14 MIT license Status: alpha Exports: CycloneDX 1.7, SPDX 3.0.1, SARIF, VEX

Quick start · Why · How it works · CI · Docs · Status

Nexus SymBiote generates an Agent Bill of Materials (AgentBOM) — an evidence-backed inventory of the MCP servers, models, instruction files, retrieval sources, A2A cards, IDE agent settings, packages, and container images an AI agent is assembled from. It inspects projects statically and offline by default without executing them, gates on risk and supply-chain drift, and exports to CycloneDX 1.7, SPDX 3.0.1, SARIF 2.1.0, and VEX.

nexus-symbiote scan ./my-agent --no-project-policy --accept-default-exclude root:.git -o agentbom.json
nexus-symbiote risk agentbom.json --no-project-policy --threshold 50
nexus-symbiote diff reviewed.json agentbom.json --fail-on-alert

Alpha. Interfaces, formats, and policy semantics may change. Not related to the 2022 Linux malware Symbiote. Review known detection gaps and what results do and do not establish before using outputs in approval decisions.

Quick start

Install from reviewed source

Requires git and Python 3.11–3.14 on Linux or macOS (Windows fails closed by design; see platforms). Replace REVIEWED_COMMIT_SHA with the full 40-character commit SHA you reviewed and run as one block:

(
  set -euo pipefail
  reviewed_commit='REVIEWED_COMMIT_SHA'
  [[ "$reviewed_commit" =~ ^[0-9a-f]{40}$ ]]
  git clone https://github.com/aisecnomad/Nexus-Symbiote.git
  cd Nexus-Symbiote
  git checkout --detach "$reviewed_commit"
  test "$(git rev-parse HEAD)" = "$reviewed_commit"
  python3 -m venv --clear .venv
  .venv/bin/python -m pip install --require-hashes --only-binary=:all: -r requirements-action.lock
  .venv/bin/python -m pip install --no-deps --no-build-isolation .
  .venv/bin/nexus-symbiote --version
)

Activate with cd Nexus-Symbiote && . .venv/bin/activate. Optional extras: .[sigstore], .[cyclonedx], or .[all]. For contributors, run make install-locked (see CONTRIBUTING.md).

Install a verified release

Requires Python 3.11–3.14, git, curl, and the GitHub CLI (gh auth login). Downloads the published v0.2.0 wheel, verifies its GitHub build attestation against the signed v0.2.0 tag commit, and installs the hash-locked runtime:

(
  set -euo pipefail
  python3 -m venv --clear .venv
  commit="$(git ls-remote https://github.com/aisecnomad/Nexus-Symbiote.git 'refs/tags/v0.2.0^{}' | cut -f1)"
  test -n "$commit" || { echo "tag v0.2.0 not found" >&2; exit 1; }
  .venv/bin/python -m pip download --no-deps --only-binary=:all: nexus-symbiote==0.2.0 -d dist
  gh attestation verify dist/nexus_symbiote-0.2.0-py3-none-any.whl --repo aisecnomad/Nexus-Symbiote \
    --signer-workflow aisecnomad/Nexus-Symbiote/.github/workflows/release.yml \
    --source-ref refs/heads/main --source-digest "$commit" --deny-self-hosted-runners
  curl -fsSL -o requirements-action.lock \
    "https://raw.githubusercontent.com/aisecnomad/Nexus-Symbiote/$commit/requirements-action.lock"
  .venv/bin/python -m pip install --require-hashes --only-binary=:all: -r requirements-action.lock
  .venv/bin/python -m pip install --no-deps dist/nexus_symbiote-0.2.0-py3-none-any.whl
  .venv/bin/nexus-symbiote --version
)

See Releasing for attestation details and offline verification with --bundle.

Try it in 60 seconds

From a reviewed source checkout, inventory the bundled demo agent completely offline:

nexus-symbiote scan examples/demo-agent -o demo.aibom.json
nexus-symbiote summary demo.aibom.json
nexus-symbiote risk demo.aibom.json --no-project-policy
nexus-symbiote validate demo.aibom.json --project examples/demo-agent --no-project-policy

The scan records 11 components across 9 types and eleven findings (risk score 41, below the default threshold of 50). validate exits 1 intentionally: completeness passes, but the model's integrity stays UNKNOWN without an operator-owned signer policy.

Pin the model digest in a policy outside the checkout (using a trusted digest in production):

policy_dir="$(mktemp -d)"   # must lie outside the scanned repository
digest="$(sha256sum examples/demo-agent/models/intent-classifier.safetensors | cut -d' ' -f1)"
printf '{"version": 2, "artifacts": [{"kind": "digest-pin", "expected_sha256": "sha256:%s",
  "artifact_path": "models/intent-classifier.safetensors"}]}\n' "$digest" > "$policy_dir/signers.json"
nexus-symbiote validate demo.aibom.json --project examples/demo-agent --no-project-policy \
  --signature-policy "$policy_dir/signers.json"

validate now exits 0. Continue with the offline examples walkthrough (drift, exports, ShadowScan import, OTLP traces) or the public-agent tutorial.

Scan your own agent

nexus-symbiote scan /path/to/agent --no-project-policy --accept-default-exclude root:.git -o agentbom.json
nexus-symbiote validate agentbom.json --project /path/to/agent --no-project-policy --accept-default-exclude root:.git
nexus-symbiote risk agentbom.json --project /path/to/agent --no-project-policy --accept-default-exclude root:.git --threshold 50

Checkout policies (.nexus-symbiote.yaml) automatically tighten gates, require --accept-project-policy for relaxations, and are ignored with --no-project-policy. Passing --project forces fresh local evidence collection and fails on any mismatch.

Why

AI agents are assembled from parts traditional SBOMs never see — MCP servers, model weights, prompts and skills, retrieval stores, A2A cards, and IDE permissions — all of which can alter behavior without a code review (see OWASP Top 10 for Agentic Applications ASI04).

Supply-chain risk What Nexus SymBiote does
Floating dependencies Flags unpinned MCP packages (@latest) and container images lacking digest pins
Tool rug pulls Fingerprints MCP tool definitions via RFC 8785 JCS (live observations and declared static tools) so changes fire critical drift alerts
Endpoint & scope widening Raises critical/high drift alerts when MCP or A2A hosts move or OAuth scopes expand
Unsafe or unsigned weights Classifies model formats without loading them, validates SafeTensors headers, and keeps integrity UNKNOWN until verified by your signer policy
Hidden prompt injection Detects bidi/zero-width/tag characters and hidden HTML/Markdown comments in instructions and tool metadata
Over-broad IDE permissions Flags bypassPermissions, blanket allow rules (Bash(*)), risky hooks, and unapproved settings drift
Credential exposure Records secret names only, redacts known token patterns, and flags hardcoded literals

Every control has explicit bounds: see known limitations and the security model.

How it works

             ┌──────────────────────────────────────────────┐
  agent      │ 8 static collectors (nothing is executed)    │
  project ──>│ mcp · model · prompt · rag · registry        │
 (read-only) │ a2a · ide_agents · shadowscan                │
             └──────────────────────┬───────────────────────┘
                                    v
             ┌──────────────────────────────────────────────┐
             │ AgentBOM (native JSON)                       │
             │ components · relationships · findings        │
             │ coverage, gaps, and assurance per claim      │
             └──────┬───────────────┬───────────────┬───────┘
                    v               v               v
             validate · risk       diff          exports
             gates (exit 0/1)  drift alerts   CycloneDX · SPDX
                                               SARIF · VEX
  1. Collect — Confined, descriptor-relative, size-bounded reads emit components, findings, and coverage claims.
  2. Assemble — Merges evidence into one deterministic AgentBOM keeping declared, observed, and verified distinct.
  3. Gate — validate reconciles completeness, digests, bindings, and operator signer policies; risk enforces thresholds and severity cutoffs; diff --fail-on-alert gates drift against a reviewed baseline. Gaps fail closed.
  4. Export — Emits schema-validated CycloneDX 1.7, SPDX 3.0.1, SARIF 2.1.0, and VEX from the exact same collection.

Built-in collectors

Collector Surface Records
mcp MCP clients & servers Launchers, package pins, transports, endpoints, static tool declarations & fingerprints
model Model weights File SHA-256, serialization safety, SafeTensors headers, signature status
prompt Instructions & skills Content digests, @path imports, hidden-character and hidden-markup findings
rag RAG & vector stores Retrieval sources, store/index/embedding identities, URI origins, guardrail/eval digests
registry Packages & images AI package catalog pins, lockfile integrity, container digests, index redirects
a2a A2A agent cards Endpoints, security schemes, OAuth scopes, card signature status
ide_agents IDE agent settings Permission modes, blanket grants, hook commands, settings digests
shadowscan ShadowScan reports Imported discovery claims kept separate from local evidence

Nothing read is executed, imported, or loaded. Omitting a collector via --scanner records it as unknown, never clean. Full path coverage: collector reference.

Key commands

Command Purpose
scan Inventory a project into native JSON, CycloneDX, SPDX, or SARIF
validate / risk Enforce completeness, integrity, signer policy, and risk policy gates
diff / diff-instructions Gate supply-chain drift and instruction-scope changes
digest / attest / verify-attestation Compute content digests and sign/verify DSSE inventory attestations
trace-diff / audit-control-plane / trifecta Compare OTLP traces, audit hooks/bridges/steering surfaces, and flag lethal trifectas
crosswalk / minimum-elements / graph Map compliance frameworks, check G7 minimum elements, and render offline HTML graphs
export-standard / export-policy / vex Export typed CycloneDX/SPDX, default-deny Cedar/Rego policies, and VEX triage
verify-artifact / verify-discovery / import-shadowscan Verify local digests/Sigstore bundles and import/verify ShadowScan reports
runtime keygen/sign/verify/… Manage signed runtime contracts
discover-mcp / verify-live / advisories Opt-in live mode MCP observation, pinned stdio verification, and OSV lookups

Exit codes: 0 passed, 1 gate/input failure, 2 usage error (--detailed-exit-codes splits 3 gate vs 4 input/internal). Full reference: CLI reference.

What it produces

Output Command Use it for
Native AgentBOM JSON scan (default) Full-fidelity record (schemas)
CycloneDX 1.7 / SPDX 3.0.1 scan -f cyclonedx|spdx SBOM tooling; schema-validated with digest-bound native recovery (standard exports)
SARIF 2.1.0 scan -f sarif GitHub Code Scanning and SARIF viewers
CycloneDX VEX vex Triage statements (in_triage) and operator VEX decisions
Graph / Crosswalk / Attestation graph · crosswalk · attest Offline HTML exposure paths, compliance mappings, DSSE/in-toto signatures

CI integration

GitHub Action

Pin to a reviewed 40-character commit SHA, keep permissions read-only, and set a job timeout:

name: Agent inventory
on: [push, pull_request]
permissions:
  contents: read
jobs:
  inventory:
    runs-on: ubuntu-latest
    timeout-minutes: 15
    steps:
      - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
        with:
          persist-credentials: false
      - uses: aisecnomad/Nexus-Symbiote@<reviewed-40-character-commit-sha>
        with:
          scan-path: .
          output-file: agentbom.json
          validate: 'true'
          risk-check: 'true'
          risk-threshold: '50'
          fail-on-severity: 'high'

The Action installs its own hash-locked runtime off PATH, ignores checkout policies, and defaults fail-on-severity to high. Details on signer policies, SARIF upload, and gate outputs: GitHub Action guide and action.yml.

Gate drift in CI

Approve a baseline on the protected branch and compare every pull request against it using a secret binding key (32+ chars) kept outside the checkout:

export NEXUS_SYMBIOTE_SOURCE_BINDING_KEY="$AGENTBOM_BINDING_KEY"

# On the protected branch (via a reviewed PR): approve the baseline
mkdir -p .nexus-symbiote
nexus-symbiote baseline . --no-project-policy --accept-default-exclude root:.git -o .nexus-symbiote/reviewed.json

# In the pull-request job: always read the baseline from the base commit, never the PR
BASE_SHA="${BASE_SHA:-origin/main}"
git show "$BASE_SHA:.nexus-symbiote/reviewed.json" > "$RUNNER_TEMP/reviewed.json"
nexus-symbiote scan . --no-project-policy --accept-default-exclude root:.git -o "$RUNNER_TEMP/agentbom.json"
nexus-symbiote diff "$RUNNER_TEMP/reviewed.json" "$RUNNER_TEMP/agentbom.json" --fail-on-alert

Without NEXUS_SYMBIOTE_SOURCE_BINDING_KEY, redacted arguments, environment values, and same-host paths raise medium unbound-value alerts so silent widening cannot pass. See source binding, Gate drift in CI, and inventory attestation.

Policy and live mode

Every command is offline by default. Only discover-mcp, advisories, and verify-live access the network/processes, and only with --live or NEXUS_SYMBIOTE_MODE=live (offline and live modes). Generate .nexus-symbiote.yaml with nexus-symbiote init (policy reference). Optional pre-commit hooks are a local convenience, not a security control.

Documentation

Browse the full documentation hub or jump straight to your goal:

Goal Start here
Get hands-on Offline demo · Scanning a public agent
Understand trust & limits Security model · Architecture · Threat model · Known limitations
Wire into CI GitHub Action · Gate drift in CI · Inventory attestation · Container image
Look up CLI & schema details CLI reference · Collectors · Finding catalog · Policy · Collection limits
Compliance & exports Standard exports · Framework crosswalk · G7 minimum elements
Integrate discovery & runtime ShadowScan integration · Trace evidence · Runtime assurance
Release & operate Releasing · Repository controls · Operational guidance

Project status

Alpha with a single maintainer: APIs, schemas, and policy defaults may evolve. CI tests Python 3.11–3.14 on Linux and macOS against hash-locked dependencies and declared floors, with CodeQL, OSV advisory checks, and attested releases (releasing). See the roadmap and changelog.

Companion discovery engine: Nexus-ShadowScan discovers agents across broad infrastructure; Nexus SymBiote verifies local artifacts, builds evidence-backed AgentBOMs, and enforces CI gates.

Security & contributing

License

MIT © 2026 Emmanuel Dahunsi (AISecNomad). Vendored upstream schemas under src/nexus_symbiote/generators/schemas/vendor/ retain their licenses: CycloneDX (Apache-2.0) and SPDX 3.0.1 (Community-Spec-1.0 / CC-BY-3.0); see NOTICE.txt. Package license expression: MIT AND Apache-2.0 AND Community-Spec-1.0 AND CC-BY-3.0.

Metadata

Release files for nexus-symbiote 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nexus-symbiote 0.2.0
File Size Uploaded Provenance Actions
nexus_symbiote-0.2.0.tar.gz 3.5 MB With provenance Details for nexus_symbiote-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nexus-symbiote 0.2.0
File Interpreter ABI Platform Actions
nexus_symbiote-0.2.0-py3-none-any.whl Python 3 none any Details for nexus_symbiote-0.2.0-py3-none-any.whl

Total release size: 4.9 MB

Release files / nexus_symbiote-0.2.0.tar.gz

Download URL nexus_symbiote-0.2.0.tar.gz
Size 3.5 MB
Tags Source
SHA-256 checksum
How to use checksums
5926da380f28dbbdb62251879646381d8d181127c292882dbf8670c9307cebe0
BLAKE2b-256 checksum
How to use checksums
2371b67e7884b0cc3e3525ee9727a741033eb72a95550f6e2c9576e02c169804
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

Release files / nexus_symbiote-0.2.0-py3-none-any.whl

Download URL nexus_symbiote-0.2.0-py3-none-any.whl
Size 1.3 MB
Tags Python 3
SHA-256 checksum
How to use checksums
f1db178b52c82e04cbdc1b3135dfa716c9cb79a92ae971c0d74d499a4379c041
BLAKE2b-256 checksum
How to use checksums
564af396c04a4d1e3585288aae5851fdfe2d3883a5a54bdab5e035b14eb1a2b2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

Security for nexus-symbiote 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for nexus_symbiote-0.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page