MCP ScannerCustom audit
All servers

Cigarliu/ssh-mcp-server

A powerful SSH/SFTP MCP server with multi-instance support and intelligent configuration discovery

PublisherCigarliu community
MCP Registrynot listed
Scanned2026-11-25
Scannerv1.3.0
Methodologyv1.2
Stars 14Forks 5Last push 2026-08-21
Go 100.0%by source files the scanner reads
Code safetypartly tracedExposure8.0Prompts10.0Supply chain4.2Secrets10.0Transparency10.0
Analysis confidence93%
How much of the server the scanner could read: tools analyzed, files parsed, limits hit.
Code Safetypartly traced—

Paths from tool input into commands, SQL, files and URLs

Capability Exposure8.0/10Good

How much power the tools give an agent over the machine

Prompt Integritynothing published yet10.0/10

Hidden instructions and poisoning in text for the model

Supply Chain4.2/10Poor

Known vulnerabilities in the packages the server uses

Secrets & Credentialsnothing published yet10.0/10

How the server reads credentials and where they can go

Behavior Transparencynothing published yet10.0/10

Whether the tools do only what their descriptions say

How far the analysis went

The scanner traces each tool from its input to the operations its code performs, and here it could not follow every path. Code Safety is shown as partly traced instead of a score: no finding there is not a clean result. The score of Capability Exposure counts only what it could follow.

  • In 39 places a tool's input is handed to a function whose name matches several definitions in the code; the scanner could not tell which one runs, so it stopped there

Top risks in plain words

  • CRITICAL5 production dependencies have known vulnerabilities (worst: critical).
  • HIGHTool sftp_transfer reads or writes any file path by design: an agent steered by prompt injection can use it that way.

How to use it safely

Practical steps from what we found in this server. They lower the risk; they do not replace a review of the code.

  • Give it only the folder it needs

    sftp_transfer can read or write any file path. Mount a single project folder, read-only where you can.

  • Turn off the tools you do not use

    Most MCP clients let you disable single tools. If you do not need sftp_transfer, switch them off.

  • Give it a narrowly scoped token

    Its code reads credentials or environment variables. Use a key limited to what this server needs, not your main one.

  • Update its vulnerable packages

    Use github.com/modelcontextprotocol/go-sdk 1.4.1 or later, golang.org/x/crypto 0.58.1-0.20261009181718-2f1f834330b2 or later, golang.org/x/mod 0.40.0 or later, golang.org/x/sys 0.44.0 or later and 1 more.

  • Keep confirmations on

    Leave your MCP client's confirmation prompt on for tools that change files, run commands or send data.

What its tools can do on your machine

The server offers 11 tools. When an AI agent calls them, this is what their code can do on the machine where the server runs, as traced in the source. Tools that call code the scanner could not follow may do more.

Read or write filesopen, create, change or delete files
connection_open, sftp_transfer
2 of 11
Connect to the internet or other hostssend requests or open connections
connection_open
1 of 11
Read environment variablesoften where API keys are kept
terminal_open
1 of 11

No tool was seen to: start other programs on the machine; read passwords, tokens or keys; touch sensitive locations.

Where its requests and secrets go

Read from the names along each tool's calls, not from a run: what the code says, not every address it may reach at run time.

Hosts written in the code

The literal addresses the tools' requests name.

  • None: no request names a fixed host.
Addresses from settings

Constants or settings that start an address; the value comes from configuration.

  • None seen.
Secrets it reads

Credential-like environment variables. Give the server a key with the least access it needs.

  • None: no credential-like variable is read by the tools.

1 request address could not be settled from the code (built at run time).

Text it brings in from outside

Text that reaches the model from outside: an instruction hidden in it can steer the agent (prompt injection). Treat what these tools return as data, not as orders.

  • files2 tools · connection_open, sftp_transfer
  • web or API responses1 tool · connection_open

Tool annotations

