Skip to main content
Glama

发现 → 扫描 → 关联 → 处置

agent-bom 扫描仓库和软件供应链,覆盖 SCA、密钥、IaC 和容器;盘点 AI 代理、MCP、模型和数据集;并连接只读的云、身份、Snowflake 和数据源。它将证据归一化为统一的 Finding + UnifiedGraph 模型,关联可达风险,然后通过负责人、修复、验证、合规证据或运行时策略推进工作。

agent or tool entrypoint → MCP server → package → finding → impact → owner → fix → verify

可在本地或 CI 中临时运行,或使用自托管控制平面进行定时或连接扫描、历史记录、任务分配和运行时执行。原始源码和凭据保留在客户控制的执行边界内;收集的、推断的、静态的和运行时的关系保持区分;不完整的证据保持明确。

快速开始 · 证据工作流 · 集成能力矩阵 · 匹配器实测证明 · 控制平面架构

Related MCP server: agent-audit

适用人群

角色

从这里开始

主要成果

应用安全 / 产品安全

agent-bom scan . -f sarif -o findings.sarif

扫描仓库依赖、密钥、IaC 和镜像;用可达发现结果把关 CI

AI / ML 工程师

agent-bom scan .

在代理、MCP 客户端和服务器、技能、模型和数据集上线前进行盘点

云安全

agent-bom connect aws

连接只读云或 Snowflake 源,然后评估清单、态势和身份证据

平台 / DevOps

pip install 'agent-bom[ui]' && agent-bom serve

集中证据,分配负责人和 SLA,修复并验证

GRC / 审计

agent-bom report compliance-narrative scan.json

审查控制映射并导出带有明确差距的证据

管理层 / CISO

pip install 'agent-bom[ui]' && agent-bom serve

审查态势、覆盖率、重大风险和随时间的变化

安全工程和 GRC 仍是独立的工作流:发现结果和可达性不作为审计认证呈现。参见产品边界。

产品旅程

下面的截图使用带有明显标注的示例资产;实时扫描使用相同的 Finding + UnifiedGraph 契约。点击任意图片查看完整尺寸的证明。

在完整产品图库中继续查看运行时执行 · 截图协议

快速开始

从这里开始。这是入口——两条命令,无需账户,无需配置。 离线示例无需下载公告数据库即可完成,并展示清单、发现结果和爆炸半径的输出形态。

pip install agent-bom
agent-bom scan --demo --offline

示例中故意包含一个已知恶意包,因此退出状态 1 是预期的,打印的报告是完整的。接下来扫描一个仓库:

agent-bom scan .

仓库扫描显示清单、发现结果和可达影响。 agent-bom scan . 和 agent-bom scan -p . 是同一个命令;PATH 是 --project 的别名。

需要离线扫描?先初始化最小的包公告数据库:

agent-bom db update --osv-ecosystem PyPI
agent-bom scan . --offline

如果该数据库缺失或不可读,扫描会在设置 -o 时写入部分产物并以 1 退出;因此 CI 不会把不可用的公告覆盖误认为干净扫描。

在新数据库上,该命令只覆盖所选生态系统;来自其他生态系统的包仍是明确的离线覆盖缺口。对多语言仓库重复 --osv-ecosystem,或使用 agent-bom db update --source osv 获取 OSV 的全生态系统归档。完整归档可能超过 1 GB,可能需要几分钟,并在服务器提供确切总数时显示实时进度。当你还需要发行版、利用概率和已知被利用漏洞数据源时,运行更全面的 agent-bom db update。

非零退出是判定,不是崩溃。 scan 在没有匹配任何门禁时以 0 退出,匹配时以 1 退出——无论是你设置的 --fail-on-* 阈值、已知恶意包,还是未完成的扫描。无论哪种情况,报告都会完整打印,最后一行会指明匹配的门禁。完整的退出码契约。

使用 agent-bom scan . -f sarif -o findings.sarif 保存产物,或按照首次运行指南了解格式和 CI 用法。

日常开发者循环

无需安装即可试用扫描器,然后在添加包之前检查它:

uvx agent-bom scan .
uvx agent-bom check requests@2.33.0 --ecosystem pypi

