Raw scan report

Autodevice — 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.

← Back to the scan page
{
  "tool": {
    "name": "mcptrustchecker",
    "version": "1.9.0",
    "methodologyVersion": "mcptrustchecker-1.9"
  },
  "target": {
    "id": "autodevice-mcp",
    "source": {
      "kind": "package",
      "origin": "autodevice-mcp"
    },
    "server": {
      "name": "autodevice-mcp"
    }
  },
  "grade": "A",
  "score": {
    "score": 93,
    "threatScore": 99,
    "grade": "A",
    "band": "A",
    "categorySubtotals": {
      "injection": 0,
      "exfiltration": 0,
      "permissions": 0,
      "supply-chain": 1.2,
      "network": 0,
      "hygiene": 0
    },
    "vector": [
      {
        "kind": "threat",
        "ruleId": "MTC-SUP-010",
        "category": "supply-chain",
        "severity": "low",
        "confidence": "heuristic",
        "rawWeight": 3,
        "confidenceMult": 0.4,
        "diminishingFactor": 1,
        "appliedPenalty": 1.2
      },
      {
        "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 (45 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 (lib/archive.js)",
      "category": "permissions",
      "severity": "high",
      "confidence": "strong",
      "description": "In the server's implementation (`lib/archive.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": "lib/archive.js"
      },
      "evidence": "cFile } = require(\"node:child_process\"); const { promisify } = require(\"node:util\"); const execFileAsync = promisify(ex",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-002",
        "file": "lib/archive.js",
        "line": 5,
        "nonRuntime": false
      }
    },
    {
      "ruleId": "MTC-SRC-002",
      "title": "Shell/command execution in server code (lib/bootstrap.js)",
      "category": "permissions",
      "severity": "high",
      "confidence": "strong",
      "description": "In the server's implementation (`lib/bootstrap.js:7`): 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": "lib/bootstrap.js"
      },
      "evidence": "cFile } = require(\"node:child_process\"); const { promisify } = require(\"node:util\"); const pkg = require(\"../package.jso",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-002",
        "file": "lib/bootstrap.js",
        "line": 7,
        "nonRuntime": false
      }
    },
    {
      "ruleId": "MTC-SRC-002",
      "title": "Shell/command execution in server code (lib/launch.js)",
      "category": "permissions",
      "severity": "high",
      "confidence": "strong",
      "description": "In the server's implementation (`lib/launch.js:4`): 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": "lib/launch.js"
      },
      "evidence": "spawn } = require(\"node:child_process\"); /** Launches the Python MCP over inherited stdio and mirrors termination. */ f",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-002",
        "file": "lib/launch.js",
        "line": 4,
        "nonRuntime": false
      }
    },
    {
      "ruleId": "MTC-SRC-002",
      "title": "Shell/command execution in server code (lib/python.js)",
      "category": "permissions",
      "severity": "high",
      "confidence": "strong",
      "description": "In the server's implementation (`lib/python.js:3`): 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": "lib/python.js"
      },
      "evidence": "cFile } = require(\"node:child_process\"); /** Returns the ordered Python commands appropriate for the current host. */ f",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-002",
        "file": "lib/python.js",
        "line": 3,
        "nonRuntime": false
      }
    },
    {
      "ruleId": "MTC-SRC-002",
      "title": "Shell/command execution in server code (mobile_auto_mcp/execution/adapters/harmony.py)",
      "category": "permissions",
      "severity": "high",
      "confidence": "strong",
      "description": "In the server's implementation (`mobile_auto_mcp/execution/adapters/harmony.py:171`): 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": "mobile_auto_mcp/execution/adapters/harmony.py"
      },
      "evidence": "return subprocess.check_output(cmd, stderr=subprocess.STDOUT, timeout=timeout or self.timeout)",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-002",
        "file": "mobile_auto_mcp/execution/adapters/harmony.py",
        "line": 171,
        "nonRuntime": false
      }
    },
    {
      "ruleId": "MTC-SRC-002",
      "title": "Shell/command execution in server code (mobile_auto_mcp/execution/command_runner.py)",
      "category": "permissions",
      "severity": "high",
      "confidence": "strong",
      "description": "In the server's implementation (`mobile_auto_mcp/execution/command_runner.py:32`): 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": "mobile_auto_mcp/execution/command_runner.py"
      },
      "evidence": "ate, values) return subprocess.run( argv, text=True, capture_output=True, timeout=fl",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-002",
        "file": "mobile_auto_mcp/execution/command_runner.py",
        "line": 32,
        "nonRuntime": false
      }
    },
    {
      "ruleId": "MTC-SRC-002",
      "title": "Shell/command execution in server code (mobile_auto_mcp/execution/devices.py)",
      "category": "permissions",
      "severity": "high",
      "confidence": "strong",
      "description": "In the server's implementation (`mobile_auto_mcp/execution/devices.py:970`): 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": "mobile_auto_mcp/execution/devices.py"
      },
      "evidence": "output = subprocess.check_output([\"hdc\", \"list\", \"targets\"], text=True, stderr=subprocess.STDOUT, timeout",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-002",
        "file": "mobile_auto_mcp/execution/devices.py",
        "line": 970,
        "nonRuntime": false
      }
    },
    {
      "ruleId": "MTC-SRC-002",
      "title": "Shell/command execution in server code (mobile_auto_mcp/execution/preflight.py)",
      "category": "permissions",
      "severity": "high",
      "confidence": "strong",
      "description": "In the server's implementation (`mobile_auto_mcp/execution/preflight.py:238`): 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": "mobile_auto_mcp/execution/preflight.py"
      },
      "evidence": "try: output = subprocess.check_output([\"adb\", \"devices\"], text=True, stderr=subprocess.DEVNULL, timeout=5)",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-002",
        "file": "mobile_auto_mcp/execution/preflight.py",
        "line": 238,
        "nonRuntime": false
      }
    },
    {
      "ruleId": "MTC-SRC-002",
      "title": "Shell/command execution in server code (mobile_auto_mcp/execution/wda_guardian.py)",
      "category": "permissions",
      "severity": "high",
      "confidence": "strong",
      "description": "In the server's implementation (`mobile_auto_mcp/execution/wda_guardian.py:294`): 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": "mobile_auto_mcp/execution/wda_guardian.py"
      },
      "evidence": "as handle: subprocess.run( command, stdout=handle, stderr=s",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-002",
        "file": "mobile_auto_mcp/execution/wda_guardian.py",
        "line": 294,
        "nonRuntime": false
      }
    },
    {
      "ruleId": "MTC-SRC-002",
      "title": "Shell/command execution in server code (mobile_auto_mcp/platform/processes.py)",
      "category": "permissions",
      "severity": "high",
      "confidence": "strong",
      "description": "In the server's implementation (`mobile_auto_mcp/platform/processes.py:395`): 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": "mobile_auto_mcp/platform/processes.py"
      },
      "evidence": "completed = subprocess.run( argv, capture_output=True, text=",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-002",
        "file": "mobile_auto_mcp/platform/processes.py",
        "line": 395,
        "nonRuntime": false
      }
    },
    {
      "ruleId": "MTC-SRC-005",
      "title": "Dynamic module load from a non-literal (mobile_auto_mcp/mcp_tools/registry.py)",
      "category": "permissions",
      "severity": "medium",
      "confidence": "heuristic",
      "description": "In the server's implementation (`mobile_auto_mcp/mcp_tools/registry.py:46`): 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": "mobile_auto_mcp/mcp_tools/registry.py"
      },
      "evidence": "try: __import__(name) deps[name] = True except Exception as exc:",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-005",
        "file": "mobile_auto_mcp/mcp_tools/registry.py",
        "line": 46,
        "nonRuntime": false
      }
    },
    {
      "ruleId": "MTC-SUP-010",
      "title": "Package runs install-time scripts (postinstall)",
      "category": "supply-chain",
      "severity": "low",
      "confidence": "heuristic",
      "description": "\"autodevice-mcp\" executes postinstall script(s) at install time. An install hook runs at install time; most are routine build/setup, but review what it does before trusting it.",
      "remediation": "Review the scripts; install with --ignore-scripts where possible and vet what they do.",
      "location": {
        "kind": "package",
        "name": "autodevice-mcp"
      },
      "evidence": "node scripts/postinstall.js",
      "owasp": "LLM03:2025 Supply Chain",
      "references": [
        "https://github.com/ossf/package-analysis",
        "https://owasp.org/www-project-top-10-ci-cd-security-risks/"
      ],
      "data": {
        "scripts": [
          "postinstall"
        ]
      }
    }
  ],
  "toxicFlows": [],
  "capabilities": [
    {
      "tool": "doctor",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "workflow_contract",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "diagnose_environment",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "runtime_status",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "execution_events",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "prepare_run",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "preflight",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "repair_wda",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "device_status",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "analyze_cases",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "extract_cases",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "import_cases",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "list_rules",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "rule_preview",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "apply_case_asset_overrides",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "start_run",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "record_result",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "get_run_status",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "export_report",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "report_server_status",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "stop_report_server",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "latest_report",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "proxy_trace",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "run_diagnosis",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "run_cases",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "restore_retained_proxy",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "launch_app",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "get_current_app",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "list_elements",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "click",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "swipe",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "smart_click",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "intent_click",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "screenshot",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "navigate_path",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "record_navigation_path",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "suggest_navigation_path",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "page_knowledge",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "record_field_alias",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "suggest_field_alias",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "review_session",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "apply_manual_reviews",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "prepare_visual_review",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "run_visual_comparison",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "apply_visual_reviews",
      "tags": [],
      "reasons": {}
    }
  ],
  "surfaceDigest": "d9a1123d9a492498168beea0e1e02860acde6591e44d907a8ff7ce04e7432a1a",
  "stats": {
    "tools": 45,
    "prompts": 0,
    "resources": 0,
    "findingsBySeverity": {
      "critical": 0,
      "high": 10,
      "medium": 1,
      "low": 1,
      "info": 0
    }
  }
}