Skip to content
MCP Security

29 of 38 MCP-38 vectors mitigated

Trusteed publishes its full coverage matrix against the MCP-38 threat taxonomy (Shen et al, arXiv 2603.18063). Zero unaddressed gaps: anything not mitigated in code is covered by documented compensating controls or by architectural choice.

Mitigated
29
Partial
7
Compensating
2
Not addressed
0

Security architecture

Defensive layers applied to every MCP call, from the OAuth handshake through tool response back to the agent.

Input sanitization (E1)

Merchant-supplied strings pass through sanitizeMerchantContent() (multiple adversarial patterns) and are isolated via content delimiting before entering the LLM context. Mitigates MCP-02, MCP-08.

Cross-tenant isolation (E4)

assertStoreOwnership() validates that the provided storeId matches the caller's auth context (merchant JWT or MCP API key). Metric cross_tenant_rejection_total + alert. Runbook documented. Mitigates MCP-03, MCP-06.

Manifest signing (E2)

Trusteed publishes a separate Ed25519 JWS signature in the header of agent-policy.json, agent-commerce.json, merchant-index.json, trust-components.json, mcp-tools-manifest.json, and ucp-capabilities.json; trusteed-capabilities.json, agent-capabilities.json, agent-card.json, and agent.json carry the signature inside the document (list measured 2026-11-30); mcp.json and the checkout guide are not signed. Trust Receipts and their revocation lists carry their own signature; see /trust/trust-receipt. Public JWKS at /.well-known/jwks.json and dual-key rotation with a grace period. Addresses MCP-07, MCP-11, and MCP-37 partially.

Cross-cutting controls

OAuth 2.1 with PKCE + RFC 8707 audience (api.trusteed.xyz). DNS rebinding allowlist on MCP transport. Tiered rate limits per plan. Zod on every endpoint. AES-256-GCM in SecretVault.

Coverage matrix (summary)

High-severity vectors with direct or pending mitigation. The full 38-row matrix (with Severity and Implementation) is available on request during a security review.

Summary of MCP-38 vectors with coverage status
#VectorSeverityStatusImplementation
MCP-02Prompt InjectionHigh✅sanitizeMerchantContent (multiple adversarial patterns) + content delimiting
MCP-03Data ExfiltrationHigh✅Cross-tenant guard + 90-day audit retention
MCP-05Authentication BypassHigh✅OAuth 2.1 + JWT RS256 + RFC 8707 audience
MCP-06Authorization BypassHigh✅assertStoreOwnership() central helper
MCP-07Man-in-the-MiddleMedium🟡HTTPS+HSTS; manifest JWS signing active in production for part of the surfaces (E2); partial
MCP-08Tool PoisoningHigh✅Sanitizer applied to merchant-authored content across MCP tools
MCP-11Output ManipulationHigh🟡Zod schemas; manifest hash and JWS signing active in production for part of the surfaces (E2); partial
MCP-14Dependency VulnerabilitiesHigh✅MCP SDK 1.29.0 (3 CVEs patched) + DNS rebinding allowlist
MCP-22SSRF AttackHigh✅Private CIDR blocklist + MCP host allowlist
MCP-25Cryptographic WeaknessHigh✅Ed25519, RS256, AES-256-GCM, SHA-256 only
MCP-26Insecure StorageHigh✅SecretVault AES-256-GCM (ADR-003)
MCP-34Lack of Rate LimitingHigh✅Per-tier, per-tool token-bucket rate limiter
MCP-37Rug PullHigh🟡eIDAS QTSP verification; manifest attestation active in production for part of the surfaces (E2); partial
MCP-38Shadow MCPHigh✅Identity-gated onboarding + public trust labels

More on compliance: Compliance

Public Tools Manifest

Public signed endpoint with separate SHA-256 hashes over each MCP tool's description and inputSchema. Lets clients pin hashes and detect rug-pull (silent changes to descriptions or schemas that escalate privileges).

Public URL

https://trusteed.xyz/.well-known/mcp-tools-manifest.json

3600s cache. Signed JWS Ed25519 reusing keys published at /.well-known/jwks.json (ADR-016). Versioned YYYY-MM-DD.N with previous_version field for graceful upgrade.

Rug-pull detection

Separate description vs inputSchema hashes enable granular client policies (tolerate cosmetic changes, reject schema mutations). CI gate blocks merges without version bump.

Quick verification

# 1) Descargar manifest + JWKS
curl -s https://trusteed.xyz/.well-known/mcp-tools-manifest.json -o manifest.json
curl -s https://trusteed.xyz/.well-known/jwks.json -o jwks.json

# 2) Verificar firma JWS Y que el cuerpo es el firmado (Node.js + jose, ESM)
node --input-type=module -e "
  import { compactVerify, createLocalJWKSet } from 'jose';
  import { createHash } from 'node:crypto';
  import fs from 'node:fs';
  const canon = (v) => v === null || typeof v !== 'object' ? JSON.stringify(v)
    : Array.isArray(v) ? '[' + v.map(canon).join(',') + ']'
    : '{' + Object.keys(v).sort().map(k => JSON.stringify(k) + ':' + canon(v[k])).join(',') + '}';
  const { _jws, _kid, ...body } = JSON.parse(fs.readFileSync('manifest.json'));
  const jwks = JSON.parse(fs.readFileSync('jwks.json'));
  const { payload } = await compactVerify(_jws, createLocalJWKSet(jwks), { algorithms: ['EdDSA'] });
  const c = JSON.parse(new TextDecoder().decode(payload));
  const hash = 'sha256:' + createHash('sha256').update(canon(body)).digest('hex');
  if (c.sub !== 'mcp-tools-manifest.json' || c.exp <= Date.now() / 1000 || hash !== c.manifest_hash) {
    throw new Error('manifest NOT verified');
  }
  console.log('OK', body.version); // verify-snippet
"

# 3) Pinear hash de una tool y comparar en futuras releases
jq -r '.tools[] | select(.name=="search_products") | {description_sha256, schema_sha256}' manifest.json

Technical detail (RFC 8785 JCS canonicalization, version format) on the manifest signing page: Manifest Signing

Public trust signals

Responsible disclosure

If you find a security issue, report it confidentially. Please don't publish exploits until we've confirmed the patch in production.