Mapx — the complete, unedited output of the deterministic mcptrustchecker engine v1.9.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.9.0",
"methodologyVersion": "mcptrustchecker-1.9"
},
"target": {
"id": "@mgamil/mapx",
"source": {
"kind": "package",
"origin": "@mgamil/mapx"
},
"server": {
"name": "@mgamil/mapx"
}
},
"grade": "B",
"score": {
"score": 81,
"threatScore": 91,
"grade": "B",
"band": "B",
"categorySubtotals": {
"injection": 9.45,
"exfiltration": 0,
"permissions": 0,
"supply-chain": 0,
"network": 0,
"hygiene": 0
},
"vector": [
{
"kind": "threat",
"ruleId": "MTC-SRC-009",
"category": "injection",
"severity": "medium",
"confidence": "strong",
"rawWeight": 9,
"confidenceMult": 0.7,
"diminishingFactor": 1,
"appliedPenalty": 6.3
},
{
"kind": "threat",
"ruleId": "MTC-SRC-009",
"category": "injection",
"severity": "medium",
"confidence": "strong",
"rawWeight": 9,
"confidenceMult": 0.7,
"diminishingFactor": 0.5,
"appliedPenalty": 3.15
},
{
"kind": "client",
"term": "capability-exposure",
"level": "critical",
"label": "capability blast radius (critical) — client exposure if the model is manipulated",
"appliedPenalty": 10
},
{
"kind": "client",
"term": "verification-discount",
"level": "source",
"label": "publisher verification (provenance) — cryptographic build provenance ties the artifact to its source",
"appliedPenalty": 0
},
{
"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.9"
},
"capability": {
"level": "critical",
"reasons": [
"ingests untrusted external content (a prompt-injection entry point)",
"can execute shell commands or code",
"untrusted input can reach code execution"
],
"tags": [
"untrusted-input",
"code-exec"
]
},
"coverage": {
"level": "source",
"inputs": {
"toolSurface": true,
"implementationSource": true,
"packageMetadata": true,
"liveTransport": false
},
"caveats": [
"Tools were statically extracted from the published source (32 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-SRC-002",
"title": "Shell/command execution in server code (dist/cli.js)",
"category": "permissions",
"severity": "high",
"confidence": "strong",
"description": "In the server's implementation (`dist/cli.js:1539`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. 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/cli.js"
},
"evidence": "} = await import(\"node:child_process\"); const openCmd = process.platform === \"win32\" ? \"start\" : process.platform",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-002",
"file": "dist/cli.js",
"line": 1539,
"nonRuntime": false
}
},
{
"ruleId": "MTC-SRC-002",
"title": "Shell/command execution in server code (dist/core/git-tracker.js)",
"category": "permissions",
"severity": "high",
"confidence": "strong",
"description": "In the server's implementation (`dist/core/git-tracker.js:1`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. 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/core/git-tracker.js"
},
"evidence": "{ execSync } from \"node:child_process\"; import { resolve, join } from \"node:path\"; function getGitBlobHashes(repoRoot) {",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-002",
"file": "dist/core/git-tracker.js",
"line": 1,
"nonRuntime": false
}
},
{
"ruleId": "MTC-SRC-002",
"title": "Shell/command execution in server code (dist/core/store-bun.js)",
"category": "permissions",
"severity": "high",
"confidence": "strong",
"description": "In the server's implementation (`dist/core/store-bun.js:13`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. 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/core/store-bun.js"
},
"evidence": "eign_keys = ON\"); } exec(sql) { this.db.exec(sql); } prepare(sql) { let cached = this.stmtCache.get(sql)",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-002",
"file": "dist/core/store-bun.js",
"line": 13,
"nonRuntime": false
}
},
{
"ruleId": "MTC-SRC-002",
"title": "Shell/command execution in server code (dist/core/store-node.js)",
"category": "permissions",
"severity": "high",
"confidence": "strong",
"description": "In the server's implementation (`dist/core/store-node.js:13`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. 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/core/store-node.js"
},
"evidence": "eign_keys = ON\"); } exec(sql) { this.db.exec(sql); } prepare(sql) { let cached = this.stmtCache.get(sql)",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-002",
"file": "dist/core/store-node.js",
"line": 13,
"nonRuntime": false
}
},
{
"ruleId": "MTC-SRC-002",
"title": "Shell/command execution in server code (dist/exporters/svg-exporter.js)",
"category": "permissions",
"severity": "high",
"confidence": "strong",
"description": "In the server's implementation (`dist/exporters/svg-exporter.js:1`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. 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/exporters/svg-exporter.js"
},
"evidence": "{ execSync } from \"node:child_process\"; import { DotExporter } from \"./dot-exporter.js\"; class SvgExporter { store;",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-002",
"file": "dist/exporters/svg-exporter.js",
"line": 1,
"nonRuntime": false
}
},
{
"ruleId": "MTC-SRC-002",
"title": "Shell/command execution in server code (dist/languages/installer.js)",
"category": "permissions",
"severity": "high",
"confidence": "strong",
"description": "In the server's implementation (`dist/languages/installer.js:5`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. 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/languages/installer.js"
},
"evidence": "{ execSync } from \"node:child_process\"; const __filename = fileURLToPath(import.meta.url); const __dirname = dirname(__f",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-002",
"file": "dist/languages/installer.js",
"line": 5,
"nonRuntime": false
}
},
{
"ruleId": "MTC-SRC-009",
"title": "Untrusted input concatenated into a command sink (dist/cli.js)",
"category": "injection",
"severity": "medium",
"confidence": "strong",
"description": "In the server's implementation (`dist/cli.js:1541`): A shell/process command assembled from concatenated or interpolated values is command injection when any part is attacker-influenced — the OWASP canonical RCE flow. Verify what reaches the interpolated value. 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/cli.js"
},
"evidence": "en\" : \"xdg-open\"; exec(`${openCmd} ${url}`).unref(); } }); program.command(\"metrics\").description(\"Show co",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-009",
"file": "dist/cli.js",
"line": 1541,
"nonRuntime": false
}
},
{
"ruleId": "MTC-SRC-009",
"title": "Untrusted input concatenated into a command sink (dist/languages/installer.js)",
"category": "injection",
"severity": "medium",
"confidence": "strong",
"description": "In the server's implementation (`dist/languages/installer.js:10`): A shell/process command assembled from concatenated or interpolated values is command injection when any part is attacker-influenced — the OWASP canonical RCE flow. Verify what reaches the interpolated value. 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/languages/installer.js"
},
"evidence": "destPath) { try { execSync(`curl -L -s -f -o \"${destPath}\" \"${url}\"`, { stdio: \"ignore\" }); if (existsSync(des",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-009",
"file": "dist/languages/installer.js",
"line": 10,
"nonRuntime": false
}
},
{
"ruleId": "MTC-SRC-005",
"title": "Dynamic module load from a non-literal (dist/core/graph.js)",
"category": "permissions",
"severity": "medium",
"confidence": "heuristic",
"description": "In the server's implementation (`dist/core/graph.js:189`): Loading a module chosen at runtime (from a variable) can pull in and run attacker-influenced code paths. 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/core/graph.js"
},
"evidence": "aph(repo); cg.graph.import(data); return cg; } fileNodeId(filePath) { return `file://${filePath}`; }",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-005",
"file": "dist/core/graph.js",
"line": 189,
"nonRuntime": false
}
}
],
"toxicFlows": [],
"capabilities": [
{
"tool": "mapx_scan",
"tags": [],
"reasons": {}
},
{
"tool": "mapx_sync",
"tags": [],
"reasons": {}
},
{
"tool": "mapx_query",
"tags": [],
"reasons": {}
},
{
"tool": "mapx_dependencies",
"tags": [],
"reasons": {}
},
{
"tool": "mapx_export",
"tags": [],
"reasons": {}
},
{
"tool": "mapx_status",
"tags": [],
"reasons": {}
},
{
"tool": "mapx_metrics",
"tags": [],
"reasons": {}
},
{
"tool": "mapx_edges",
"tags": [],
"reasons": {}
},
{
"tool": "mapx_clusters",
"tags": [],
"reasons": {}
},
{
"tool": "mapx_profile",
"tags": [],
"reasons": {}
},
{
"tool": "mapx_explain",
"tags": [],
"reasons": {}
},
{
"tool": "mapx_smells",
"tags": [],
"reasons": {}
},
{
"tool": "mapx_dsm",
"tags": [],
"reasons": {}
},
{
"tool": "mapx_layers",
"tags": [],
"reasons": {}
},
{
"tool": "mapx_trace",
"tags": [],
"reasons": {}
},
{
"tool": "mapx_routes",
"tags": [],
"reasons": {}
},
{
"tool": "mapx_hooks",
"tags": [],
"reasons": {}
},
{
"tool": "mapx_sources",
"tags": [],
"reasons": {}
},
{
"tool": "mapx_agents_generate",
"tags": [],
"reasons": {}
},
{
"tool": "mapx_sinks",
"tags": [],
"reasons": {}
},
{
"tool": "mapx_search",
"tags": [
"untrusted-input"
],
"reasons": {
"untrusted-input": [
"keyword \"browse\""
]
}
},
{
"tool": "mapx_context",
"tags": [],
"reasons": {}
},
{
"tool": "mapx_callers",
"tags": [],
"reasons": {}
},
{
"tool": "mapx_callees",
"tags": [],
"reasons": {}
},
{
"tool": "mapx_impact",
"tags": [],
"reasons": {}
},
{
"tool": "mapx_node",
"tags": [
"untrusted-input"
],
"reasons": {
"untrusted-input": [
"keyword \"browse\""
]
}
},
{
"tool": "mapx_files",
"tags": [],
"reasons": {}
},
{
"tool": "mapx_lang_list",
"tags": [],
"reasons": {}
},
{
"tool": "mapx_lang_install",
"tags": [],
"reasons": {}
},
{
"tool": "mapx_lang_uninstall",
"tags": [],
"reasons": {}
},
{
"tool": "mapx_workspaces",
"tags": [],
"reasons": {}
},
{
"tool": "mapx_batch",
"tags": [],
"reasons": {}
}
],
"surfaceDigest": "bbe9cc4f09cae4e0fe11d5bd50785587fecde80bd69c03db2370ebe2e4d8d3ee",
"stats": {
"tools": 32,
"prompts": 0,
"resources": 0,
"findingsBySeverity": {
"critical": 0,
"high": 6,
"medium": 3,
"low": 0,
"info": 0
}
}
}