agent-bom — AI Agent Infrastructure Security Scanner
Discovers MCP clients and servers across 22 AI tools, scans for CVEs, maps
blast radius, runs cloud CIS benchmarks, checks OWASP/NIST/MITRE compliance,
generates SBOMs, and assesses AI infrastructure against AISVS v1.0 and MAESTRO
framework layers.
Install
CODEBLOCK0
As an MCP Server
CODEBLOCK1
Sub-Skills (8)
| Sub-Skill | Purpose | Triggers |
|---|
| discover | Find agents, MCP servers, configurations | "find agents", "what's configured", "mcp inventory" |
| scan |
CVE scanning, image scanning, SBOM, provenance | "check package", "scan image", "verify", "blast radius" |
|
scan-infra | IaC, cloud config, secrets scanning | "check terraform", "scan kubernetes", "find secrets" |
|
enforce | Runtime policy enforcement, MCP proxy | "block risky calls", "apply policy", "proxy" |
|
compliance | 14-framework compliance, SBOM generation | "compliance report", "NIST", "SOC 2", "OWASP" |
|
monitor | Fleet monitoring, trust scores, lifecycle | "fleet", "watch agents", "trust scores" |
|
analyze | Blast radius, attack paths, context graph | "blast radius", "threat intel", "attack path" |
|
troubleshoot | Diagnostics, doctor, config validation | "doctor", "debug", "why failing", "validate config" |
Tools
Vulnerability Scanning
| Tool | Description |
|---|
| INLINECODE0 | Full discovery + vulnerability scan pipeline |
| INLINECODE1 |
Check a package for CVEs (OSV, NVD, EPSS, KEV) |
|
blast_radius | Map CVE impact chain across agents, servers, credentials |
|
remediate | Prioritized remediation plan for vulnerabilities |
|
verify | Package integrity + SLSA provenance check |
|
diff | Compare two scan reports (new/resolved/persistent) |
|
where | Show MCP client config discovery paths |
|
inventory | List discovered agents, servers, packages |
Compliance & Policy
| Tool | Description |
|---|
| INLINECODE8 | OWASP LLM/Agentic Top 10, EU AI Act, MITRE ATLAS, NIST AI RMF |
| INLINECODE9 |
Evaluate results against custom security policy (17 conditions) |
|
cis_benchmark | CIS benchmark checks (AWS, Azure v3.0, GCP v3.0, Snowflake) |
|
generate_sbom | Generate SBOM (CycloneDX or SPDX format) |
|
aisvs_benchmark | OWASP AISVS v1.0 compliance — 9 AI security checks |
Registry & Trust
| Tool | Description |
|---|
| INLINECODE13 | Look up MCP server in 427+ server security metadata registry |
| INLINECODE14 |
Pre-install trust check with registry cross-reference |
|
fleet_scan | Batch registry lookup + risk scoring for MCP server inventories |
|
skill_scan | Scan instruction files for package refs, trust, and findings |
|
skill_verify | Verify Sigstore provenance for instruction files |
|
skill_trust | Assess skill file trust level (5-category analysis) |
|
code_scan | SAST scanning via Semgrep with CWE-based compliance mapping |
Runtime & Analytics
| Tool | Description |
|---|
| INLINECODE20 | Agent context graph with lateral movement analysis |
| INLINECODE21 |
Query vulnerability trends, posture history, and runtime events |
|
runtime_correlate | Cross-reference proxy audit JSONL with CVE findings, risk amplification |
|
vector_db_scan | Probe Qdrant/Weaviate/Chroma/Milvus for auth and exposure |
|
gpu_infra_scan | GPU container and K8s node inventory + unauthenticated DCGM probe (MAESTRO KC6) |
Specialized Scans
| Tool | Description |
|---|
| INLINECODE25 | Scan dataset cards for bias, licensing, and provenance issues |
| INLINECODE26 |
Scan training pipeline configs for security risks |
|
browser_extension_scan | Scan browser extensions for risky permissions and AI domain access |
|
model_provenance_scan | Verify model provenance and supply chain integrity |
|
prompt_scan | Scan prompt templates for injection and data leakage risks |
|
model_file_scan | Scan model files for unsafe serialization (pickle, etc.) |
|
license_compliance_scan | Full SPDX license catalog scan with copyleft and network-copyleft detection |
|
ingest_external_scan | Import external scan results (CycloneDX/SPDX/JSON) and merge into agent-bom findings |
Resources
| Resource | Description |
|---|
| INLINECODE33 | Browse 427+ MCP server security metadata registry |
Example Workflows
CODEBLOCK2
Guardrails
Always do:
- - Show CVEs even when NVD analysis is pending or severity is
unknown — a CVE ID with no details is still a real finding. Report what is known; mark severity as unknown explicitly. - Confirm with the user before scanning cloud environments (
cis_benchmark) — these make live API calls to AWS/Azure/GCP using the user's credentials. - Treat
UNKNOWN severity as unresolved, not benign — it means data is not yet available, not that the issue is minor.
Never do:
- - Do not modify any files, install packages, or change system configuration. This skill is read-only.
- Do not transmit env var values, credentials, or file contents to any external service. Only package names and CVE IDs leave the machine.
- Do not invoke
agents() autonomously on sensitive environments without user confirmation. The autonomous_invocation policy is restricted.
Stop and ask the user when:
- - The user requests a cloud CIS benchmark and no cloud credentials are configured.
- A scan finds
CRITICAL CVEs — present findings and ask whether to generate a remediation plan. - The user asks to scan a path outside their home directory.
Supported Frameworks (14)
- - OWASP LLM Top 10 (2025) — prompt injection, supply chain, data leakage
- OWASP MCP Top 10 — MCP-specific security risks
- OWASP Agentic Top 10 — tool poisoning, rug pulls, credential theft
- OWASP AISVS v1.0 — AI Security Verification Standard (9 checks)
- MITRE ATLAS — adversarial ML threat framework
- NIST AI RMF — govern, map, measure, manage lifecycle
- NIST CSF 2.0 — identify, protect, detect, respond, recover
- NIST 800-53 Rev 5 — federal security controls (CM-8, RA-5, SI-2, SR-3)
- FedRAMP Moderate — derived from NIST 800-53 controls
- EU AI Act — risk classification, transparency, SBOM requirements
- ISO 27001:2022 — information security controls (Annex A)
- SOC 2 — Trust Services Criteria
- CIS Controls v8 — implementation groups IG1/IG2/IG3
- CMMC 2.0 — cybersecurity maturity model (Level 1-3)
Privacy & Data Handling
This skill installs agent-bom from PyPI. Verify the redaction behavior
before running with any config files:
CODEBLOCK3
What is extracted: Server names, commands, args, and URLs from MCP client
config files across 22 AI tools. What is NOT extracted: Env var values are
replaced with ***REDACTED*** by sanitize_env_vars() before any processing.
Only public package names and CVE IDs are sent to vulnerability databases.
Cloud CIS checks use locally configured credentials and call only the cloud
provider's own APIs.
Verification
- - Source: github.com/msaad00/agent-bom (Apache-2.0)
- Sigstore signed: INLINECODE44
- 7,100+ tests with CodeQL + OpenSSF Scorecard
- No telemetry: Zero tracking, zero analytics
agent-bom — AI Agent基础设施安全扫描器
在22个AI工具中自动发现MCP客户端和服务器,扫描CVE漏洞,映射攻击影响范围,运行云CIS基准检查,验证OWASP/NIST/MITRE合规性,生成SBOM,并依据AISVS v1.0和MAESTRO框架层评估AI基础设施。
安装
bash
pipx install agent-bom
agent-bom agents # 自动发现+扫描
agent-bom check langchain==0.1.0 # 检查指定版本包
agent-bom fs . # 扫描文件系统包
agent-bom image nginx:1.25 # 扫描容器镜像(原生)
agent-bom cloud aws # AWS CIS基准检查
agent-bom iac infra/ # 扫描Terraform/CloudFormation
agent-bom where # 显示所有发现路径
作为MCP服务器
json
{
mcpServers: {
agent-bom: {
command: uvx,
args: [agent-bom, mcp, server]
}
}
}
子技能(8个)
CVE扫描、镜像扫描、SBOM、来源验证 | 检查包、扫描镜像、验证、影响范围 |
|
scan-infra | IaC、云配置、密钥扫描 | 检查terraform、扫描kubernetes、查找密钥 |
|
enforce | 运行时策略执行、MCP代理 | 阻止风险调用、应用策略、代理 |
|
compliance | 14框架合规性、SBOM生成 | 合规报告、NIST、SOC 2、OWASP |
|
monitor | 集群监控、信任评分、生命周期 | 集群、监控代理、信任评分 |
|
analyze | 影响范围、攻击路径、上下文图 | 影响范围、威胁情报、攻击路径 |
|
troubleshoot | 诊断、健康检查、配置验证 | 诊断、调试、为何失败、验证配置 |
工具
漏洞扫描
| 工具 | 描述 |
|---|
| scan | 完整发现+漏洞扫描流水线 |
| check |
检查包是否存在CVE(OSV、NVD、EPSS、KEV) |
| blast_radius | 映射CVE在代理、服务器、凭证间的影响链 |
| remediate | 漏洞的优先级修复方案 |
| verify | 包完整性+SLSA来源验证 |
| diff | 比较两份扫描报告(新增/已解决/持续存在) |
| where | 显示MCP客户端配置发现路径 |
| inventory | 列出已发现的代理、服务器、包 |
合规与策略
| 工具 | 描述 |
|---|
| compliance | OWASP LLM/Agentic Top 10、欧盟AI法案、MITRE ATLAS、NIST AI RMF |
| policy_check |
根据自定义安全策略评估结果(17个条件) |
| cis_benchmark | CIS基准检查(AWS、Azure v3.0、GCP v3.0、Snowflake) |
| generate_sbom | 生成SBOM(CycloneDX或SPDX格式) |
| aisvs_benchmark | OWASP AISVS v1.0合规性——9项AI安全检查 |
注册表与信任
| 工具 | 描述 |
|---|
| registrylookup | 在427+服务器安全元数据注册表中查询MCP服务器 |
| marketplacecheck |
安装前信任检查,含注册表交叉引用 |
| fleet_scan | 批量注册表查询+MCP服务器清单风险评分 |
| skill_scan | 扫描指令文件中的包引用、信任和发现项 |
| skill_verify | 验证指令文件的Sigstore来源 |
| skill_trust | 评估技能文件信任级别(5类分析) |
| code_scan | 通过Semgrep进行SAST扫描,含基于CWE的合规映射 |
运行时与分析
| 工具 | 描述 |
|---|
| contextgraph | 代理上下文图,含横向移动分析 |
| analyticsquery |
查询漏洞趋势、安全态势历史和运行时事件 |
| runtime_correlate | 交叉引用代理审计JSONL与CVE发现、风险放大 |
| vector
dbscan | 探测Qdrant/Weaviate/Chroma/Milvus的身份验证和暴露情况 |
| gpu
infrascan | GPU容器和K8s节点清单+未认证DCGM探测(MAESTRO KC6) |
专项扫描
| 工具 | 描述 |
|---|
| datasetcardscan | 扫描数据集卡片中的偏见、许可和来源问题 |
| trainingpipelinescan |
扫描训练流水线配置中的安全风险 |
| browser
extensionscan | 扫描浏览器扩展中的风险权限和AI域访问 |
| model
provenancescan | 验证模型来源和供应链完整性 |
| prompt_scan | 扫描提示模板中的注入和数据泄露风险 |
| model
filescan | 扫描模型文件中的不安全序列化(pickle等) |
| license
compliancescan | 完整SPDX许可目录扫描,含copyleft和network-copyleft检测 |
| ingest
externalscan | 导入外部扫描结果(CycloneDX/SPDX/JSON)并合并到agent-bom发现项 |
资源
| 资源 | 描述 |
|---|
| registry://servers | 浏览427+ MCP服务器安全元数据注册表 |
示例工作流
安装前检查包
check(package=@modelcontextprotocol/server-filesystem, ecosystem=npm)
映射CVE影响范围
blast
radius(cveid=CVE-2024-21538)
完整代理发现+扫描
agents()
运行CIS基准检查
cis_benchmark(provider=aws)
运行AISVS v1.0合规性检查
aisvs_benchmark()
扫描向量数据库的身份验证配置错误
vector
dbscan()
发现GPU容器、K8s GPU节点和未认证DCGM端点
gpu
infrascan()
扫描指令文件,然后检查信任
skill_scan(path=.)
skill
trust(skillpath=./SKILL.md)
安全护栏
始终执行:
- - 即使NVD分析待定或严重性为unknown,也要显示CVE——没有详细信息的CVE ID仍然是真实的发现。报告已知信息;将严重性明确标记为unknown。
- 在扫描云环境(cis_benchmark)前确认用户——这些操作使用用户凭证对AWS/Azure/GCP进行实时API调用。
- 将UNKNOWN严重性视为未解决而非良性——这意味着数据尚不可用,而非问题轻微。
绝不执行:
- - 不修改任何文件、安装包或更改系统配置。此技能为只读。
- 不将环境变量值、凭证或文件内容传输到任何外部服务。只有包名和CVE ID离开机器。
- 未经用户确认,不在敏感环境中自主调用agents()。autonomous_invocation策略为restricted。
在以下情况停止并询问用户:
- - 用户请求云CIS基准检查但未配置云凭证。
- 扫描发现CRITICAL级CVE——展示发现项并询问是否生成修复方案。
- 用户要求扫描其主目录之外的路径。
支持的框架(14个)
- - OWASP LLM Top 10(2025)——提示注入、供应链、数据泄露
- OWASP MCP Top 10——MCP特定安全风险
- OWASP Agentic Top 10——工具投毒、拉地毯骗局、凭证窃取
- OWASP AISVS v1.0——AI安全验证标准(9项检查)
- MITRE ATLAS——对抗性机器学习威胁框架
- NIST AI RMF——治理、映射、衡量、管理生命周期
- NIST CSF 2.0——识别、保护、检测、响应、恢复
- N