/agent-security:agent-surface-auditfrom agent-security
Reviews an MCP server's tool surface for tool poisoning, over-broad parameters, missing descriptions, and privilege escalation paths. Use when auditing, onboarding, or writing an MCP server.
Ships in agent-security. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
An MCP server hands an agent a set of tools. Each tool is a name, a description the model reads, and a parameter schema the model fills in. The attack surface is those three things plus whatever the tool does when called. This skill reviews the surface deterministically first, then reads the implementation for the parts a scanner cannot judge.
tools/list response, saved to a filereferences/manifest-format.md)uv run {baseDir}/scripts/inspect_tools.py path/to/tools.json
It prints one finding per line with a severity and exits non-zero if the
input contains zero tools. An empty manifest is a failed review, not a
clean one.high finding, open the implementation and confirm whether the
risk is real (step 4). For medium and info, record them and move on.references/checklist.md:
findings-report skill if it is
installed; otherwise use the structure in references/finding-shape.md.Return one compact review record before writing individual findings:
| Field | What to record |
|---|---|
| Scope | Server name, version or commit, deployment context, and tool count |
| Manifest signals | Every scanner result, including medium and informational signals |
| Implementation checks | The code path reviewed for each high-risk parameter or side effect |
| Privilege paths | What data, credentials, networks, and hosts the server can actually reach |
| Evidence gaps | Missing source, deployment configuration, or runtime controls |
| Disposition | Acceptable as deployed, acceptable with stated constraints, or reject pending change |
Do not call the server safe merely because the manifest scan is clean. A clean manifest means the description and parameter surface passed; the implementation and deployment blast radius remain separate claims.
| Check | Why it matters |
|---|---|
Imperative text in a description (ignore, always, you must, before calling) | Tool poisoning: descriptions are prompt text the model obeys |
| Description references other tools or the system prompt | Cross-tool shadowing and instruction override |
Hidden text markers (<!-- -->, zero-width chars, <IMPORTANT>) | Content meant for the model, not the human reviewer |
| Free-form string parameter named like a command, path, query, or URL | Injection sink; the model fills it from untrusted context |
Parameter with no description or additionalProperties: true | Model guesses; reviewer cannot bound behavior |
| Tool name implies destructive action with no confirmation parameter | Irreversible side effect on a single model decision |
| Tool with no description at all | Unreviewable; the model will invent one |
Severity is assigned by the script and is a starting point, not a verdict.
run_command on a
sandboxed dev container is the product. run_command on a production host
reachable from a chat window is critical. Severity follows the blast radius
of the deployment, which is in the config, not the manifest.get_schema before run_query" is good UX. "Ignore prior instructions
about credentials" is an attack. The script flags both; you decide, and
you record why.run_command with no sandbox and descriptions with hidden
instructions. Reputation changes the prior, not the review.string with maxLength: 10000 is a shell
command.In Claude Code, the server's tool list can be read from the active session's MCP configuration rather than a saved file; the review itself is unchanged.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
mcp-security, tool-audit, attack-surface, privilege-escalation
4 skills in this plugin
/agent-runtime-validationPlans and evaluates bounded runtime tests of AI agents, tools, memory, hooks, approvals, and scope enforcement. Use when static review is complete and an authorized assessment must determine how the deployed agent actually behaves./agent-trust-boundary-auditMaps identity, authority, instruction, data, memory, and approval propagation across agents and agent-to-agent handoffs. Use when reviewing multi-agent systems, orchestrators, delegated tools, or confused-deputy exposure./prompt-injection-assessmentAssesses whether direct, indirect, multi-turn, retrieved, or tool-mediated instructions can override an AI system's intended policy or scope. Use when conducting an authorized prompt-injection test with benign canaries and evidence-bound outcomes.npx claudepluginhub zero-lab-ai/skills --plugin agent-securityOther plugins' skills for the same job