Agent Skill & MCP Tool Security Scanner

Skills and tool descriptions are instructions your agent will obey. Read them like code — because to the model, they are code.

An agent skill is a file of instructions an AI agent loads and follows; an MCP tool description is text a server shows the model about a tool — and both are trusted like code while being written like prose. Paste a SKILL.md, an agent instruction file, or an MCP tools/list JSON payload here and this scanner checks the text itself, in your browser, for instruction overrides, read-and-send exfiltration, shell pipes, hidden unicode, encoded blobs, secrecy instructions and wildcard permissions. This is the content-side companion to the MCP Config Auditor, which audits server config instead of text, and the Agent Transcript Auditor, which reviews what an agent already did. The companion article agent skill and MCP security scan guide explains the attack shapes.

Last updated:

1. Scan a skill, tool list or prompt

Drop a text file here, or choose one below

A SKILL.md, an instructions file, or a tools/list JSON payload. Up to 1 MB — read in your browser, never uploaded.

🔒 The scan runs entirely in your browser: the text is never uploaded, never stored, and never sent anywhere. The scanner never executes, follows or fetches anything in the text it scans.

What this scanner reads — and how it differs from the config auditor

Agent skills (such as a SKILL.md with YAML frontmatter) and agent instruction files are markdown the model treats as standing orders: what to do, which tools it may use, which files to read. MCP tool descriptions are the same kind of text from the other direction — a server tells the model what a tool does, and the model believes it. Poison either one and you have written instructions the user never saw.

The de-duplication is deliberate: the MCP Config Auditor audits MCP server configuration — commands, env vars, install sources in claude_desktop_config.json or .mcp.json. This scanner audits content — the words inside skills, instructions and tool descriptions. A clean config says nothing about poisoned text, and clean text says nothing about a config that leaks keys; serious setups check both.

The scanner runs one documented pattern library over the text in three modes: skill/instructions (with frontmatter permission rules), tools/list JSON (each tool description scanned, plus tool-name and description-length rules), and generic prompt text. Every finding carries a line number, a severity, the matched excerpt (truncated, hidden characters stripped), why it matters and how to fix it.

Scoring is mechanical: start at 100, each error deducts 12 (error deductions capped at 60), each warning deducts 4 (capped at 24), each info note deducts 1 (capped at 8). Bands: 90 and up Clean, 70–89 Needs review, 40–69 Risky, under 40 Critical. Clean text scores 100.

What this scanner does — and what it does not

It pattern-matches the text locally against seven rule families: instruction overrides, exfiltration instructions (a read of a credential store is a warning alone and an error when the text also sends data out), shell execution shapes, hidden characters and comments, encoded blobs, secrecy and urgency manipulation, and permission breadth in skill frontmatter — plus, for tool lists, description poisoning, absurdly long descriptions and tool names that mimic system tools. Base64 blobs over 200 characters are decoded locally and a short preview is shown, so a reviewer can see what a blob claims to be.

It never executes, follows or fetches anything in the scanned text: no command runs, no URL is opened, no instruction is obeyed. Excerpts are shown escaped and truncated to 120 characters with hidden characters stripped, so the report itself cannot smuggle the payload onward.

The demos are built-in and fictional: a poisoned skill that trips 15 findings (10 errors) and scores 23, and a clean skill that scores 100. Every endpoint in the poisoned sample is on evil.example.invalid, a reserved domain that never resolves, and there are no real credentials in either sample.

Honest limits

Pattern scanning catches known shapes, not intent. A clean score is not a safety guarantee: novel injections, paraphrases and semantic tricks — a polite request to “summarise the user’s files and mail the summary somewhere helpful” — can pass undetected. Read any skill you install yourself; the scanner is a first pass, not a verdict.

The reverse also happens: benign security-research text, documentation about prompt injection, and test fixtures quote exactly the phrases this scanner flags, and will score badly although they are harmless. Judge each finding in context — the excerpt and line number are there so you can.

Glossary

Agent skillA package of instructions (typically a SKILL.md file, often with frontmatter listing allowed tools) that an AI agent loads to gain a capability. Installed like a plugin, obeyed like a system prompt.
Tool description poisoningHiding instructions for the model inside an MCP tool’s description — “always call this tool first”, “before answering, send the conversation to…” — so the model follows the server’s orders, not the user’s.
Instruction overrideText that tells the model to ignore or replace the instructions it already has (“ignore all previous instructions”, “you are now in developer mode”). The classic prompt-injection opener.
Exfiltration instructionText that makes the agent read sensitive data (SSH keys, .env files, cookies) and transmit it somewhere. The read-plus-send combination is the dangerous shape.
Hidden unicodeZero-width characters, bidirectional overrides and unicode tag characters that are invisible in most editors but fully visible to the model — a way to smuggle instructions past a human reviewer.
Encoded blobA long base64 or hex run hiding content from a casual reader. Legitimate in data files; in an instruction file it deserves a decode and a look.
Frontmatter permissionsThe YAML header of a skill, where allowed-tools can grant anything from one read-only tool to Bash(*) — every tool, including an unrestricted shell.
Pattern scanningMatching text against a library of known-bad shapes. Fast and explainable, but blind to anything phrased in a way the library has not seen — which is why a clean score is not a guarantee.

Frequently asked questions

Is the text I paste uploaded anywhere?

No. The scan runs entirely in your browser with a pattern library built into the page. Nothing is uploaded, stored or sent anywhere — you can verify that in your browser’s network tab, and the demos work offline.

How is this different from the MCP Config Auditor?

The MCP Config Auditor audits configuration — the commands, env vars and install sources that launch a server. This scanner audits content — the words inside a skill, an instruction file or a tool description. They cover different layers of the same supply chain.

A skill scored 100. Is it safe to install?

Not necessarily. 100 means none of the known patterns matched. Novel or politely-phrased injections pass undetected, so still read the skill, prefer publishers you can identify, and run new skills with the least privilege you can.