No tool declares MCP annotations (readOnlyHint, destructiveHint and the rest). Clients use them to decide what to confirm; directories such as Anthropic's and OpenAI's ask for them.

Tools, prompts and resources (11: 11 tools)

Open a row for its full description. Chips show what its code can reach, and which risky capability its own description declares.

sftp_transfertool Upload or download one file on an active SSH connection_id. Confirm both paths before transfer. Existing destination files are preserved unless overwrite=true iFilesoutside textReads/writes files
Upload or download one file on an active SSH connection_id. Confirm both paths before transfer. Existing destination files are preserved unless overwrite=true is explicitly requested; inspect the result before retrying a failed or partial transfer.
connection_closetool Close an active SSH or serial connection by connection_id and close any terminal attached to it. Closing does not delete a saved SSH profile or its durable hist
Close an active SSH or serial connection by connection_id and close any terminal attached to it. Closing does not delete a saved SSH profile or its durable history.
connection_historytool Read durable ssh_exec and terminal_interact history for a saved SSH connection_id. Use it to recover prior work across MCP instances. Results contain the stable
Read durable ssh_exec and terminal_interact history for a saved SSH connection_id. Use it to recover prior work across MCP instances. Results contain the stable ID and description, never the stored target or credentials.
connection_listtool Discover active connections, saved SSH connection IDs with descriptions, and locally available serial ports. Use it when no suitable ID is known. Saved SSH targ
Discover active connections, saved SSH connection IDs with descriptions, and locally available serial ports. Use it when no suitable ID is known. Saved SSH targets, usernames, credentials, and key paths are never returned.
connection_opentool Open an SSH or serial connection. Reopen a saved SSH profile with transport=ssh and its known connection_id only. For a first direct SSH connection, choose a reFilesNetworkoutside text
Open an SSH or serial connection. Reopen a saved SSH profile with transport=ssh and its known connection_id only. For a first direct SSH connection, choose a readable connection_id, add a description, host, username, and exactly one authentication method; the profile is persisted only after success. Returns the stable connection_id and capabilities, never credentials.
sftp_managetool List directories, create directories, or delete a remote path on an active SSH connection_id. Prefer list to inspect a target first. delete is irreversible: req
List directories, create directories, or delete a remote path on an active SSH connection_id. Prefer list to inspect a target first. delete is irreversible: require clear user intent, verify remote_path, and set recursive only when the user explicitly intends subtree removal.
ssh_exectool Run one non-interactive SSH command on an active connection_id. Use it for independent commands; use terminal_open and terminal_interact for stateful, prompt-dr
Run one non-interactive SSH command on an active connection_id. Use it for independent commands; use terminal_open and terminal_interact for stateful, prompt-driven, or full-screen programs. Check exit_code, stderr, and truncated before deciding the next action.
terminal_closetool Close a process-local terminal_id. The SSH connection remains open for ssh_exec; closing a serial terminal also releases its serial port.
Close a process-local terminal_id. The SSH connection remains open for ssh_exec; closing a serial terminal also releases its serial port.
terminal_interacttool Send input and read a terminal stream atomically. Reuse terminal_id, normally use input_mode=line and wait=quiet, and use wait=until only with a known literal.
Send input and read a terminal stream atomically. Reuse terminal_id, normally use input_mode=line and wait=quiet, and use wait=until only with a known literal. Branch on state and stop_reason: continue from next_offset after limit_reached, inspect returned data after timeout, and do not blindly resend input.
terminal_opentool Create or return the process-local terminal_id for an already open connection. Use shell for command-line interaction and tui only for SSH full-screen programs.Env vars
Create or return the process-local terminal_id for an already open connection. Use shell for command-line interaction and tui only for SSH full-screen programs. Reuse the returned terminal_id; close it before changing profiles. Serial supports shell only.
terminal_viewtool Read the projected screen of a terminal opened with profile=tui. Use it only when terminal_open returned screen=true; use terminal_interact for normal shell or
Read the projected screen of a terminal opened with profile=tui. Use it only when terminal_open returned screen=true; use terminal_interact for normal shell or serial output.

