Raw scan report

Sonic Pi — 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": "sonic-pi-mcp",
    "source": {
      "kind": "package",
      "origin": "sonic-pi-mcp"
    },
    "server": {
      "name": "sonic-pi-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": [
      "code-exec",
      "sensitive-source"
    ]
  },
  "coverage": {
    "level": "source",
    "inputs": {
      "toolSurface": true,
      "implementationSource": true,
      "packageMetadata": true,
      "liveTransport": false
    },
    "caveats": [
      "Tools were statically extracted from the published source (19 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 ([sonic_get_logs]) and tools that can send data out ([sonic_run_code]) 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": "sonic_get_logs → sonic_run_code"
      },
      "evidence": "sources [sonic_get_logs] → sinks [sonic_run_code]",
      "owasp": "LLM02:2025 Sensitive Information Disclosure",
      "references": [],
      "data": {
        "sources": [
          "sonic_get_logs"
        ],
        "sinks": [
          "sonic_run_code"
        ]
      }
    },
    {
      "ruleId": "MTC-CAP-001",
      "title": "Tool \"sonic_run_code\" exposes command/code execution",
      "category": "permissions",
      "severity": "high",
      "confidence": "strong",
      "description": "Tool \"sonic_run_code\" appears to run shell commands or evaluate code (keyword \"run_code\" 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": "sonic_run_code"
      },
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "tags": [
          "code-exec"
        ]
      }
    },
    {
      "ruleId": "MTC-SRC-002",
      "title": "Shell/command execution in server code (src/sonic_pi_mcp/sonic/daemon.py)",
      "category": "permissions",
      "severity": "high",
      "confidence": "strong",
      "description": "In the server's implementation (`src/sonic_pi_mcp/sonic/daemon.py:43`): 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/sonic_pi_mcp/sonic/daemon.py"
      },
      "evidence": "self.process = subprocess.Popen( args, cwd=str(self.root), stdo",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-002",
        "file": "src/sonic_pi_mcp/sonic/daemon.py",
        "line": 43,
        "nonRuntime": false
      }
    },
    {
      "ruleId": "MTC-SRC-002",
      "title": "Shell/command execution in server code (src/sonic_pi_mcp/sonic/diagnostics.py)",
      "category": "permissions",
      "severity": "high",
      "confidence": "strong",
      "description": "In the server's implementation (`src/sonic_pi_mcp/sonic/diagnostics.py:183`): 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/sonic_pi_mcp/sonic/diagnostics.py"
      },
      "evidence": "try: result = subprocess.run( [\"tasklist\", \"/FO\", \"CSV\", \"/NH\"], capture_output=True,",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-002",
        "file": "src/sonic_pi_mcp/sonic/diagnostics.py",
        "line": 183,
        "nonRuntime": false
      }
    },
    {
      "ruleId": "MTC-CAP-005",
      "title": "Mutating tool \"sonic_run_code\" declares no destructiveHint",
      "category": "hygiene",
      "severity": "low",
      "confidence": "heuristic",
      "description": "Tool \"sonic_run_code\" 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": "sonic_run_code"
      },
      "data": {
        "tags": [
          "code-exec"
        ]
      }
    },
    {
      "ruleId": "MTC-SUP-012",
      "title": "Package has no license",
      "category": "hygiene",
      "severity": "info",
      "confidence": "strong",
      "description": "\"sonic-pi-mcp\" has no declared license. This is a legal/reuse concern, not a security finding.",
      "location": {
        "kind": "package",
        "name": "sonic-pi-mcp"
      }
    }
  ],
  "toxicFlows": [
    {
      "id": "flow-1",
      "severity": "high",
      "confidence": "strong",
      "untrustedInput": [],
      "sensitiveSource": [
        "sonic_get_logs"
      ],
      "externalSink": [
        "sonic_run_code"
      ],
      "selfContained": false,
      "path": [
        "sonic_get_logs",
        "sonic_run_code"
      ],
      "pathWired": false,
      "description": "A sensitive-source → external-sink chain exists: sonic_get_logs → sonic_run_code."
    }
  ],
  "capabilities": [
    {
      "tool": "sonic_start",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "sonic_status",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "sonic_preflight",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "sonic_run_code",
      "tags": [
        "code-exec"
      ],
      "reasons": {
        "code-exec": [
          "keyword \"run_code\" in tool name"
        ]
      }
    },
    {
      "tool": "sonic_play_file",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "sonic_start_recording",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "sonic_stop_recording",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "sonic_save_recording",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "sonic_delete_recording",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "sonic_record_file",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "sonic_stop",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "sonic_shutdown",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "sonic_read_events",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "sonic_get_logs",
      "tags": [
        "sensitive-source"
      ],
      "reasons": {
        "sensitive-source": [
          "keyword \"get_logs\""
        ]
      }
    },
    {
      "tool": "sonic_send_cue",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "sonic_search_docs",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "sonic_list_samples",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "sonic_list_synths",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "sonic_list_fx",
      "tags": [],
      "reasons": {}
    }
  ],
  "surfaceDigest": "3b3027c35bd2d8c72bc099e14b68da16712b1e24e98a4356a7048dbc5ca01b30",
  "stats": {
    "tools": 19,
    "prompts": 0,
    "resources": 0,
    "findingsBySeverity": {
      "critical": 0,
      "high": 4,
      "medium": 0,
      "low": 1,
      "info": 1
    }
  }
}