Logo de Agent Surface Audit

Agent Surface Audit

Organização
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.

Visão geral

Publicado porzero-lab-ai
Repositórioskills
Nome da habilidadeagent-surface-audit
Estrelas
152
Forks
9
Arquivos incluídos
6
LicençaApache-2.0
Links
  • Instruções em Markdown

    Um arquivo SKILL.md que o modelo carrega sob demanda, consumindo tokens apenas quando uma solicitação é realmente relevante para a habilidade.

  • Funciona com qualquer LLM

    Habilidades de IA são Markdown simples, não código específico de um provedor, por isso funcionam com GPT, Claude, Gemini, Grok ou um modelo local.

  • 6 arquivos incluídos

    Scripts, modelos de documentos e referências que o modelo pode ler enquanto trabalha. Os arquivos são somente leitura e nunca são executados.

  • Código aberto

    Publicada por zero-lab-ai no GitHub. Leia o conteúdo-fonte antes de instalar.

Instalação

Instale a habilidade de IA Agent Surface Audit no TypingMind para usá-la com qualquer LLM ou adicione-a a outro agente que leia SKILL.md.

1

Instalar no TypingMind

O TypingMind instala uma habilidade diretamente da pasta dela no GitHub — lê o arquivo SKILL.md, reúne os arquivos de recursos em um pacote e armazena o resultado localmente.

  1. Abra o app e vá para Plugins → Habilidades.
  2. Escolha "Instalar do GitHub".
  3. Cole a URL da pasta da habilidade exibida abaixo e confirme.
    https://github.com/zero-lab-ai/skills/tree/main/plugins/agent-security/skills/agent-surface-audit
  4. Ative a habilidade em cada chat em que quiser disponibilizá-la.
Plugins → Habilidades → Nova habilidade → Via URL GitHub, depois cole a URL da pasta e pressione Continuar.
2

Instalar em outro agente

Qualquer agente que leia o formato Agent Skills pode usar esta habilidade — copie a pasta para o diretório de habilidades desse agente.

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
Reinicie Claude Code após copiar para que a nova habilidade seja reconhecida.

Use no TypingMind

Ative Agent Surface Audit em qualquer chat do TypingMind e o modelo cuida do resto. O nome e a descrição da habilidade ficam no prompt do sistema e, assim que uma solicitação relevante aparece, o modelo carrega as instruções completas automaticamente — sem precisar de acionamento manual e sem consumir tokens até que ela seja realmente usada.

O modelo carrega Agent Surface Audit automaticamente assim que uma solicitação é relevante para essa habilidade.

Funciona com qualquer modelo de IA

Habilidades de IA são instruções em Markdown simples, não código específico de um provedor. Por isso, Agent Surface Audit não fica vinculada ao modelo para o qual foi criada. Instale-a uma vez no TypingMind e use-a com GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou um modelo local executado por conta própria — tudo com suas próprias chaves de API.

  • Carregada apenas quando necessário

    O prompt do sistema contém apenas o nome e a descrição. As instruções são buscadas na primeira solicitação relevante, então uma habilidade sem uso não gera custo.

  • Troque de modelo durante a conversa

    Como a habilidade é composta de instruções, não de código, trocar de modelo não afeta seu funcionamento — o próximo modelo lê o mesmo arquivo SKILL.md.

Instruções da habilidade

Este é o conteúdo de SKILL.md que o modelo carrega. Leia antes de instalar — uma habilidade é um conjunto de instruções que seu modelo seguirá.

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.

Arquivos incluídos

O modelo lê esses arquivos sob demanda enquanto a habilidade está carregada. Eles são disponibilizados para leitura e nunca são executados.

Perguntas frequentes

O que a habilidade de IA Agent Surface Audit faz?

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.

Por que usar Agent Surface Audit no TypingMind?

Porque basta instalar uma vez para usar com qualquer modelo. Agent Surface Audit é escrito em Markdown simples, e não em código específico de um provedor, então a mesma habilidade funciona com GPT-5, Claude, Gemini, Grok ou um modelo local — e é possível trocar de modelo no meio do chat sem que ela deixe de funcionar. O TypingMind usa suas próprias chaves de API, então o pagamento é feito diretamente aos provedores, em vez de uma assinatura por licença de usuário, e suas habilidades e chats permanecem no seu próprio armazenamento.

Como instalar Agent Surface Audit no TypingMind?

Abra Plugins → Habilidades → Instalar do GitHub no TypingMind e cole https://github.com/zero-lab-ai/skills/tree/main/plugins/agent-security/skills/agent-surface-audit. O TypingMind lê o arquivo SKILL.md, reúne os arquivos da habilidade e a instala para que possa ser ativada em cada chat.

Quais modelos de IA podem usar Agent Surface Audit?

Qualquer modelo conectado no TypingMind. As habilidades de IA são instruções em Markdown simples, e não código específico de um provedor. Assim, GPT, Claude, Gemini, Grok e modelos locais podem carregar esta habilidade quando uma solicitação corresponder a ela.

Quantos modelos de IA posso usar com Agent Surface Audit?

Quantos quiser. Desde que o modelo ofereça suporte a habilidades, é possível usar Agent Surface Audit com ele — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e outros — tudo no TypingMind com suas próprias chaves de API.

A habilidade de IA Agent Surface Audit é gratuita?

Sim. A habilidade é publicada no GitHub por zero-lab-ai sob a licença Apache-2.0. O pagamento é feito apenas ao seu provedor de IA pelos tokens usados.

O que são habilidades de IA?

Uma habilidade de IA é um conjunto reutilizável de instruções que ensina um modelo de IA a realizar uma tarefa específica. Ela segue o formato aberto Agent Skills: um arquivo SKILL.md com nome e descrição, além de scripts, modelos de documento ou arquivos de referência de que o modelo possa precisar. O modelo lê as instruções apenas quando sua solicitação corresponde à habilidade, então uma habilidade instalada não gera custos até ser usada.

Qual é a diferença entre habilidades de IA e plugins ou servidores MCP?

Um plugin ou servidor MCP oferece ao modelo novas ferramentas para chamar — código que é executado em algum lugar e retorna um resultado. Já uma habilidade de IA fornece conhecimento e um processo ao modelo: como abordar uma tarefa, quais etapas seguir e como deve ser um bom resultado. As habilidades são escritas em Markdown simples, por isso não precisam de servidor, chave de API nem ambiente de execução, e funcionam com qualquer modelo.

Ver todos

Crie seu próprio espaço de IA agora

Inscreva-se na nossa newsletter para receber novidades sobre recursos e futuros sorteios 👇