Matlab Mcp Python — 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.
{
"tool": {
"name": "mcptrustchecker",
"version": "1.13.0",
"methodologyVersion": "mcptrustchecker-1.13"
},
"target": {
"id": "matlab-mcp-python",
"source": {
"kind": "package",
"origin": "matlab-mcp-python"
},
"server": {
"name": "matlab-mcp-python"
}
},
"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": [
"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]) 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]",
"owasp": "LLM02:2025 Sensitive Information Disclosure",
"references": [],
"data": {
"sources": [
"list_files",
"read_script"
],
"sinks": [
"execute_code"
]
}
},
{
"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\" 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": "execute_code"
},
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"tags": [
"code-exec"
]
}
},
{
"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\" 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": "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 \"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-SRC-001",
"title": "Dynamic code execution in packaging/dev tooling (tests/mocks/matlab_engine_mock.py)",
"category": "permissions",
"severity": "low",
"confidence": "heuristic",
"description": "In a packaging/dev/install script (shipped, but not the server runtime) (`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": "-------------- def eval( self, code: str, nargout: int = 0, background: bool = Fals",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-001",
"file": "tests/mocks/matlab_engine_mock.py",
"line": 144,
"nonRuntime": true
}
},
{
"ruleId": "MTC-SRC-002",
"title": "Shell/command execution in packaging/dev tooling (scripts/generate_changelog.py)",
"category": "permissions",
"severity": "low",
"confidence": "heuristic",
"description": "In a packaging/dev/install script (shipped, but not the server runtime) (`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": "e HEAD.\"\"\" result = subprocess.run( [\"git\", \"tag\", \"--sort=-creatordate\"], capture_output=True, text",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-002",
"file": "scripts/generate_changelog.py",
"line": 33,
"nonRuntime": true
}
},
{
"ruleId": "MTC-SRC-002",
"title": "Shell/command execution in packaging/dev tooling (scripts/install_matlab_engine.py)",
"category": "permissions",
"severity": "low",
"confidence": "heuristic",
"description": "In a packaging/dev/install script (shipped, but not the server runtime) (`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": "\".join(cmd)) return subprocess.run(cmd, check=True) def _is_offline_forced() -> bool: \"\"\"Return True if the of",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-002",
"file": "scripts/install_matlab_engine.py",
"line": 294,
"nonRuntime": true
}
},
{
"ruleId": "MTC-SRC-002",
"title": "Shell/command execution in packaging/dev tooling (tests/test_mcp_integration.py)",
"category": "permissions",
"severity": "low",
"confidence": "heuristic",
"description": "In a packaging/dev/install script (shipped, but not the server runtime) (`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": "lete=False) proc = subprocess.Popen( cmd, env=env, stdout=subprocess.DEVNULL, stder",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-002",
"file": "tests/test_mcp_integration.py",
"line": 79,
"nonRuntime": true
}
},
{
"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"
],
"selfContained": false,
"path": [
"list_files",
"execute_code"
],
"pathWired": false,
"description": "A sensitive-source → external-sink chain exists: list_files → execute_code."
}
],
"capabilities": [
{
"tool": "execute_code",
"tags": [
"code-exec"
],
"reasons": {
"code-exec": [
"keyword \"execute code\" in tool name"
]
}
},
{
"tool": "check_code",
"tags": [],
"reasons": {}
},
{
"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\" in tool name"
]
}
},
{
"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": "62ab6c21a44831da844bfe01b326b2d51b0a316aeaef82f214005a037ca8666f",
"stats": {
"tools": 20,
"prompts": 0,
"resources": 0,
"findingsBySeverity": {
"critical": 0,
"high": 2,
"medium": 1,
"low": 6,
"info": 1
}
}
}