Codescalpel — the complete, unedited output of the deterministic mcptrustchecker engine v1.5.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.5.0",
"methodologyVersion": "mcptrustchecker-1.4"
},
"target": {
"id": "codescalpel",
"source": {
"kind": "package",
"origin": "codescalpel"
},
"server": {
"name": "codescalpel"
}
},
"grade": "F",
"score": {
"score": 59,
"grade": "F",
"band": "F",
"categorySubtotals": {
"injection": 26.95,
"exfiltration": 0,
"permissions": 12.29,
"supply-chain": 2.1,
"network": 0,
"hygiene": 0
},
"vector": [
{
"ruleId": "MTC-SRC-007",
"category": "permissions",
"severity": "medium",
"confidence": "strong",
"rawWeight": 9,
"confidenceMult": 0.7,
"diminishingFactor": 1,
"appliedPenalty": 6.3
},
{
"ruleId": "MTC-SRC-007",
"category": "permissions",
"severity": "medium",
"confidence": "strong",
"rawWeight": 9,
"confidenceMult": 0.7,
"diminishingFactor": 0.5,
"appliedPenalty": 3.15
},
{
"ruleId": "MTC-SRC-007",
"category": "permissions",
"severity": "medium",
"confidence": "strong",
"rawWeight": 9,
"confidenceMult": 0.7,
"diminishingFactor": 0.25,
"appliedPenalty": 1.58
},
{
"ruleId": "MTC-SRC-007",
"category": "permissions",
"severity": "medium",
"confidence": "strong",
"rawWeight": 9,
"confidenceMult": 0.7,
"diminishingFactor": 0.1,
"appliedPenalty": 0.63
},
{
"ruleId": "MTC-SRC-007",
"category": "permissions",
"severity": "medium",
"confidence": "strong",
"rawWeight": 9,
"confidenceMult": 0.7,
"diminishingFactor": 0.1,
"appliedPenalty": 0.63
},
{
"ruleId": "MTC-SRC-010",
"category": "injection",
"severity": "high",
"confidence": "strong",
"rawWeight": 22,
"confidenceMult": 0.7,
"diminishingFactor": 1,
"appliedPenalty": 15.4
},
{
"ruleId": "MTC-SRC-010",
"category": "injection",
"severity": "high",
"confidence": "strong",
"rawWeight": 22,
"confidenceMult": 0.7,
"diminishingFactor": 0.5,
"appliedPenalty": 7.7
},
{
"ruleId": "MTC-SRC-010",
"category": "injection",
"severity": "high",
"confidence": "strong",
"rawWeight": 22,
"confidenceMult": 0.7,
"diminishingFactor": 0.25,
"appliedPenalty": 3.85
},
{
"ruleId": "MTC-SUP-011",
"category": "supply-chain",
"severity": "low",
"confidence": "strong",
"rawWeight": 3,
"confidenceMult": 0.7,
"diminishingFactor": 1,
"appliedPenalty": 2.1
}
],
"gatesFired": [],
"methodologyVersion": "mcptrustchecker-1.4"
},
"capability": {
"level": "high",
"reasons": [
"can execute shell commands or code"
],
"tags": [
"code-exec"
]
},
"coverage": {
"level": "source",
"inputs": {
"toolSurface": false,
"implementationSource": true,
"packageMetadata": true,
"liveTransport": false
},
"caveats": [
"No tools were enumerated, so prompt-injection, capability and toxic-flow analysis had no tool surface to inspect. To grade a package’s real runtime tools, scan the running server: --command \"npx -y <package>\"."
]
},
"findings": [
{
"ruleId": "MTC-SRC-010",
"title": "Dynamic evaluation of a non-literal value (src/code_scalpel/code_parsers/python_parsers/python_parsers_bandit.py)",
"category": "injection",
"severity": "high",
"confidence": "strong",
"description": "In the server's implementation (`src/code_scalpel/code_parsers/python_parsers/python_parsers_bandit.py:195`): 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/code_scalpel/code_parsers/python_parsers/python_parsers_bandit.py"
},
"evidence": "eval(",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-010",
"file": "src/code_scalpel/code_parsers/python_parsers/python_parsers_bandit.py",
"line": 195
}
},
{
"ruleId": "MTC-SRC-010",
"title": "Dynamic evaluation of a non-literal value (src/code_scalpel/generators/refactor_simulator.py)",
"category": "injection",
"severity": "high",
"confidence": "strong",
"description": "In the server's implementation (`src/code_scalpel/generators/refactor_simulator.py:156`): 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/code_scalpel/generators/refactor_simulator.py"
},
"evidence": "eval(",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-010",
"file": "src/code_scalpel/generators/refactor_simulator.py",
"line": 156
}
},
{
"ruleId": "MTC-SRC-010",
"title": "Dynamic evaluation of a non-literal value (src/code_scalpel/mcp/helpers/security_helpers.py)",
"category": "injection",
"severity": "high",
"confidence": "strong",
"description": "In the server's implementation (`src/code_scalpel/mcp/helpers/security_helpers.py:2158`): 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/code_scalpel/mcp/helpers/security_helpers.py"
},
"evidence": "eval(",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-010",
"file": "src/code_scalpel/mcp/helpers/security_helpers.py",
"line": 2158
}
},
{
"ruleId": "MTC-SRC-001",
"title": "Dynamic code execution in server code (src/code_scalpel/analysis/code_analyzer.py)",
"category": "permissions",
"severity": "high",
"confidence": "strong",
"description": "In the server's implementation (`src/code_scalpel/analysis/code_analyzer.py:1181`): 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/code_scalpel/analysis/code_analyzer.py"
},
"evidence": "eval(",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-001",
"file": "src/code_scalpel/analysis/code_analyzer.py",
"line": 1181
}
},
{
"ruleId": "MTC-SRC-001",
"title": "Dynamic code execution in server code (src/code_scalpel/code_parsers/javascript_parsers/javascript_parsers_esprima.py)",
"category": "permissions",
"severity": "high",
"confidence": "strong",
"description": "In the server's implementation (`src/code_scalpel/code_parsers/javascript_parsers/javascript_parsers_esprima.py:35`): 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/code_scalpel/code_parsers/javascript_parsers/javascript_parsers_esprima.py"
},
"evidence": "eval(",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-001",
"file": "src/code_scalpel/code_parsers/javascript_parsers/javascript_parsers_esprima.py",
"line": 35
}
},
{
"ruleId": "MTC-SRC-001",
"title": "Dynamic code execution in server code (src/code_scalpel/code_parsers/python_parsers/python_parsers_bandit.py)",
"category": "permissions",
"severity": "high",
"confidence": "strong",
"description": "In the server's implementation (`src/code_scalpel/code_parsers/python_parsers/python_parsers_bandit.py:189`): 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/code_scalpel/code_parsers/python_parsers/python_parsers_bandit.py"
},
"evidence": "eval(",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-001",
"file": "src/code_scalpel/code_parsers/python_parsers/python_parsers_bandit.py",
"line": 189
}
},
{
"ruleId": "MTC-SRC-001",
"title": "Dynamic code execution in server code (src/code_scalpel/code_parsers/typescript_parsers/analyzer.py)",
"category": "permissions",
"severity": "high",
"confidence": "strong",
"description": "In the server's implementation (`src/code_scalpel/code_parsers/typescript_parsers/analyzer.py:207`): 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/code_scalpel/code_parsers/typescript_parsers/analyzer.py"
},
"evidence": "eval(",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-001",
"file": "src/code_scalpel/code_parsers/typescript_parsers/analyzer.py",
"line": 207
}
},
{
"ruleId": "MTC-SRC-001",
"title": "Dynamic code execution in server code (src/code_scalpel/generators/refactor_simulator.py)",
"category": "permissions",
"severity": "high",
"confidence": "strong",
"description": "In the server's implementation (`src/code_scalpel/generators/refactor_simulator.py:156`): 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/code_scalpel/generators/refactor_simulator.py"
},
"evidence": "eval(",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-001",
"file": "src/code_scalpel/generators/refactor_simulator.py",
"line": 156
}
},
{
"ruleId": "MTC-SRC-001",
"title": "Dynamic code execution in server code (src/code_scalpel/mcp/helpers/context_helpers.py)",
"category": "permissions",
"severity": "high",
"confidence": "strong",
"description": "In the server's implementation (`src/code_scalpel/mcp/helpers/context_helpers.py:2271`): 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/code_scalpel/mcp/helpers/context_helpers.py"
},
"evidence": "eval(",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-001",
"file": "src/code_scalpel/mcp/helpers/context_helpers.py",
"line": 2271
}
},
{
"ruleId": "MTC-SRC-001",
"title": "Dynamic code execution in server code (src/code_scalpel/mcp/helpers/extraction_helpers.py)",
"category": "permissions",
"severity": "high",
"confidence": "strong",
"description": "In the server's implementation (`src/code_scalpel/mcp/helpers/extraction_helpers.py:1965`): 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/code_scalpel/mcp/helpers/extraction_helpers.py"
},
"evidence": "eval(",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-001",
"file": "src/code_scalpel/mcp/helpers/extraction_helpers.py",
"line": 1965
}
},
{
"ruleId": "MTC-SRC-001",
"title": "Dynamic code execution in server code (src/code_scalpel/mcp/helpers/security_helpers.py)",
"category": "permissions",
"severity": "high",
"confidence": "strong",
"description": "In the server's implementation (`src/code_scalpel/mcp/helpers/security_helpers.py:859`): 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/code_scalpel/mcp/helpers/security_helpers.py"
},
"evidence": "eval(",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-001",
"file": "src/code_scalpel/mcp/helpers/security_helpers.py",
"line": 859
}
},
{
"ruleId": "MTC-SRC-001",
"title": "Dynamic code execution in server code (src/code_scalpel/mcp/server.py)",
"category": "permissions",
"severity": "high",
"confidence": "strong",
"description": "In the server's implementation (`src/code_scalpel/mcp/server.py:1899`): 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/code_scalpel/mcp/server.py"
},
"evidence": "eval(",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-001",
"file": "src/code_scalpel/mcp/server.py",
"line": 1899
}
},
{
"ruleId": "MTC-SRC-001",
"title": "Dynamic code execution in server code (src/code_scalpel/policy_engine/code_policy_check/patterns.py)",
"category": "permissions",
"severity": "high",
"confidence": "strong",
"description": "In the server's implementation (`src/code_scalpel/policy_engine/code_policy_check/patterns.py:132`): 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/code_scalpel/policy_engine/code_policy_check/patterns.py"
},
"evidence": "eval(",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-001",
"file": "src/code_scalpel/policy_engine/code_policy_check/patterns.py",
"line": 132
}
},
{
"ruleId": "MTC-SRC-002",
"title": "Shell/command execution in server code (src/code_scalpel/analysis/code_analyzer.py)",
"category": "permissions",
"severity": "high",
"confidence": "strong",
"description": "In the server's implementation (`src/code_scalpel/analysis/code_analyzer.py:1182`): 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/code_scalpel/analysis/code_analyzer.py"
},
"evidence": "exec(",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-002",
"file": "src/code_scalpel/analysis/code_analyzer.py",
"line": 1182
}
},
{
"ruleId": "MTC-SRC-002",
"title": "Shell/command execution in server code (src/code_scalpel/code_parsers/cpp_parsers/cpp_parsers_Clang-Static-Analyzer.py)",
"category": "permissions",
"severity": "high",
"confidence": "strong",
"description": "In the server's implementation (`src/code_scalpel/code_parsers/cpp_parsers/cpp_parsers_Clang-Static-Analyzer.py:196`): 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/code_scalpel/code_parsers/cpp_parsers/cpp_parsers_Clang-Static-Analyzer.py"
},
"evidence": "subprocess.check_output(",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-002",
"file": "src/code_scalpel/code_parsers/cpp_parsers/cpp_parsers_Clang-Static-Analyzer.py",
"line": 196
}
},
{
"ruleId": "MTC-SRC-002",
"title": "Shell/command execution in server code (src/code_scalpel/code_parsers/cpp_parsers/cpp_parsers_Cppcheck.py)",
"category": "permissions",
"severity": "high",
"confidence": "strong",
"description": "In the server's implementation (`src/code_scalpel/code_parsers/cpp_parsers/cpp_parsers_Cppcheck.py:255`): 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/code_scalpel/code_parsers/cpp_parsers/cpp_parsers_Cppcheck.py"
},
"evidence": "subprocess.run(",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-002",
"file": "src/code_scalpel/code_parsers/cpp_parsers/cpp_parsers_Cppcheck.py",
"line": 255
}
},
{
"ruleId": "MTC-SRC-002",
"title": "Shell/command execution in server code (src/code_scalpel/code_parsers/cpp_parsers/cpp_parsers_clang_tidy.py)",
"category": "permissions",
"severity": "high",
"confidence": "strong",
"description": "In the server's implementation (`src/code_scalpel/code_parsers/cpp_parsers/cpp_parsers_clang_tidy.py:170`): 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/code_scalpel/code_parsers/cpp_parsers/cpp_parsers_clang_tidy.py"
},
"evidence": "subprocess.run(",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-002",
"file": "src/code_scalpel/code_parsers/cpp_parsers/cpp_parsers_clang_tidy.py",
"line": 170
}
},
{
"ruleId": "MTC-SRC-002",
"title": "Shell/command execution in server code (src/code_scalpel/code_parsers/cpp_parsers/cpp_parsers_cpplint.py)",
"category": "permissions",
"severity": "high",
"confidence": "strong",
"description": "In the server's implementation (`src/code_scalpel/code_parsers/cpp_parsers/cpp_parsers_cpplint.py:175`): 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/code_scalpel/code_parsers/cpp_parsers/cpp_parsers_cpplint.py"
},
"evidence": "subprocess.run(",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-002",
"file": "src/code_scalpel/code_parsers/cpp_parsers/cpp_parsers_cpplint.py",
"line": 175
}
},
{
"ruleId": "MTC-SRC-002",
"title": "Shell/command execution in server code (src/code_scalpel/code_parsers/csharp_parsers/csharp_parsers_Roslyn-Analyzers.py)",
"category": "permissions",
"severity": "high",
"confidence": "strong",
"description": "In the server's implementation (`src/code_scalpel/code_parsers/csharp_parsers/csharp_parsers_Roslyn-Analyzers.py:80`): 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/code_scalpel/code_parsers/csharp_parsers/csharp_parsers_Roslyn-Analyzers.py"
},
"evidence": "subprocess.run(",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-002",
"file": "src/code_scalpel/code_parsers/csharp_parsers/csharp_parsers_Roslyn-Analyzers.py",
"line": 80
}
},
{
"ruleId": "MTC-SRC-002",
"title": "Shell/command execution in server code (src/code_scalpel/code_parsers/csharp_parsers/csharp_parsers_SecurityCodeScan.py)",
"category": "permissions",
"severity": "high",
"confidence": "strong",
"description": "In the server's implementation (`src/code_scalpel/code_parsers/csharp_parsers/csharp_parsers_SecurityCodeScan.py:138`): 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/code_scalpel/code_parsers/csharp_parsers/csharp_parsers_SecurityCodeScan.py"
},
"evidence": "subprocess.run(",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-002",
"file": "src/code_scalpel/code_parsers/csharp_parsers/csharp_parsers_SecurityCodeScan.py",
"line": 138
}
},
{
"ruleId": "MTC-SRC-002",
"title": "Shell/command execution in server code (src/code_scalpel/code_parsers/csharp_parsers/csharp_parsers_StyleCop.py)",
"category": "permissions",
"severity": "high",
"confidence": "strong",
"description": "In the server's implementation (`src/code_scalpel/code_parsers/csharp_parsers/csharp_parsers_StyleCop.py:88`): 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/code_scalpel/code_parsers/csharp_parsers/csharp_parsers_StyleCop.py"
},
"evidence": "subprocess.run(",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-002",
"file": "src/code_scalpel/code_parsers/csharp_parsers/csharp_parsers_StyleCop.py",
"line": 88
}
},
{
"ruleId": "MTC-SRC-002",
"title": "Shell/command execution in server code (src/code_scalpel/code_parsers/csharp_parsers/csharp_parsers_fxcop.py)",
"category": "permissions",
"severity": "high",
"confidence": "strong",
"description": "In the server's implementation (`src/code_scalpel/code_parsers/csharp_parsers/csharp_parsers_fxcop.py:130`): 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/code_scalpel/code_parsers/csharp_parsers/csharp_parsers_fxcop.py"
},
"evidence": "subprocess.run(",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-002",
"file": "src/code_scalpel/code_parsers/csharp_parsers/csharp_parsers_fxcop.py",
"line": 130
}
},
{
"ruleId": "MTC-SRC-002",
"title": "Shell/command execution in server code (src/code_scalpel/code_parsers/go_parsers/go_parsers_gofmt.py)",
"category": "permissions",
"severity": "high",
"confidence": "strong",
"description": "In the server's implementation (`src/code_scalpel/code_parsers/go_parsers/go_parsers_gofmt.py:60`): 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/code_scalpel/code_parsers/go_parsers/go_parsers_gofmt.py"
},
"evidence": "subprocess.run(",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-002",
"file": "src/code_scalpel/code_parsers/go_parsers/go_parsers_gofmt.py",
"line": 60
}
},
{
"ruleId": "MTC-SRC-005",
"title": "Dynamic module load from a non-literal (src/code_scalpel/ast_tools/import_resolver.py)",
"category": "permissions",
"severity": "medium",
"confidence": "heuristic",
"description": "In the server's implementation (`src/code_scalpel/ast_tools/import_resolver.py:53`): 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/code_scalpel/ast_tools/import_resolver.py"
},
"evidence": "__import__(",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-005",
"file": "src/code_scalpel/ast_tools/import_resolver.py",
"line": 53
}
},
{
"ruleId": "MTC-SRC-005",
"title": "Dynamic module load from a non-literal (src/code_scalpel/cli_tools/tool_bridge.py)",
"category": "permissions",
"severity": "medium",
"confidence": "heuristic",
"description": "In the server's implementation (`src/code_scalpel/cli_tools/tool_bridge.py:132`): 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/code_scalpel/cli_tools/tool_bridge.py"
},
"evidence": "__import__(",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-005",
"file": "src/code_scalpel/cli_tools/tool_bridge.py",
"line": 132
}
},
{
"ruleId": "MTC-SRC-005",
"title": "Dynamic module load from a non-literal (src/code_scalpel/code_parsers/python_parsers/python_parsers_flake8.py)",
"category": "permissions",
"severity": "medium",
"confidence": "heuristic",
"description": "In the server's implementation (`src/code_scalpel/code_parsers/python_parsers/python_parsers_flake8.py:288`): 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/code_scalpel/code_parsers/python_parsers/python_parsers_flake8.py"
},
"evidence": "import(s)",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-005",
"file": "src/code_scalpel/code_parsers/python_parsers/python_parsers_flake8.py",
"line": 288
}
},
{
"ruleId": "MTC-SRC-005",
"title": "Dynamic module load from a non-literal (src/code_scalpel/code_parsers/typescript_parsers/parser.py)",
"category": "permissions",
"severity": "medium",
"confidence": "heuristic",
"description": "In the server's implementation (`src/code_scalpel/code_parsers/typescript_parsers/parser.py:25`): 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/code_scalpel/code_parsers/typescript_parsers/parser.py"
},
"evidence": "import (CodeQL)",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-005",
"file": "src/code_scalpel/code_parsers/typescript_parsers/parser.py",
"line": 25
}
},
{
"ruleId": "MTC-SRC-005",
"title": "Dynamic module load from a non-literal (src/code_scalpel/mcp/models/graph.py)",
"category": "permissions",
"severity": "medium",
"confidence": "heuristic",
"description": "In the server's implementation (`src/code_scalpel/mcp/models/graph.py:533`): 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/code_scalpel/mcp/models/graph.py"
},
"evidence": "import (relative)",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-005",
"file": "src/code_scalpel/mcp/models/graph.py",
"line": 533
}
},
{
"ruleId": "MTC-SRC-005",
"title": "Dynamic module load from a non-literal (src/code_scalpel/polyglot/typescript/parser.py)",
"category": "permissions",
"severity": "medium",
"confidence": "heuristic",
"description": "In the server's implementation (`src/code_scalpel/polyglot/typescript/parser.py:32`): 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/code_scalpel/polyglot/typescript/parser.py"
},
"evidence": "import (CodeQL)",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-005",
"file": "src/code_scalpel/polyglot/typescript/parser.py",
"line": 32
}
},
{
"ruleId": "MTC-SRC-007",
"title": "Unsafe deserialization (src/code_scalpel/cache/ast_cache.py)",
"category": "permissions",
"severity": "medium",
"confidence": "strong",
"description": "In the server's implementation (`src/code_scalpel/cache/ast_cache.py:260`): Deserializing untrusted data with these APIs can execute arbitrary code (a well-known RCE gadget class). 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/code_scalpel/cache/ast_cache.py"
},
"evidence": "pickle.load(",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-007",
"file": "src/code_scalpel/cache/ast_cache.py",
"line": 260
}
},
{
"ruleId": "MTC-SRC-007",
"title": "Unsafe deserialization (src/code_scalpel/cache/unified_cache.py)",
"category": "permissions",
"severity": "medium",
"confidence": "strong",
"description": "In the server's implementation (`src/code_scalpel/cache/unified_cache.py:347`): Deserializing untrusted data with these APIs can execute arbitrary code (a well-known RCE gadget class). 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/code_scalpel/cache/unified_cache.py"
},
"evidence": "pickle.load(",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-007",
"file": "src/code_scalpel/cache/unified_cache.py",
"line": 347
}
},
{
"ruleId": "MTC-SRC-007",
"title": "Unsafe deserialization (src/code_scalpel/code_parsers/python_parsers/python_parsers_bandit.py)",
"category": "permissions",
"severity": "medium",
"confidence": "strong",
"description": "In the server's implementation (`src/code_scalpel/code_parsers/python_parsers/python_parsers_bandit.py:290`): Deserializing untrusted data with these APIs can execute arbitrary code (a well-known RCE gadget class). 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/code_scalpel/code_parsers/python_parsers/python_parsers_bandit.py"
},
"evidence": "pickle.loads(",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-007",
"file": "src/code_scalpel/code_parsers/python_parsers/python_parsers_bandit.py",
"line": 290
}
},
{
"ruleId": "MTC-SRC-007",
"title": "Unsafe deserialization (src/code_scalpel/generators/refactor_simulator.py)",
"category": "permissions",
"severity": "medium",
"confidence": "strong",
"description": "In the server's implementation (`src/code_scalpel/generators/refactor_simulator.py:372`): Deserializing untrusted data with these APIs can execute arbitrary code (a well-known RCE gadget class). 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/code_scalpel/generators/refactor_simulator.py"
},
"evidence": "pickle.loads(",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-007",
"file": "src/code_scalpel/generators/refactor_simulator.py",
"line": 372
}
},
{
"ruleId": "MTC-SRC-007",
"title": "Unsafe deserialization (src/code_scalpel/policy_engine/code_policy_check/patterns.py)",
"category": "permissions",
"severity": "medium",
"confidence": "strong",
"description": "In the server's implementation (`src/code_scalpel/policy_engine/code_policy_check/patterns.py:258`): Deserializing untrusted data with these APIs can execute arbitrary code (a well-known RCE gadget class). 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/code_scalpel/policy_engine/code_policy_check/patterns.py"
},
"evidence": "yaml.load(",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-007",
"file": "src/code_scalpel/policy_engine/code_policy_check/patterns.py",
"line": 258
}
},
{
"ruleId": "MTC-SUP-011",
"title": "Package has no source repository",
"category": "supply-chain",
"severity": "low",
"confidence": "strong",
"description": "\"codescalpel\" declares no repository URL, so its published artifact cannot be compared against reviewable source.",
"remediation": "Prefer packages that link to public, reviewable source.",
"location": {
"kind": "package",
"name": "codescalpel"
}
}
],
"toxicFlows": [],
"capabilities": [],
"surfaceDigest": "b6edc7a83b77718ce425831d943129fdcbbc2120732aa7f8be2dbbde4750460a",
"stats": {
"tools": 0,
"prompts": 0,
"resources": 0,
"findingsBySeverity": {
"critical": 0,
"high": 23,
"medium": 11,
"low": 1,
"info": 0
}
}
}