Device — 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": "@metamask/device-mcp",
"source": {
"kind": "package",
"origin": "@metamask/device-mcp"
},
"server": {
"name": "@metamask/device-mcp"
}
},
"grade": "A",
"score": {
"score": 94,
"threatScore": 100,
"grade": "A",
"band": "A",
"categorySubtotals": {
"injection": 0,
"exfiltration": 0,
"permissions": 0,
"supply-chain": 0,
"network": 0,
"hygiene": 0
},
"vector": [
{
"kind": "client",
"term": "capability-exposure",
"level": "high",
"label": "capability blast radius (high) — client exposure if the model is manipulated",
"appliedPenalty": 6
},
{
"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": "high",
"reasons": [
"can execute shell commands or code"
],
"tags": [
"code-exec"
]
},
"coverage": {
"level": "source",
"inputs": {
"toolSurface": true,
"implementationSource": true,
"packageMetadata": true,
"liveTransport": false
},
"caveats": [
"Tools were statically extracted from the published source (28 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/backends/adb-backend.cjs)",
"category": "permissions",
"severity": "high",
"confidence": "strong",
"description": "In the server's implementation (`dist/backends/adb-backend.cjs:18`): 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/backends/adb-backend.cjs"
},
"evidence": "eAttributes; const node_child_process_1 = require(\"node:child_process\"); const promises_1 = require(\"node:fs/promises\");",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-002",
"file": "dist/backends/adb-backend.cjs",
"line": 18,
"nonRuntime": false
}
},
{
"ruleId": "MTC-SRC-002",
"title": "Shell/command execution in server code (dist/backends/adb-backend.mjs)",
"category": "permissions",
"severity": "high",
"confidence": "strong",
"description": "In the server's implementation (`dist/backends/adb-backend.mjs: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/backends/adb-backend.mjs"
},
"evidence": "rt { spawn } from \"node:child_process\"; import { readFile } from \"node:fs/promises\"; import { ACCEPT_LABELS, DENY_LABELS",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-002",
"file": "dist/backends/adb-backend.mjs",
"line": 13,
"nonRuntime": false
}
},
{
"ruleId": "MTC-SRC-002",
"title": "Shell/command execution in server code (dist/backends/idb-backend.cjs)",
"category": "permissions",
"severity": "high",
"confidence": "strong",
"description": "In the server's implementation (`dist/backends/idb-backend.cjs:18`): 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/backends/idb-backend.cjs"
},
"evidence": "pIdbElement; const node_child_process_1 = require(\"node:child_process\"); const promises_1 = require(\"node:fs/promises\");",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-002",
"file": "dist/backends/idb-backend.cjs",
"line": 18,
"nonRuntime": false
}
},
{
"ruleId": "MTC-SRC-002",
"title": "Shell/command execution in server code (dist/backends/idb-backend.mjs)",
"category": "permissions",
"severity": "high",
"confidence": "strong",
"description": "In the server's implementation (`dist/backends/idb-backend.mjs: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/backends/idb-backend.mjs"
},
"evidence": "eCb, spawn } from \"node:child_process\"; import { readFile } from \"node:fs/promises\"; import { ACCEPT_LABELS, DENY_LABELS",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-002",
"file": "dist/backends/idb-backend.mjs",
"line": 13,
"nonRuntime": false
}
},
{
"ruleId": "MTC-SRC-002",
"title": "Shell/command execution in server code (dist/utils/exec.cjs)",
"category": "permissions",
"severity": "high",
"confidence": "strong",
"description": "In the server's implementation (`dist/utils/exec.cjs:6`): 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/utils/exec.cjs"
},
"evidence": "ndAvailable; const node_child_process_1 = require(\"node:child_process\"); /** * Execute a command and return stdout/stde",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-002",
"file": "dist/utils/exec.cjs",
"line": 6,
"nonRuntime": false
}
},
{
"ruleId": "MTC-SRC-002",
"title": "Shell/command execution in server code (dist/utils/exec.mjs)",
"category": "permissions",
"severity": "high",
"confidence": "strong",
"description": "In the server's implementation (`dist/utils/exec.mjs: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/utils/exec.mjs"
},
"evidence": "{ execFile } from \"node:child_process\"; /** * Execute a command and return stdout/stderr/exitCode. * Rejects only on s",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-002",
"file": "dist/utils/exec.mjs",
"line": 1,
"nonRuntime": false
}
},
{
"ruleId": "MTC-SRC-002",
"title": "Shell/command execution in server code (dist/utils/platform.mjs)",
"category": "permissions",
"severity": "high",
"confidence": "strong",
"description": "In the server's implementation (`dist/utils/platform.mjs:60`): 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/utils/platform.mjs"
},
"evidence": "const result = await exec('idb', ['describe', '--udid', deviceId]); if (result.exitCode === 0) {",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-002",
"file": "dist/utils/platform.mjs",
"line": 60,
"nonRuntime": false
}
}
],
"toxicFlows": [],
"capabilities": [
{
"tool": "device_get_alert_text",
"tags": [],
"reasons": {}
},
{
"tool": "device_app_state",
"tags": [],
"reasons": {}
},
{
"tool": "device_clipboard",
"tags": [],
"reasons": {}
},
{
"tool": "device_close_app",
"tags": [],
"reasons": {}
},
{
"tool": "device_context",
"tags": [],
"reasons": {}
},
{
"tool": "device_info",
"tags": [],
"reasons": {}
},
{
"tool": "device_dismiss_alert",
"tags": [],
"reasons": {}
},
{
"tool": "device_dismiss_keyboard",
"tags": [],
"reasons": {}
},
{
"tool": "device_generate_locators",
"tags": [],
"reasons": {}
},
{
"tool": "device_get_element_text",
"tags": [],
"reasons": {}
},
{
"tool": "hermes_cdp",
"tags": [],
"reasons": {}
},
{
"tool": "hermes_targets",
"tags": [],
"reasons": {}
},
{
"tool": "device_list_devices",
"tags": [],
"reasons": {}
},
{
"tool": "device_logs",
"tags": [],
"reasons": {}
},
{
"tool": "device_long_press",
"tags": [],
"reasons": {}
},
{
"tool": "device_open_app",
"tags": [],
"reasons": {}
},
{
"tool": "device_press_button",
"tags": [],
"reasons": {}
},
{
"tool": "device_screen_recording",
"tags": [],
"reasons": {}
},
{
"tool": "device_screenshot",
"tags": [],
"reasons": {}
},
{
"tool": "device_scroll_to_element",
"tags": [],
"reasons": {}
},
{
"tool": "device_select_device",
"tags": [],
"reasons": {}
},
{
"tool": "device_snapshot",
"tags": [],
"reasons": {}
},
{
"tool": "device_swipe",
"tags": [],
"reasons": {}
},
{
"tool": "device_tap_coordinates",
"tags": [],
"reasons": {}
},
{
"tool": "device_tap_element",
"tags": [],
"reasons": {}
},
{
"tool": "device_type",
"tags": [],
"reasons": {}
},
{
"tool": "device_wait_for",
"tags": [],
"reasons": {}
},
{
"tool": "device_get_window_size",
"tags": [],
"reasons": {}
}
],
"surfaceDigest": "367f2d42667654581265ef26f09fca8577db634a25cc506eb038c9381344dd44",
"stats": {
"tools": 28,
"prompts": 0,
"resources": 0,
"findingsBySeverity": {
"critical": 0,
"high": 7,
"medium": 0,
"low": 0,
"info": 0
}
}
}