Agent Ssh — 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": "agent-ssh",
"source": {
"kind": "package",
"origin": "agent-ssh"
},
"server": {
"name": "agent-ssh"
}
},
"grade": "B",
"score": {
"score": 86,
"threatScore": 98,
"grade": "B",
"band": "B",
"categorySubtotals": {
"injection": 1.8,
"exfiltration": 0,
"permissions": 0,
"supply-chain": 0,
"network": 0,
"hygiene": 0
},
"vector": [
{
"kind": "threat",
"ruleId": "MTC-INJ-TARGET-1",
"category": "injection",
"severity": "low",
"confidence": "heuristic",
"rawWeight": 3,
"confidenceMult": 0.4,
"diminishingFactor": 1,
"appliedPenalty": 1.2
},
{
"kind": "threat",
"ruleId": "MTC-INJ-TARGET-1",
"category": "injection",
"severity": "low",
"confidence": "heuristic",
"rawWeight": 3,
"confidenceMult": 0.4,
"diminishingFactor": 0.5,
"appliedPenalty": 0.6
},
{
"kind": "client",
"term": "capability-exposure",
"level": "critical",
"label": "capability blast radius (critical) — client exposure if the model is manipulated",
"appliedPenalty": 10
},
{
"kind": "client",
"term": "verification-discount",
"level": "none",
"label": "publisher verification (unlinked) — no provenance/repo link, but the shipped source was fully read",
"appliedPenalty": 2
},
{
"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": "critical",
"reasons": [
"ingests untrusted external content (a prompt-injection entry point)",
"can send data / act on an external service",
"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",
"untrusted-input, sensitive-source and egress co-exist across tools (toxic-flow surface)",
"untrusted input can reach code execution"
],
"tags": [
"sensitive-source",
"code-exec",
"file-write",
"external-sink",
"untrusted-input"
]
},
"coverage": {
"level": "source",
"inputs": {
"toolSurface": true,
"implementationSource": true,
"packageMetadata": true,
"liveTransport": false
},
"caveats": [
"Tools were statically extracted from the published source (12 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-002",
"title": "Completed toxic-flow trifecta across tools",
"category": "exfiltration",
"severity": "critical",
"confidence": "strong",
"description": "This server (without client built-ins) exposes a complete data-exfiltration chain: ssh_download_directory → ssh_execute_command → ssh_upload_file. Untrusted input is ingested, private data is read, and it can be sent to an external sink via the agent composing the tools (→). Static analysis proves the primitive exists, not that a specific run will occur.",
"remediation": "Remove one leg of the trifecta: isolate untrusted-input tools from secret-reading tools and from egress tools, or require human approval between them.",
"location": {
"kind": "flow",
"name": "ssh_download_directory → ssh_execute_command → ssh_upload_file"
},
"owasp": "LLM02:2025 Sensitive Information Disclosure",
"references": [],
"data": {
"untrusted": [
"ssh_download_file",
"ssh_download_directory"
],
"sources": [
"ssh_execute_command",
"ssh_read_file"
],
"sinks": [
"ssh_execute_command",
"ssh_upload_file"
],
"path": [
"ssh_download_directory",
"ssh_execute_command",
"ssh_upload_file"
],
"edges": [
{
"from": "ssh_download_directory",
"to": "ssh_execute_command",
"kind": "agent-mediated"
},
{
"from": "ssh_execute_command",
"to": "ssh_upload_file",
"kind": "agent-mediated"
}
],
"wired": false
}
},
{
"ruleId": "MTC-FLOW-003",
"title": "Read-and-egress in one tool: \"ssh_execute_command\"",
"category": "exfiltration",
"severity": "high",
"confidence": "strong",
"description": "Tool \"ssh_execute_command\" can both read sensitive data and send data to an external destination. Even without an explicit untrusted-input leg, this is a single-call data-exfiltration path if the model is ever manipulated.",
"remediation": "Separate reading from sending; require explicit user confirmation before egress of file/secret contents.",
"location": {
"kind": "flow",
"name": "ssh_execute_command"
},
"owasp": "LLM02:2025 Sensitive Information Disclosure",
"references": [],
"data": {
"tags": [
"sensitive-source",
"code-exec"
]
}
},
{
"ruleId": "MTC-SRC-006",
"title": "Reads a sensitive credential path or dumps the environment (dist/tools/executeCommand.js)",
"category": "exfiltration",
"severity": "high",
"confidence": "strong",
"description": "In the server's implementation (`dist/tools/executeCommand.js:96`): Reading private keys / cloud credentials, or serializing the whole environment, is a sensitive-data source that becomes exfiltration when combined with any egress. 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": "dist/tools/executeCommand.js"
},
"evidence": "ateKey=\"/home/user/.ssh/id_rsa\" Error Handling: - Returns \"Error: Authentication failed\" if credentials are incorr",
"owasp": "LLM02:2025 Sensitive Information Disclosure",
"data": {
"rule": "MTC-SRC-006",
"file": "dist/tools/executeCommand.js",
"line": 96,
"nonRuntime": false
}
},
{
"ruleId": "MTC-SRC-006",
"title": "Reads a sensitive credential path or dumps the environment (dist/tools/fileTransfer.js)",
"category": "exfiltration",
"severity": "high",
"confidence": "strong",
"description": "In the server's implementation (`dist/tools/fileTransfer.js:115`): Reading private keys / cloud credentials, or serializing the whole environment, is a sensitive-data source that becomes exfiltration when combined with any egress. 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": "dist/tools/fileTransfer.js"
},
"evidence": "ateKey=\"/home/user/.ssh/id_rsa\" Error Handling: - Returns \"Error: Local file does not exist\" if the local file pat",
"owasp": "LLM02:2025 Sensitive Information Disclosure",
"data": {
"rule": "MTC-SRC-006",
"file": "dist/tools/fileTransfer.js",
"line": 115,
"nonRuntime": false
}
},
{
"ruleId": "MTC-CAP-001",
"title": "Tool \"ssh_execute_command\" exposes command/code execution",
"category": "permissions",
"severity": "high",
"confidence": "strong",
"description": "Tool \"ssh_execute_command\" appears to run shell commands or evaluate code (keyword \"execute command\" 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": "ssh_execute_command"
},
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"tags": [
"sensitive-source",
"code-exec"
]
}
},
{
"ruleId": "MTC-CAP-002",
"title": "Tool \"ssh_write_file\" can modify the filesystem",
"category": "permissions",
"severity": "medium",
"confidence": "strong",
"description": "Tool \"ssh_write_file\" can write, overwrite or delete files (keyword \"write_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": "ssh_write_file"
},
"data": {
"tags": [
"file-write"
]
}
},
{
"ruleId": "MTC-CAP-002",
"title": "Tool \"ssh_edit_file\" can modify the filesystem",
"category": "permissions",
"severity": "medium",
"confidence": "strong",
"description": "Tool \"ssh_edit_file\" can write, overwrite or delete files (keyword \"edit_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": "ssh_edit_file"
},
"data": {
"tags": [
"file-write"
]
}
},
{
"ruleId": "MTC-CAP-005",
"title": "Mutating tool \"ssh_execute_command\" declares no destructiveHint",
"category": "hygiene",
"severity": "low",
"confidence": "heuristic",
"description": "Tool \"ssh_execute_command\" 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": "ssh_execute_command"
},
"data": {
"tags": [
"sensitive-source",
"code-exec"
]
}
},
{
"ruleId": "MTC-CAP-005",
"title": "Mutating tool \"ssh_write_file\" declares no destructiveHint",
"category": "hygiene",
"severity": "low",
"confidence": "heuristic",
"description": "Tool \"ssh_write_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": "ssh_write_file"
},
"data": {
"tags": [
"file-write"
]
}
},
{
"ruleId": "MTC-CAP-005",
"title": "Mutating tool \"ssh_edit_file\" declares no destructiveHint",
"category": "hygiene",
"severity": "low",
"confidence": "heuristic",
"description": "Tool \"ssh_edit_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": "ssh_edit_file"
},
"data": {
"tags": [
"file-write"
]
}
},
{
"ruleId": "MTC-INJ-TARGET-1",
"title": "Reference to a credential-exfiltration path in metadata",
"category": "injection",
"severity": "low",
"confidence": "heuristic",
"description": "Reference to a credential-exfiltration path in metadata detected in the description of tool \"ssh_execute_command\". Instruction-like content in tool metadata is executed by the model, not the human, and is the primary tool-poisoning vector.",
"remediation": "Tool descriptions should describe behavior, not instruct the assistant. Treat imperative / secrecy / sequencing language in metadata as hostile.",
"location": {
"kind": "tool",
"name": "ssh_execute_command",
"field": "description"
},
"evidence": "id_rsa",
"owasp": "LLM01:2025 Prompt Injection",
"data": {
"kind": "sensitive-target"
}
},
{
"ruleId": "MTC-INJ-TARGET-1",
"title": "Reference to a credential-exfiltration path in metadata",
"category": "injection",
"severity": "low",
"confidence": "heuristic",
"description": "Reference to a credential-exfiltration path in metadata detected in the description of tool \"ssh_upload_file\". Instruction-like content in tool metadata is executed by the model, not the human, and is the primary tool-poisoning vector.",
"remediation": "Tool descriptions should describe behavior, not instruct the assistant. Treat imperative / secrecy / sequencing language in metadata as hostile.",
"location": {
"kind": "tool",
"name": "ssh_upload_file",
"field": "description"
},
"evidence": "id_rsa",
"owasp": "LLM01:2025 Prompt Injection",
"data": {
"kind": "sensitive-target"
}
},
{
"ruleId": "MTC-SUP-011",
"title": "Package declares no source repository",
"category": "supply-chain",
"severity": "info",
"confidence": "strong",
"description": "\"agent-ssh\" 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": "agent-ssh"
}
}
],
"toxicFlows": [
{
"id": "flow-1",
"severity": "critical",
"confidence": "strong",
"untrustedInput": [
"ssh_download_file",
"ssh_download_directory"
],
"sensitiveSource": [
"ssh_execute_command",
"ssh_read_file"
],
"externalSink": [
"ssh_execute_command",
"ssh_upload_file"
],
"selfContained": false,
"path": [
"ssh_download_directory",
"ssh_execute_command",
"ssh_upload_file"
],
"pathWired": false,
"description": "A cross-tool exfiltration chain exists: ssh_download_directory → ssh_execute_command → ssh_upload_file."
},
{
"id": "flow-2",
"severity": "high",
"confidence": "strong",
"untrustedInput": [],
"sensitiveSource": [
"ssh_execute_command"
],
"externalSink": [
"ssh_execute_command"
],
"selfContained": true,
"description": "Tool \"ssh_execute_command\" both reads sensitive data and can send it externally."
}
],
"capabilities": [
{
"tool": "ssh_execute_command",
"tags": [
"sensitive-source",
"code-exec"
],
"reasons": {
"sensitive-source": [
"keyword \"list_files\""
],
"code-exec": [
"keyword \"execute command\" in tool name"
]
}
},
{
"tool": "ssh_read_file",
"tags": [
"sensitive-source"
],
"reasons": {
"sensitive-source": [
"keyword \"read_file\""
]
}
},
{
"tool": "ssh_write_file",
"tags": [
"file-write"
],
"reasons": {
"file-write": [
"keyword \"write_file\" in tool name"
]
}
},
{
"tool": "ssh_edit_file",
"tags": [
"file-write"
],
"reasons": {
"file-write": [
"keyword \"edit_file\" in tool name"
]
}
},
{
"tool": "ssh_upload_file",
"tags": [
"external-sink"
],
"reasons": {
"external-sink": [
"keyword \"upload_file\""
]
}
},
{
"tool": "ssh_download_file",
"tags": [
"untrusted-input"
],
"reasons": {
"untrusted-input": [
"keyword \"download\""
]
}
},
{
"tool": "ssh_upload_directory",
"tags": [],
"reasons": {}
},
{
"tool": "ssh_download_directory",
"tags": [
"untrusted-input"
],
"reasons": {
"untrusted-input": [
"keyword \"download\""
]
}
},
{
"tool": "ssh_list_servers",
"tags": [],
"reasons": {}
},
{
"tool": "ssh_find_files",
"tags": [],
"reasons": {}
},
{
"tool": "ssh_grep",
"tags": [],
"reasons": {}
},
{
"tool": "ssh_list_dir",
"tags": [],
"reasons": {}
}
],
"surfaceDigest": "82b4f87d5cab62c89fe80a40b82454d3557b724a4ad3f4e607fd89bcad6e22dd",
"stats": {
"tools": 12,
"prompts": 0,
"resources": 0,
"findingsBySeverity": {
"critical": 1,
"high": 4,
"medium": 2,
"low": 5,
"info": 1
}
}
}