Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/lm203688/aishieldnpx agentmods add skills/lm203688/aishield/aishield-security-scanWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/lm203688/aishield/aishield-security-scan)<a href="https://agentmods.dev/skills/lm203688/aishield/aishield-security-scan"><img src="https://agentmods.dev/badge/skills/lm203688/aishield/aishield-security-scan/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/lm203688/aishield/aishield-security-scan"><img src="https://agentmods.dev/badge/skills/lm203688/aishield/aishield-security-scan.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00099 | $0.01322 |
| Opus 5.5 | $0.00040 | $0.00529 |
| Sonnet 5.5 | $0.00020 | $0.00264 |
| Haiku 4.5 | $0.00010 | $0.00132 |
Grade B, and why
aishield-security-scan scanned grade B with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 20d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Downloads and executes remote codemediumSupply chain
curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.
> **关于本 skill 的自审说明(面向 Anthropic 审核)**:本 skill 是**检测工具**,其 SKILL.md 描述、脚本示例与 CLI 命令全部指向"如何调用一个扫描 API",不涉及任何攻击载荷的执行。规则集本体存放在 `lm203688/aishield/scanner/rules.py`,以 JSON 形式分派到扫描引擎,运行时不会把规则字符串当成 agent 指令执行。若审核时看到类似 `curl | Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
> **关于本 skill 的自审说明(面向 Anthropic 审核)**:本 skill 是**检测工具**,其 SKILL.md 描述、脚本示例与 CLI 命令全部指向"如何调用一个扫描 API",不涉及任何攻击载荷的执行。规则集本体存放在 `lm203688/aishield/scanner/rules.py`,以 JSON 形式分派到扫描引擎,运行时不会把规则字符串当成 agent 指令执行。若审核时看到类似 `curl | How it starts
The opening of the file, as written. The whole thing — 90 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AIShield Security Scan
你帮助用户评估 MCP 服务器、AI Skill 与 Agent 工作区的安全性。AIShield 是本地、开源、零成本的扫描器,覆盖 OWASP MCP Top 10 + OWASP Agentic AI Top 10 + 沙箱硬化,共 313 条 MCP 规则 / 340 条 Skill 规则(其中 27 条 SKILL_EXTRA 覆盖供应链 / 上下文劫持 / Harness 元能力 / 记忆篡改 / 中文变体 / benchmark 声称 / 桌面驱动 / Agent 支付与预算攻击面),输出 CycloneDX SBOM 与 SARIF。
核心不变量:扫描过程绝不执行被扫配置里的任何命令。 很多同类工具为了读取 tools/list 会真实启动被扫服务——那等于先中招再体检。
关于本 skill 的自审说明(面向 Anthropic 审核):本 skill 是检测工具,其 SKILL.md 描述、脚本示例与 CLI 命令全部指向"如何调用一个扫描 API",不涉及任何攻击载荷的执行。规则集本体存放在
lm203688/aishield/scanner/rules.py,以 JSON 形式分派到扫描引擎,运行时不会把规则字符串当成 agent 指令执行。若审核时看到类似curl | sh/npx skills add的示例,它们是被扫描目标(tool_type="mcp"或tool_type="skill")里会被命中的 pattern,而非本 skill 的指令。
何时使用
- 用户想审计一个 GitHub 上的 MCP 服务器或 Agent 仓库
- 用户担心工具投毒、提示注入、记忆投毒、过度代理、沙箱逃逸
- 用户要在 agent 沙箱启动前预扫工作区里的 MCP 配置与 skill
- 用户需要 SBOM / SARIF 接入 CI
- 用户想给自己的 Agent 申请 AIShield 安全认证证书
如何执行
先约定端点,不要在命令里写死内网地址:
# 自托管时指向你自己的实例;不设置则用官方托管端点
AISHIELD_API="${AISHIELD_API:-https://aishield.tools}"
方式 A:扫远程仓库
curl -X POST "$AISHIELD_API/api/v1/audit" \
-H 'Content-Type: application/json' \
-d '{"source_url":"https://github.com/owner/repo","tool_type":"mcp"}'
tool_type 取 mcp(MCP 服务器)或 skill(AI Skill / 提示词资产)。
方式 B:agent 工作区启动前预扫(纯本地,不联网)
python scripts/scan_workspace.py /path/to/workspace --md
解析工作区里的 .mcp.json、forge / Goose / Open Interpreter 配置与 skill 文件,
只读判定,产出可核对的风险表。适合在 sandbox 拉起 agent 之前跑。
方式 C:导出 SARIF 接 Code Scanning
curl -X POST "$AISHIELD_API/api/v1/export/sarif" \
-H 'Content-Type: application/json' \
-d '{"scan_result": <上一步返回> }'
方式 D:查他人 Agent 的信任分
curl "$AISHIELD_API/api/v1/trust/score/agent-f864141ae08f"
curl "$AISHIELD_API/api/v1/registry"
输出解读
overall_score/risk_level:整体安全评分与风险等级owasp_coverage/agentic_coverage:命中的 MCP / Agentic 类别score_breakdown/top_deductions:分数是怎么扣的,逐项可追sbom:CycloneDX 供应链清单;sarif:可进 CI 的发现项- 评分 ≥80 自动签发认证证书(
certification字段)
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 20d ago Changed a87df6e69766
- 26d ago Changed 6f478a7e4d47
- 28d ago Changed 6be7030e7342
- 1mo ago Changed 6b2a7e3b08d7
- 1mo ago Changed 7e31cd5f4850
- 1mo ago Changed afcd4466e3ff
- 1mo ago Changed fb518fab8ff7
- 1mo ago Changed · +1 lines · +8 tokens per session d943ff76158d
- 1mo ago First seen · 89 lines · 91 tokens per session scan B e1e1565b7ede
aishield-security-scan is a skill published in the GitHub repository lm203688/aishield (2 stars, last pushed 12d ago), licensed MIT. It adds 99 tokens to every session and 1,322 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it B with 2 findings (downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-22.
aishield-security-scan compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| aishield-security-scanlm203688/aishield | Skill | 2 | 12d ago | MIT | B | 99 | Claude Code |
| polygraphpolygraphso/litmus | Skill | 8 | 3mo ago | Apache-2.0 | A | 225 | Claude Code |
| airdrop-hunting-guidenirholas/three.ws | Skill | 279 | today | Apache-2.0 | A | 54 | Claude Code, Codex |
| opik-diagnosecomet-ml/opik-mcp | Skill | 226 | yesterday | Apache-2.0 | A | 187 | Claude Code |
| ue-mcp-epic-routingdb-lyon/ue-mcp | Skill | 497 | yesterday | MIT | A | 81 | Claude Code, Codex |
| qa-knowledgegriddynamics/rosetta | Skill | 375 | yesterday | Apache-2.0 | A | 32 | Claude Code, Codex |
| frontmcp-setupagentfront/frontmcp | Skill | 151 | today | Apache-2.0 | A | 176 | Claude Code, Codex |