본문으로 건너뛰기
Skillpedia
에이전트35k · #7683

auditing-mcp-servers-for-tool-poisoning

하는 일

이 도구는 AI를 위한 통신 서버(MCP라고 부름)가 AI를 속이도록 변조되었는지 확인합니다. 정보를 훔치거나 AI가 예상과 다르게 행동하도록 만드는 숨은 지시를 찾습니다.

사용하는 경우

  • ✓AI 시스템에 새 통신 서버를 추가하기 전에 점검할 때.
  • ✓보안을 위해 내부 통신 서버를 점검할 때.
  • ✓통신 서버가 사기(러그 풀)를 위해 변경되었다고 의심될 때.

스킬 링크

https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/auditing-mcp-servers-for-tool-poisoning/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/auditing-mcp-servers-for-tool-poisoning/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“내가 사용하는 통신 서버들의 보안을 점검해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

이 도구는 'mcp-scan'이라는 프로그램으로 서버를 분석합니다. 코드와 실시간 동작을 모두 점검하고, 수동 테스트도 수행해 모든 것이 안전한지, 도구 설명이 악의적으로 바뀌지 않았는지 확인합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Auditing MCP Servers for Tool Poisoning

Authorized-use-only notice: Auditing MCP servers can connect to and probe live tool endpoints. Only scan servers you own or are authorized to assess. Treat scanned tool descriptions as untrusted input — do not load an unaudited MCP server into a privileged agent. Probing third-party MCP endpoints for SSRF or auth weaknesses without permission may be illegal.

Overview

The Model Context Protocol (MCP) lets AI agents discover and call external tools advertised by MCP servers. Each tool exposes a name and a natural-language description that the agent's LLM reads before deciding to call it. In early 2025, Invariant Labs disclosed that this description field is an attack surface: a malicious server can embed hidden instructions in a tool's description (a tool poisoning attack, OWASP MCP03:2025), and a capable model will silently follow them — exfiltrating files, leaking secrets, or redirecting tool calls — while returning a normal-looking response to the user. Because tool descriptions are loaded into the agent's context, tool poisoning is effectively indirect prompt injection delivered through the supply chain (MITRE ATLAS AML.T0010 ML Supply Chain Compromise).

Beyond poisoning, MCP servers introduce classic infrastructure risks: tool shadowing (a malicious server overrides a trusted tool's behavior), rug pulls (a tool's description changes after the user approved it), toxic flows (a combination of tools that enables data exfiltration), SSRF in tools that fetch URLs server-side, and unauthenticated exposure of MCP servers bound to network interfaces. This skill audits MCP servers end-to-end using Invariant Labs' mcp-scan for static and runtime analysis, plus manual checks for SSRF and authentication, and tool pinning to catch rug pulls.

When to Use

  • Before adding a new MCP server to an agent stack (Claude Desktop, Cursor, VS Code, Windsurf, custom agents).
  • During a security review of an internally developed MCP server.
  • When validating that approved tools have not silently changed (rug-pull detection).
  • As a CI/CD gate that scans MCP configs and SKILL/tool definitions on every change.
  • During incident response when an agent took unexpected actions consistent with a poisoned tool.

Prerequisites

  • Python 3.10+ and uv (for uvx), or pip.
  • The MCP config file(s) you want to scan (e.g. ~/.cursor/mcp.json, ~/.vscode/mcp.json, Claude Desktop config).
  • Install the tooling:
# uv provides uvx (recommended runner for mcp-scan)
curl -LsSf https://astral.sh/uv/install.sh | sh    # or: pipx install uv

# mcp-scan (Invariant Labs) — no global install needed with uvx
uvx mcp-scan@latest --help

# For the runtime proxy mode (separate extra)
uvx --with "mcp-scan[proxy]" mcp-scan@latest proxy --help

# Manual probing helpers
pip install requests mcp

Objectives

  • Statically scan all installed MCP servers for tool poisoning, shadowing, rug pulls, and toxic flows.
  • Inspect raw tool/prompt/resource descriptions for hidden or obfuscated instructions.
  • Pin tool hashes to detect post-approval description changes (rug-pull defense).
  • Test URL-fetching tools for server-side request forgery (SSRF).
  • Verify MCP servers are authenticated and not exposed on untrusted interfaces.
  • Optionally enforce runtime guardrails with the mcp-scan proxy.

MITRE ATT&CK Mapping

ID Official Name Relevance
AML.T0010 ML Supply Chain Compromise A poisoned third-party MCP server is a supply-chain compromise of the agent
AML.T0051.001 LLM Prompt Injection: Indirect Poisoned tool descriptions are indirect injection into the agent context
AML.T0053 LLM Plugin Compromise MCP tools are the agent's plugins; poisoning compromises them
AML.T0057 LLM Data Leakage Common payload of a poisoned tool: exfiltrate files/secrets

Workflow

1. Static scan of installed MCP configs

mcp-scan auto-discovers known config locations; you can also pass a path explicitly.

# Scan all auto-discovered MCP configs
uvx mcp-scan@latest

# Scan a specific config file
uvx mcp-scan@latest ~/.vscode/mcp.json

# Emit machine-readable JSON for CI
uvx mcp-scan@latest --json ~/.cursor/mcp.json > mcp_scan_report.json

mcp-scan flags tool poisoning, tool shadowing, cross-origin escalation, rug pulls, and toxic flows.

2. Inspect raw tool descriptions

…

자주 묻는 질문

'도구 포이즈닝(tool poisoning)'이란 무엇인가요?

AI가 사용하는 도구의 설명을 누군가 바꿔, 사용자가 눈치채지 못하게 AI에게 은밀하고 악의적인 지시를 주는 것입니다.

'러그 풀(rug pull)'이란 무엇인가요?

이미 승인한 도구나 서버가 나중에 악의적으로 바뀌어 여러분을 해치거나 정보를 훔치는 것입니다.

프로그래머여야 사용할 수 있나요?

아니요, 프로그래밍 지식이 없어도 쓸 수 있도록 설계되었습니다. 보안 점검을 자동화해 줍니다.

상세 정보

작성자의 원본 설명

Audit MCP servers for tool poisoning, tool shadowing, rug pulls, SSRF, and unauthenticated exposure using Invariant Labs' mcp-scan for static/runtime scanning plus manual SSRF/auth checks and description pinning. Use before adding a new MCP server to an agent stack, when reviewing an internal MCP server, detecting rug pulls, or investigating an agent's unexpected tool-driven behavior.

repo: mukul975/Anthropic-Cybersecurity-Skills

인기도

GitHub 스타
35k
순위
#7683
라이선스
Apache-2.0
업데이트
2026. 8. 31.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