Guardianshield — 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": "guardianshield",
"source": {
"kind": "package",
"origin": "guardianshield"
},
"server": {
"name": "guardianshield"
}
},
"grade": "F",
"score": {
"score": 0,
"grade": "F",
"band": "F",
"gateCap": "D",
"categorySubtotals": {
"injection": 49.53,
"exfiltration": 40.7,
"permissions": 14.18,
"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-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-007",
"category": "permissions",
"severity": "medium",
"confidence": "strong",
"rawWeight": 9,
"confidenceMult": 0.7,
"diminishingFactor": 0.1,
"appliedPenalty": 0.63
},
{
"ruleId": "MTC-SRC-008",
"category": "exfiltration",
"severity": "high",
"confidence": "confirmed",
"rawWeight": 22,
"confidenceMult": 1,
"diminishingFactor": 1,
"appliedPenalty": 22
},
{
"ruleId": "MTC-SRC-008",
"category": "exfiltration",
"severity": "high",
"confidence": "confirmed",
"rawWeight": 22,
"confidenceMult": 1,
"diminishingFactor": 0.5,
"appliedPenalty": 11
},
{
"ruleId": "MTC-SRC-008",
"category": "exfiltration",
"severity": "high",
"confidence": "confirmed",
"rawWeight": 22,
"confidenceMult": 1,
"diminishingFactor": 0.25,
"appliedPenalty": 5.5
},
{
"ruleId": "MTC-SRC-008",
"category": "exfiltration",
"severity": "high",
"confidence": "confirmed",
"rawWeight": 22,
"confidenceMult": 1,
"diminishingFactor": 0.1,
"appliedPenalty": 2.2
},
{
"ruleId": "MTC-SRC-009",
"category": "injection",
"severity": "medium",
"confidence": "strong",
"rawWeight": 9,
"confidenceMult": 0.7,
"diminishingFactor": 1,
"appliedPenalty": 6.3
},
{
"ruleId": "MTC-SRC-009",
"category": "injection",
"severity": "medium",
"confidence": "strong",
"rawWeight": 9,
"confidenceMult": 0.7,
"diminishingFactor": 0.5,
"appliedPenalty": 3.15
},
{
"ruleId": "MTC-SRC-009",
"category": "injection",
"severity": "medium",
"confidence": "strong",
"rawWeight": 9,
"confidenceMult": 0.7,
"diminishingFactor": 0.25,
"appliedPenalty": 1.58
},
{
"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-011",
"category": "injection",
"severity": "high",
"confidence": "strong",
"rawWeight": 22,
"confidenceMult": 0.7,
"diminishingFactor": 1,
"appliedPenalty": 15.4
},
{
"ruleId": "MTC-SUP-011",
"category": "supply-chain",
"severity": "low",
"confidence": "strong",
"rawWeight": 3,
"confidenceMult": 0.7,
"diminishingFactor": 1,
"appliedPenalty": 2.1
}
],
"gatesFired": [
"4 confirmed high findings → grade capped at D"
],
"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-008",
"title": "Hardcoded AWS access key id in server code (tests/test_core.py)",
"category": "exfiltration",
"severity": "high",
"confidence": "confirmed",
"description": "A live-looking AWS access key id is hardcoded in `tests/test_core.py:43`. Secrets in source ship to everyone who installs the package and are a direct credential leak.",
"remediation": "Remove the secret, rotate it, and load credentials from the environment or a secret store.",
"location": {
"kind": "server",
"name": "tests/test_core.py"
},
"evidence": "AWS access key id: AKIA…(redacted)",
"owasp": "LLM02:2025 Sensitive Information Disclosure",
"data": {
"secretType": "aws-access-key",
"file": "tests/test_core.py",
"line": 43
}
},
{
"ruleId": "MTC-SRC-008",
"title": "Hardcoded AWS access key id in server code (tests/test_mcp_server.py)",
"category": "exfiltration",
"severity": "high",
"confidence": "confirmed",
"description": "A live-looking AWS access key id is hardcoded in `tests/test_mcp_server.py:158`. Secrets in source ship to everyone who installs the package and are a direct credential leak.",
"remediation": "Remove the secret, rotate it, and load credentials from the environment or a secret store.",
"location": {
"kind": "server",
"name": "tests/test_mcp_server.py"
},
"evidence": "AWS access key id: AKIA…(redacted)",
"owasp": "LLM02:2025 Sensitive Information Disclosure",
"data": {
"secretType": "aws-access-key",
"file": "tests/test_mcp_server.py",
"line": 158
}
},
{
"ruleId": "MTC-SRC-008",
"title": "Hardcoded AWS access key id in server code (tests/test_phase1a_ranges.py)",
"category": "exfiltration",
"severity": "high",
"confidence": "confirmed",
"description": "A live-looking AWS access key id is hardcoded in `tests/test_phase1a_ranges.py:145`. Secrets in source ship to everyone who installs the package and are a direct credential leak.",
"remediation": "Remove the secret, rotate it, and load credentials from the environment or a secret store.",
"location": {
"kind": "server",
"name": "tests/test_phase1a_ranges.py"
},
"evidence": "AWS access key id: AKIA…(redacted)",
"owasp": "LLM02:2025 Sensitive Information Disclosure",
"data": {
"secretType": "aws-access-key",
"file": "tests/test_phase1a_ranges.py",
"line": 145
}
},
{
"ruleId": "MTC-SRC-008",
"title": "Hardcoded AWS access key id in server code (tests/test_secrets.py)",
"category": "exfiltration",
"severity": "high",
"confidence": "confirmed",
"description": "A live-looking AWS access key id is hardcoded in `tests/test_secrets.py:11`. Secrets in source ship to everyone who installs the package and are a direct credential leak.",
"remediation": "Remove the secret, rotate it, and load credentials from the environment or a secret store.",
"location": {
"kind": "server",
"name": "tests/test_secrets.py"
},
"evidence": "AWS access key id: AKIA…(redacted)",
"owasp": "LLM02:2025 Sensitive Information Disclosure",
"data": {
"secretType": "aws-access-key",
"file": "tests/test_secrets.py",
"line": 11
}
},
{
"ruleId": "MTC-SRC-010",
"title": "Dynamic evaluation of a non-literal value (src/guardianshield/patterns/common.py)",
"category": "injection",
"severity": "high",
"confidence": "strong",
"description": "In the server's implementation (`src/guardianshield/patterns/common.py:67`): 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/guardianshield/patterns/common.py"
},
"evidence": "eval(",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-010",
"file": "src/guardianshield/patterns/common.py",
"line": 67
}
},
{
"ruleId": "MTC-SRC-010",
"title": "Dynamic evaluation of a non-literal value (src/guardianshield/patterns/php.py)",
"category": "injection",
"severity": "high",
"confidence": "strong",
"description": "In the server's implementation (`src/guardianshield/patterns/php.py:342`): 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/guardianshield/patterns/php.py"
},
"evidence": "eval(",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-010",
"file": "src/guardianshield/patterns/php.py",
"line": 342
}
},
{
"ruleId": "MTC-SRC-011",
"title": "Assembled command execution and dynamic evaluation in the same server",
"category": "injection",
"severity": "high",
"confidence": "strong",
"description": "The implementation builds shell commands out of runtime values AND evaluates runtime values as code. Each is a separate arbitrary-execution primitive; a server exposing both gives anything that reaches either one a direct path to running attacker-chosen code.",
"remediation": "Remove the dynamic eval, and pass command arguments as an argv array instead of building a shell string. If both are genuinely required, constrain and validate every value that can reach them.",
"location": {
"kind": "server",
"name": "implementation"
},
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rules": [
"MTC-SRC-009",
"MTC-SRC-010"
]
}
},
{
"ruleId": "MTC-SRC-001",
"title": "Dynamic code execution in server code (src/guardianshield/patterns/common.py)",
"category": "permissions",
"severity": "high",
"confidence": "strong",
"description": "In the server's implementation (`src/guardianshield/patterns/common.py:39`): 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/guardianshield/patterns/common.py"
},
"evidence": "eval(",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-001",
"file": "src/guardianshield/patterns/common.py",
"line": 39
}
},
{
"ruleId": "MTC-SRC-001",
"title": "Dynamic code execution in server code (src/guardianshield/patterns/javascript.py)",
"category": "permissions",
"severity": "high",
"confidence": "strong",
"description": "In the server's implementation (`src/guardianshield/patterns/javascript.py:95`): 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/guardianshield/patterns/javascript.py"
},
"evidence": "new Function(",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-001",
"file": "src/guardianshield/patterns/javascript.py",
"line": 95
}
},
{
"ruleId": "MTC-SRC-001",
"title": "Dynamic code execution in server code (src/guardianshield/patterns/php.py)",
"category": "permissions",
"severity": "high",
"confidence": "strong",
"description": "In the server's implementation (`src/guardianshield/patterns/php.py:137`): 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/guardianshield/patterns/php.py"
},
"evidence": "eval(",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-001",
"file": "src/guardianshield/patterns/php.py",
"line": 137
}
},
{
"ruleId": "MTC-SRC-001",
"title": "Dynamic code execution in server code (src/guardianshield/triage.py)",
"category": "permissions",
"severity": "high",
"confidence": "strong",
"description": "In the server's implementation (`src/guardianshield/triage.py:217`): 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/guardianshield/triage.py"
},
"evidence": "eval(",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-001",
"file": "src/guardianshield/triage.py",
"line": 217
}
},
{
"ruleId": "MTC-SRC-001",
"title": "Dynamic code execution in server code (tests/test_deep_engine.py)",
"category": "permissions",
"severity": "high",
"confidence": "strong",
"description": "In the server's implementation (`tests/test_deep_engine.py:57`): 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_deep_engine.py"
},
"evidence": "eval(",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-001",
"file": "tests/test_deep_engine.py",
"line": 57
}
},
{
"ruleId": "MTC-SRC-001",
"title": "Dynamic code execution in server code (tests/test_diff.py)",
"category": "permissions",
"severity": "high",
"confidence": "strong",
"description": "In the server's implementation (`tests/test_diff.py:89`): 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_diff.py"
},
"evidence": "eval(",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-001",
"file": "tests/test_diff.py",
"line": 89
}
},
{
"ruleId": "MTC-SRC-001",
"title": "Dynamic code execution in server code (tests/test_engines.py)",
"category": "permissions",
"severity": "high",
"confidence": "strong",
"description": "In the server's implementation (`tests/test_engines.py:21`): 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_engines.py"
},
"evidence": "eval(",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-001",
"file": "tests/test_engines.py",
"line": 21
}
},
{
"ruleId": "MTC-SRC-001",
"title": "Dynamic code execution in server code (tests/test_mcp_server.py)",
"category": "permissions",
"severity": "high",
"confidence": "strong",
"description": "In the server's implementation (`tests/test_mcp_server.py:438`): 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_mcp_server.py"
},
"evidence": "eval(",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-001",
"file": "tests/test_mcp_server.py",
"line": 438
}
},
{
"ruleId": "MTC-SRC-001",
"title": "Dynamic code execution in server code (tests/test_patterns.py)",
"category": "permissions",
"severity": "high",
"confidence": "strong",
"description": "In the server's implementation (`tests/test_patterns.py:155`): 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_patterns.py"
},
"evidence": "new Function(",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-001",
"file": "tests/test_patterns.py",
"line": 155
}
},
{
"ruleId": "MTC-SRC-001",
"title": "Dynamic code execution in server code (tests/test_patterns_php.py)",
"category": "permissions",
"severity": "high",
"confidence": "strong",
"description": "In the server's implementation (`tests/test_patterns_php.py:231`): 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_patterns_php.py"
},
"evidence": "eval(",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-001",
"file": "tests/test_patterns_php.py",
"line": 231
}
},
{
"ruleId": "MTC-SRC-002",
"title": "Shell/command execution in server code (src/guardianshield/deep_engine.py)",
"category": "permissions",
"severity": "high",
"confidence": "strong",
"description": "In the server's implementation (`src/guardianshield/deep_engine.py:302`): 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/guardianshield/deep_engine.py"
},
"evidence": "exec(",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-002",
"file": "src/guardianshield/deep_engine.py",
"line": 302
}
},
{
"ruleId": "MTC-SRC-002",
"title": "Shell/command execution in server code (src/guardianshield/patterns/javascript.py)",
"category": "permissions",
"severity": "high",
"confidence": "strong",
"description": "In the server's implementation (`src/guardianshield/patterns/javascript.py:27`): 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/guardianshield/patterns/javascript.py"
},
"evidence": "child_process",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-002",
"file": "src/guardianshield/patterns/javascript.py",
"line": 27
}
},
{
"ruleId": "MTC-SRC-002",
"title": "Shell/command execution in server code (src/guardianshield/patterns/python.py)",
"category": "permissions",
"severity": "high",
"confidence": "strong",
"description": "In the server's implementation (`src/guardianshield/patterns/python.py:107`): 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/guardianshield/patterns/python.py"
},
"evidence": "os.system(",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-002",
"file": "src/guardianshield/patterns/python.py",
"line": 107
}
},
{
"ruleId": "MTC-SRC-002",
"title": "Shell/command execution in server code (src/guardianshield/triage.py)",
"category": "permissions",
"severity": "high",
"confidence": "strong",
"description": "In the server's implementation (`src/guardianshield/triage.py:137`): 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/guardianshield/triage.py"
},
"evidence": "shell=True",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-002",
"file": "src/guardianshield/triage.py",
"line": 137
}
},
{
"ruleId": "MTC-SRC-002",
"title": "Shell/command execution in server code (tests/test_core.py)",
"category": "permissions",
"severity": "high",
"confidence": "strong",
"description": "In the server's implementation (`tests/test_core.py:51`): 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_core.py"
},
"evidence": "os.system(",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-002",
"file": "tests/test_core.py",
"line": 51
}
},
{
"ruleId": "MTC-SRC-002",
"title": "Shell/command execution in server code (tests/test_deep_engine.py)",
"category": "permissions",
"severity": "high",
"confidence": "strong",
"description": "In the server's implementation (`tests/test_deep_engine.py:63`): 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_deep_engine.py"
},
"evidence": "os.system(",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-002",
"file": "tests/test_deep_engine.py",
"line": 63
}
},
{
"ruleId": "MTC-SRC-002",
"title": "Shell/command execution in server code (tests/test_diff.py)",
"category": "permissions",
"severity": "high",
"confidence": "strong",
"description": "In the server's implementation (`tests/test_diff.py:20`): 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_diff.py"
},
"evidence": "subprocess.call(",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-002",
"file": "tests/test_diff.py",
"line": 20
}
},
{
"ruleId": "MTC-SRC-002",
"title": "Shell/command execution in server code (tests/test_patterns.py)",
"category": "permissions",
"severity": "high",
"confidence": "strong",
"description": "In the server's implementation (`tests/test_patterns.py:127`): 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_patterns.py"
},
"evidence": "os.system(",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-002",
"file": "tests/test_patterns.py",
"line": 127
}
},
{
"ruleId": "MTC-SRC-002",
"title": "Shell/command execution in server code (tests/test_patterns_go.py)",
"category": "permissions",
"severity": "high",
"confidence": "strong",
"description": "In the server's implementation (`tests/test_patterns_go.py:498`): 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_patterns_go.py"
},
"evidence": "subprocess.call(",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-002",
"file": "tests/test_patterns_go.py",
"line": 498
}
},
{
"ruleId": "MTC-SRC-002",
"title": "Shell/command execution in server code (tests/test_patterns_ruby.py)",
"category": "permissions",
"severity": "high",
"confidence": "strong",
"description": "In the server's implementation (`tests/test_patterns_ruby.py:179`): 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_patterns_ruby.py"
},
"evidence": "exec(",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-002",
"file": "tests/test_patterns_ruby.py",
"line": 179
}
},
{
"ruleId": "MTC-SRC-009",
"title": "Untrusted input concatenated into a command sink (src/guardianshield/patterns/java.py)",
"category": "injection",
"severity": "medium",
"confidence": "strong",
"description": "In the server's implementation (`src/guardianshield/patterns/java.py:266`): A shell/process command assembled from concatenated or interpolated values is command injection when any part is attacker-influenced — the OWASP canonical RCE flow. Verify what reaches the interpolated value. 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/guardianshield/patterns/java.py"
},
"evidence": "exec(\"cmd \" +",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-009",
"file": "src/guardianshield/patterns/java.py",
"line": 266
}
},
{
"ruleId": "MTC-SRC-009",
"title": "Untrusted input concatenated into a command sink (src/guardianshield/patterns/javascript.py)",
"category": "injection",
"severity": "medium",
"confidence": "strong",
"description": "In the server's implementation (`src/guardianshield/patterns/javascript.py:102`): A shell/process command assembled from concatenated or interpolated values is command injection when any part is attacker-influenced — the OWASP canonical RCE flow. Verify what reaches the interpolated value. 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/guardianshield/patterns/javascript.py"
},
"evidence": "exec('ls ' +",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-009",
"file": "src/guardianshield/patterns/javascript.py",
"line": 102
}
},
{
"ruleId": "MTC-SRC-009",
"title": "Untrusted input concatenated into a command sink (src/guardianshield/patterns/python.py)",
"category": "injection",
"severity": "medium",
"confidence": "strong",
"description": "In the server's implementation (`src/guardianshield/patterns/python.py:234`): A shell/process command assembled from concatenated or interpolated values is command injection when any part is attacker-influenced — the OWASP canonical RCE flow. Verify what reaches the interpolated value. 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/guardianshield/patterns/python.py"
},
"evidence": "system('ls ' +",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-009",
"file": "src/guardianshield/patterns/python.py",
"line": 234
}
},
{
"ruleId": "MTC-SRC-007",
"title": "Unsafe deserialization (src/guardianshield/patterns/php.py)",
"category": "permissions",
"severity": "medium",
"confidence": "strong",
"description": "In the server's implementation (`src/guardianshield/patterns/php.py:206`): 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/guardianshield/patterns/php.py"
},
"evidence": "unserialize(",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-007",
"file": "src/guardianshield/patterns/php.py",
"line": 206
}
},
{
"ruleId": "MTC-SRC-007",
"title": "Unsafe deserialization (src/guardianshield/patterns/python.py)",
"category": "permissions",
"severity": "medium",
"confidence": "strong",
"description": "In the server's implementation (`src/guardianshield/patterns/python.py:162`): 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/guardianshield/patterns/python.py"
},
"evidence": "pickle.load(",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-007",
"file": "src/guardianshield/patterns/python.py",
"line": 162
}
},
{
"ruleId": "MTC-SRC-007",
"title": "Unsafe deserialization (src/guardianshield/triage.py)",
"category": "permissions",
"severity": "medium",
"confidence": "strong",
"description": "In the server's implementation (`src/guardianshield/triage.py:217`): 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/guardianshield/triage.py"
},
"evidence": "pickle.loads(",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-007",
"file": "src/guardianshield/triage.py",
"line": 217
}
},
{
"ruleId": "MTC-SRC-007",
"title": "Unsafe deserialization (tests/test_patterns.py)",
"category": "permissions",
"severity": "medium",
"confidence": "strong",
"description": "In the server's implementation (`tests/test_patterns.py:133`): 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": "tests/test_patterns.py"
},
"evidence": "pickle.loads(",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-007",
"file": "tests/test_patterns.py",
"line": 133
}
},
{
"ruleId": "MTC-SRC-007",
"title": "Unsafe deserialization (tests/test_patterns_php.py)",
"category": "permissions",
"severity": "medium",
"confidence": "strong",
"description": "In the server's implementation (`tests/test_patterns_php.py:345`): 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": "tests/test_patterns_php.py"
},
"evidence": "unserialize(",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-007",
"file": "tests/test_patterns_php.py",
"line": 345
}
},
{
"ruleId": "MTC-SRC-007",
"title": "Unsafe deserialization (tests/test_phase1a_ranges.py)",
"category": "permissions",
"severity": "medium",
"confidence": "strong",
"description": "In the server's implementation (`tests/test_phase1a_ranges.py:54`): 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": "tests/test_phase1a_ranges.py"
},
"evidence": "pickle.loads(",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-007",
"file": "tests/test_phase1a_ranges.py",
"line": 54
}
},
{
"ruleId": "MTC-SRC-007",
"title": "Unsafe deserialization (tests/test_remediation.py)",
"category": "permissions",
"severity": "medium",
"confidence": "strong",
"description": "In the server's implementation (`tests/test_remediation.py:129`): 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": "tests/test_remediation.py"
},
"evidence": "pickle.loads(",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-007",
"file": "tests/test_remediation.py",
"line": 129
}
},
{
"ruleId": "MTC-SRC-007",
"title": "Unsafe deserialization (tests/test_scanner.py)",
"category": "permissions",
"severity": "medium",
"confidence": "strong",
"description": "In the server's implementation (`tests/test_scanner.py:214`): 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": "tests/test_scanner.py"
},
"evidence": "pickle.loads(",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-007",
"file": "tests/test_scanner.py",
"line": 214
}
},
{
"ruleId": "MTC-SUP-011",
"title": "Package has no source repository",
"category": "supply-chain",
"severity": "low",
"confidence": "strong",
"description": "\"guardianshield\" 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": "guardianshield"
}
},
{
"ruleId": "MTC-SUP-012",
"title": "Package has no license",
"category": "hygiene",
"severity": "info",
"confidence": "strong",
"description": "\"guardianshield\" has no declared license. This is a legal/reuse concern, not a security finding.",
"location": {
"kind": "package",
"name": "guardianshield"
}
}
],
"toxicFlows": [],
"capabilities": [],
"surfaceDigest": "26cd136c46fc334f1317c1d198586e3f7a48c9c09b0e459806f01d9481d277e6",
"stats": {
"tools": 0,
"prompts": 0,
"resources": 0,
"findingsBySeverity": {
"critical": 0,
"high": 27,
"medium": 11,
"low": 1,
"info": 1
}
}
}