mcp-ssh-gateway@7.0.0
CAUTION· not startedPublisher claims: "MCP server that gives an AI agent real SSH terminals: sessions that return the moment a command ends, scrollable output, prompt and question detection, Keenetic router CLI support." Observed in sandbox: no network, touches nothing outside the project, writes no memory.
Coverage
Not started: dependency install failed; the server itself was not observed.- Tested
- the dependency install step · every file read, file written and host contacted by what ran
- Not tested
- server startup · the tool list · tool behavior
What this means for the label: Caution here covers what ran. The server's tools were not exercised with a real credential, so nothing about their behavior is asserted; the credential summary below says what to do with that.
Before you give it your token
- It will ask for
- no credential variables read in the code
- Where it talks to
- no vendor host named in the code
- What the honeypot saw
- no credential files read · no network
- What we could not test
- server startup · the tool list · tool behavior
Connect it under the guard. Not started: dependency install failed; the server itself was not observed. The code names no credential variable; the guard pins the network to what the honeypot saw and logs every call.
Never paste a credential into a chat, a ticket or a report, including ours. How the guard holds it.
Is [email protected] safe to install?
KillerSkills ran it in the KillerSkills honeypot sandbox (2 scenarios; not started: dependency install failed; the server itself was not observed) on 2026-11-09 and scored it 74/100 (Caution). It is not known to be malicious, but it has behaviour or code a security policy should decide on before install. Notable findings: Access to sensitive file paths; Access to sensitive file paths; Access to sensitive file paths. Summary: no network, touches nothing outside the project, writes no memory.
Behavior trace
Honeypot run · 0 s · 2 scenarios · 0 deviationsStatic findings
"""The permissions of an existing file, as chmod takes them; None for a new one (umask decides)."""Fix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.help="Also offer the hosts of ~/.ssh/config (key authentication)")Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.self.assertEqual(config.key_path, os.path.expanduser("~/.ssh/id_ed25519"))Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.imported: bool = False # came from ~/.ssh/config, not from servers.jsonFix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.return subprocess.Popen(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.self.gw.run("echo old > /tmp/keep.sh && chmod 750 /tmp/keep.sh")Fix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts."""Register the hosts of ~/.ssh/config that are not configured yet (key authentication)."""Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.return subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.self.assertEqual(config.key_path, os.path.expanduser("~/.ssh/id_ed25519"))Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.if match := re.match(r"base64 -d '?(\S+?)'? > '?(\S+?)'? && (?:chmod (\S+) '?\S+'? && )?mv -f '?\S+'? '?(\S+?)'?$", command):Fix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.("git clone https://user:s3cret@host/repo.git", "git clone https://user:******@host/repo.git"),Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.description=f"from ~/.ssh/config ({name})", imported=True))Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose."signal action=stdin text=exit, then run one command at a time (sudo <command>).")Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.result = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.except Exception as exc: # a bug must not kill the connectionFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.self.assertEqual(self.gw.run("cat /tmp/nf.txt")["output"].splitlines()[1:], ["alpha", "gamma"])Fix: Remove the call, or declare the host in frontmatter and explain in the README what is sent and why.for name in ("id_ed25519", "servers.json", "putty.ppk", os.path.join(".git", "config")):Fix: Remove the call, or declare the host in frontmatter and explain in the README what is sent and why.repository = ("rm -rf /tmp/pager && git init -q /tmp/pager && cd /tmp/pager && "Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.&& rm -rf /var/lib/apt/lists/* \Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.run.log.output(lines)Fix: Remove the call, or declare the host in frontmatter and explain in the README what is sent and why.&& rm -rf /var/lib/apt/lists/* \Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out."(sudo -s, su, bash). The gateway cannot tell where a command ends in it. Leave it with "Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell."""Server definitions (servers.json, ~/.ssh/config) and runtime settings."""Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.path = path or os.path.expanduser("~/.ssh/config")Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.&& rm -rf /var/lib/apt/lists/* \Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.config = target(host="${GW_HOST}", password="${GW_PASS}", key_path="~/.ssh/${GW_KEY}")Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.chmod = f"chmod {mode} {temporary} && " if mode else ""Fix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.result = subprocess.run([sh, "-c", f"PS1='{ps1}'\n{typed}\n{show_prompt}"],Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.session.run("rm -rf /", wait=1)Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.result = subprocess.run([sh, "-n", "-c", wrap_posix(command, 1)], capture_output=True, text=True)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.session.run("rm -rf /", wait=1)Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell."cat /etc/passwd",Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.Cost to the agent
Tokens estimated at four characters each. The tool list is re-read by the agent on every turn, so it is the number to compare between servers that do the same job: ranked across the index.
Known vulnerabilities
No advisories in OSV for mcp-ssh-gateway@7.0.0 as of 5d ago. This is the package itself, not its dependencies.
What would make this Verified
6 points to 80 · weights: behavior 45%, static 25%, prompt 15%, publisher 15%- Unclaimed publisher≈ +8 on the totalClaim d00mus: a verified publisher gets +50 on publisher trust. It is free and usually instant with GitHub sign-in.
- Access to sensitive file paths≈ +4 on the totalStop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
- Privileged sudo command≈ +4 on the totalBuild commands from fixed arguments; do not interpolate untrusted strings into a shell.
- File permission modification command≈ +2 on the totalRequest the narrowest permission that works; replace wildcards with the exact paths or hosts.
- References a credential file in the home directory≈ +2 on the totalStop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
- Python subprocess execution detected≈ +2 on the totalBuild commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.