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/10-context-injection-over-sharing.md


title: 'MCP10: Context Injection and Over-Sharing' description: OWASP MCP Top 10 reference for context injection vulnerabilities including data over-sharing and insufficient context isolation patterns

10 Context Injection and Over-Sharing

Identifier: MCP10:2025 Category: Data Isolation

Description

In MCP systems, context acts as working memory for agents, storing prompts, retrieved documents, intermediate reasoning, and interaction history. When context is shared, persistently stored, or insufficiently scoped, sensitive information from one session, agent, or user can leak into another. Context Injection occurs when malicious or unintended content is embedded into shared memory, influencing how future requests are processed. Over-Sharing occurs when context is reused across agents or workflows that should be isolated. Together these issues cause private or sensitive information to propagate beyond intended boundaries.

Impact

  • Cross-agent and cross-user data leakage.

  • Violation of privacy regulations (GDPR, HIPAA, PCI DSS).

  • Unauthorized exposure of trade secrets and internal strategy.

  • Persistent contamination of model behavior due to injected context.

  • Loss of trust in AI systems and internal tools.

  • Legal, financial, and reputational damage.

Vulnerability checklist

  • Agents or services share a common context buffer or vector store.

  • Context memory persists across multiple users or sessions.

  • Context is reused for performance optimization without revalidation.

  • Sensitive data enters context without classification or tagging.

  • No policy defines context lifetime (no TTL or expiry rule).

  • Context or embeddings are reused for multi-agent reasoning.

  • The same context store is accessible across teams or departments.

  • Agents can access each other's memory without access checks.

Prevention controls

  1. Make context windows short-lived and per-session by default.

  2. Enforce automatic context deletion after task completion.

  3. Assign unique context namespaces per user, agent, workflow, and tenant.

  4. Prevent agents from accessing another agent's memory directly.

  5. Isolate retrieval indexes and vector stores in multi-tenant setups.

  6. Tag all inputs and retrieved data with classification levels (Public, Internal, Confidential, Restricted).

  7. Define TTL policies (session end, 30 minutes, 24 hours max) and auto-purge expired contexts.

  8. Scan and redact PII, secrets, tokens, and internal identifiers before storing in context.

  9. Require approval before sensitive context is exported, summarized, or shared across agents.

  10. Detect and block instruction-like content attempting to persist in memory.

Example attack scenarios

Scenario A — Cross-team data leak

Support and marketing teams share the same MCP agent infrastructure. The marketing agent retrieves support transcripts containing sensitive customer disputes and internal policy details.

Scenario B — Multi-tenant context bleed

A cloud MCP platform fails to isolate vector stores between tenants. Tenant A's internal documents appear in Tenant B's retrieval outputs.

Detection signals

  • Context data appearing in sessions for unrelated users or agents.

  • Instruction-like patterns detected in stored context memory.

  • Shared vector store queries returning cross-tenant results.

  • Context TTL violations or stale entries persisting beyond policy limits.

Remediation

  • Purge existing shared contexts and caches.

  • Enforce per-agent and per-user segmentation.

  • Introduce TTL policies and auto-purge logic.

  • Rotate keys and invalidate context stores if contamination is confirmed.

  • Review access control around vector databases and embeddings.

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