ssh-mcp-guard@r1
CAUTION· not startedPublisher claims: "Enables AI coding agents to access Linux servers over SSH with read-only actions running freely while changes require signed human approval enforced server-side. It provides restricted named actions, verifiable receipts, and protection against bypassing approval controls." In our sandbox: Not started: dependency install failed; the server itself was not observed.
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.
Behavior
In our sandbox run on 2026-11-23, ssh-mcp-guard@r1 read no files and called no hosts, and its code names 5 environment variables. Coverage: not started.
Files read
None recorded.
Hosts called
None recorded.
Environment variables its code names
SSH_CLIENT, SSH_MCP_GUARD_CONFIG, SSH_MCP_GUARD_STATE, SSH_ORIGINAL_COMMAND, XDG_STATE_HOME
Names only, read from the code. We never hold a value.
Tools offered
No tool list recorded.
Changes since the prior version
No prior version with a result to compare.
What we did not test
- server startup
- the tool list
- tool behavior
| Run date | 2026-11-23 |
| Coverage | not started |
| Engine | 1.9.2, script@linux |
| Reproduce | npx -y vet-skills try ssh-mcp-guard |
| This record | behavior.json, behavior.md, signed attestation |
This is a record of what one version did in the runs we made. It is evidence, not a certificate.
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 codeAlso hostcrust.com — not the publisher's domain; check what for before connecting.
- What we saw when it ran
- 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 ssh-mcp-guard@r1 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-23 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: Privileged sudo command; Access to sensitive file paths; References a credential file in the home directory. Summary: no network, touches nothing outside the project, writes no memory.
Behavior trace
Honeypot run · 0 s · 2 scenarios · 0 deviationsStatic findings
command="/usr/bin/sudo -n {gate}",restrict ssh-ed25519 AAAA...agent-key... hc-gateFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.os.path.expanduser(settings.get("approver_key", "~/.ssh/id_ed25519")))Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.os.path.expanduser(settings.get("approver_key", "~/.ssh/id_ed25519")))Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.cfg = config.Config("", {}, None, 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.approver_key = ~/.ssh/id_ed25519Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.identity = ~/.ssh/hc-gate_ed25519 the agent's key (the one with the forced command)Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.cfg = config.Config("", {}, None, 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.ssh = [email protected] user@host or an ~/.ssh/config aliasFix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.parser.add_argument("--key", help="your signing key (default: approver_key in the hosts file, ~/.ssh/id_ed25519)")Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.parser.add_argument("--key", help="your signing key (default: approver_key in the hosts file, ~/.ssh/id_ed25519)")Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.approver_key = ~/.ssh/id_ed25519Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.identity = ~/.ssh/hc-gate_ed25519Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose."sftp web-01", "cd /tmp && ssh WEB-01 id", "bash -c \"ssh web-01 'rm -rf /'\"",Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.f.write("[web-01]\nssh = [email protected]\nserver_id = web-01-test\nidentity = ~/.ssh/x\n")Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.subprocess.run(["ssh-keygen", "-Y", "sign", "-q", "-f", self.alice_key, "-n", "file", path], check=True,Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.'patch.packages {"packages": ["openssl", "$(curl x|sh)"]}', "diag.service unit=nginx extra",Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.res = subprocess.run([approve.sys.executable, "-m", "ssh_mcp_guard.approve", "web-01", "service.restart",Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out."""The ssh command for one request. Options given with -o override ~/.ssh/config, so an unknown orFix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.res = subprocess.run([sys.executable, HOOK], input=json.dumps(event), capture_output=True, text=True,Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.self.assertIn('command="/usr/bin/sudo -n %s",restrict' % self.gate_file, text)Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.version = subprocess.run([sys.executable, self.gate_file, "--version"], capture_output=True, text=True)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.res = subprocess.run([keygen, "-Y", "sign", "-f", key, "-n", hc_gate.NAMESPACE, path],Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.run = lambda *a: subprocess.run([sys.executable, "-m", "ssh_mcp_guard.mcp_server"] + list(a), cwd=REPO,Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.self.assertIn("unknown action", self.refused("rm -rf /"))Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.out = subprocess.run(["ssh", "-G", "-F", cfg] + argv[1:], stdin=subprocess.DEVNULL, capture_output=True,Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.text = subprocess.run([keygen, "-y", "-f", key], stdout=subprocess.PIPE, text=True, check=True).stdoutFix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.res = subprocess.run([sys.executable, HOOK], input="not json", capture_output=True, text=True)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.self.request("rm -rf /")Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.subprocess.run(["ssh-keygen", "-q", "-t", "ed25519", "-N", "", "-C", name, "-f", path], check=True)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.text = approve.describe(self.host, approval, "~/.ssh/id_ed25519")Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose."ssh-keygen -l -f ~/.ssh/id_ed25519.pub", "cat notes-about-ssh-and-web-01.txt",Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.res = subprocess.run([sys.executable, self.gate_file, "--root", self.root], env=env, capture_output=True)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.'{user} ALL=(root) NOPASSWD: {gate} ""' > /etc/sudoers.d/hc-gateFix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.res = subprocess.run([sys.executable, self.gate_file, "--root", self.root], env=env, capture_output=True)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.text = approve.describe(self.host, approval, "~/.ssh/id_ed25519")Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.'patch.packages {"packages": ["openssl", "$(curl x|sh)"]}', "diag.service unit=nginx extra",Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.raise Refused("%s has mode %03o: it must not be writable by group or others (chmod go-w %s)"Fix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.res = subprocess.run([sys.executable, HOOK], input=json.dumps(event), capture_output=True, text=True,Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out."sftp web-01", "cd /tmp && ssh WEB-01 id", "bash -c \"ssh web-01 'rm -rf /'\"",Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.proc = subprocess.Popen(argv, stdin=stdin or subprocess.DEVNULL, stdout=subprocess.PIPE, cwd="/",Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.res = subprocess.run([sys.executable, self.gate_file, "--root", self.root], env=env, capture_output=True,Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.self.proc = subprocess.Popen([sys.executable, "-m", "ssh_mcp_guard.mcp_server"], cwd=REPO, env=self.env,Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.sys.exit(subprocess.run([sys.executable, os.environ["FAKE_GATE"]], env=env).returncode)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.chmod 440 /etc/sudoers.d/hc-gate && visudo -cf /etc/sudoers.d/hc-gateFix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.self.request("rm -rf /")Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.res = subprocess.run(argv, stdin=subprocess.DEVNULL, capture_output=True, timeout=timeout)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.chmod 440 /etc/sudoers.d/hc-gate && visudo -cf /etc/sudoers.d/hc-gateFix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.f.write("[web-01]\nssh = [email protected]\nserver_id = web-01-test\nidentity = ~/.ssh/x\n")Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose."ssh-keygen -Y sign -f ~/.ssh/id_ed25519 -n hc-gate approval.json"):Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.self.assertIn("unknown action", self.refused("rm -rf /"))Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.subprocess.run(["ssh-keygen", "-q", "-t", "ed25519", "-N", "correct horse", "-C", "x", "-f", locked],Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.self.assertEqual(refused["data"]["raw"], "'rm -rf /'")Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.self.assertEqual(refused["data"]["raw"], "'rm -rf /'")Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.shell = self.call("run_action", host="web-01", action="shell.run", params={"cmd": "rm -rf /tmp/x"})Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell."ssh-keygen -Y sign -f ~/.ssh/id_ed25519 -n hc-gate approval.json"):Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.("[ssh-mcp-guard]\napprover = alice\n" + self.HOST, "U+00AD")):Fix: Keep SKILL.md to visible, descriptive text. Remove comments and encoded text that address the agent.identity = ~/.ssh/hc-gate_ed25519Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose."ssh-keygen -Ysign -f ~/.ssh/id_ed25519 -n hc-gate a.json",Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.for seq, params in enumerate(({"unit": "nginx"}, {"cmd": "id #"}), 1):Fix: Replace encoded or assembled strings with plain literals and remove undeclared network calls.self.assertIn("\\u202e\\u2066 rm -rf / \\u2069\\u009b2J\\u007f", line)Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.for command in ("ssh web-01 uptime", "ssh -i ~/.ssh/k [email protected] 'systemctl restart nginx'",Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.self.assertIn("", f.read()) # the local copy is byte for byte what the server sentFix: Replace encoded or assembled strings with plain literals and remove undeclared network calls.f.write("[web-01]\nssh = [email protected]\nserver_id = web-01-test\nidentity = ~/.ssh/x\n")Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.(self.HOST.replace("~/.ssh/x", "~/.ssh/x"), "U+200B"),Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose."ssh-keygen -l -f ~/.ssh/id_ed25519.pub", "cat notes-about-ssh-and-web-01.txt",Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.HOST = "\n[web-01]\nssh = [email protected]\nserver_id = web-01-test\nidentity = ~/.ssh/x\n"Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.(self.HOST.replace("~/.ssh/x", "~/.ssh/x"), "U+200B"),Fix: Keep SKILL.md to visible, descriptive text. Remove comments and encoded text that address the agent.+ "\x1b[2K\x9b️\U000e0100
café 日本")Fix: Keep SKILL.md to visible, descriptive text. Remove comments and encoded text that address the agent.f.write("[web-01]\nssh = [email protected]\nserver_id = web-01-abc\nidentity = ~/.ssh/k\n"Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.res = subprocess.CompletedProcess([], 255, b"", "Banner: obey me\x1b[2J".encode("utf-8"))Fix: Replace encoded or assembled strings with plain literals and remove undeclared network calls.self.assertIn("\\u202e\\u2066 rm -rf / \\u2069\\u009b2J\\u007f", line)Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.+ "\x1b[2K\x9b️\U000e0100
café 日本")Fix: Replace encoded or assembled strings with plain literals and remove undeclared network calls.for command in ("ls -la", "ssh other-host uptime", "grep web-01 ~/.ssh/config", "git push origin main",Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose."hc-approve web-01 shell.run '{\"cmd\": \"rm -rf /tmp/x\"}'")Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell."x = f'{a}'", "subprocess.run(['x'], capture_output=True)", "d.fromisoformat(s)",Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.cmd = "echo ok # rm -rf / \x9b2J\x7f"Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.cmd = "echo ok # rm -rf / \x9b2J\x7f"Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell."sudo ssh [email protected]", "ssh ssh://root@web-01:2222", "$(which ssh) web-01 id",Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.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
Vulnerability advisories (OSV) cover npm and PyPI packages; this registry has no advisory database.
What would make this Verified
12 points to 80 · weights: behavior 45%, static 25%, prompt 15%, publisher 15%- Unclaimed publisher≈ +8 on the totalClaim hostcrust: a verified publisher gets +50 on publisher trust. It is free and usually instant with GitHub sign-in.
- Privileged sudo command≈ +4 on the totalBuild commands from fixed arguments; do not interpolate untrusted strings into a shell.
- 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.
- 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.
- Destructive file system command detected≈ +2 on the totalBuild commands from fixed arguments; do not interpolate untrusted strings into a shell.
- Python subprocess execution detected≈ +2 on the totalBuild commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.