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.
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.
Defensive layers applied to every MCP call, from the OAuth handshake through tool response back to the agent.
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.
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.
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.
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.
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.
| # | Vector | Severity | Status | Implementation |
|---|---|---|---|---|
| MCP-02 | Prompt Injection | High | ✅ | sanitizeMerchantContent (multiple adversarial patterns) + content delimiting |
| MCP-03 | Data Exfiltration | High | ✅ | Cross-tenant guard + 90-day audit retention |
| MCP-05 | Authentication Bypass | High | ✅ | OAuth 2.1 + JWT RS256 + RFC 8707 audience |
| MCP-06 | Authorization Bypass | High | ✅ | assertStoreOwnership() central helper |
| MCP-07 | Man-in-the-Middle | Medium | 🟡 | HTTPS+HSTS; manifest JWS signing active in production for part of the surfaces (E2); partial |
| MCP-08 | Tool Poisoning | High | ✅ | Sanitizer applied to merchant-authored content across MCP tools |
| MCP-11 | Output Manipulation | High | 🟡 | Zod schemas; manifest hash and JWS signing active in production for part of the surfaces (E2); partial |
| MCP-14 | Dependency Vulnerabilities | High | ✅ | MCP SDK 1.29.0 (3 CVEs patched) + DNS rebinding allowlist |
| MCP-22 | SSRF Attack | High | ✅ | Private CIDR blocklist + MCP host allowlist |
| MCP-25 | Cryptographic Weakness | High | ✅ | Ed25519, RS256, AES-256-GCM, SHA-256 only |
| MCP-26 | Insecure Storage | High | ✅ | SecretVault AES-256-GCM (ADR-003) |
| MCP-34 | Lack of Rate Limiting | High | ✅ | Per-tier, per-tool token-bucket rate limiter |
| MCP-37 | Rug Pull | High | 🟡 | eIDAS QTSP verification; manifest attestation active in production for part of the surfaces (E2); partial |
| MCP-38 | Shadow MCP | High | ✅ | Identity-gated onboarding + public trust labels |
More on compliance: Compliance
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).
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.
Separate description vs inputSchema hashes enable granular client policies (tolerate cosmetic changes, reject schema mutations). CI gate blocks merges without version bump.
# 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.jsonTechnical detail (RFC 8785 JCS canonicalization, version format) on the manifest signing page: Manifest Signing
14 Architecture Decision Records documented internally (ADR-003 SecretVault, ADR-011 requireEnv, ADR-014 ServerTrustedStoreId, etc); summaries are available on request.
Aligned with MCP 2025-11-25 (Streamable HTTP, OAuth 2.1, Progressive Discovery).
Technical dossier, DEFAULT classification, vulnerability disclosure policy (internal documentation, available on request).
Non-degradable per-capability human-approval thresholds, signed revocation, technical alignment with FIDO Alliance's AATWG framework: full detail.
Designed to verify merchant identity via InfoCert with QES and cross-border recognition across 30 EU/EEA countries. Code-complete integration, pending production credentials.
If you find a security issue, report it confidentially. Please don't publish exploits until we've confirmed the patch in production.