check 返回允许/不安全/不完整的安装前判定;scan 覆盖仓库以及发现的 AI/MCP 配置。要让依赖和密钥门禁对团队自动化,请固定随附的消费者钩子:

repos:
  - repo: https://github.com/msaad00/agent-bom
    rev: v0.102.0
    hooks:
      - id: agent-bom-secrets
      - id: agent-bom-scan

运行一次 pre-commit install。钩子会将 agent-bom 安装到它们自己的隔离环境中,因此贡献者无需单独进行全局安装。 钩子行为和 CI 示例。

你想要

前往

扫描你的仓库

agent-bom scan .

笔记本电脑上的仪表盘

自托管

共享部署(Docker、Helm、EKS、Snowflake)

自托管 表格

把关拉取请求

首次运行指南 §5

为 AI 代理提供工具

agent-bom mcp server — MCP 服务器

连接云账户

agent-bom connect aws — 云连接

当你只想查看输出形态时,使用经过精心挑选、明确合成的示例:

agent-bom scan --demo --offline

示例中故意包含一个已知恶意包,它会以失败关闭。

自托管

启动回环控制平面:

pip install 'agent-bom[ui]'
agent-bom serve

对于共享部署,请使用文档化的 Docker 或 Helm 路径,并在暴露之前配置真实的身份、TLS、PostgreSQL、加密和审计密钥。

目标

从这里开始

Docker Compose

平台 compose — PostgreSQL、拆分密钥、迁移任务

Docker Compose(评估版)

试点 compose — 仅回环、SQLite、无认证

Helm / Kubernetes

helm install agent-bom oci://ghcr.io/msaad00/charts/agent-bom --version 0.102.0

EKS

Terraform 模块

Snowflake SPCS / Native App

scripts/deploy/install.sh snowflake-native · 安装指南

离线环境

镜像包指南

示例针对此发布候选版本;在复制精确版本号之前,请确认该版本的可用性。否则,请使用 PyPI 上显示的最新版本。

部署概览 · 企业配置 · 云连接

需求

第一步操作

产物或后续步骤

GitHub CI

uses: msaad00/agent-bom@v0.102.0

SARIF、PR 摘要和策略退出码

云证据

agent-bom connect aws

存储的连接引用;从控制平面运行扫描

运行时网关

agent-bom gateway serve --from-control-plane http://127.0.0.1:8422 --bind 127.0.0.1:8090

允许、警告和阻止审计事件

Agent 接口

agent-bom mcp server

84 个 MCP 工具、6 个资源和 8 个工作流提示

Agent 分发

Smithery 清单 · Glama · MCP 注册表 · Docker MCP

注册表特定的安装元数据

MCP 服务器模式提供 84 个 MCP 工具、6 个资源和 8 个工作流提示,全部为只读优先:发现和分析绝不会修改被扫描的目标。

设置 YDC_API_KEY 可启用可选的 youcom_search MCP 工具,以在本地威胁情报数据库之外提供实时网页和新闻上下文。它是唯一会将您的查询发送给第三方的工具,除非设置了密钥,否则该工具处于关闭状态,并且请求通过 TLS 固定到 You.com 源站——因此无法通过配置将密钥重定向到其他主机。

CLI、Docker、API、Helm chart、MCP 服务器、网关和 SDK 是同一产品的不同分发形态。Snowflake SPCS / Native App 通道在客户的 Snowflake 账户内运行;它是客户拥有的部署目标,而非 agent-bom 托管的服务。Snowflake 和 Snowpark 也仍然是其他部署配置文件的连接器和运行时集成。

形态

获取方式

Python 包

pip install agent-bom — PyPI

容器

docker pull agentbom/agent-bom — Docker Hub

Kubernetes

helm install agent-bom oci://ghcr.io/msaad00/charts/agent-bom

GitHub Action

msaad00/agent-bom

MCP 服务器

pip install 'agent-bom[mcp-server]' && agent-bom mcp server

MCP 注册表

Smithery 清单 · Glama · MCP 注册表 · Docker MCP

SDK

Python · TypeScript · Go

