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://mp-staging.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/04-supply-chain-attacks-dependency-tampering.md


title: 'MCP04: Software Supply Chain Attacks and Dependency Tampering' description: OWASP MCP Top 10 reference for supply chain attack vulnerabilities including dependency tampering and compromised component patterns

04 Software Supply Chain Attacks and Dependency Tampering

Identifier: MCP04:2025 Category: Supply Chain / Integrity

Description

MCP environments rely on third-party components including SDKs, connectors, protocol servers, vector database clients, plugins, and model-side tool integrations. These modules often run within trusted execution paths, so a compromised dependency can alter agent behavior, introduce hidden backdoors, or modify protocol semantics without triggering detection. Attackers may target MCP server libraries, third-party plugins, dependency updates, open-source model tooling, build pipelines, and package registries. Compromised components can call unsafe APIs, exfiltrate context data, insert rogue schemas, tamper with tool execution, or issue silent privilege escalation.

Impact

  • Unauthorized access and code execution.

  • Context poisoning and data exfiltration.

  • Privilege escalation through manipulated tools or schemas.

  • Silent corruption of MCP logic and decisioning.

  • Cross-tenant compromise if shared connectors are affected.

  • Propagation into downstream systems (CI/CD, cloud infrastructure).

Vulnerability checklist

  • MCP connectors or plugins are installed without signing or provenance checks.

  • Dependencies are fetched automatically during runtime or build.

  • SBOM or dependency inventory is incomplete or unavailable.

  • Teams use "latest" or floating version references.

  • No dependency integrity verification (hash, signature, attestation) exists.

  • No sandboxing isolates third-party components.

  • Vendors or maintainers have no formal security process.

  • Open-source components are directly modified and redistributed.

  • Plugin code performs network calls without review.

Prevention controls

  1. Require cryptographic signing for SDKs, plugins, tool manifests, and container images.

  2. Validate signatures during install and startup.

  3. Generate SBOM and CBOM snapshots for each MCP server and plugin package.

  4. Track versions, hashes, licenses, and provenance metadata.

  5. Pin component versions and avoid "latest" references.

  6. Use internal package mirrors or registries.

  7. Block direct downloads from the public internet.

  8. Apply SCA and code scanning tools to detect known CVEs and malicious indicators.

  9. Run plugins in constrained environments (WASM, container isolation).

  10. Maintain vendor risk profiles and require signed attestations from suppliers.

Example attack scenarios

Scenario A — Trojanized plugin

A popular open-source connector gains a malicious update that silently exfiltrates customer support transcripts to an adversary-controlled endpoint.

Scenario B — Registry compromise

An MCP package registry is compromised and replaces specific versions of a library used for context ingestion with a modified version that injects instructions into shared context memory.

Scenario C — Dependency confusion

An attacker publishes a dependency to a public registry with the same name as an internal MCP plugin, and agents pull the attacker's version via default resolution behavior.

Scenario D — Build pipeline attack

CI systems are compromised and append rogue instructions to MCP manifests, adding privileged schema methods that call destructive APIs.

Detection signals

  • Hash or signature changes in installed packages.

  • Plugins making calls to unknown domains.

  • Silent installation of new dependencies.

  • Unauthorized schema or configuration diffs.

  • Sudden behavior drift in MCP agents.

Remediation

  • Quarantine and remove compromised dependencies.

  • Roll back to last known-good versions with verified hashes.

  • Rotate all credentials that may have been exposed.

  • Audit build pipelines and package registries for tampering.

  • Enforce signing and provenance checks across all dependency ingestion paths.

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.

Download ZIP

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