Generated banner for Owasp MCP
Generated logo for Owasp MCP

Owasp MCP

MicrosoftOfficialPublished by Microsoft

  • Skill
  • Guidelines
  • Security
  • CC-BY-SA-4.0
  • Medium risk

From the author

OWASP MCP Top 10 knowledge base for identifying, assessing, and remediating Model Context Protocol security risks.
— the description by Microsoft

AutoGineer summary

Written by AutoGineer from the skill’s own files, not by the author

The owasp-mcp skill provides a comprehensive, machine-readable reference for the OWASP MCP Top 10 (2025). It is designed to help developers and security professionals identify, assess, and remediate common security vulnerabilities inherent in Model Context Protocol architectures. By structuring these risks into standardized documents, the skill enables AI agents to perform security audits, provide defensive guidance, and suggest remediation strategies for issues ranging from credential mismanagement to tool poisoning and shadow server deployment.

What it does

  • Provides a structured index of the OWASP MCP Top 10 security vulnerabilities.
  • Offers detailed descriptions, impact assessments, and vulnerability checklists for each risk.
  • Supplies defensive design patterns and prevention controls for MCP architectures.
  • Includes realistic attack scenarios to help visualize potential exploitation paths.
  • Provides actionable detection signals and remediation steps for security incidents.

When to use it

  • During the design phase of an MCP server or client to implement secure-by-design principles.
  • When auditing an existing MCP implementation for potential security gaps.
  • To train or prompt an AI agent to assist in identifying security risks within an MCP-based workflow.
  • When responding to a suspected security incident involving MCP tool calls or context sharing.

Advantages

  • Aligned with industry-standard OWASP security research.
  • Structured for machine-readability, making it ideal for AI-assisted security analysis.
  • Covers a broad spectrum of risks specific to the Model Context Protocol ecosystem.
  • Provides clear, actionable remediation guidance for developers.

Usage examples

“What are the security risks associated with tool poisoning in an MCP environment?”
The agent will reference the MCP03:2025 documentation to explain the risks of tool poisoning, provide a checklist for identifying vulnerable configurations, and suggest prevention controls.
“How can I prevent secret exposure in my MCP server implementation?”
The agent will retrieve the MCP01:2025 reference to outline best practices such as using secure vaults, enforcing short-lived tokens, and implementing log redaction.

Install

  1. Download the skill as a ZIP:

    https://autogineer.com/agent-skills/microsoft/owasp-mcp/download
  2. Unzip it into the cross-client skills folder of your project:

    mkdir -p .agents/skills && unzip owasp-mcp.zip -d .agents/skills

Documentation by Microsoft

OWASP® MCP Top 10 — Skill Entry

This SKILL.md is the entrypoint for the MCP Vulnerabilities skill.

The skill encodes the OWASP MCP Top 10 (2025) as structured, machine-readable references that an agent can query to identify, assess, and remediate MCP security risks.

Normative references (MCP Top 10)

  1. 00 Vulnerability Index

  2. 01 Token Mismanagement and Secret Exposure

  3. 02 Privilege Escalation via Scope Creep

  4. 03 Tool Poisoning

  5. 04 Software Supply Chain Attacks and Dependency Tampering

  6. 05 Command Injection and Execution

  7. 06 Prompt Injection via Contextual Payloads

  8. 07 Insufficient Authentication and Authorization

  9. 08 Lack of Audit and Telemetry

  10. 09 Shadow MCP Servers

  11. 10 Context Injection and Over-Sharing

Skill layout

  • SKILL.md — this file (skill entrypoint).

  • references/ — the MCP Top 10 normative documents.

    • 00-vulnerability-index.md — index of all vulnerability identifiers, severities, and cross-references.

    • 01 through 10 — one document per vulnerability aligned with OWASP MCP numbering.

Third-Party Attribution