Text the model reads (11)

Every tool, prompt and resource description as written in the code: the model sees all of it, the user usually does not.

connection_open tool
Open an SSH or serial connection. Reopen a saved SSH profile with transport=ssh and its known connection_id only. For a first direct SSH connection, choose a readable connection_id, add a description, host, username, and exactly one authentication method; the profile is persisted only after success. Returns the stable connection_id and capabilities, never credentials.
connection_close tool
Close an active SSH or serial connection by connection_id and close any terminal attached to it. Closing does not delete a saved SSH profile or its durable history.
connection_list tool
Discover active connections, saved SSH connection IDs with descriptions, and locally available serial ports. Use it when no suitable ID is known. Saved SSH targets, usernames, credentials, and key paths are never returned.
connection_history tool
Read durable ssh_exec and terminal_interact history for a saved SSH connection_id. Use it to recover prior work across MCP instances. Results contain the stable ID and description, never the stored target or credentials.
terminal_open tool
Create or return the process-local terminal_id for an already open connection. Use shell for command-line interaction and tui only for SSH full-screen programs. Reuse the returned terminal_id; close it before changing profiles. Serial supports shell only.
terminal_interact tool
Send input and read a terminal stream atomically. Reuse terminal_id, normally use input_mode=line and wait=quiet, and use wait=until only with a known literal. Branch on state and stop_reason: continue from next_offset after limit_reached, inspect returned data after timeout, and do not blindly resend input.
terminal_view tool
Read the projected screen of a terminal opened with profile=tui. Use it only when terminal_open returned screen=true; use terminal_interact for normal shell or serial output.
terminal_close tool
Close a process-local terminal_id. The SSH connection remains open for ssh_exec; closing a serial terminal also releases its serial port.
ssh_exec tool
Run one non-interactive SSH command on an active connection_id. Use it for independent commands; use terminal_open and terminal_interact for stateful, prompt-driven, or full-screen programs. Check exit_code, stderr, and truncated before deciding the next action.
sftp_transfer tool
Upload or download one file on an active SSH connection_id. Confirm both paths before transfer. Existing destination files are preserved unless overwrite=true is explicitly requested; inspect the result before retrying a failed or partial transfer.
sftp_manage tool
List directories, create directories, or delete a remote path on an active SSH connection_id. Prefer list to inspect a target first. delete is irreversible: require clear user intent, verify remote_path, and set recursive only when the user explicitly intends subtree removal.

What we checked

The same checks run on every server. Each line below has one of these marks:

FoundA published issue such as a risky tool or a CVE
PassedWe ran the check on this server and found nothing
After reviewChecked; we publish it once a person verifies it
Partly tracedRan, but the scanner could not follow every path to its end
FactWhat the code does, not a judgement either way
Not checkedThe scanner had nothing to read for it, or it needs the live server
Code Safetypartly traced
  • 8 checks: command injection, argument injection, path traversal, server-side request forgery, SQL injection, code execution, unsafe deserialization, template injection
    Checked on every scan. Results in this category are published only after a person has verified them.
Capability Exposure8.0
  • Runs programs the caller chooses
    No tool runs a command or program the caller supplies — 11 tool handlers traced. Not every path could be followed, so this is not a clean pass.
  • Executes caller-supplied code
    No tool evaluates code the caller supplies — 11 tool handlers traced. Not every path could be followed, so this is not a clean pass.
  • Reads or writes any file path HIGH
    4 findings in sftp_transfer
  • Requests any address
    No tool sends a request to an address the caller supplies — 11 tool handlers traced. Not every path could be followed, so this is not a clean pass.
  • Runs caller-supplied SQL
    No tool executes a query the caller supplies — 11 tool handlers traced. Not every path could be followed, so this is not a clean pass.
  • Tools that start processes
    Not seen in the traced code of 11 capabilities; 11 more call code the scanner could not follow, where it may happen
  • Tools that touch files
    2 of 11 capabilities touch files; 9 more call code the scanner could not follow, where it may happen
  • Tools that call the network
    1 of 11 capabilities call the network; 10 more call code the scanner could not follow, where it may happen
