Deep dive ยท Model Context Protocol

Secure MCP before it becomes a hidden trust shortcut.

The Model Context Protocol (MCP) connects LLMs and autonomous agents directly to enterprise databases, tools, developer environments, and internal APIs. We help engineering and security teams identify MCP vulnerabilities, enforce least privilege, and prevent lateral movement or data exfiltration.

Risk Overview

The MCP Threat Landscape

Model Context Protocol standardizes how models execute functions and query data. However, exposing internal tools to non-deterministic LLMs introduces high-risk attack surfaces:

  • Excessive Agency & Command Execution: Unbounded tool capabilities that allow arbitrary shell or database execution.
  • Indirect Prompt Injection: Unsanitized tool outputs that hijack agent execution context and trigger unauthorized downstream calls.
  • Transport Exposure: Unauthenticated stdio and SSE endpoints vulnerable to local process interception and CSRF-style attacks.
  • Shadow MCP Deployments: Unmonitored internal servers bypassing corporate firewalls and IAM policies.

Architecture

Why Traditional API Security Isn't Enough

Traditional API security relies on predictable caller intent and rigid schema contracts. In an MCP environment:

  • LLMs determine tool parameters dynamically based on conversational context.
  • Natural language prompts can trick the model into misusing valid credentials.
  • Multi-server tool chaining creates multi-hop privilege escalation paths across decoupled systems.
  • Context windows retain credentials, tokens, and PII unless strictly filtered.

Scope of Assessment

What We Assess in an MCP Security Audit

01 / Transport & Endpoints

Server & Transport Security

We review transport isolation across stdio, HTTP, and Server-Sent Events (SSE). We check for process sandboxing, TLS enforcement, and unauthorized network listeners.

02 / Identity & Access

Authentication & Authorization

Verification of caller identity propagation, mTLS, OAuth 2.0 token passing, role-based access control (RBAC), and multi-tenant environment boundaries.

03 / Tool Boundaries

Tool Scope & Least Privilege

Detailed evaluation of tool schemas, argument sanitization, destructive capability gating, and mandatory human-in-the-loop (HITL) approval gates.

04 / Injection Resistance

Prompt & Context Injection Defense

Adversarial testing against poisoned tool responses, malicious schema descriptions, and context pollution designed to manipulate model reasoning.

05 / Data & Secrets

Secret Management & Data Exposure

Auditing how API keys, database credentials, and internal schemas are handled, preventing credentials from bleeding into conversation logs or responses.

06 / Governance

Audit Logging & Telemetry

Ensuring end-to-end auditability of all tool invocations, parameters, and return values with tamper-evident structured telemetry.

Methodology

Our 4-Phase Assessment Process

  1. Architecture & Threat Modeling: Map all MCP servers, client connections, connected tools, and data stores.
  2. Adversarial Penetration Testing: Perform automated and manual exploits against tool schemas, injection vectors, and auth controls.
  3. Policy & Guardrail Review: Test validation layers, approval workflows, and runtime execution constraints.
  4. Remediation & Action Plan: Deliver actionable engineering fixes, schema refactoring advice, and security policies.