Raw scan report

Uiautomator2 — 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": "uiautomator2-mcp",
    "source": {
      "kind": "package",
      "origin": "uiautomator2-mcp"
    },
    "server": {
      "name": "uiautomator2-mcp"
    }
  },
  "grade": "A",
  "score": {
    "score": 93,
    "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": "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.9"
  },
  "capability": {
    "level": "high",
    "reasons": [
      "reads sensitive or local data",
      "has a read → egress path (a data-exfiltration surface)",
      "can execute shell commands or code"
    ],
    "tags": [
      "sensitive-source",
      "code-exec"
    ]
  },
  "coverage": {
    "level": "source",
    "inputs": {
      "toolSurface": true,
      "implementationSource": true,
      "packageMetadata": true,
      "liveTransport": false
    },
    "caveats": [
      "Tools were statically extracted from the published source (54 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-FLOW-004",
      "title": "Sensitive-source and external-sink co-exist",
      "category": "exfiltration",
      "severity": "high",
      "confidence": "strong",
      "description": "Tools that read sensitive data ([dump_hierarchy, get_logs]) and tools that can send data out ([shell]) are exposed together. An agent can move private data to the sink.",
      "remediation": "Keep secret-reading and egress capabilities on separate, separately-approved servers.",
      "location": {
        "kind": "flow",
        "name": "dump_hierarchy → shell"
      },
      "evidence": "sources [dump_hierarchy, get_logs] → sinks [shell]",
      "owasp": "LLM02:2025 Sensitive Information Disclosure",
      "references": [],
      "data": {
        "sources": [
          "dump_hierarchy",
          "get_logs"
        ],
        "sinks": [
          "shell"
        ]
      }
    },
    {
      "ruleId": "MTC-CAP-001",
      "title": "Tool \"shell\" exposes command/code execution",
      "category": "permissions",
      "severity": "high",
      "confidence": "strong",
      "description": "Tool \"shell\" appears to run shell commands or evaluate code (keyword \"shell\" in tool name). Arbitrary execution driven by model input is one of the most dangerous MCP capabilities; combined with any untrusted input it becomes RCE.",
      "remediation": "Sandbox execution, allowlist commands/arguments, and never pass model output to a shell unescaped.",
      "location": {
        "kind": "tool",
        "name": "shell"
      },
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "tags": [
          "code-exec"
        ]
      }
    },
    {
      "ruleId": "MTC-SRC-002",
      "title": "Shell/command execution in server code (src/uiautomator2_mcp/adb_tools.py)",
      "category": "permissions",
      "severity": "high",
      "confidence": "strong",
      "description": "In the server's implementation (`src/uiautomator2_mcp/adb_tools.py:65`): 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": "src/uiautomator2_mcp/adb_tools.py"
      },
      "evidence": "e-data\") process = subprocess.Popen( command, stdout=subprocess.DEVNULL, stderr=subprocess.",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-002",
        "file": "src/uiautomator2_mcp/adb_tools.py",
        "line": 65,
        "nonRuntime": false
      }
    },
    {
      "ruleId": "MTC-SRC-002",
      "title": "Shell/command execution in server code (src/uiautomator2_mcp/logcat.py)",
      "category": "permissions",
      "severity": "high",
      "confidence": "strong",
      "description": "In the server's implementation (`src/uiautomator2_mcp/logcat.py:216`): 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": "src/uiautomator2_mcp/logcat.py"
      },
      "evidence": "al, *args] result = subprocess.run( command, capture_output=True, text=True, check=F",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-002",
        "file": "src/uiautomator2_mcp/logcat.py",
        "line": 216,
        "nonRuntime": false
      }
    },
    {
      "ruleId": "MTC-CAP-005",
      "title": "Mutating tool \"shell\" declares no destructiveHint",
      "category": "hygiene",
      "severity": "low",
      "confidence": "heuristic",
      "description": "Tool \"shell\" can mutate/egress but declares no destructiveHint. Clients that don't default to spec-safe behavior may not prompt before running it.",
      "remediation": "Declare accurate annotations, and gate destructive tools on user confirmation regardless.",
      "location": {
        "kind": "tool",
        "name": "shell"
      },
      "data": {
        "tags": [
          "code-exec"
        ]
      }
    },
    {
      "ruleId": "MTC-SUP-012",
      "title": "Package has no license",
      "category": "hygiene",
      "severity": "info",
      "confidence": "strong",
      "description": "\"uiautomator2-mcp\" has no declared license. This is a legal/reuse concern, not a security finding.",
      "location": {
        "kind": "package",
        "name": "uiautomator2-mcp"
      }
    }
  ],
  "toxicFlows": [
    {
      "id": "flow-1",
      "severity": "high",
      "confidence": "strong",
      "untrustedInput": [],
      "sensitiveSource": [
        "dump_hierarchy",
        "get_logs"
      ],
      "externalSink": [
        "shell"
      ],
      "selfContained": false,
      "path": [
        "dump_hierarchy",
        "shell"
      ],
      "pathWired": false,
      "description": "A sensitive-source → external-sink chain exists: dump_hierarchy → shell."
    }
  ],
  "capabilities": [
    {
      "tool": "connect",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "disconnect",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "list_devices",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "list_avds",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "start_emulator",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "device_info",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "tap",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "double_tap",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "long_tap",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "swipe",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "drag",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "input_text",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "press_key",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "multi_tap",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "find_element",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "tap_element",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "double_tap_element",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "set_element_text",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "element_exists",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "wait_element",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "tap_and_wait",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "tap_sequence",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "scroll_to_element",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "scroll",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "fling",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "wait_element_gone",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "get_toast",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "watcher_add",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "watcher_start",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "watcher_stop",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "watcher_remove",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "screenshot",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "dump_hierarchy",
      "tags": [
        "sensitive-source"
      ],
      "reasons": {
        "sensitive-source": [
          "keyword \"dump\""
        ]
      }
    },
    {
      "tool": "get_ui_tree",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "app_start",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "app_stop",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "app_install",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "app_uninstall",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "app_clear",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "app_info",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "app_list_running",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "current_app",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "screen_on",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "screen_off",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "unlock",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "open_notification",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "open_quick_settings",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "get_clipboard",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "set_clipboard",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "clear_logs",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "get_logs",
      "tags": [
        "sensitive-source"
      ],
      "reasons": {
        "sensitive-source": [
          "keyword \"get_logs\""
        ]
      }
    },
    {
      "tool": "shell",
      "tags": [
        "code-exec"
      ],
      "reasons": {
        "code-exec": [
          "keyword \"shell\" in tool name"
        ]
      }
    },
    {
      "tool": "push_file",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "pull_file",
      "tags": [],
      "reasons": {}
    }
  ],
  "surfaceDigest": "28aeeb64c2cd3c82bb15bdb571a94aa35eb9cfaf38d5f88173f82cb40eac6f16",
  "stats": {
    "tools": 54,
    "prompts": 0,
    "resources": 0,
    "findingsBySeverity": {
      "critical": 0,
      "high": 4,
      "medium": 0,
      "low": 1,
      "info": 1
    }
  }
}