Copyright © OWASP Foundation. OWASP® MCP Top 10 content is derived from works by the OWASP Foundation, licensed under CC BY-SA 4.0 (https://creativecommons.org/licenses/by-sa/4.0/). Source: https://owasp.org/www-project-mcp-top-10/ Modifications: Vulnerability descriptions restructured into agent-consumable reference documents with added detection and remediation guidance. OWASP® is a registered trademark of the OWASP Foundation. Use does not imply endorsement.

Files

references/03-tool-poisoning.md


title: 'MCP03: Tool Poisoning' description: OWASP MCP Top 10 reference for tool poisoning vulnerabilities including schema tampering and contract manipulation patterns

03 Tool Poisoning

Identifier: MCP03:2025 Category: Supply Chain / Integrity

Description

Schema poisoning occurs when an adversary tampers with contract or schema definitions governing agent-to-tool interactions in an MCP ecosystem. Schemas define the shape, types, and semantics of requests and responses. If an attacker modifies a schema so that a benign-sounding operation maps to a destructive action, agents that trust the schema may execute dangerous commands while passing superficial validation. This is a supply-chain style compromise: the attacker changes the contract so legitimate agents behave incorrectly.

Impact

  • Data loss or corruption when benign workflows cause irreversible deletion.

  • Privilege abuse when schema fields map to higher-risk operations.

  • Silent policy bypass when validation checks match a malicious schema.

  • Widespread compromise when a single poisoned schema propagates across agents and tenants.

  • Erosion of trust and auditability when logs show valid actions per a malicious contract.

Vulnerability checklist

  • Schemas or tool descriptors are fetched dynamically without integrity checks.

  • Writable schema registry lacks RBAC, code review, or approvals.

  • Schema edits are promoted to production automatically without signed commits.

  • Agents accept schema changes at runtime without operator confirmation.

  • No provenance or version binding is stored with the schema.

  • No testing asserts semantic invariants (e.g., archive must not map to DELETE).

Prevention controls

  1. Digitally sign schemas and tool manifests (JWS, COSE, PKI-backed signatures).

  2. Use content-addressable identifiers (hashes) for schema versions.

  3. Store schemas in immutable version-controlled systems with signed commits.

  4. Enforce branch protections, required code review, and multi-person approval.

  5. Apply least-privilege RBAC to schema registries.

  6. Encode semantic invariants as policy-as-code checks (OPA/Rego).

  7. Include provenance metadata (author, signature, hash, timestamp) per schema version.

  8. Require schema attestation binding the hash to agent identity and session.

  9. Implement runtime sanity checks for destructive verbs or high data-volume operations.

  10. Pause execution and require human approval when impact thresholds are exceeded.

Example attack scenarios

Scenario A — Compromised CI pipeline promotes malicious schema

An attacker compromises a CI/CD runner and pushes a schema remapping archive to DELETE. Agents across production begin issuing destructive calls.

Scenario B — Dependency supply-chain tampering

A dependency providing tool manifests is trojaned. Consumers fetch tampered schemas during startup that alter semantics for a widely used tool.

Scenario C — Insider abuse via registry write access

An insider with write access modifies a schema to escalate an agent's abilities, enabling unauthorized data access and exfiltration.

Scenario D — Man-in-the-middle rewriting schemas in transit

Schemas served over unsecured channels are rewritten in transit, altering operation verbs so benign requests become destructive.

Detection signals

  • Unexpected changes to schema hashes or versions in deployment logs.

  • Agents performing operations inconsistent with documented tool semantics.

  • Schema fetches from untrusted or unsigned sources.

  • Destructive operations triggered by benign workflow invocations.

Remediation

  • Revoke or block the promoted schema version.

  • Roll back agents to the last known-good schema hash and force revalidation.

  • Rotate tokens or credentials that may have been abused.

  • Conduct forensic analysis of affected agents, actions, and data changes.

  • Patch CI/CD and registry processes to require signed commits and multi-party approvals.

Requirements and compatibility

Written for: GitHub Copilot, Claude Code

Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta

“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.

Needs: Claude Code frontmatter, Needs an MCP server

Security

What our scanner noticed· Medium risk

  • References to credential files

A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.

Attribution and licence

Published by
Microsoft
Publisher
Microsoft (Official)
Source
microsoft/hve-core · .github/skills/security/owasp-mcp · commit f425e94
Licence
Creative Commons Attribution-ShareAlike 4.0 International (redistribution allowed)
  • LICENSE (written by AutoGineer)
  • ATTRIBUTION.md (written by AutoGineer)
Synced

AutoGineer is not affiliated with or endorsed by Microsoft or Microsoft.

Download ZIP

The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download owasp-mcp.zip