Where the code is: 11 handlers in 2 files at commit 1065da200c3c
Prompt Integrity10.0
  • 5 checks: tool poisoning, instruction override, hidden content, exfiltration requests, metadata integrity
    Checked on every scan. Results in this category are published only after a person has verified them.
Supply Chain4.2
  • Dependency manifests
    1 manifest: go.mod
  • Lockfiles checked against OSV
    1 file resolved and checked against the OSV database
  • Known vulnerabilities in production dependencies CRITICAL
    5 production packages with known advisories
  • Known vulnerabilities in other dependencies
    No package used only for development, tests or examples has a known advisory
  • MCP SDK version
    github.com/modelcontextprotocol/go-sdk v1.2.0
Secrets & Credentials10.0
  • 3 checks: credential harvesting, undeclared credential access, credentials sent over the network
    Checked on every scan. Results in this category are published only after a person has verified them.
  • Tools that read credentials
    Not seen in the traced code of 11 capabilities; 11 more call code the scanner could not follow, where it may happen
  • Environment variables
    1 capability reads environment variables (often API keys)
  • Authentication declared
    Not checked: needs the live server's tools/list (a remote server declares how clients authenticate)
Behavior Transparency10.0
  • 3 checks: undeclared network access, undeclared file access, undeclared process execution
    Checked on every scan. Results in this category are published only after a person has verified them.
  • Tool descriptions present
    Every tool has a description the model and the user can read
  • Statically known names
    Every tool's name could be read from the code
  • Input schemas
    Not checked: needs the live server's tools/list (every tool declares an input schema)
  • Destructive tools annotated
    Not checked: needs the live server's tools/list (tools that write, delete or run commands carry destructivehint)

Dependencies with known vulnerabilities (5 in production)

