Review Cobalt pentest methodologies for a Model Context Protocol (MCP) server.
Cobalt follows an industry-standard methodology based on the OWASP MCP Top 10, the OWASP API Security Top 10, and the Model Context Protocol specification.
An MCP pentest is a structured security assessment of MCP servers and their integrations. It covers protocol security (JSON-RPC), tool execution, resource access control, prompt management, and transport security. The methodology focuses on the layers your developers configure: the server implementation, tool logic, and transport configuration.
MCP pentests are available as Comprehensive and Agile pentests. You can add MCP testing to an AI/LLM pentest or run it as a standalone pentest. Comprehensive pentests include a full report written by the Cobalt pentest team. Agile pentests include an automated report.
What Cobalt tests
The MCP server implementation is the primary attack surface. Cobalt testers focus on input validation, authority, and least privilege.
Cobalt tests:
- Tool logic
- Resource definitions
- Prompt templates
- Transport configuration
Cobalt does not test:
- Host application internals
- Foundation model weights
Scoping and test duration
MCP pentests are time-boxed and performed on a best-effort basis. The number of tools an MCP server routes to cannot be observed from outside the server, so MCP pentests are not scoped by server or tool count. Instead, they use a fixed credit amount:
- AI/LLM add-on: 3 credits (24 hours of testing)
- Standalone MCP pentest: 5 credits (40 hours of testing)
Because testing is time-boxed, Cobalt may not discover every possible vulnerability. Learn more about how to scope a pentest.
Prerequisites
Provide the access Cobalt testers need when describing your asset.
Black box (unauthenticated)
- Access to the AI application that uses the MCP server
- Network access to the remote MCP server endpoints
- Any public documentation
White box
- Everything required for black box
- Source code and configuration files
- Debugging client access to the MCP servers, so testers can bypass the LLM
- Test credentials at different roles
For local or containerized servers, testers need access to the executable, source, or Docker image, or a jump box or bastion host inside your network. The testing environment needs a minimum of 2 vCPUs, 8 GB RAM, and 50 GB of disk space.
Testing phases
Cobalt performs the following phases to ensure complete coverage:
- Reconnaissance
- Configuration Review
- Vulnerability Identification and Exploitation
- Reporting, triaging, and retesting
Reconnaissance
Cobalt testers map the MCP server's attack surface:
- Capability Discovery: Enumerate tools, resources, and prompts exposed by the server (tools/list, resources/list, prompts/list).
- Protocol Analysis: Review the initialize handshake and the capabilities the server declares.
- Data Flow Mapping: Identify high-risk workflows, such as tools that touch file systems, databases, or external APIs.
- Transport Review: Assess exposure for the transport in use (Stdio or SSE).
Tools
Cobalt may use tools such as:
- MCP Inspector
- Burp Suite
- ZAP
- Custom scripts for capability enumeration
Configuration Review
Testers review how the server is configured and how it enforces its own rules:
- Schema typing on tool definitions
- URI handling for resources, including traversal
- Confirmation policies for high-impact tools
Vulnerability Identification and Exploitation
Cobalt testers test for vulnerabilities in the OWASP MCP Top 10 and attempt to exploit them manually. The objective is to find weaknesses that could lead to unauthorized actions, data exposure, or server compromise.
MCP01: Token Mismanagement
- Objective: Identify exposed, hardcoded, or long-lived credentials.
- Focus: Check for hardcoded secrets, credentials written to logs or caches, environment variable exfiltration, and weak token strength or session timeouts.
MCP02: Scope Creep
- Objective: Determine whether permissions exceed what the server needs or expand over time.
- Focus: Verify minimal OAuth scopes, permission re-evaluation, horizontal and vertical privilege escalation, and permissive capability declarations.
MCP03: Tool Poisoning
- Objective: Assess whether tool definitions and results can be manipulated.
- Focus: Test for schema changes after negotiation, schema poisoning, hidden parameters, unlisted tools, and result tampering.
MCP04: Supply Chain
- Objective: Identify risk in third-party components.
- Focus: Check SDKs and dependencies for known vulnerabilities and compromised packages.
MCP05: Command Injection
- Objective: Determine whether user-controlled input reaches system commands or queries.
- Focus: Test tool arguments for command and SQL injection, validate strict typing on tool schemas, and test unexpected data types.
MCP06: Prompt Injection
- Objective: Manipulate model behavior through prompts, tool content, or retrieved content.
- Focus: Test instruction-override attacks, system prompt extraction, secrets leaked in prompts, history poisoning, and excessive agency, where a tool performs high-impact actions without user confirmation.
MCP07: Weak Auth
- Objective: Identify missing or weak identity validation.
- Focus: Test authentication on every connection, token handling, and whether clients authenticate servers.
MCP08: No Audit
- Objective: Determine whether tool activity can be traced.
- Focus: Check for missing tool invocation logs, sensitive data in logs, and exposed debug interfaces such as MCP Inspector.
MCP09: Shadow Servers
- Objective: Identify rogue or poorly configured MCP servers.
- Focus: Check for default credentials, insecure defaults, configuration drift, and server impersonation.
MCP10: Context Over-Sharing
- Objective: Identify data leaking between sessions, users, or servers.
- Focus: Test cross-turn memory leakage, cross-server leakage, tenant isolation, and tenant ID tampering.
Additional coverage areas
Cobalt's MCP checklist also covers:
- Resource Security: Path traversal, MIME spoofing, and resource read boundaries.
- Protocol: Batch abuse, protocol downgrade, request smuggling, and ID collision.
- Sandbox: Container escape, filesystem isolation, resource limits, and SSRF.
- Async Operations: Background task abuse, callback injection, race conditions, and queue poisoning.
- Sampling: User consent flow and message spoofing.
- Rate Limiting: Tool call limits and expensive operations.
- Client Policy: Confirmation dialogs for high-impact actions.
Tools
Cobalt may use tools such as:
- MCP Inspector
- Burp Suite
- ZAP
- Static analysis (SAST)
- Custom scripts
Out-of-scope activities
Unless otherwise agreed, Cobalt treats the following as out of scope:
- Denial of Service (DoS/DDoS) attacks
- Production data manipulation
- Third-party services
- Social engineering
Cobalt does not test the host application or the underlying LLM. The assessment covers the MCP server implementation.
Reporting, triaging, and retesting
Cobalt pentesters report and triage all vulnerabilities during the assessment. You can review details of all findings in real time through the Cobalt platform. In these findings, Cobalt's pentesters include detailed information, including:
- Step-by-step remediation guidance
- Recommendations on how to improve your overall security posture
The report you receive depends on the pentest type:
- Comprehensive: A full report written by the Cobalt pentest team, including an executive summary, scope of work, summary of findings, and summary of recommendations.
- Agile: An automated report generated from the findings reported during the pentest.
Learn more about report types and contents.
You can remediate findings during and after the pentest. Then you can submit findings for retest. Our pentesters test the updated components and retest vulnerabilities to ensure that there are no security-related residual risks.