Raw scan report

Bingzi 233 Ssh — 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.

← Back to the scan page
{
  "tool": {
    "name": "mcptrustchecker",
    "version": "1.13.0",
    "methodologyVersion": "mcptrustchecker-1.13"
  },
  "target": {
    "id": "@bingzi-233/ssh-mcp",
    "source": {
      "kind": "package",
      "origin": "@bingzi-233/ssh-mcp"
    },
    "server": {
      "name": "@bingzi-233/ssh-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.13"
  },
  "capability": {
    "level": "high",
    "reasons": [
      "ingests untrusted external content (a prompt-injection entry point)",
      "can send data / act on an external service",
      "can create, modify or delete files",
      "reads sensitive or local data",
      "has a read → egress path (a data-exfiltration surface)",
      "can execute shell commands or code"
    ],
    "tags": [
      "code-exec",
      "external-sink",
      "untrusted-input",
      "file-write",
      "sensitive-source"
    ]
  },
  "coverage": {
    "level": "source",
    "inputs": {
      "toolSurface": true,
      "implementationSource": true,
      "packageMetadata": true,
      "liveTransport": false
    },
    "caveats": [
      "Tools were statically extracted from the published source (31 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-006",
      "title": "Reads a sensitive credential path or dumps the environment (dist/index.js)",
      "category": "exfiltration",
      "severity": "high",
      "confidence": "strong",
      "description": "In the server's implementation (`dist/index.js:940`): Reading private keys / cloud credentials, or serializing the whole environment, is a sensitive-data source that becomes exfiltration when combined with any egress. 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/index.js"
      },
      "evidence": "rivateKeyPath\": \"~/.ssh/id_rsa\" } ] } 各子命令详细用法请运行: ssh-mcp <子命令> --help `); } // -------------------------",
      "owasp": "LLM02:2025 Sensitive Information Disclosure",
      "data": {
        "rule": "MTC-SRC-006",
        "file": "dist/index.js",
        "line": 940,
        "nonRuntime": false
      }
    },
    {
      "ruleId": "MTC-CAP-001",
      "title": "Tool \"run_command\" exposes command/code execution",
      "category": "permissions",
      "severity": "high",
      "confidence": "strong",
      "description": "Tool \"run_command\" appears to run shell commands or evaluate code (keyword \"run_command\" in tool name, parameter \"command\"). 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": "run_command"
      },
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "tags": [
          "code-exec"
        ]
      }
    },
    {
      "ruleId": "MTC-CAP-001",
      "title": "Tool \"batch_run\" exposes command/code execution",
      "category": "permissions",
      "severity": "high",
      "confidence": "strong",
      "description": "Tool \"batch_run\" appears to run shell commands or evaluate code (parameter \"command\"). 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": "batch_run"
      },
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "tags": [
          "code-exec"
        ]
      }
    },
    {
      "ruleId": "MTC-CAP-001",
      "title": "Tool \"exec_script\" exposes command/code execution",
      "category": "permissions",
      "severity": "high",
      "confidence": "strong",
      "description": "Tool \"exec_script\" appears to run shell commands or evaluate code (keyword \"exec\" in tool name, parameter \"script\"). 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": "exec_script"
      },
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "tags": [
          "code-exec"
        ]
      }
    },
    {
      "ruleId": "MTC-CAP-001",
      "title": "Tool \"start_watch\" exposes command/code execution",
      "category": "permissions",
      "severity": "high",
      "confidence": "strong",
      "description": "Tool \"start_watch\" appears to run shell commands or evaluate code (parameter \"command\"). 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": "start_watch"
      },
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "tags": [
          "code-exec"
        ]
      }
    },
    {
      "ruleId": "MTC-FLOW-005",
      "title": "Untrusted input can drive an external action",
      "category": "exfiltration",
      "severity": "medium",
      "confidence": "strong",
      "description": "Untrusted-input tools ([download_file]) co-exist with external-action tools ([run_command, upload_file, batch_run, exec_script, start_watch, http_request]). A prompt injection could cause unwanted external actions, though no direct sensitive-data leak path was found.",
      "remediation": "Require confirmation for state-changing/egress actions triggered after processing untrusted content.",
      "location": {
        "kind": "flow",
        "name": "download_file → run_command"
      },
      "evidence": "untrusted [download_file] → sinks [run_command, upload_file, batch_run, exec_script, start_watch, http_request]",
      "owasp": "LLM06:2025 Excessive Agency",
      "references": [],
      "data": {
        "untrusted": [
          "download_file"
        ],
        "sinks": [
          "run_command",
          "upload_file",
          "batch_run",
          "exec_script",
          "start_watch",
          "http_request"
        ]
      }
    },
    {
      "ruleId": "MTC-CAP-007",
      "title": "Unconstrained URL/host parameter \"url\" on \"http_request\"",
      "category": "network",
      "severity": "medium",
      "confidence": "heuristic",
      "description": "Tool \"http_request\" takes a URL/host parameter \"url\" with no allowlist/pattern. An outbound-request tool with an unbounded destination enables SSRF and cloud-metadata access (e.g. 169.254.169.254).",
      "remediation": "Allowlist destinations or constrain the parameter; block private/link-local addresses server-side.",
      "location": {
        "kind": "tool",
        "name": "http_request",
        "field": "inputSchema.properties.url"
      },
      "owasp": "LLM06:2025 Excessive Agency",
      "data": {
        "param": "url"
      }
    },
    {
      "ruleId": "MTC-CAP-002",
      "title": "Tool \"remove_file\" can modify the filesystem",
      "category": "permissions",
      "severity": "medium",
      "confidence": "strong",
      "description": "Tool \"remove_file\" can write, overwrite or delete files (keyword \"remove_file\" in tool name). Verify it is scoped to a safe directory.",
      "remediation": "Constrain file operations to an explicit, non-sensitive root; reject path traversal.",
      "location": {
        "kind": "tool",
        "name": "remove_file"
      },
      "data": {
        "tags": [
          "file-write"
        ]
      }
    },
    {
      "ruleId": "MTC-CAP-006",
      "title": "Unconstrained command parameter \"command\" on \"run_command\"",
      "category": "permissions",
      "severity": "medium",
      "confidence": "heuristic",
      "description": "Tool \"run_command\" takes a command-shaped parameter \"command\" with no enum/pattern constraint. Free-form, model- or attacker-controlled arguments reaching a shell is the command-injection precondition.",
      "remediation": "Constrain the parameter (enum/pattern), or build the command from a fixed template with escaped args.",
      "location": {
        "kind": "tool",
        "name": "run_command",
        "field": "inputSchema.properties.command"
      },
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "param": "command"
      }
    },
    {
      "ruleId": "MTC-CAP-006",
      "title": "Unconstrained command parameter \"command\" on \"batch_run\"",
      "category": "permissions",
      "severity": "medium",
      "confidence": "heuristic",
      "description": "Tool \"batch_run\" takes a command-shaped parameter \"command\" with no enum/pattern constraint. Free-form, model- or attacker-controlled arguments reaching a shell is the command-injection precondition.",
      "remediation": "Constrain the parameter (enum/pattern), or build the command from a fixed template with escaped args.",
      "location": {
        "kind": "tool",
        "name": "batch_run",
        "field": "inputSchema.properties.command"
      },
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "param": "command"
      }
    },
    {
      "ruleId": "MTC-CAP-006",
      "title": "Unconstrained command parameter \"local_script\" on \"exec_script\"",
      "category": "permissions",
      "severity": "medium",
      "confidence": "heuristic",
      "description": "Tool \"exec_script\" takes a command-shaped parameter \"local_script\" with no enum/pattern constraint. Free-form, model- or attacker-controlled arguments reaching a shell is the command-injection precondition.",
      "remediation": "Constrain the parameter (enum/pattern), or build the command from a fixed template with escaped args.",
      "location": {
        "kind": "tool",
        "name": "exec_script",
        "field": "inputSchema.properties.local_script"
      },
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "param": "local_script"
      }
    },
    {
      "ruleId": "MTC-CAP-006",
      "title": "Unconstrained command parameter \"command\" on \"start_watch\"",
      "category": "permissions",
      "severity": "medium",
      "confidence": "heuristic",
      "description": "Tool \"start_watch\" takes a command-shaped parameter \"command\" with no enum/pattern constraint. Free-form, model- or attacker-controlled arguments reaching a shell is the command-injection precondition.",
      "remediation": "Constrain the parameter (enum/pattern), or build the command from a fixed template with escaped args.",
      "location": {
        "kind": "tool",
        "name": "start_watch",
        "field": "inputSchema.properties.command"
      },
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "param": "command"
      }
    },
    {
      "ruleId": "MTC-CAP-005",
      "title": "Mutating tool \"run_command\" declares no destructiveHint",
      "category": "hygiene",
      "severity": "low",
      "confidence": "heuristic",
      "description": "Tool \"run_command\" 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": "run_command"
      },
      "data": {
        "tags": [
          "code-exec"
        ]
      }
    },
    {
      "ruleId": "MTC-CAP-005",
      "title": "Mutating tool \"batch_run\" declares no destructiveHint",
      "category": "hygiene",
      "severity": "low",
      "confidence": "heuristic",
      "description": "Tool \"batch_run\" 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": "batch_run"
      },
      "data": {
        "tags": [
          "code-exec"
        ]
      }
    },
    {
      "ruleId": "MTC-CAP-005",
      "title": "Mutating tool \"remove_file\" declares no destructiveHint",
      "category": "hygiene",
      "severity": "low",
      "confidence": "heuristic",
      "description": "Tool \"remove_file\" 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": "remove_file"
      },
      "data": {
        "tags": [
          "file-write"
        ]
      }
    },
    {
      "ruleId": "MTC-CAP-005",
      "title": "Mutating tool \"exec_script\" declares no destructiveHint",
      "category": "hygiene",
      "severity": "low",
      "confidence": "heuristic",
      "description": "Tool \"exec_script\" 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": "exec_script"
      },
      "data": {
        "tags": [
          "code-exec"
        ]
      }
    },
    {
      "ruleId": "MTC-CAP-005",
      "title": "Mutating tool \"start_watch\" declares no destructiveHint",
      "category": "hygiene",
      "severity": "low",
      "confidence": "heuristic",
      "description": "Tool \"start_watch\" 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": "start_watch"
      },
      "data": {
        "tags": [
          "code-exec"
        ]
      }
    },
    {
      "ruleId": "MTC-CAP-008",
      "title": "Unconstrained path parameter \"path\" on \"remove_file\"",
      "category": "permissions",
      "severity": "low",
      "confidence": "heuristic",
      "description": "Tool \"remove_file\" takes a path parameter \"path\" with no constraint. Without a canonicalize-and-contain check (not visible statically), this permits ../ traversal outside the intended root.",
      "remediation": "Resolve and verify the path stays within an allowed root; reject traversal sequences.",
      "location": {
        "kind": "tool",
        "name": "remove_file",
        "field": "inputSchema.properties.path"
      },
      "data": {
        "param": "path"
      }
    }
  ],
  "toxicFlows": [
    {
      "id": "flow-1",
      "severity": "medium",
      "confidence": "strong",
      "untrustedInput": [
        "download_file"
      ],
      "sensitiveSource": [],
      "externalSink": [
        "run_command",
        "upload_file",
        "batch_run",
        "exec_script",
        "start_watch",
        "http_request"
      ],
      "selfContained": false,
      "description": "Untrusted input can drive an external action even though no sensitive source is exposed."
    }
  ],
  "capabilities": [
    {
      "tool": "list_servers",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "run_command",
      "tags": [
        "code-exec"
      ],
      "reasons": {
        "code-exec": [
          "keyword \"run_command\" in tool name",
          "parameter \"command\""
        ]
      }
    },
    {
      "tool": "open_session",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "close_session",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "list_sessions",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "upload_file",
      "tags": [
        "external-sink"
      ],
      "reasons": {
        "external-sink": [
          "keyword \"upload_file\""
        ]
      }
    },
    {
      "tool": "download_file",
      "tags": [
        "untrusted-input"
      ],
      "reasons": {
        "untrusted-input": [
          "keyword \"download\""
        ]
      }
    },
    {
      "tool": "transfer_status",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "cancel_transfer",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "start_forward",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "list_forwards",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "close_forward",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "batch_run",
      "tags": [
        "code-exec"
      ],
      "reasons": {
        "code-exec": [
          "parameter \"command\""
        ]
      }
    },
    {
      "tool": "list_directory",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "stat_file",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "remove_file",
      "tags": [
        "file-write"
      ],
      "reasons": {
        "file-write": [
          "keyword \"remove_file\" in tool name"
        ]
      }
    },
    {
      "tool": "make_directory",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "health_check",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "cert_info",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "copy_between",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "diff_servers",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "exec_script",
      "tags": [
        "code-exec"
      ],
      "reasons": {
        "code-exec": [
          "keyword \"exec\" in tool name",
          "parameter \"script\""
        ]
      }
    },
    {
      "tool": "snapshot",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "start_tail",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "get_tail",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "stop_tail",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "start_watch",
      "tags": [
        "code-exec"
      ],
      "reasons": {
        "code-exec": [
          "parameter \"command\""
        ]
      }
    },
    {
      "tool": "get_watch",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "stop_watch",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "http_request",
      "tags": [
        "external-sink"
      ],
      "reasons": {
        "external-sink": [
          "keyword \"http_request\""
        ]
      }
    },
    {
      "tool": "remote_env",
      "tags": [],
      "reasons": {}
    }
  ],
  "surfaceDigest": "300ba9f2eaede76895a4b566239776c7d384ce4d8b04c5e59eec0964ffbce4b1",
  "stats": {
    "tools": 31,
    "prompts": 0,
    "resources": 0,
    "findingsBySeverity": {
      "critical": 0,
      "high": 5,
      "medium": 7,
      "low": 6,
      "info": 0
    }
  }
}