mcp-skill-sec — 8-pattern malicious-skill scanner

    by Robert Garrison

    2

    This is the tool to run before installing any skill you didn't write.

    Free

    4 usesSecurity scanned

    Works with the AI Agents you already use

    mcp-skill-sec — 8-pattern malicious-skill scanner

    Example session with this skill installed

    I just got sent a "skill" file. Audit it for me before I run it: <paste the skill content here>

    • Read your context and instructions
    • Compiled the mcp--sec

    Verdict: FLAG

    RuleSeverityLineEvidence
    R1critical12"ignore all previous instructions"
    R3high31sk_api_key = "sk-...read only..."

    Next steps

    • Remove the hardcoded key, re-run audit_skill_file to confirm PASS.

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

    About this skill

    mcp-skill-sec — deterministic skill security audit

    Audit any agent skill, system prompt, or downloaded skill collection against the 8 malicious-skill supply-chain patterns BEFORE you run it.

    What it does

    Scans a skill/prompt for:

    • R1 prompt injection / instruction hijack (ignore previous instructions)
    • R2 data exfiltration intent
    • R3 hardcoded secrets / credentials
    • R4 dangerous commands (rm -rf /, curl | sh)
    • R5 obfuscation / hidden behavior (base64-exec, eval)
    • R6 untrusted external fetches
    • R7 credential access (~/.ssh, .aws/credentials, .env)
    • R8 privilege escalation

    Every finding carries a severity + line number + the matching evidence line. Verdict is PASS only when there are no critical/high findings. Reproducible and auditable.

    Why it's different

    • Deterministic — same input always yields the same verdict; no ML, no hallucination.
    • No network calls — your skill content never leaves your machine.
    • Line-level evidence — not a black-box score; you see exactly what tripped and where.

    Tools

    • audit_text(text, filename) — audit a pasted skill / system prompt
    • audit_skill_file(path) — audit a SKILL.md / AGENTS.md on disk
    • audit_directory(path, pattern) — scan a whole skills collection
    • rule_list() — dump the R1–R8 catalog

    Install

    uv tool install git+https://github.com/sudo-ai-git/mcp-skill-sec
    python3 mcp_server.py                    # stdio
    python3 mcp_server.py --http --port 8000 # streamable HTTP
    

    Full source, tests, and the audit checklist are in the GitHub repo (MIT). This is the tool to run before installing any skill you didn't write.

    Static analysis only. Does not sandbox runtime execution or perform dynamic behavioral analysis.

    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

    4 uses

    Times used to date

    Free to use

    No account required to browse

    Frequently Asked Questions

    Unlike LLM-based scanners that can hallucinate, this tool uses a deterministic 8-pattern engine that provides 100% reproducible results with line-level evidence for every finding.

    No, this skill operates entirely offline with no network calls, ensuring your proprietary prompts and sensitive skill code never leave your local environment during the audit.

    The scanner identifies eight specific risk vectors, including prompt injection (R1), data exfiltration (R2), dangerous shell commands (R4), and unauthorized credential access (R7).

    mcp-skill-sec is designed for any platform supporting the Model Context Protocol (MCP) and can audit any skill formatted in text, Markdown, or standard script files.

    Yes, the 'audit_directory' tool allows you to perform bulk scans on entire skill collections or repositories, providing a PASS/FLAG verdict for every file in the batch.

    A 'PASS' verdict is only issued if the tool finds zero critical or high-severity indicators across all eight security patterns, providing a clear 'go/no-go' signal for deployment.

    New in Agents & Orchestration

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Agents & Orchestration.

    Free