Skills/PyPI/mcp-ssh

mcp-ssh@0.2.7

CAUTION· not started

Publisher claims: "MCP server for managing persistent SSH sessions" Observed in sandbox: no network, touches nothing outside the project, writes no memory.

Registry PyPI (MCP server)Publisher dbeidachazi · publishing for 93 daysInstalls 129Last detonated 5d ago

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.

$vet-skills run --net declared -- uvx mcp-ssh

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 68/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; Prompting user to enter sensitive credentials; Privileged sudo command. Summary: no network, touches nothing outside the project, writes no memory.

Behavior trace

Honeypot run · 0 s · 2 scenarios · 0 deviations
t+CategoryObserved action
0.0sprocessno install scripts in bundle
0.1sprocessdependency install exit 1 ·
0.1sclaimednot started: dependency install failed (exit 1); the server itself was not observed
0.1sprocessscript backend runs setup only
0.1sprocessno install scripts to re-run

Static findings

HIGH
Access to sensitive file pathsAGENTS.md:173 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system files- Loads and parses `~/.ssh/config` on initializationFix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
CRITICAL
Prompting user to enter sensitive credentialsmcp_ssh_session/server.py:119 · Prompting user to enter sensitive credentials — social engineeringf"For example, if it's a password, provide the password followed by \\n."Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST03
HIGH
Privileged sudo commandAGENTS.md:22 · Privileged sudo command — agent may execute with elevated privileges- **Sudo Support**: Automatic password handling for sudo commands on Unix/Linux hostsFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
CRITICAL
Reads credential paths from the home directorymcp_ssh_session/server.py:34 · Reads credential paths from the home directoryIf an SSH config alias is provided, configuration will be read from ~/.ssh/config.Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST03
HIGH
Reads credential paths from the home directoryAGENTS.md:57 · Reads credential paths from the home directoryThe `host` parameter can be either a hostname/IP or an SSH config alias. If an SSH config alias is provided, configuration will be read from `~/.ssh/config`.Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST03
HIGH
References a credential file in the home directoryAGENTS.md:90 · References a credential file in the home directorykey_filename="~/.ssh/id_rsa"Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST03
HIGH
Access to sensitive file pathsAGENTS.md:90 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system fileskey_filename="~/.ssh/id_rsa"Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
HIGH
Access to sensitive file pathsAGENTS.md:16 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system files- **SSH Config Support**: Automatically reads and uses settings from `~/.ssh/config`, including aliases, hosts, ports, users, and identity filesFix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
HIGH
Privileged sudo commandmcp_ssh_session/command_executor.py:340 · Privileged sudo command — agent may execute with elevated privilegeslogger.debug(f"Executing as sudo for {command_id}")Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
HIGH
Privileged sudo commandmcp_ssh_session/enhanced_server.py:53 · Privileged sudo command — agent may execute with elevated privilegessudo_password: Password for sudo commands on Unix/Linux hosts (optional)Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
HIGH
Privileged sudo commandAGENTS.md:68 · Privileged sudo command — agent may execute with elevated privileges- `sudo_password` (str, optional): Password for sudo commands on Unix/Linux hostsFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
HIGH
Privileged sudo commandmcp_ssh_session/error_handler.py:71 · Privileged sudo command — agent may execute with elevated privileges"1. Use sudo or run as appropriate user\n"Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
HIGH
Access to sensitive file pathsAGENTS.md:77 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system files# If ~/.ssh/config has an entry for "myserver"Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
HIGH
Privileged sudo commandmcp_ssh_session/file_manager.py:25 · Privileged sudo command — agent may execute with elevated privileges"""Read a remote file over SSH using SFTP, with optional sudo fallback."""Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
HIGH
Privileged sudo commandAGENTS.md:180 · Privileged sudo command — agent may execute with elevated privileges- Handles interactive prompts for enable mode and sudo authenticationFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
HIGH
Access to sensitive file pathsAGENTS.md:57 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system filesThe `host` parameter can be either a hostname/IP or an SSH config alias. If an SSH config alias is provided, configuration will be read from `~/.ssh/config`.Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
HIGH
Privileged sudo commandmcp_ssh_session/file_manager.py:33 · Privileged sudo command — agent may execute with elevated privileges# Apply environment variable override for sudo passwordFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
HIGH
Reads credential paths from the home directoryAGENTS.md:16 · Reads credential paths from the home directory- **SSH Config Support**: Automatically reads and uses settings from `~/.ssh/config`, including aliases, hosts, ports, users, and identity filesFix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST03
MEDIUM
References a credential file in the home directoryDockerfile:112 · References a credential file in the home directory-v ~/.ssh/id_rsa:/mounts/ssh-keys/id_rsa:ro \Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST03
MEDIUM
Access to sensitive file pathsDockerfile:112 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system files-v ~/.ssh/id_rsa:/mounts/ssh-keys/id_rsa:ro \Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
MEDIUM
Access to sensitive file pathsDockerfile:111 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system files-v ~/.ssh/config:/mounts/ssh-config/config:ro \Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
MEDIUM
Access to sensitive file pathsDockerfile:120 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system files-v ~/.ssh:/mounts/ssh-keys:ro \Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
MEDIUM
Access to sensitive file pathsdocker-compose.yml:14 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system files# - ~/.ssh/config:/mounts/ssh-config/config:roFix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
MEDIUM
File permission modification commandDockerfile:31 · File permission modification command — agent changes file ownership/permissionschmod 700 /home/mcpuser/.sshFix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.
AST05
HIGH
Privileged sudo commandmcp_ssh_session/server.py:215 · Privileged sudo command — agent may execute with elevated privilegessudo_password: Password for sudo (optional, not needed if NOPASSWD configured)Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Privileged sudo commandtests/test_bug_regressions.py:31 · Privileged sudo command — agent may execute with elevated privileges"sudo tmux attach-session",Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
HIGH
Access to sensitive file pathsmcp_ssh_session/server.py:34 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system filesIf an SSH config alias is provided, configuration will be read from ~/.ssh/config.Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
MEDIUM
Privileged sudo commandtests/test_integration.py:271 · Privileged sudo command — agent may execute with elevated privilegestest_content = "sudo test content"Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Privileged sudo commandtests/test_package_manager_integration.py:217 · Privileged sudo command — agent may execute with elevated privilegessudo_prefix = "sudo " if use_sudo else ""Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Privileged sudo commandtests/test_integration.py:280 · Privileged sudo command — agent may execute with elevated privilegescommand=f"echo '{test_content}' | sudo tee {test_file}",Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Destructive file system command detectedDockerfile:14 · Destructive file system command detected&& rm -rf /var/lib/apt/lists/*Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
File permission modification commandDockerfile:49 · File permission modification command — agent changes file ownership/permissionschmod 700 "$ssh_dir"Fix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.
AST05
HIGH
Privileged sudo commandmcp_ssh_session/file_manager.py:104 · Privileged sudo command — agent may execute with elevated privileges# Fallback to sudo if permission denied and use_sudo or sudo_password providedFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
HIGH
Privileged sudo commandmcp_ssh_session/file_manager.py:108 · Privileged sudo command — agent may execute with elevated privilegescmd = f"sudo cat {shlex.quote(remote_path)} | head -c {byte_limit}"Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Access to sensitive file pathsDockerfile:113 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system files-v ~/.ssh/id_rsa.pub:/mounts/ssh-keys/id_rsa.pub:ro \Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
MEDIUM
File permission modification commandDockerfile:50 · File permission modification command — agent changes file ownership/permissionschown mcpuser:mcpuser "$ssh_dir"Fix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.
AST05
MEDIUM
Privileged sudo commandtests/test_package_manager_integration.py:250 · Privileged sudo command — agent may execute with elevated privileges"""Check if we have passwordless sudo access."""Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Destructive file system command detectedtests/test_integration.py:185 · Destructive file system command detectedsession_manager, ssh_config, command="rm -rf /tmp/mcp_test_dir", timeout=5Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
File permission modification commandmcp_ssh_session/file_manager.py:278 · File permission modification command — agent changes file ownership/permissionslogger.debug(f"Executing chmod command: {chmod_cmd}")Fix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.
AST05
MEDIUM
Access to sensitive file pathsdocker-compose.yml:17 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system files- ~/.ssh:/mounts/ssh-keys:roFix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
HIGH
Privileged sudo commandmcp_ssh_session/file_manager.py:106 · Privileged sudo command — agent may execute with elevated privilegeslogger.info(f"SFTP permission denied, falling back to sudo cat for {remote_path}")Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
File permission modification commandDockerfile:30 · File permission modification command — agent changes file ownership/permissionschown -R mcpuser:mcpuser /home/mcpuser/.ssh && \Fix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.
AST05
HIGH
Privileged sudo commandmcp_ssh_session/session_manager.py:287 · Privileged sudo command — agent may execute with elevated privileges- SUDO_PASS: Override sudo passwordFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
References a credential file in the home directoryDockerfile:113 · References a credential file in the home directory-v ~/.ssh/id_rsa.pub:/mounts/ssh-keys/id_rsa.pub:ro \Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST03
MEDIUM
Privileged sudo commandtests/test_package_manager_integration.py:252 · Privileged sudo command — agent may execute with elevated privilegessession_manager, ssh_config, "sudo -n whoami", timeout=10Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
HIGH
Privileged sudo commandmcp_ssh_session/server.py:216 · Privileged sudo command — agent may execute with elevated privilegesuse_sudo: Use sudo for reading (tries passwordless if no sudo_password provided)Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
HIGH
Privileged sudo commandmcp_ssh_session/session_manager.py:1463 · Privileged sudo command — agent may execute with elevated privileges# Ensure command starts with sudoFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
HIGH
Privileged sudo commandmcp_ssh_session/server.py:58 · Privileged sudo command — agent may execute with elevated privilegessudo_password: Password for sudo commands on Unix/Linux hosts (optional)Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
File permission modification commandDockerfile:35 · File permission modification command — agent changes file ownership/permissionschown -R mcpuser:mcpuser /mountsFix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.
AST05
HIGH
Privileged sudo commandmcp_ssh_session/server.py:203 · Privileged sudo command — agent may execute with elevated privilegesor sudo_password is provided, falls back to using 'sudo cat' via shell command.Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Privileged sudo commandtests/test_integration.py:253 · Privileged sudo command — agent may execute with elevated privileges# Create a test file that requires sudo to writeFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
HIGH
Privileged sudo commandmcp_ssh_session/session_manager.py:1458 · Privileged sudo command — agent may execute with elevated privilegesreturn "", "Could not find session for sudo command", 1Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Access to sensitive file pathsDockerfile:132 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system files- ~/.ssh/config:/mounts/ssh-config/config:roFix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
HIGH
Privileged sudo commandmcp_ssh_session/server.py:40 · Privileged sudo command — agent may execute with elevated privilegesthe sudo password prompt. The command will be automatically prefixed with 'sudo'Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Privileged sudo commandtests/test_concurrency.py:78 · Privileged sudo command — agent may execute with elevated privilegesprint("Attempting to write file with sudo immediately (should fail)...")Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
HIGH
Privileged sudo commandmcp_ssh_session/session_manager.py:1465 · Privileged sudo command — agent may execute with elevated privilegescommand = f"sudo {command}"Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Destructive file system command detectedDockerfile:93 · Destructive file system command detectedRUN apt-get update && apt-get install -y gosu && rm -rf /var/lib/apt/lists/*Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
File permission modification commandmcp_ssh_session/file_manager.py:277 · File permission modification command — agent changes file ownership/permissionschmod_cmd = f"sudo chmod {oct(permissions)[2:]} {shlex.quote(remote_path)}"Fix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.
AST05
MEDIUM
Privileged sudo commandtests/test_integration.py:247 · Privileged sudo command — agent may execute with elevated privilegesreason="Skipping sudo test: SSH_TEST_SUDO_PASSWORD not set"Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
HIGH
Privileged sudo commandmcp_ssh_session/session_manager.py:1439 · Privileged sudo command — agent may execute with elevated privileges"""Execute a sudo command using the persistent shell, handling password prompts.Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Privileged sudo commandtests/test_package_manager_integration.py:236 · Privileged sudo command — agent may execute with elevated privilegessudo_prefix = "sudo " if use_sudo else ""Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Privileged sudo commandtests/test_integration.py:250 · Privileged sudo command — agent may execute with elevated privileges"""Test sudo command with automatic password handling."""Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Privileged sudo commandtests/test_package_manager_integration.py:278 · Privileged sudo command — agent may execute with elevated privileges# Check if we need sudoFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05

Cost to the agent

Instructions loaded
≈3,198 tok
2 files · 42 in bundle
Tool list per prompt
≈0 tok
0 tools · 0 per tool
Handshake
no reply
launch to tools/list, stdio
Undocumented tools
0
description under 20 chars · avg 0

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@0.2.7 as of 5d ago. This is the package itself, not its dependencies.

What would make this Verified

12 points to 80 · weights: behavior 45%, static 25%, prompt 15%, publisher 15%
  1. Prompting user to enter sensitive credentials≈ +9 on the totalStop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
  2. Reads credential paths from the home directory≈ +9 on the totalStop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
  3. Unclaimed publisher≈ +8 on the totalClaim dbeidachazi: a verified publisher gets +50 on publisher trust. It is free and usually instant with GitHub sign-in.
  4. 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.
  5. Privileged sudo command≈ +4 on the totalBuild commands from fixed arguments; do not interpolate untrusted strings into a shell.
  6. References a credential file in the home directory≈ +4 on the totalStop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
Publish a new version to PyPI, then queue it here. Not your skill? Claim the handle to get verdict changes by email.Claim dbeidachaziPropose a patch to the maintainer