Matlab Mcp Python — the complete, unedited output of the deterministic mcptrustchecker engine v1.8.0, scanned . Every finding, capability tag and score component below is exactly what the engine produced — no AI, no post-processing.
{
"tool": {
"name": "mcptrustchecker",
"version": "1.8.0",
"methodologyVersion": "mcptrustchecker-1.8"
},
"target": {
"id": "matlab-mcp-python",
"source": {
"kind": "package",
"origin": "matlab-mcp-python"
},
"server": {
"name": "matlab-mcp-python"
}
},
"grade": "C",
"score": {
"score": 78,
"threatScore": 85,
"grade": "C",
"band": "C",
"categorySubtotals": {
"injection": 15.4,
"exfiltration": 0,
"permissions": 0,
"supply-chain": 0,
"network": 0,
"hygiene": 0
},
"vector": [
{
"kind": "threat",
"ruleId": "MTC-SRC-010",
"category": "injection",
"severity": "high",
"confidence": "strong",
"rawWeight": 22,
"confidenceMult": 0.7,
"diminishingFactor": 1,
"appliedPenalty": 15.4
},
{
"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.8"
},
"capability": {
"level": "high",
"reasons": [
"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",
"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 (20 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 ([list_files, read_script]) and tools that can send data out ([execute_code, check_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": "list_files → execute_code"
},
"evidence": "sources [list_files, read_script] → sinks [execute_code, check_code]",
"owasp": "LLM02:2025 Sensitive Information Disclosure",
"references": [],
"data": {
"sources": [
"list_files",
"read_script"
],
"sinks": [
"execute_code",
"check_code"
]
}
},
{
"ruleId": "MTC-SRC-010",
"title": "Dynamic evaluation of a non-literal value (src/matlab_mcp/pool/engine.py)",
"category": "injection",
"severity": "high",
"confidence": "strong",
"description": "In the server's implementation (`src/matlab_mcp/pool/engine.py:109`): 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/matlab_mcp/pool/engine.py"
},
"evidence": "eval(",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-010",
"file": "src/matlab_mcp/pool/engine.py",
"line": 109
}
},
{
"ruleId": "MTC-CAP-001",
"title": "Tool \"execute_code\" exposes command/code execution",
"category": "permissions",
"severity": "high",
"confidence": "strong",
"description": "Tool \"execute_code\" appears to run shell commands or evaluate code (keyword \"execute code\"). 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": "execute_code"
},
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"tags": [
"code-exec"
]
}
},
{
"ruleId": "MTC-CAP-001",
"title": "Tool \"check_code\" exposes command/code execution",
"category": "permissions",
"severity": "high",
"confidence": "strong",
"description": "Tool \"check_code\" appears to run shell commands or evaluate code (keyword \"execute code\"). 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": "check_code"
},
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"tags": [
"code-exec"
]
}
},
{
"ruleId": "MTC-SRC-001",
"title": "Dynamic code execution in server code (src/matlab_mcp/jobs/executor.py)",
"category": "permissions",
"severity": "high",
"confidence": "strong",
"description": "In the server's implementation (`src/matlab_mcp/jobs/executor.py:353`): 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/matlab_mcp/jobs/executor.py"
},
"evidence": "eval(",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-001",
"file": "src/matlab_mcp/jobs/executor.py",
"line": 353
}
},
{
"ruleId": "MTC-SRC-001",
"title": "Dynamic code execution in server code (src/matlab_mcp/pool/engine.py)",
"category": "permissions",
"severity": "high",
"confidence": "strong",
"description": "In the server's implementation (`src/matlab_mcp/pool/engine.py:109`): 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/matlab_mcp/pool/engine.py"
},
"evidence": "eval(",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-001",
"file": "src/matlab_mcp/pool/engine.py",
"line": 109
}
},
{
"ruleId": "MTC-SRC-001",
"title": "Dynamic code execution in server code (tests/mocks/matlab_engine_mock.py)",
"category": "permissions",
"severity": "high",
"confidence": "strong",
"description": "In the server's implementation (`tests/mocks/matlab_engine_mock.py:144`): 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": "tests/mocks/matlab_engine_mock.py"
},
"evidence": "eval(",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-001",
"file": "tests/mocks/matlab_engine_mock.py",
"line": 144
}
},
{
"ruleId": "MTC-SRC-001",
"title": "Dynamic code execution in server code (tests/test_engine_mock.py)",
"category": "permissions",
"severity": "high",
"confidence": "strong",
"description": "In the server's implementation (`tests/test_engine_mock.py:96`): 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": "tests/test_engine_mock.py"
},
"evidence": "eval(",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-001",
"file": "tests/test_engine_mock.py",
"line": 96
}
},
{
"ruleId": "MTC-SRC-001",
"title": "Dynamic code execution in server code (tests/test_security.py)",
"category": "permissions",
"severity": "high",
"confidence": "strong",
"description": "In the server's implementation (`tests/test_security.py:58`): 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": "tests/test_security.py"
},
"evidence": "eval(",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-001",
"file": "tests/test_security.py",
"line": 58
}
},
{
"ruleId": "MTC-SRC-002",
"title": "Shell/command execution in server code (scripts/generate_changelog.py)",
"category": "permissions",
"severity": "high",
"confidence": "strong",
"description": "In the server's implementation (`scripts/generate_changelog.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": "scripts/generate_changelog.py"
},
"evidence": "subprocess.run(",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-002",
"file": "scripts/generate_changelog.py",
"line": 33
}
},
{
"ruleId": "MTC-SRC-002",
"title": "Shell/command execution in server code (scripts/install_matlab_engine.py)",
"category": "permissions",
"severity": "high",
"confidence": "strong",
"description": "In the server's implementation (`scripts/install_matlab_engine.py:294`): 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": "scripts/install_matlab_engine.py"
},
"evidence": "subprocess.run(",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-002",
"file": "scripts/install_matlab_engine.py",
"line": 294
}
},
{
"ruleId": "MTC-SRC-002",
"title": "Shell/command execution in server code (tests/test_mcp_integration.py)",
"category": "permissions",
"severity": "high",
"confidence": "strong",
"description": "In the server's implementation (`tests/test_mcp_integration.py:79`): 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": "tests/test_mcp_integration.py"
},
"evidence": "subprocess.Popen(",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-002",
"file": "tests/test_mcp_integration.py",
"line": 79
}
},
{
"ruleId": "MTC-CAP-002",
"title": "Tool \"delete_file\" can modify the filesystem",
"category": "permissions",
"severity": "medium",
"confidence": "strong",
"description": "Tool \"delete_file\" can write, overwrite or delete files (keyword \"delete_file\"). 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": "delete_file"
},
"data": {
"tags": [
"file-write"
]
}
},
{
"ruleId": "MTC-CAP-005",
"title": "Mutating tool \"execute_code\" declares no destructiveHint",
"category": "hygiene",
"severity": "low",
"confidence": "heuristic",
"description": "Tool \"execute_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": "execute_code"
},
"data": {
"tags": [
"code-exec"
]
}
},
{
"ruleId": "MTC-CAP-005",
"title": "Mutating tool \"check_code\" declares no destructiveHint",
"category": "hygiene",
"severity": "low",
"confidence": "heuristic",
"description": "Tool \"check_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": "check_code"
},
"data": {
"tags": [
"code-exec"
]
}
},
{
"ruleId": "MTC-CAP-005",
"title": "Mutating tool \"delete_file\" declares no destructiveHint",
"category": "hygiene",
"severity": "low",
"confidence": "heuristic",
"description": "Tool \"delete_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": "delete_file"
},
"data": {
"tags": [
"file-write"
]
}
},
{
"ruleId": "MTC-SUP-012",
"title": "Package has no license",
"category": "hygiene",
"severity": "info",
"confidence": "strong",
"description": "\"matlab-mcp-python\" has no declared license. This is a legal/reuse concern, not a security finding.",
"location": {
"kind": "package",
"name": "matlab-mcp-python"
}
}
],
"toxicFlows": [
{
"id": "flow-1",
"severity": "high",
"confidence": "strong",
"untrustedInput": [],
"sensitiveSource": [
"list_files",
"read_script"
],
"externalSink": [
"execute_code",
"check_code"
],
"selfContained": false,
"path": [
"list_files",
"check_code"
],
"pathWired": false,
"description": "A sensitive-source → external-sink chain exists: list_files → check_code."
}
],
"capabilities": [
{
"tool": "execute_code",
"tags": [
"code-exec"
],
"reasons": {
"code-exec": [
"keyword \"execute code\""
]
}
},
{
"tool": "check_code",
"tags": [
"code-exec"
],
"reasons": {
"code-exec": [
"keyword \"execute code\""
]
}
},
{
"tool": "get_workspace",
"tags": [],
"reasons": {}
},
{
"tool": "get_job_status",
"tags": [],
"reasons": {}
},
{
"tool": "get_job_result",
"tags": [],
"reasons": {}
},
{
"tool": "cancel_job",
"tags": [],
"reasons": {}
},
{
"tool": "list_jobs",
"tags": [],
"reasons": {}
},
{
"tool": "list_toolboxes",
"tags": [],
"reasons": {}
},
{
"tool": "list_functions",
"tags": [],
"reasons": {}
},
{
"tool": "get_help",
"tags": [],
"reasons": {}
},
{
"tool": "upload_data",
"tags": [],
"reasons": {}
},
{
"tool": "delete_file",
"tags": [
"file-write"
],
"reasons": {
"file-write": [
"keyword \"delete_file\""
]
}
},
{
"tool": "list_files",
"tags": [
"sensitive-source"
],
"reasons": {
"sensitive-source": [
"keyword \"list_files\""
]
}
},
{
"tool": "read_script",
"tags": [
"sensitive-source"
],
"reasons": {
"sensitive-source": [
"keyword \"list_files\""
]
}
},
{
"tool": "read_data",
"tags": [],
"reasons": {}
},
{
"tool": "read_image",
"tags": [],
"reasons": {}
},
{
"tool": "get_pool_status",
"tags": [],
"reasons": {}
},
{
"tool": "get_server_metrics",
"tags": [],
"reasons": {}
},
{
"tool": "get_server_health",
"tags": [],
"reasons": {}
},
{
"tool": "get_error_log",
"tags": [],
"reasons": {}
}
],
"surfaceDigest": "495dac27221c59774b41469785e27532bf9805ad10f60f631f87ff279026d92f",
"stats": {
"tools": 20,
"prompts": 0,
"resources": 0,
"findingsBySeverity": {
"critical": 0,
"high": 12,
"medium": 1,
"low": 3,
"info": 1
}
}
}