auditing-mcp-servers-for-tool-poisoning
Ce qu’il fait
Cet outil vérifie si les serveurs de communication pour l'IA (appelés MCP) ont été altérés pour tromper l'IA. Il recherche des instructions cachées qui pourraient voler des informations ou amener l'IA à agir de manière inattendue.
Quand l’utiliser
- ✓Avant d'ajouter un nouveau serveur de communication à un système d'IA.
- ✓Lors de l'examen des serveurs de communication internes, pour s'assurer de leur sécurité.
- ✓Lorsque vous soupçonnez qu'un serveur de communication a été modifié pour commettre des arnaques (rug pulls).
Lien du skill
https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/auditing-mcp-servers-for-tool-poisoning/SKILL.mdCopiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.
Comment l’utiliser
Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.
Message prêt à coller
Pour Claude Code, Codex ou Cursor : lancez-la dans le dossier du projet et le skill est installé.
Téléchargez le SKILL.md et placez-le dans le dossier de skills de votre agent.
Exemple de demande à votre IA
“Vérifie la sécurité des serveurs de communication que j'utilise.”
5 nouveaux skills par semaine. 1 minute de lecture.
Comment ça marche
L'outil utilise un programme appelé « mcp-scan » pour analyser les serveurs. Il contrôle à la fois le code et le comportement en temps réel, et effectue également des tests manuels pour s'assurer que tout est sécurisé et que les descriptions des outils n'ont pas été modifiées de manière malveillante.
Contenu technique (SKILL.md original)
Texte original de l’auteur, en anglais, directement depuis 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(foruvx), 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
…
Questions fréquentes
Qu'est-ce que l'« empoisonnement d'outils » (tool poisoning) ?
C'est lorsqu'une personne modifie la description d'un outil utilisé par l'IA pour lui transmettre des instructions secrètes et malveillantes, sans que l'utilisateur s'en aperçoive.
Qu'est-ce qu'un « rug pull » ?
C'est lorsqu'un outil ou un serveur que vous avez déjà approuvé est ensuite modifié de manière malveillante pour vous nuire ou voler des informations.
Dois-je être programmeur pour l'utiliser ?
Non, l'outil est conçu pour être utilisé même sans connaissances en programmation, car il automatise les contrôles de sécurité.
Détails
Description originale de l’auteur
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.
Popularité
- Étoiles GitHub
- 35k
- Position au classement
- #7683
- Licence
- Apache-2.0
- Mis à jour
- 31/08/2026
Commentaires
- …
Autres skills de ce dépôt
abusing-dpapi-for-credential-access
35kFournit à votre agent IA des instructions prêtes à l'emploi pour une tâche précise, afin qu'il la réalise mieux et plus vite.
abusing-shadow-credentials-for-privesc
35kApprend à votre agent IA à écrire des textes clairs et bien structurés.
achieving-cmmc-level-2-compliance
35kAide votre agent à préparer un environnement conforme à la certification CMMC niveau 2. Il met en œuvre les exigences de sécurité et gère la documentation nécessaire.
acquiring-disk-image-with-dd-and-dcfldd
35kAide votre agent à créer des copies exactes de disques durs. Utile pour garantir qu'aucune information n'est perdue ou modifiée lors d'enquêtes.
Skills similaires
add-model-provider
394kPermet à votre agent de connecter un nouveau fournisseur de modèles IA à OpenClaw par des commandes sûres, sans clé en clair, puis de lancer un test.
acp-router
394kAide votre agent à envoyer une tâche à un assistant de code comme Claude Code ou Cursor via OpenClaw, afin que le travail s'exécute dans cet outil.
browser-automation
394kApprend à votre agent à piloter des pages web étape par étape, y compris les connexions, les onglets et la reprise lorsqu'une page ne répond plus.