Agent Surface Audit logo

Agent Surface Audit

Organization
zero-lab-ai
agent-surface-audit

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, or when a user asks whether a server is safe to connect to an agent.

Overview

Publisherzero-lab-ai
Repositoryskills
Skill nameagent-surface-audit
Stars
232
Forks
14
Bundled files
6
LicenseApache-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 6 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by zero-lab-ai on GitHub. Read the source before you install it.

Installation

Install the Agent Surface Audit AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/zero-lab-ai/skills/tree/main/plugins/agent-security/skills/agent-surface-audit
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/zero-lab-ai/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/plugins/agent-security/skills/agent-surface-audit .claude/skills/agent-surface-audit
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Agent Surface Audit in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Agent Surface Audit on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Agent Surface Audit is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Reviewing MCP servers

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.

When to Use

  • Auditing, onboarding, or writing an MCP server, or when a user asks whether a server is safe to connect to an agent.
  • Use only within explicit authorization and the stated rules of engagement.

When NOT to Use

  • Do not treat this skill as permission to access, test, or change a target.
  • Do not convert missing evidence into a clean result or a stronger claim.

Quick start

  1. Get the server's tool list as JSON. Any of these work:
    • the server's tools/list response, saved to a file
    • a harness's exported MCP config or tool dump
    • for a source checkout, the decorated tool definitions, converted to the same JSON shape (see references/manifest-format.md)
  2. Run the checker:
    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.
  3. For every high finding, open the implementation and confirm whether the risk is real (step 4). For medium and info, record them and move on.
  4. Read the implementation for what the scanner cannot see, using references/checklist.md:
    • does the tool execute, eval, or template any parameter into a shell, SQL, or URL?
    • does it read or write outside the paths its description claims?
    • does it make network calls to hosts the user did not name?
    • does it carry credentials, and are they scoped to the operation?
  5. Write findings with the findings-report skill if it is installed; otherwise use the structure in references/finding-shape.md.

Review deliverable

Return one compact review record before writing individual findings:

FieldWhat to record
ScopeServer name, version or commit, deployment context, and tool count
Manifest signalsEvery scanner result, including medium and informational signals
Implementation checksThe code path reviewed for each high-risk parameter or side effect
Privilege pathsWhat data, credentials, networks, and hosts the server can actually reach
Evidence gapsMissing source, deployment configuration, or runtime controls
DispositionAcceptable 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.

What the scanner flags

CheckWhy 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 promptCross-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 URLInjection sink; the model fills it from untrusted context
Parameter with no description or additionalProperties: trueModel guesses; reviewer cannot bound behavior
Tool name implies destructive action with no confirmation parameterIrreversible side effect on a single model decision
Tool with no description at allUnreviewable; the model will invent one

Severity is assigned by the script and is a starting point, not a verdict.

Judgment calls the script leaves to you

  • A shell tool is not automatically a finding. 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.
  • Descriptions that instruct the model are sometimes legitimate. "Call 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.
  • Read-only is a claim, not a property. A tool described as read-only that takes a path parameter can still read secrets. Check what the path is resolved against.

Rationalizations to reject

  • "It's a first-party server from a reputable vendor." Vendor servers have shipped run_command with no sandbox and descriptions with hidden instructions. Reputation changes the prior, not the review.
  • "The harness will ask the user before destructive calls." Some do, some do not, and the approval prompt shows the tool name, not the parameters. Review as if every call auto-approves.
  • "The parameter schema is strict so injection is bounded." A schema bounds the type, not the content. A string with maxLength: 10000 is a shell command.
  • "The server only runs locally." Local is where the user's SSH keys, cloud credentials, and source trees are. Local is the high-value target.
  • "There are too many tools to read them all." Then the server has too many tools, and that is the first finding. Review all of them; the script makes the first pass cheap.

Harness notes

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.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Agent Surface Audit AI skill do?

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, or when a user asks whether a server is safe to connect to an agent.

Why use Agent Surface Audit on TypingMind?

Because you install it once and use it with any model. Agent Surface Audit is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Agent Surface Audit in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/zero-lab-ai/skills/tree/main/plugins/agent-security/skills/agent-surface-audit. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Agent Surface Audit?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Agent Surface Audit?

As many as you like. As long as a model supports skills, you can use Agent Surface Audit with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Agent Surface Audit AI skill free?

Yes. It is published on GitHub by zero-lab-ai under the Apache-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