Raw scan report

Bot Relay — 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": "bot-relay-mcp",
    "source": {
      "kind": "package",
      "origin": "bot-relay-mcp"
    },
    "server": {
      "name": "bot-relay-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.13"
  },
  "capability": {
    "level": "high",
    "reasons": [
      "ingests untrusted external content (a prompt-injection entry point)",
      "can send data / act on an external service",
      "can execute shell commands or code"
    ],
    "tags": [
      "external-sink",
      "code-exec",
      "untrusted-input"
    ]
  },
  "coverage": {
    "level": "source",
    "inputs": {
      "toolSurface": true,
      "implementationSource": true,
      "packageMetadata": true,
      "liveTransport": false
    },
    "caveats": [
      "Tools were statically extracted from the published source (37 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-CAP-001",
      "title": "Tool \"spawn_agent\" exposes command/code execution",
      "category": "permissions",
      "severity": "high",
      "confidence": "strong",
      "description": "Tool \"spawn_agent\" appears to run shell commands or evaluate code (keyword \"spawn\" 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": "spawn_agent"
      },
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "tags": [
          "code-exec"
        ]
      }
    },
    {
      "ruleId": "MTC-SRC-002",
      "title": "Shell/command execution in server code (dist/backup.js)",
      "category": "permissions",
      "severity": "high",
      "confidence": "strong",
      "description": "In the server's implementation (`dist/backup.js:33`): 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/backup.js"
      },
      "evidence": "ort { spawnSync } from \"child_process\"; import { withDeadline } from \"./http-deadline.js\"; import { getDbPath, getDb, cl",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-002",
        "file": "dist/backup.js",
        "line": 33,
        "nonRuntime": false
      }
    },
    {
      "ruleId": "MTC-SRC-002",
      "title": "Shell/command execution in server code (dist/cli/init.js)",
      "category": "permissions",
      "severity": "high",
      "confidence": "strong",
      "description": "In the server's implementation (`dist/cli/init.js:39`): 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/init.js"
      },
      "evidence": "{ execFileSync } from \"child_process\"; import readline from \"readline/promises\"; import { ensureSecureDir, ensureSecure",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-002",
        "file": "dist/cli/init.js",
        "line": 39,
        "nonRuntime": false
      }
    },
    {
      "ruleId": "MTC-SRC-002",
      "title": "Shell/command execution in server code (dist/cli/open.js)",
      "category": "permissions",
      "severity": "high",
      "confidence": "strong",
      "description": "In the server's implementation (`dist/cli/open.js:20`): 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/open.js"
      },
      "evidence": "import { spawn } from \"child_process\"; function parseArgs(argv) { const out = { url: null, help: false }; for (",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-002",
        "file": "dist/cli/open.js",
        "line": 20,
        "nonRuntime": false
      }
    },
    {
      "ruleId": "MTC-SRC-002",
      "title": "Shell/command execution in server code (dist/cli/restart.js)",
      "category": "permissions",
      "severity": "high",
      "confidence": "strong",
      "description": "In the server's implementation (`dist/cli/restart.js:19`): 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/restart.js"
      },
      "evidence": "{ execFileSync } from \"child_process\"; import { CANONICAL_LABEL, plistPathFor, parseLoadedRelayLabels, chooseRestartTar",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-002",
        "file": "dist/cli/restart.js",
        "line": 19,
        "nonRuntime": false
      }
    },
    {
      "ruleId": "MTC-SRC-002",
      "title": "Shell/command execution in server code (dist/focus/dispatcher.js)",
      "category": "permissions",
      "severity": "high",
      "confidence": "strong",
      "description": "In the server's implementation (`dist/focus/dispatcher.js:19`): 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/focus/dispatcher.js"
      },
      "evidence": "import { spawn } from \"child_process\"; import { existsSync } from \"fs\"; import { log } from \"../logger.js\"; import { ma",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-002",
        "file": "dist/focus/dispatcher.js",
        "line": 19,
        "nonRuntime": false
      }
    },
    {
      "ruleId": "MTC-SRC-002",
      "title": "Shell/command execution in server code (dist/liveness.js)",
      "category": "permissions",
      "severity": "high",
      "confidence": "strong",
      "description": "In the server's implementation (`dist/liveness.js:42`): 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/liveness.js"
      },
      "evidence": "ecFileSync } from \"node:child_process\"; import { log } from \"./logger.js\"; import { profileProcessPatternSource } from \"",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-002",
        "file": "dist/liveness.js",
        "line": 42,
        "nonRuntime": false
      }
    },
    {
      "ruleId": "MTC-SRC-002",
      "title": "Shell/command execution in server code (dist/mcp-prompts.js)",
      "category": "permissions",
      "severity": "high",
      "confidence": "strong",
      "description": "In the server's implementation (`dist/mcp-prompts.js:48`): 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/mcp-prompts.js"
      },
      "evidence": "off a brief. macOS-only spawn (see spawn_agent docs); on Linux/Windows, the operator starts the new terminal manually.\",",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-002",
        "file": "dist/mcp-prompts.js",
        "line": 48,
        "nonRuntime": false
      }
    },
    {
      "ruleId": "MTC-SRC-002",
      "title": "Shell/command execution in server code (dist/spawn/dispatcher.js)",
      "category": "permissions",
      "severity": "high",
      "confidence": "strong",
      "description": "In the server's implementation (`dist/spawn/dispatcher.js:20`): 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/spawn/dispatcher.js"
      },
      "evidence": "pawn as cpSpawn } from \"child_process\"; import { execSync } from \"child_process\"; import { log } from \"../logger.js\"; im",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-002",
        "file": "dist/spawn/dispatcher.js",
        "line": 20,
        "nonRuntime": false
      }
    },
    {
      "ruleId": "MTC-SRC-002",
      "title": "Shell/command execution in server code (dist/sqlite-compat.js)",
      "category": "permissions",
      "severity": "high",
      "confidence": "strong",
      "description": "In the server's implementation (`dist/sqlite-compat.js:134`): 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/sqlite-compat.js"
      },
      "evidence": "his.db, sql); } exec(sql) { this.db.run(sql); // v2.0 beta: respect txDepth so exec() inside a t",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-002",
        "file": "dist/sqlite-compat.js",
        "line": 134,
        "nonRuntime": false
      }
    },
    {
      "ruleId": "MTC-FLOW-005",
      "title": "Untrusted input can drive an external action",
      "category": "exfiltration",
      "severity": "medium",
      "confidence": "strong",
      "description": "Untrusted-input tools ([task_schema_get]) co-exist with external-action tools ([abandon_registration, spawn_agent, send_message, register_webhook, delete_webhook]). 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": "task_schema_get → abandon_registration"
      },
      "evidence": "untrusted [task_schema_get] → sinks [abandon_registration, spawn_agent, send_message, register_webhook, delete_webhook]",
      "owasp": "LLM06:2025 Excessive Agency",
      "references": [],
      "data": {
        "untrusted": [
          "task_schema_get"
        ],
        "sinks": [
          "abandon_registration",
          "spawn_agent",
          "send_message",
          "register_webhook",
          "delete_webhook"
        ]
      }
    },
    {
      "ruleId": "MTC-SRC-003",
      "title": "Hardcoded egress to an external endpoint (dist/backup.js)",
      "category": "exfiltration",
      "severity": "medium",
      "confidence": "strong",
      "description": "In the server's implementation (`dist/backup.js:196`): A hardcoded outbound call to a fixed external host inside server code is a classic exfiltration/telemetry channel — especially paired with reads of local data. 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/backup.js"
      },
      "evidence": "const res = await fetch(`http://${host}:${port}/health`, { signal }); return res.ok; }); }",
      "owasp": "LLM02:2025 Sensitive Information Disclosure",
      "data": {
        "rule": "MTC-SRC-003",
        "file": "dist/backup.js",
        "line": 196,
        "nonRuntime": false
      }
    },
    {
      "ruleId": "MTC-SRC-003",
      "title": "Hardcoded egress to an external endpoint (dist/cli/doctor.js)",
      "category": "exfiltration",
      "severity": "medium",
      "confidence": "strong",
      "description": "In the server's implementation (`dist/cli/doctor.js:135`): A hardcoded outbound call to a fixed external host inside server code is a classic exfiltration/telemetry channel — especially paired with reads of local data. 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/doctor.js"
      },
      "evidence": "const res = await fetch(`http://${host}:${port}/health`, { signal }); if (!res.ok) ret",
      "owasp": "LLM02:2025 Sensitive Information Disclosure",
      "data": {
        "rule": "MTC-SRC-003",
        "file": "dist/cli/doctor.js",
        "line": 135,
        "nonRuntime": false
      }
    },
    {
      "ruleId": "MTC-SRC-003",
      "title": "Hardcoded egress to an external endpoint (dist/cli/watch.js)",
      "category": "exfiltration",
      "severity": "medium",
      "confidence": "strong",
      "description": "In the server's implementation (`dist/cli/watch.js:159`): A hardcoded outbound call to a fixed external host inside server code is a classic exfiltration/telemetry channel — especially paired with reads of local data. 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/watch.js"
      },
      "evidence": "const res = await fetch(`http://${host}:${port}/health`, { signal }); if (!res.ok) ret",
      "owasp": "LLM02:2025 Sensitive Information Disclosure",
      "data": {
        "rule": "MTC-SRC-003",
        "file": "dist/cli/watch.js",
        "line": 159,
        "nonRuntime": false
      }
    },
    {
      "ruleId": "MTC-CAP-005",
      "title": "Mutating tool \"spawn_agent\" declares no destructiveHint",
      "category": "hygiene",
      "severity": "low",
      "confidence": "heuristic",
      "description": "Tool \"spawn_agent\" 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": "spawn_agent"
      },
      "data": {
        "tags": [
          "code-exec"
        ]
      }
    }
  ],
  "toxicFlows": [
    {
      "id": "flow-1",
      "severity": "medium",
      "confidence": "strong",
      "untrustedInput": [
        "task_schema_get"
      ],
      "sensitiveSource": [],
      "externalSink": [
        "abandon_registration",
        "spawn_agent",
        "send_message",
        "register_webhook",
        "delete_webhook"
      ],
      "selfContained": false,
      "description": "Untrusted input can drive an external action even though no sensitive source is exposed."
    }
  ],
  "capabilities": [
    {
      "tool": "register_agent",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "discover_agents",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "unregister_agent",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "abandon_registration",
      "tags": [
        "external-sink"
      ],
      "reasons": {
        "external-sink": [
          "keyword \"curl\""
        ]
      }
    },
    {
      "tool": "spawn_agent",
      "tags": [
        "code-exec"
      ],
      "reasons": {
        "code-exec": [
          "keyword \"spawn\" in tool name"
        ]
      }
    },
    {
      "tool": "send_message",
      "tags": [
        "external-sink"
      ],
      "reasons": {
        "external-sink": [
          "keyword \"send_message\""
        ]
      }
    },
    {
      "tool": "get_messages",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "get_messages_summary",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "get_outstanding",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "resolve_messages",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "broadcast",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "post_to_capability",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "post_task",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "post_task_auto",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "update_task",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "get_tasks",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "get_task",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "register_task_schema",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "task_schema_get",
      "tags": [
        "untrusted-input"
      ],
      "reasons": {
        "untrusted-input": [
          "keyword \"fetch\""
        ]
      }
    },
    {
      "tool": "register_webhook",
      "tags": [
        "external-sink"
      ],
      "reasons": {
        "external-sink": [
          "keyword \"webhook\""
        ]
      }
    },
    {
      "tool": "list_webhooks",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "delete_webhook",
      "tags": [
        "external-sink"
      ],
      "reasons": {
        "external-sink": [
          "keyword \"webhook\""
        ]
      }
    },
    {
      "tool": "create_channel",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "join_channel",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "leave_channel",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "post_to_channel",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "get_channel_messages",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "set_status",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "report_liveness",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "health_check",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "rotate_token",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "rotate_token_admin",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "revoke_token",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "get_standup",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "expand_capabilities",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "set_dashboard_theme",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "peek_inbox_version",
      "tags": [],
      "reasons": {}
    }
  ],
  "surfaceDigest": "84ec6c0d9aa1c9c01df1043f1675001206a6a35ff96d8174c3ebb1eac22c50ba",
  "stats": {
    "tools": 37,
    "prompts": 0,
    "resources": 0,
    "findingsBySeverity": {
      "critical": 0,
      "high": 10,
      "medium": 4,
      "low": 1,
      "info": 0
    }
  }
}