信任

  • 默认只读发现;运行时写入决策是独立且明确的。

  • 凭据在存储时仅可写入、静态加密,且绝不会通过 API 响应返回。

  • API 和控制平面路由在显式本地模式之外均按租户隔离并受认证保护。

  • 缺失的证据显示为不可用或部分可用,绝不会被转换为事实上的零。

  • 公开示例和截图仅使用确定性的合成标识符。

威胁模型 · 发布验证 · 安全策略 · MCP 安全模型

贡献与支持

遇到困难,或不确定问题该发到哪里?SUPPORT.md 提供了问题分类指引,并如实说明了您可以期待什么样的回复。

要贡献代码,请从 CONTRIBUTING.md、AGENTS.md 和开放问题开始。

采用 Apache-2.0 许可证。

Available Tools

8 tools
checkPackage CVE CheckA
Read-onlyIdempotent
Inspect

Check a specific package for known CVEs before installing.

    Queries OSV.dev for vulnerabilities in the given package. Use this
    before installing an MCP server or dependency to verify it is safe.

    Args:
        package: Package name with optional version, e.g. "express@4.18.2",
                 "@modelcontextprotocol/server-filesystem@2025.1.14",
                 or just "requests" (resolves @latest).
        ecosystem: Package ecosystem — "npm", "pypi", "go", "cargo",
                   "maven", "nuget", "rubygems", "composer", "swift",
                   "pub", "hex", "conda", "deb", "apk", or "rpm".
                   Defaults to "npm".

    Returns:
        JSON with package, version, ecosystem, vulnerability count,
        and vulnerability details (id, severity, cvss, fix version, summary).
    

Inputs: package (required), offline, version, ecosystem. Returns: result

complianceCompliance PostureA
Read-onlyIdempotent
Inspect

Return compliance posture with its source: the tenant's persisted evidence, or a labelled local scan.

    With completed scans in the control plane, ``summary`` is exactly
    ``/v1/compliance/summary``; ``framework`` adds ``/v1/compliance/{framework}``
    and ``control`` pages the driving finding ids from
    ``/v1/findings?framework=&control=``. Otherwise (or with
    source='local_scan') it scans local MCP configurations and labels that scope.
    

Inputs: image, limit, cursor, source, +4 more. Returns: result

exposure_pathsExposure PathsA
Read-onlyIdempotent
Inspect

Return the attack-path queue in the dashboard's order, with why each path ranks where it does.

    Ranking is ``ranking.order`` (evidence tier, KEV, severity, evidence confidence,
    composite risk, credential count); every path carries ``rank``, ``evidenceTier``,
    ``isKev``, ``severity``, ``evidenceConfidence`` and ``rankingFactors``. Totals,
    filters and cursor pages match ``/v1/graph/attack-paths``. With ``result_id`` the
    paths are that session scan result's, unfiltered and labelled ``session_scan_result``.
    

Inputs: kev, view, limit, cursor, +11 more. Returns: result

generate_sbomGenerate SBOMA
Read-onlyIdempotent
Inspect

Generate a Software Bill of Materials (SBOM) for your AI agent setup.

    Discovers AI agents and MCP servers, extracts all package dependencies,
    and generates a standards-compliant SBOM.

    Args:
        format: SBOM format — "cyclonedx" (CycloneDX 1.7) or "spdx" (SPDX 3.0).
        config_path: Path to a specific MCP config directory.
                     If not provided, auto-discovers all local agent configs.

    Returns:
        JSON string containing the SBOM in the requested format.
    

Inputs: format, config_path. Returns: result

intel_lookupThreat Intel Advisory LookupA
Read-onlyIdempotent
Inspect

Look up one advisory from the local threat-intel database.

Inputs: advisory_id (required). Returns: result

policy_checkPolicy EvaluationA
Read-onlyIdempotent
Inspect

Evaluate a security policy against current scan results.

    Runs a scan, then evaluates the provided policy rules against the
    findings. Policies can gate on severity thresholds, CISA KEV status,
    AI risk flags, credential exposure, and denied packages.

    Args:
        policy_json: JSON string containing policy rules. Example:
            {"rules": [{"id": "no-critical", "severity_gte": "critical",
            "action": "fail"}, {"id": "no-kev", "kev": true, "action": "fail"}]}

    Returns:
        JSON with passed (bool), violations list, failure_count, and
        warning_count.
    

