blc-ssh-mcp@0.9.2
CAUTION· install onlyPublisher claims: "MCP server giving AI assistants SSH access to run commands, transfer files, and manage server fleets" Observed in sandbox: no network, touches nothing outside the project, writes no memory.
Coverage
Bundled scripts ran with no arguments; no agent task scenario for this bundle.- Tested
- 7 of 7 bundled scripts run with no arguments, with decoy credentials in the environment · every file read, file written and host contacted by what ran
- Not tested
- use of the skill by an agent
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
SSH_MCP_HTTP_AUTHSSH_MCP_HTTP_NETWORK_NO_AUTHSSH_MCP_HTTP_TOKENSSH_MCP_HTTP_TOKEN_FILEor--db-passwordConfiguration, not credentials: SSH_MCP_CONFIG, SSH_MCP_HTTP_ALLOWED_HOSTS, SSH_MCP_HTTP_HOST, SSH_MCP_HTTP_PORT, SSH_MCP_HTTP_STATELESS, SSH_MCP_LOG_FORMAT, SSH_MCP_TRANSFER_ROOT, SSH_MCP_TRANSPORT- Where it talks to
- no vendor host named in the code
- What we saw when it ran
- no credential files read · no network
- What we could not test
- use of the skill by an agent
Connect it with a scoped credential, under the guard. It asks for SSH_MCP_HTTP_AUTH, SSH_MCP_HTTP_NETWORK_NO_AUTH, SSH_MCP_HTTP_TOKEN, SSH_MCP_HTTP_TOKEN_FILE and talks to its vendor. Give the credential to the guard, not the server: the value never enters the server's environment and only travels to the host you bind. What the tools do with a real credential was not observed.
Never paste a credential into a chat, a ticket or a report, including ours. How the guard holds it.
What changed since 0.9.1
vet-skills diff blc-ssh-mcp 0.9.1 0.9.2In the sandbox, this version reached for nothing 0.9.1 did not. Compared from the two recorded runs, not from source.
The guard can hold an update like this until someone approves it (runtime.on_change: hold). A change that only shows with a real credential, or on a path the run did not reach, is not in a trace and so not in this comparison.
Is [email protected] safe to install?
KillerSkills ran it in the KillerSkills honeypot sandbox (2 scenarios; bundled scripts ran with no arguments; no agent task scenario for this bundle) on 2026-11-24 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: Reads credential paths from the home directory; 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 · 2 s · 2 scenarios · 0 deviationsStatic findings
- Reading, writing, or copying `~/.ssh/config`, `~/.ssh/*`, or `~/.config/ssh-mcp/servers.toml` — these hold real infrastructure details and key pathsFix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.``"~/.ssh/config"`` unexpanded and every connection died withFix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.- Reading, writing, or copying `~/.ssh/config`, `~/.ssh/*`, or `~/.config/ssh-mcp/servers.toml` — these hold real infrastructure details and key pathsFix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.ssh_config_path: str = Field(default="~/.ssh/config", validate_default=True)Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.# the unexpanded ``~/.ssh/config`` default survived (finding S5).Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.ssh_config_path = "~/.ssh/config"Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.…only partially redacted — it is a tripwire, and the documented mitigation is to pass credentials via env files or stdin rather than argv. - **`{REDACTED+ELIDED}` in a log mean…Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.# left the default ``~/.ssh/config`` unexpanded and broke everyFix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.identity_file = "~/.ssh/id_ed25519_bastion"Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.# connection with ``FileNotFoundError: '~/.ssh/config'``.Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.``FileNotFoundError: '~/.ssh/config'``. ``identity_file`` was neverFix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.identity_file = "~/.ssh/id_ed25519_bastion"Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.# Connection details (host, port, user, key) are sourced from ~/.ssh/config automatically.Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.Do not duplicate content here — add it to AGENTS.md so every tool sees it.Fix: Remove the text that addresses the agent rather than the reader; describe behavior, do not instruct.# ~/.ssh/config. Any name used as a `jump_host` below MUST have its ownFix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.| `ssh_config_path` | `~/.ssh/config` | — | `~` expanded at the model boundary |Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.``-c``/``-e``), ``eval "..."``, and ``base64 -d | sh``. HarmlessFix: Put hosts, commands and strings in plain source. Decoding at runtime looks identical to malware and costs points on its own.# sudo chown 1000:1000 ./transfers # container user sshmcp is uid 1000Fix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.``https://user:pass@host``, and the other patterns compiled byFix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.# pass credentials via env vars, Docker/K8s secrets, or dedicated configFix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.``.aws/credentials``, ``.kube/config``, ``.netrc``, …). AnFix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.# sudo chown 1000:1000 ./transfers # container user sshmcp is uid 1000Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.normalize to ``/etc/shadow``. Lowercases the result so matching isFix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.# root pointing to a self-owned 0700 tree (~/.ssh being the obviousFix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.…up/other-writable refusal would reject **every** Windows token file and advise `chmod go-w`; `os.O_NONBLOCK` and `os.geteuid` do not exist there at all, and `Attribut…Fix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.# operators to route around it. Cost of the anchor: `sudo -n reboot`Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.mitigation is to pass credentials via env files or stdin rather thanFix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.https://deploy:[email protected]')``: the tool result readFix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose."/etc/passwd",Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose."/etc/shadow",Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose."/etc/sudoers",Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.("python -c 'import os; os.system(\"rm -rf /\")'", True),Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.# ~/.ssh/config (compose.yaml mounts /home/sshmcp/.ssh), and transfer_rootFix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.(``/etc/shadow``, ``/etc/passwd``, ``.ssh/*``,Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.# host, while a routine `rm -rf /tmp/build-cache` was blocked. That isFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.and is broader than "obviously destructive": besides rm -rf /,Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.# ``re.IGNORECASE`` so ``rm -RF /`` / ``RM -rf /`` don't bypass (theFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.".netrc",Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.ssh_config_path = "~/.ssh/config"Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.- ~/.ssh:/home/sshmcp/.ssh:roFix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.f"(mode {stat.filemode(st.st_mode)}). Run: chmod 700 {path}"Fix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.identity_file="~/.ssh/db_key",Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.# chmod 700 ./transfersFix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.# - ~/.ssh:/home/sshmcp/.ssh:roFix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.except Exception as e: # noqa: BLE001 - evicting one connection must not kill the eviction loopFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.# # Create .env.ssh-mcp with: SSH_MCP_HTTP_TOKEN=<random value, 16 char min>Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.ssh_config_path="~/.ssh/custom_config",Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.# telling the operator to run `chmod go-w`, which does not existFix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.# ``/mcp`` is MCPServer's default streamable_http_path (server.py neverFix: Namespace tool names and keep tool descriptions literal; no instructions to the agent inside them."remote command execution. Run: chmod go-w "Fix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.1. The MCPServer streamable HTTP app mounted under ``/``Fix: Namespace tool names and keep tool descriptions literal; no instructions to the agent inside them.# chmod / chown on root or homeFix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.# # Load the bearer token from a .env file (never commit it)Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.mkfs, dd-to-disk, chmod 777 /, redirects into /dev/sd* andFix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.# Maps host machine ~/.ssh to container for key-based authenticationFix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.# (`chmod -R 777 /`). `chmod 777 -R /` — mode first, flag after — isFix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.server = ServerConfig(name="h", description="d", identity_file="~/.ssh/id_ed25519")Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.assert "rm file.txt" in outputFix: Remove the call, or declare the host in frontmatter and explain in the README what is sent and why.# every connection died with FileNotFoundError: '~/.ssh/config'.Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.await server_module.execute_on_group(group="test-prod", command="rm -rf /")Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.result = await manager.execute("test-host", "rm -rf /", timeout=30)Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell."""M4: SSH_MCP_HTTP_TOKEN with trailing whitespace (common from .envFix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.identity_file="~/.ssh/deploy_key",Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.assert settings.ssh_config_path == os.path.expanduser("~/.ssh/config")Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose."""Escape on the *write* path — the download-to-`~/.ssh/config` route."""Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.0700 directory — ``~/.ssh`` being the obvious target — sailed through theFix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.advise ``chmod go-w``.Fix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.await server_module.execute_on_group(group="test-prod", command="rm -rf /")Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.failed with ``FileNotFoundError: '~/.ssh/config'``.Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.credential_url = "https://u:[email protected]/x"Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.result = await manager.execute("test-host", "rm -rf /", timeout=30)Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.f"auth=none must pass token=None to _build_http_app, got {captured!r}"Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.assert span.attributes["ssh.command_length"] == len("rm -rf /")Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.assert span.attributes["ssh.command_length"] == len("rm -rf /")Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.assert "STDERR: cat: missing.txt: No such file or directory" in outputFix: Remove the call, or declare the host in frontmatter and explain in the README what is sent and why."/etc/shadow",Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.result = await manager.execute("test-host", "rm -rf /")Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.# every connection died with FileNotFoundError: '~/.ssh/config'.Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.assert settings.ssh_config_path == os.path.expanduser("~/.ssh/config")Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.validate_relative("/etc/passwd")Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.result = await manager.execute("test-host", "rm -rf /")Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell."wget https://admin:[email protected]/file.tgz",Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose."mkfs.ext4 /dev/sda",Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.remote_path="/etc/shadow",Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.wrapper shape itself — ``base64 -d | bash`` — is a pre-existing,Fix: Put hosts, commands and strings in plain source. Decoding at runtime looks identical to malware and costs points on its own."rm -rf /",Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell."rm -rf /",Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell."rm -rf /var/log",Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.("echo cm0gLXJmIC8= | base64 --decode | sh", True),Fix: Put hosts, commands and strings in plain source. Decoding at runtime looks identical to malware and costs points on its own.# rm -rf / variantsFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.remote_path="/etc/shadow",Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.protection on the leaf — this is the ~/.ssh/config redirect route."""Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.await manager.upload("test-host", "/etc/passwd", "/remote/dest.txt")Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.("echo cm0gLXJmIC8= | base64 -d | bash", True),Fix: Put hosts, commands and strings in plain source. Decoding at runtime looks identical to malware and costs points on its own."rm -rf /",Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.await manager.download("test-host", "/remote/src.txt", "/etc/passwd")Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.# rm -rf / variantsFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell."rm -rf /home",Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell."rm -rf /",Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell."sudo rm -rf /",Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.cmd = f"curl https://{userinfo}:{password}@internal.example.com/path"Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose."sudo rm -rf /",Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell."chmod 777 /etc",Fix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts."/home/user/../../etc/shadow",Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose."/var/log/../etc/shadow",Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose."/tmp/../tmp/../etc/shadow",Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.("https://u:p;q@host/", False),Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.# chmod with numeric mode but no / prefix is safeFix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts."chmod 777 /",Fix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts."sudo mkfs.vfat /dev/sdc",Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.- Restrict sudo access on target serversFix: Remove the text that addresses the agent rather than the reader; describe behavior, do not instruct.assert _is_dangerous_command("sudo mkfs.btrfs /dev/sde") is TrueFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell."/etc/shadow",Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.cmd = f"curl https://user:{secret}@host"Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose."../../etc/passwd",Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose."sudo chmod 777 /var",Fix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts._CRED_ERROR = "auth failed for https://deploy:[email protected]"Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose."sudo rm -rf ~",Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell."sudo chmod 777 /var",Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.# chmod 777 / variantsFix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.Cost to the agent
Tokens estimated at four characters each. Skills load their instruction text when triggered; the figure is what that costs.
Known vulnerabilities
Not checked against OSV yet; the weekly check has not reached this version.
What would make this Verified
12 points to 80 · weights: behavior 45%, static 25%, prompt 15%, publisher 15%- Unclaimed publisher≈ +8 on the totalClaim blackaxgit: a verified publisher gets +50 on publisher trust. It is free and usually instant with GitHub sign-in.
- Obfuscated code≈ +5 on the totalRemove base64-assembled strings, eval of decoded text and minified blobs. Reviewers and scanners both treat unreadable code as hostile.
- Reads credential paths from the home directory≈ +4 on the totalStop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
- 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.
- Credential pass-through configuration≈ +4 on the totalStop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
- 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.