Raw scan report

Semahash — 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": "semahash",
    "source": {
      "kind": "package",
      "origin": "semahash"
    },
    "server": {
      "name": "semahash"
    }
  },
  "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 execute shell commands or code"
    ],
    "tags": [
      "untrusted-input",
      "code-exec"
    ]
  },
  "coverage": {
    "level": "source",
    "inputs": {
      "toolSurface": true,
      "implementationSource": true,
      "packageMetadata": true,
      "liveTransport": false
    },
    "caveats": [
      "Tools were statically extracted from the published source (13 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-010",
      "title": "Dynamic evaluation of a non-literal value (src/sema/server/static/assets/GraphPage-2VgYBBGA.js)",
      "category": "injection",
      "severity": "high",
      "confidence": "strong",
      "description": "In the server's implementation (`src/sema/server/static/assets/GraphPage-2VgYBBGA.js:4056`): Evaluating a runtime value as code (rather than a fixed literal) executes whatever reaches it — a direct RCE primitive, and almost never necessary in legitimate code. 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/sema/server/static/assets/GraphPage-2VgYBBGA.js"
      },
      "evidence": "){let o=t(s,a),{Body:l}=new Function(o)();return l}function t(s,a){return` ${r(s,a)} ${n(s)} return {Body: Body, Vector:",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-010",
        "file": "src/sema/server/static/assets/GraphPage-2VgYBBGA.js",
        "line": 4056,
        "nonRuntime": false
      }
    },
    {
      "ruleId": "MTC-SRC-001",
      "title": "Dynamic code execution in server code (src/sema/server/static/assets/GraphPage-2VgYBBGA.js)",
      "category": "permissions",
      "severity": "high",
      "confidence": "strong",
      "description": "In the server's implementation (`src/sema/server/static/assets/GraphPage-2VgYBBGA.js:4056`): Evaluating strings as code is the most direct RCE primitive; if any tool input reaches it, the server executes attacker-chosen code. 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/sema/server/static/assets/GraphPage-2VgYBBGA.js"
      },
      "evidence": "){let o=t(s,a),{Body:l}=new Function(o)();return l}function t(s,a){return` ${r(s,a)} ${n(s)} return {Body: Body, Vector:",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-001",
        "file": "src/sema/server/static/assets/GraphPage-2VgYBBGA.js",
        "line": 4056,
        "nonRuntime": false
      }
    },
    {
      "ruleId": "MTC-SRC-002",
      "title": "Shell/command execution in server code (src/sema/audit/runner.py)",
      "category": "permissions",
      "severity": "high",
      "confidence": "strong",
      "description": "In the server's implementation (`src/sema/audit/runner.py: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": "src/sema/audit/runner.py"
      },
      "evidence": "axonomy.db\") proc = subprocess.run( [sys.executable, \"-m\", module], capture_output=True, tex",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-002",
        "file": "src/sema/audit/runner.py",
        "line": 33,
        "nonRuntime": false
      }
    },
    {
      "ruleId": "MTC-SRC-005",
      "title": "Dynamic module load from a non-literal (src/sema/server/static/assets/chunk-QFMPRPBF-DgVX359w.js)",
      "category": "permissions",
      "severity": "medium",
      "confidence": "heuristic",
      "description": "In the server's implementation (`src/sema/server/static/assets/chunk-QFMPRPBF-DgVX359w.js:5`): 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": "src/sema/server/static/assets/chunk-QFMPRPBF-DgVX359w.js"
      },
      "evidence": "t[e.id];try{let r=await import(e.module);return t[e.id]=r,r}catch(r){return console.error(`Error loading route module \\`",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-005",
        "file": "src/sema/server/static/assets/chunk-QFMPRPBF-DgVX359w.js",
        "line": 5,
        "nonRuntime": false
      }
    },
    {
      "ruleId": "MTC-SRC-002",
      "title": "Shell/command execution in packaging/dev tooling (src/sema/core/tests/test_libraries.py)",
      "category": "permissions",
      "severity": "low",
      "confidence": "heuristic",
      "description": "In a packaging/dev/install script (shipped, but not the server runtime) (`src/sema/core/tests/test_libraries.py:280`): 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/sema/core/tests/test_libraries.py"
      },
      "evidence": "r, second_dir): subprocess.run( [ sys.executable, str(script),",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-002",
        "file": "src/sema/core/tests/test_libraries.py",
        "line": 280,
        "nonRuntime": true
      }
    },
    {
      "ruleId": "MTC-SRC-002",
      "title": "Shell/command execution in packaging/dev tooling (src/sema/mcp/tests/test_mcp_pull.py)",
      "category": "permissions",
      "severity": "low",
      "confidence": "heuristic",
      "description": "In a packaging/dev/install script (shipped, but not the server runtime) (`src/sema/mcp/tests/test_mcp_pull.py:40`): 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/sema/mcp/tests/test_mcp_pull.py"
      },
      "evidence": "ols)))\" ) out = subprocess.check_output([sys.executable, \"-c\", code], env=env, text=True) return set(out.str",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-002",
        "file": "src/sema/mcp/tests/test_mcp_pull.py",
        "line": 40,
        "nonRuntime": true
      }
    },
    {
      "ruleId": "MTC-SUP-012",
      "title": "Package has no license",
      "category": "hygiene",
      "severity": "info",
      "confidence": "strong",
      "description": "\"semahash\" has no declared license. This is a legal/reuse concern, not a security finding.",
      "location": {
        "kind": "package",
        "name": "semahash"
      }
    }
  ],
  "toxicFlows": [],
  "capabilities": [
    {
      "tool": "sema_reset_session",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "sema_search",
      "tags": [
        "untrusted-input"
      ],
      "reasons": {
        "untrusted-input": [
          "keyword \"fetch\""
        ]
      }
    },
    {
      "tool": "sema_resolve",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "sema_tree",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "sema_lookup",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "sema_validate",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "sema_stats",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "sema_graph_skeleton",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "sema_use",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "sema_root",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "sema_handshake",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "sema_propose_context",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "sema_verify_context",
      "tags": [],
      "reasons": {}
    }
  ],
  "surfaceDigest": "f7dfbe8fc231b3948965b6da8782e388aa4ca400d63d05ab91d9f9b24e667c53",
  "stats": {
    "tools": 13,
    "prompts": 0,
    "resources": 0,
    "findingsBySeverity": {
      "critical": 0,
      "high": 3,
      "medium": 1,
      "low": 2,
      "info": 1
    }
  }
}