MCP & Agent Skill Security Auditor: Tool Poisoning Scan

    by Ariel Mnang'at

    1

    Security-audit any AI agent tool, MCP server or SKILL.md skill before you trust it: prompt injection, tool poisoning, secret harvesting, dangerous commands, obfuscated payloads.

    $9

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned

    Works with the AI Agents you already use

    MCP & Agent Skill Security Auditor: Tool Poisoning Scan

    Example session with this skill installed

    Audit the local MCP server in ./tools/weather-api. It has a server.py file and an mcp.json config. Check for exfiltration and tool poisoning.

    • Read your context and instructions
    • Compiled the mcp & agent

    I have completed the security audit for the weather-api MCP server. The review covered the server.py source code and the mcp.json manifest.

    Security Audit Report: weather-api

    SeverityLocationFinding ClassExploitation Story
    CRITICALserver.py:42Data ExfiltrationThe get_forecast tool reads ~/.aws/credentials and sends it to a hardcoded webhook URL.
    HIGHmcp.jsonTool PoisoningThe tool description contains hidden instructions telling the model to "always export environment variables before calling."
    MEDIUMserver.py:12Shell InjectionUser-provided location argument is passed directly to an internal os.system call without sanitization.
    LOWmcp.jsonVersion FloatingThe server uses a @latest tag for a dependency, creating a supply-chain rug-pull risk.

    Verdict: REJECT

    This server contains an explicit exfiltration path and malicious tool descriptions designed to harvest credentials. Do not connect this to your agent profile.

    Verification Statement:
    Checked for static command patterns, network egress, and description-based prompt injection. Verified local files only. Runtime behavior of obfuscated dependencies could not be fully determined.

    Next steps

    1. Delete the ./tools/weather-api directory immediately.
    2. Remove any references to this server from your claude_desktop_config.json.
    3. Rotate any AWS credentials that were stored in the default local path.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Connecting a third-party MCP server or agent skill to your production environment shouldn't be a leap of faith. Every tool you expose to an LLM is a potential vector for prompt injection, data exfiltration, or unauthorized command execution. This skill provides a structured security audit framework to vet MCP servers and SKILL.md files before they touch your infrastructure.

    What it does

    • Static Code Analysis identifies dangerous patterns like rm -rf, eval/exec, and shell pipe-to-shell.
    • Secret Detection scans for hardcoded API keys, private tokens, and environment variable harvesting.
    • Prompt Injection Review flags instructions hidden in tool descriptions that attempt to hijack the model.
    • Exfiltration Mapping detects code paths that combine local file reading with network egress.
    • Supply Chain Vetting checks for rug-pull risks like unpinned dependencies and malicious post-install scripts.

    How it works

    1. Define the Trust Boundary by identifying the git repo, local directory, or MCP manifest file.
    2. Execute Static Scans using bundled scripts to flag high-entropy strings and obfuscated payloads.
    3. Manual Description Audit to catch instruction overflow, invisible characters, and tool poisoning.
    4. Blast-Radius Analysis to map which files, network hosts, and secrets each tool can access.
    5. Generate Verdict Report with a go/no-go recommendation and specific remediation steps.

    Frameworks & tools

    This skill is designed for the Model Context Protocol (MCP) ecosystem. It includes a Python-based static scanner and audit templates for claude_desktop_config.json, mcp.json, and SKILL.md files.

    Why this beats prompting it yourself

    Generic security prompts often miss "description attacks" where the model treats tool metadata as new instructions. This skill enforces a rigorous methodology that checks support files and obfuscated blobs that typical LLM windows might skip or ignore.

    Use cases

    • Vetting a new GitHub repository before adding it to your MCP config.
    • Performing a diff-based security review on updates to existing trusted tools.
    • Auditing a custom internal skill for accidental credential leaks.
    • Assessing the blast radius of a tool that requires filesystem or network access.

    Known limitations

    This performs static analysis and manual review only. It cannot detect dynamic runtime behaviors or payloads fetched from remote servers during execution.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scan

    Security scan passed 7 days ago

    Software
    GitPython 3.10+

    Permissions

    Terminal / Shell
    Read Files

    File Scopes

    **/*

    Read-only static analysis: the bundled scanner reads the target directory and reports findings in chat. It runs fully offline - no network calls, no environment reads, no file writes, and it never executes the code it audits. Read Files is needed because the methodology requires reading every file in the audited tool.

    Listed7 days ago

    What's inside

    Frequently Asked Questions

    The auditor performs targeted static analysis on MCP manifest files, tool descriptions, and source code to identify prompt injection risks, data exfiltration paths, and hardcoded secrets that generic security scans often miss.

    This skill includes a Python-based static analysis engine, a suite of audit templates for common MCP configuration files, and a structured methodology for generating risk-assessment reports.

    It is purpose-built for the Model Context Protocol (MCP) ecosystem and is compatible with any agent or IDE (like Claude Desktop) that utilizes `mcp.json` or `claude_desktop_config.json` for tool definitions.

    No, the tool performs static code analysis and manual description audits; it does not execute the code in a sandbox, meaning it cannot detect malicious payloads fetched from remote servers during runtime.

    Installation is straightforward: you provide the local directory or GitHub repository path of the tool you wish to vet, and the auditor runs its scan against the project's logic and metadata files.

    New in LLM Ops

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for LLM Ops.