PackageInstalledWorstAdvisoriesFixed in
golang.org/x/cryptoGo v0.46.0 CRITICAL 30 advisories 0.52.00.55.00.56.0+1 more
  • CRITICALGHSA-rm3j-f69w-wqmq CVE-2026-39834 GO-2026-5020golang.org/x/crypto vulnerable to infinite loop on large channel writes
  • CRITICALGHSA-f5wc-c3c7-36mc CVE-2026-39832 GO-2026-5006golang.org/x/crypto doesn't drop invoking agent constraints when forwarding keys
  • CRITICALGHSA-x527-x647-q7gg CVE-2026-46595 GO-2026-5023golang.org/x/crypto: Invoking VerifiedPublicKeyCallback permissions skip enforcement
  • CRITICALGHSA-jppx-rxg9-jmrx CVE-2026-39833 GO-2026-5005golang.org/x/crypto doesn't enforce invoking key constraints
  • CRITICALGHSA-89gr-r52h-f8rx CVE-2026-39831 GO-2026-5019golang.org/x/crypto: FIDO/U2F security key physical presence check can be bypassed
  • CRITICALGHSA-vgwf-h737-ff37 CVE-2026-39830 GO-2026-5017golang.org/x/crypto: Invoking client can cause server deadlock on unexpected responses
  • CRITICALGHSA-5cgq-3rg8-m6cv CVE-2026-42508 GO-2026-5021golang.org/x/crypto vulnerable to auth bypass via unenforced @revoked status
  • HIGHGHSA-w879-237q-wc7r CVE-2026-39829 GO-2026-5018golang.org/x/crypto: Invoking pathological RSA/DSA parameters may cause DoS
  • HIGHGHSA-q4h4-gmj2-qvw2 CVE-2026-46597 GO-2026-5013golang.org/x/crypto: Invoking byte arithmetic causes underflow and panic
  • MEDIUMGO-2026-5013 CVE-2026-46597 GHSA-q4h4-gmj2-qvw2Invoking byte arithmetic causes underflow and panic in golang.org/x/crypto/ssh
  • MEDIUMGO-2026-6355 CVE-2026-56855Prevent DoS on deadlocked established channel in golang.org/x/crypto/ssh
  • MEDIUMGO-2026-5006 CVE-2026-39832 GHSA-f5wc-c3c7-36mcInvoking agent constraints dropped when forwarding keys in golang.org/x/crypto/ssh/agent
  • MEDIUMGO-2026-5021 CVE-2026-42508 GHSA-5cgq-3rg8-m6cvInvoking auth bypass via unenforced @revoked status in golang.org/x/crypto/ssh/knownhosts
  • MEDIUMGHSA-45gg-vh54-h5m9 CVE-2026-39828 GO-2026-5014golang.org/x/crypto vulnerable to invoking bypass of certificate restrictions
  • MEDIUMGO-2026-6354 CVE-2026-78662Prevent DoS on deadlocked undecided channel in golang.org/x/crypto/ssh
  • MEDIUMGHSA-78mq-xcr3-xm33 CVE-2026-39835 GO-2026-5015golang.org/x/crypto is vulnerable to invoking server panic during CheckHostKey/Authenticate flow
  • MEDIUMGO-2026-5033 CVE-2026-46598 GHSA-9m57-25v3-79x9Invoking pathological inputs can lead to client panic in golang.org/x/crypto/ssh/agent
  • MEDIUMGO-2026-5015 CVE-2026-39835 GHSA-78mq-xcr3-xm33Invoking server panic during CheckHostKey/Authenticate in golang.org/x/crypto/ssh
  • MEDIUMGO-2026-5016 CVE-2026-39827 GHSA-qpw4-5x99-6vjpInvoking memory leak when rejecting channels can lead to DoS in golang.org/x/crypto/ssh
  • MEDIUMGO-2026-5023 CVE-2026-46595 GHSA-x527-x647-q7ggInvoking VerifiedPublicKeyCallback permissions skip enforcement in golang.org/x/crypto/ssh
  • MEDIUMGHSA-9m57-25v3-79x9 CVE-2026-46598 GO-2026-5033golang.org/x/crypto: Invoking pathological inputs can lead to client panic
  • MEDIUMGO-2026-5019 CVE-2026-39831 GHSA-89gr-r52h-f8rxInvoking bypass of FIDO/U2F security keys physical interaction in golang.org/x/crypto/ssh
  • MEDIUMGO-2026-5020 CVE-2026-39834 GHSA-rm3j-f69w-wqmqInvoking infinite loop on large channel writes in golang.org/x/crypto/ssh
  • MEDIUMGO-2026-5005 CVE-2026-39833 GHSA-jppx-rxg9-jmrxInvoking key constraints not enforced in golang.org/x/crypto/ssh/agent
  • MEDIUMGO-2026-5017 CVE-2026-39830 GHSA-vgwf-h737-ff37Invoking client can cause server deadlock on unexpected responses in golang.org/x/crypto/ssh
  • MEDIUMGO-2026-5014 CVE-2026-39828 GHSA-45gg-vh54-h5m9Invoking bypass of certificate restrictions in golang.org/x/crypto/ssh
  • MEDIUMGHSA-qpw4-5x99-6vjp CVE-2026-39827 GO-2026-5016golang.org/x/crypto: Invoking memory leak when rejecting channels can lead to DoS
  • MEDIUMGO-2026-6303 CVE-2026-56854Source-address critical option not enforced for non-public-key auth callbacks in golang.org/x/crypto/ssh
  • MEDIUMGO-2026-5932The golang.org/x/crypto/openpgp package is unmaintained, unsafe by design, and has known security issues
  • MEDIUMGO-2026-5018 CVE-2026-39829 GHSA-w879-237q-wc7rInvoking pathological RSA/DSA parameters may cause DoS in golang.org/x/crypto/ssh
