ai-mcp-security

ai-mcp-security is a skill for Claude Code, Codex from Unclecheng-li/DeepSec. It costs 46 tokens per session (749 once invoked), scanned A, a copy of ai-mcp-security, MIT.

A security assessment guide for AI applications, agents, plugins, skills, retrieval systems, and MCP tools. It examines risks such as prompt injection, unauthorized actions, data leaks, and unsafe tool access.

In plain words
What is it for?
Use it to assess prompt and indirect injection, tool misuse, MCP or skill supply-chain risks, privilege escape, credential abuse, data exposure, model attacks, containers, and sandboxes.
Why use it?
It helps security testers check the boundaries between an AI model, its tools, its data, and the permissions it receives.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to assess prompt and indirect injection, tool misuse, MCP or skill supply-chain risks, privilege escape, credential abuse, data exposure, model attacks, containers, and sandboxes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/unclecheng-li/deepsec/ai-mcp-security
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Unclecheng-li/DeepSec --skill ai-mcp-security
Clone the repo
git clone --depth 1 https://github.com/Unclecheng-li/DeepSec

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for ai-mcp-security

README.md
[![agentmods](https://agentmods.dev/badge/skills/unclecheng-li/deepsec/ai-mcp-security.svg)](https://agentmods.dev/skills/unclecheng-li/deepsec/ai-mcp-security)
Your own site
<a href="https://agentmods.dev/skills/unclecheng-li/deepsec/ai-mcp-security"><img src="https://agentmods.dev/badge/skills/unclecheng-li/deepsec/ai-mcp-security.svg" alt="Measured on agentmods" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 749 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00046 $0.00749
Opus 5 $0.00023 $0.00375
Sonnet 5 $0.00009 $0.00150
Haiku 4.5 $0.00005 $0.00075

Measured 8d ago against content hash 3e27bdd15e3b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

ai-mcp-security scanned grade A with 0 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 8d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

100% identical to ai-mcp-security — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

deepsec/spear/skills/specialized/ai-mcp-security/SKILL.md · 76 lines

What it actually says

AI 与 MCP 安全评估 Skill

当目标包含 LLM、Agent、MCP 工具、Skills、RAG、Memory、Plugin 或模型服务组件时使用本 Skill。

前置条件:如果 AI 表面只是展示层,真正的阻塞仍是客户端签名或加密协议,先回到 client-reverse Skill。

场景路由

风险类型 首选参考
Prompt 注入 / 间接注入 / CoT 干扰 references/ai-app-security.md
工具滥用 / MCP 投毒 / Skills 供应链 references/04-ai-and-mcp-security-integrated.md MCP 章节
权限逃逸 / 角色越界 / 凭据滥用 references/ai-identity-security.md
数据泄露 / Prompt 泄漏 / 模型逆推 references/ai-data-security.md
容器逃逸 / CI-CD / 沙箱失败 references/ai-baseline-security.md
模型风险 / 对抗样本 / 后门 references/ai-model-security.md
影响分类与覆盖评估 references/gaarm-risk-matrix.md

测试流程

1. 应用层攻击

  • 直接 Prompt 注入
  • 间接注入(通过外部数据源)
  • CoT 干扰与指令覆盖
  • Agent 滥用(未授权操作)
  • 代码执行突破
  • Memory 投毒

2. MCP 与 Agent 风险

  • 工具描述投毒
  • 指令覆盖
  • 隐藏指令注入
  • 未授权资源访问
  • Skills/Rules 供应链问题

3. 身份与授权

  • 动作滥用
  • 角色逃逸
  • 权限漂移
  • 云凭据滥用

4. 数据与隐私

  • Prompt 泄漏
  • 敏感数据暴露
  • 训练数据问题
  • 模型逆推
  • API 数据窃取

5. 基线与部署

  • CI/CD 缺陷
  • 容器逃逸
  • 向量数据库安全
  • 沙箱失效
  • 环境隔离缺陷
  • 模型服务缺陷

参考文档

  • references/04-ai-and-mcp-security-integrated.md — AI 与 MCP 安全整合参考
  • references/ai-app-security.md — AI 应用安全
  • references/ai-identity-security.md — AI 身份安全
  • references/ai-data-security.md — AI 数据安全
  • references/ai-baseline-security.md — AI 基线安全
  • references/ai-model-security.md — AI 模型安全
  • references/gaarm-risk-matrix.md — GAARM 风险矩阵
Files

What ships with it

7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

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.

  1. 8d ago First seen · 76 lines · 46 tokens per session scan A 3e27bdd15e3b

Subscribe to this mod's changes

ai-mcp-security is a skill published in the GitHub repository Unclecheng-li/DeepSec (400 stars, last pushed 14d ago), licensed MIT. It adds 46 tokens to every session and 749 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to ai-mcp-security, differing in 0 lines, and is treated as a copy.

Related

Other skills, from other repositories

final-report

Final engagement report generation — executive summary, technical report, findings aggregation, attack path narrative, detection gap matrix, remediation roadmap.

PurpleAILAB/Decepticon · 28 tokens

exploit-reporting

Exploitation finding documentation — initial access reports, exploit chain documentation, CVSS v4.0 scoring, shell/credential inventory, detection gap analysis.

PurpleAILAB/Decepticon · 35 tokens

ti-ioc-extraction

Automated IOC extraction from threat reports, logs, and unstructured text — parse hashes, IPs, domains, URLs, email addresses, and CVEs. Covers regex-based extraction, defanging/refanging, bulk hash lookup, IOC deduplication, YARA rule generation from IOCs, and STIX/TAXII formatting for sharing.

PurpleAILAB/Decepticon · 75 tokens

m365-mailbox-compromise

Microsoft 365 mailbox compromise chain — OAuth consent phishing, delegate access abuse, mail rule persistence, and token theft via device code phishing. Full kill chain from initial access to persistent email collection.

PurpleAILAB/Decepticon · 45 tokens

web

Web application exploitation — the primary category skill for all web-based attacks. This is a routing skill: read this first to identify the attack type, then load the appropriate specialized sub-skill for detailed procedures. Covers 11 technique areas across injection, file access, authentication, and API…

PurpleAILAB/Decepticon · 60 tokens

pentest-task-tree

Iterative PTT (Penetration Testing Tree) session reasoning — build, update, and traverse a live numbered task tree to drive LLM-guided pentest decisions across a full session.

PurpleAILAB/Decepticon · 44 tokens