Inputs: policy_json (required). Returns: result

remediateRemediation PlanA
Read-onlyIdempotent
Inspect

Generate a remediation plan for vulnerabilities in your AI agent setup.

    Scans for vulnerabilities, then generates actionable fix commands for
    each affected package (npm install, pip install), credential scope
    reduction guidance, and reports on unfixable vulnerabilities.

    Args:
        config_path: Path to a specific MCP config directory.
                     If not provided, auto-discovers all local agent configs.
        image: Docker image reference to scan (e.g. "nginx:1.25").

    Returns:
        JSON with package_fixes (upgrade commands by ecosystem),
        credential_fixes (scope reduction steps), and unfixable items.
    

Inputs: image, config_path. Returns: result

scanSecurity ScanA
Read-onlyIdempotent
Inspect

Run a full AI supply chain security scan and return an AI-BOM.

Point it at a target with one of: • project_path — a local project / repo directory ("scan this repo"; must be inside home or AGENT_BOM_MCP_WORKSPACE_ROOTS) • repo_url — a public git repo URL (cloned + scanned, no checkout) • config_path — a local MCP-config directory • image — a Docker image • sbom_path — an existing CycloneDX/SPDX SBOM • package — a single package or MCP launch command (pair it with ecosystem when the spec names no launcher) With none of these, it auto-discovers local MCP clients (Claude Desktop, Cursor, Windsurf, VS Code Copilot, OpenClaw, etc.).

It extracts package dependencies, looks up CVEs (online via OSV.dev and advisory sources unless offline mode is requested or configured), assesses config security (credential exposure, tool access), computes blast radius, and returns structured results. Scanning is fully static and read-only — repository and image contents are parsed, never executed.

Returns: JSON. By default a bounded summary: counts (packages, agents, findings by severity/category), top findings, affected paths, and a result_id. Page any full-fidelity section with scan(result_id=..., section='findings', offset=0, limit=25). An incomplete scan (e.g. vulnerability source unavailable) is returned as an error result whose body is still JSON.

Inputs: image, limit, detail, enrich, +20 more. Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 8 tools

    Disambiguation4/5

    Most tools target clearly distinct outputs: scan (full assessment), check (single package CVE lookup), compliance, policy_check, remediate, exposure_paths, intel_lookup. The main confusion is between scan and generate_sbom, since scan already returns an 'AI-BOM' and affected paths while generate_sbom returns a standards-compliant SBOM, plus mild overlap between check (OSV package CVEs) and intel_lookup (local advisories). Descriptions help but an agent could easily pick the wrong one for a 'give me an SBOM' request.

    Naming Consistency3/5

    Names are all snake_case (one word or two), so character style is uniform, but the verb/noun convention is mixed: bare verbs (scan, check, remediate), noun phrases (exposure_paths, compliance), and odd compounds (intel_lookup, policy_check). Readable in aggregate but not a predictable verb_noun pattern.

    Tool Count4/5

    Eight tools is a sensible scope for a supply-chain security server. Several tools (scan, remediation, policy_check, compliance, generate_sbom) internally re-run the same scan, so there is a bit of functional redundancy, but none feels wholly unjustified.

    Completeness4/5

    Covers discovery/scanning, package CVE check, SBOM export, compliance, attack-path ranking, policy gating, and remediation — a strong lifecycle. Gaps remain: no scan history/session listing, no diff/compare between scans, no finding suppression/waiver or credential inventory tool, and result paging is only reachable through scan.

    Maintenance

    ActivityActive
    ResponsivenessUsually handled

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      A security scanner that evaluates installed MCP servers for vulnerabilities by aggregating findings from 16 scanning engines into detailed trust scores. It enables users to scan their local AI agent configurations or specific repository URLs for potential security risks.
      4
      16 PyPI
      2
      Apache 2.0
    • A
      license
      Not graded
      quality
      C
      maintenance
      Security scanner for MCP servers. Detects prompt injection, command injection, auth bypass, and excessive permissions across tools, resources, and prompts.
      75 npm
      3
      MIT