github.com/modelcontextprotocol/go-sdkGo v1.2.0 HIGH 8 advisories 1.3.11.4.01.4.1
  • HIGHGHSA-q382-vc8q-7jhj GO-2026-4770Improper handling of null Unicode character when parsing JSON in github.com/modelcontextprotocol/go-sdk
  • HIGHGHSA-89xv-2j6f-qhc8 CVE-2026-33252 GO-2026-4773Cross-Site Tool Execution for HTTP Servers without Authorizatrion in github.com/modelcontextprotocol/go-sdk
  • HIGHGHSA-xw59-hvm2-8pj6 CVE-2026-34742 GO-2026-5771DNS Rebinding Protection Disabled by Default in Model Context Protocol Go SDK for Servers Running on Localhost
  • HIGHGHSA-wvj2-96wp-fq3f CVE-2026-27896 GO-2026-4569MCP Go SDK Vulnerable to Improper Handling of Case Sensitivity
  • MEDIUMGO-2026-4773 CVE-2026-33252 GHSA-89xv-2j6f-qhc8Cross-Site Tool Execution for HTTP Servers without Authorizatrion in github.com/modelcontextprotocol/go-sdk
  • MEDIUMGO-2026-4770 GHSA-q382-vc8q-7jhjImproper handling of null Unicode character when parsing JSON in github.com/modelcontextprotocol/go-sdk
  • MEDIUMGO-2026-4569 CVE-2026-27896 GHSA-wvj2-96wp-fq3fMCP Go SDK Vulnerable to Improper Handling of Case Sensitivity in github.com/modelcontextprotocol/go-sdk
  • MEDIUMGO-2026-5771 CVE-2026-34742 GHSA-xw59-hvm2-8pj6DNS Rebinding Protection Disabled by Default in Model Context Protocol Go SDK for Servers Running on Localhost in github.com/modelcontextprotocol/go-sdk
golang.org/x/modGo v0.30.0 MEDIUM 2 advisories 0.40.0
  • MEDIUMGO-2026-6179 BIT-golang-2026-56865 CVE-2026-56865Fix transparency log tile verification bypass in golang.org/x/mod/sumdb/tlog
  • MEDIUMGO-2026-6180 BIT-golang-2026-56864 CVE-2026-56864Ignore unrelated, unauthenticated hashes in Lookup in golang.org/x/mod/sumdb
golang.org/x/textGo v0.32.0 MEDIUM 2 advisories 0.39.00.41.0
  • MEDIUMGO-2026-5970 CVE-2026-56852Infinite loop on invalid input in golang.org/x/text
  • MEDIUMGO-2026-6629 CVE-2026-56851Panic parsing crafted input in x/text/secure/precis in golang.org/x/text
golang.org/x/sysGo v0.39.0 MEDIUM 1 advisory 0.44.0
  • MEDIUMGO-2026-5024 CVE-2026-39824Invoking integer overflow in NewNTUnicodeString in golang.org/x/sys/windows

Past security advisories

Vulnerabilities published for this server itself, from the GitHub Advisory Database.

No security advisories have been published for this server in the GitHub Advisory Database.

How it runs

Where it runsOn your machine, started by your MCP client from this repository or its package
Transportnot stated in the code the scanner read; most local servers talk over stdio
Sign-innot checked needs the live server
MCP SDKgithub.com/modelcontextprotocol/go-sdk v1.2.0

The project's own security

Security policyyes SECURITY.md
Private reportingmentioned the policy names a private channel
Past advisoriesnone in the GitHub Advisory Database
Last push2026-08-21
Signed releasesnot checked yet

Where it is published

Listed in1 catalog (github_search)
LicenseMIT
Created2026-01-03

Attack map

How the server is built and where its risky tools lead: servers, their tools, what the tools' code can do, and the traced route from a declared risky tool's argument to the operation it reaches. Click a node for details.

Request a scan or an audit

Tell us about your server. We reply within 5 working days.

What do you need? *

We use these details only to answer you.