Midnight — the complete, unedited output of the deterministic mcptrustchecker engine v1.13.0, scanned . Every finding, capability tag and score component below is exactly what the engine produced — no AI, no post-processing.
{
"tool": {
"name": "mcptrustchecker",
"version": "1.13.0",
"methodologyVersion": "mcptrustchecker-1.13"
},
"target": {
"id": "midnight-mcp",
"source": {
"kind": "package",
"origin": "midnight-mcp"
},
"server": {
"name": "midnight-mcp"
}
},
"grade": "B",
"score": {
"score": 81,
"threatScore": 85,
"grade": "B",
"band": "B",
"categorySubtotals": {
"injection": 15.4,
"exfiltration": 0,
"permissions": 0,
"supply-chain": 0,
"network": 0,
"hygiene": 0
},
"vector": [
{
"kind": "threat",
"ruleId": "MTC-INJ-CMD-1",
"category": "injection",
"severity": "high",
"confidence": "strong",
"rawWeight": 22,
"confidenceMult": 0.7,
"diminishingFactor": 1,
"appliedPenalty": 15.4
},
{
"kind": "client",
"term": "capability-exposure",
"level": "moderate",
"label": "capability blast radius (moderate) — client exposure if the model is manipulated",
"appliedPenalty": 3
},
{
"kind": "client",
"term": "verification-discount",
"level": "repo",
"label": "publisher verification (public source) — no provenance, but the source is public and inspectable",
"appliedPenalty": 1
},
{
"kind": "client",
"term": "coverage-honesty",
"level": "source",
"label": "inspection depth (source) — how much of the target the scan could see",
"appliedPenalty": 0
}
],
"gatesFired": [],
"methodologyVersion": "mcptrustchecker-1.13"
},
"capability": {
"level": "moderate",
"reasons": [
"ingests untrusted external content (a prompt-injection entry point)",
"can send data / act on an external service"
],
"tags": [
"untrusted-input",
"external-sink"
]
},
"coverage": {
"level": "source",
"inputs": {
"toolSurface": true,
"implementationSource": true,
"packageMetadata": true,
"liveTransport": false
},
"caveats": [
"Tools were statically extracted from the published source (89 recovered), not enumerated from a running server. Tool-poisoning, Unicode-smuggling, capability and toxic-flow analysis ran on this inferred surface, but a mis-parsed registration could be missed or mis-attributed, so tool-derived findings are capped below “confirmed”. To grade the real runtime surface, scan the running server: --command \"npx -y <package>\"."
]
},
"findings": [
{
"ruleId": "MTC-INJ-CMD-1",
"title": "Shell command embedded in tool metadata",
"category": "injection",
"severity": "high",
"confidence": "strong",
"description": "Shell command embedded in tool metadata detected in the description of tool \"midnight-auto-update-config\". Instruction-like content in tool metadata is executed by the model, not the human, and is the primary tool-poisoning vector.",
"remediation": "Tool descriptions should describe behavior, not instruct the assistant. Treat imperative / secrecy / sequencing language in metadata as hostile.",
"location": {
"kind": "tool",
"name": "midnight-auto-update-config",
"field": "description"
},
"evidence": "rm -rf",
"owasp": "LLM01:2025 Prompt Injection",
"data": {
"kind": "command-in-prose"
}
},
{
"ruleId": "MTC-SRC-003",
"title": "Hardcoded egress to an external endpoint (dist/chunk-VBZPDFKP.js)",
"category": "exfiltration",
"severity": "medium",
"confidence": "strong",
"description": "In the server's implementation (`dist/chunk-VBZPDFKP.js:9462`): A hardcoded outbound call to a fixed external host inside server code is a classic exfiltration/telemetry channel — especially paired with reads of local data. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.",
"remediation": "Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.",
"location": {
"kind": "server",
"name": "dist/chunk-VBZPDFKP.js"
},
"evidence": "const response = await fetch( \"https://registry.npmjs.org/midnight-mcp/latest\" ); if (!response.ok) {",
"owasp": "LLM02:2025 Sensitive Information Disclosure",
"data": {
"rule": "MTC-SRC-003",
"file": "dist/chunk-VBZPDFKP.js",
"line": 9462,
"nonRuntime": false
}
}
],
"toxicFlows": [],
"capabilities": [
{
"tool": "midnight-search-compact",
"tags": [],
"reasons": {}
},
{
"tool": "midnight-search-typescript",
"tags": [],
"reasons": {}
},
{
"tool": "midnight-search-docs",
"tags": [],
"reasons": {}
},
{
"tool": "midnight-fetch-docs",
"tags": [
"untrusted-input"
],
"reasons": {
"untrusted-input": [
"keyword \"fetch\""
]
}
},
{
"tool": "midnight-analyze-contract",
"tags": [],
"reasons": {}
},
{
"tool": "midnight-explain-circuit",
"tags": [],
"reasons": {}
},
{
"tool": "midnight-compile-contract",
"tags": [],
"reasons": {}
},
{
"tool": "Counter",
"tags": [],
"reasons": {}
},
{
"tool": "Bulletin Board",
"tags": [],
"reasons": {}
},
{
"tool": "Midnight Bank",
"tags": [],
"reasons": {}
},
{
"tool": "Compact Language Reference",
"tags": [],
"reasons": {}
},
{
"tool": "TypeScript SDK API",
"tags": [],
"reasons": {}
},
{
"tool": "OpenZeppelin Contracts for Compact",
"tags": [],
"reasons": {}
},
{
"tool": "OpenZeppelin FungibleToken",
"tags": [],
"reasons": {}
},
{
"tool": "OpenZeppelin Access Control",
"tags": [],
"reasons": {}
},
{
"tool": "OpenZeppelin Security",
"tags": [],
"reasons": {}
},
{
"tool": "Tokenomics Summary",
"tags": [],
"reasons": {}
},
{
"tool": "Wallet Integration Guide",
"tags": [],
"reasons": {}
},
{
"tool": "Counter Example",
"tags": [],
"reasons": {}
},
{
"tool": "Bulletin Board Example",
"tags": [],
"reasons": {}
},
{
"tool": "State Management Pattern",
"tags": [],
"reasons": {}
},
{
"tool": "Access Control Pattern",
"tags": [],
"reasons": {}
},
{
"tool": "Privacy-Preserving Pattern",
"tags": [],
"reasons": {}
},
{
"tool": "Token Template",
"tags": [],
"reasons": {}
},
{
"tool": "Voting Template",
"tags": [],
"reasons": {}
},
{
"tool": "Nullifier Pattern",
"tags": [],
"reasons": {}
},
{
"tool": "Hash Functions",
"tags": [],
"reasons": {}
},
{
"tool": "Simple Counter",
"tags": [],
"reasons": {}
},
{
"tool": "Basic Contract Template",
"tags": [],
"reasons": {}
},
{
"tool": "Compact AST Schema",
"tags": [],
"reasons": {}
},
{
"tool": "Transaction Schema",
"tags": [],
"reasons": {}
},
{
"tool": "Proof Schema",
"tags": [],
"reasons": {}
},
{
"tool": "template-contract",
"tags": [],
"reasons": {}
},
{
"tool": "tokenomics-project",
"tags": [],
"reasons": {}
},
{
"tool": "zswap-example",
"tags": [],
"reasons": {}
},
{
"tool": "reentrancy-example",
"tags": [],
"reasons": {}
},
{
"tool": "persistentHash",
"tags": [],
"reasons": {}
},
{
"tool": "persistentCommit",
"tags": [],
"reasons": {}
},
{
"tool": "pad",
"tags": [],
"reasons": {}
},
{
"tool": "disclose",
"tags": [],
"reasons": {}
},
{
"tool": "assert",
"tags": [],
"reasons": {}
},
{
"tool": "default",
"tags": [],
"reasons": {}
},
{
"tool": "public_key",
"tags": [],
"reasons": {}
},
{
"tool": "verify_signature",
"tags": [],
"reasons": {}
},
{
"tool": "random",
"tags": [],
"reasons": {}
},
{
"tool": "midnight:create-contract",
"tags": [],
"reasons": {}
},
{
"tool": "contractType",
"tags": [],
"reasons": {}
},
{
"tool": "privacyLevel",
"tags": [],
"reasons": {}
},
{
"tool": "complexity",
"tags": [],
"reasons": {}
},
{
"tool": "midnight:review-contract",
"tags": [],
"reasons": {}
},
{
"tool": "contractCode",
"tags": [],
"reasons": {}
},
{
"tool": "focusAreas",
"tags": [],
"reasons": {}
},
{
"tool": "midnight:explain-concept",
"tags": [],
"reasons": {}
},
{
"tool": "concept",
"tags": [],
"reasons": {}
},
{
"tool": "level",
"tags": [],
"reasons": {}
},
{
"tool": "midnight:compare-approaches",
"tags": [],
"reasons": {}
},
{
"tool": "problem",
"tags": [],
"reasons": {}
},
{
"tool": "approaches",
"tags": [],
"reasons": {}
},
{
"tool": "midnight:debug-contract",
"tags": [],
"reasons": {}
},
{
"tool": "errorMessage",
"tags": [],
"reasons": {}
},
{
"tool": "midnight-mcp",
"tags": [],
"reasons": {}
},
{
"tool": "Repository Code",
"tags": [],
"reasons": {}
},
{
"tool": "Documentation",
"tags": [],
"reasons": {}
},
{
"tool": "Example Contracts",
"tags": [],
"reasons": {}
},
{
"tool": "Schema Definitions",
"tags": [],
"reasons": {}
},
{
"tool": "midnight-get-file",
"tags": [],
"reasons": {}
},
{
"tool": "midnight-list-examples",
"tags": [],
"reasons": {}
},
{
"tool": "midnight-get-latest-updates",
"tags": [],
"reasons": {}
},
{
"tool": "midnight-get-version-info",
"tags": [],
"reasons": {}
},
{
"tool": "midnight-check-breaking-changes",
"tags": [],
"reasons": {}
},
{
"tool": "midnight-get-migration-guide",
"tags": [],
"reasons": {}
},
{
"tool": "midnight-get-file-at-version",
"tags": [],
"reasons": {}
},
{
"tool": "midnight-compare-syntax",
"tags": [],
"reasons": {}
},
{
"tool": "midnight-get-latest-syntax",
"tags": [],
"reasons": {}
},
{
"tool": "midnight-upgrade-check",
"tags": [],
"reasons": {}
},
{
"tool": "midnight-get-repo-context",
"tags": [],
"reasons": {}
},
{
"tool": "midnight-extract-contract-structure",
"tags": [],
"reasons": {}
},
{
"tool": "midnight-health-check",
"tags": [],
"reasons": {}
},
{
"tool": "midnight-get-status",
"tags": [],
"reasons": {}
},
{
"tool": "midnight-check-version",
"tags": [],
"reasons": {}
},
{
"tool": "midnight-auto-update-config",
"tags": [],
"reasons": {}
},
{
"tool": "midnight-get-update-instructions",
"tags": [],
"reasons": {}
},
{
"tool": "midnight-generate-contract",
"tags": [],
"reasons": {}
},
{
"tool": "midnight-review-contract",
"tags": [],
"reasons": {}
},
{
"tool": "midnight-document-contract",
"tags": [],
"reasons": {}
},
{
"tool": "midnight-list-tool-categories",
"tags": [],
"reasons": {}
},
{
"tool": "midnight-list-category-tools",
"tags": [],
"reasons": {}
},
{
"tool": "midnight-suggest-tool",
"tags": [],
"reasons": {}
},
{
"tool": "midnight-new-mcp",
"tags": [],
"reasons": {}
}
],
"surfaceDigest": "39d15aea1dddc66ae4dbb02e0086b046c8e00b62bb335436dc0317bd4d7e53d7",
"stats": {
"tools": 89,
"prompts": 0,
"resources": 0,
"findingsBySeverity": {
"critical": 0,
"high": 1,
"medium": 1,
"low": 0,
"info": 0
}
}
}