Skills/Glama/ssh-mcp-server

ssh-mcp-server@0.4.1

CAUTION· startup only

Publisher claims: "Enables AI clients (ZCode, Claude Code, Codex, Cursor, Cline) to run shell commands, manage background jobs, and stream files to and from remote Linux servers over SSH through a single authenticated MCP gateway. Target machines' SSH port stays closed to AI and the internet, with token whitelists, command blacklists, confirmations, and audit logging layered on top." Observed in sandbox: no network, touches nothing outside the project, writes no memory.

Registry GlamaPublisher lvxiangjin · publishing for 10 daysInstalls 0Last detonated 10d ago

Coverage

Startup only; authenticated tool behavior not tested.
Tested
server startup over stdio (initialize sent) · every file read, file written and host contacted by what ran
Not tested
the tool list (the server exited before answering) · what the tools do when called with real credentials

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-15, [email protected] read no files and called no hosts, and its code names 11 environment variables. Coverage: startup only.

Files read

None recorded.

Hosts called

None recorded.

Environment variables its code names

NGINX_URL, PUBKEY_FILE, SSH_MCP_CONFIG, SSH_MCP_HOST, SSH_MCP_PORT, SSH_MCP_TLS_CERT, SSH_MCP_TLS_KEY, SSH_MCP_TOKEN, SSH_MCP_TOKEN_FILE, SSH_MCP_TRANSPORT, SSH_MCP_TRUST_PROXY

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

  • the tool list (the server exited before answering)
  • what the tools do when called with real credentials
Run date2026-11-15
Coveragestartup only
Engine1.9.2, script@linux
Reproducenpx -y vet-skills try ssh-mcp-server
This recordbehavior.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
SSH_MCP_TOKENSSH_MCP_TOKEN_FILEConfiguration, not credentials: NGINX_URL, PUBKEY_FILE, SSH_MCP_CONFIG, SSH_MCP_HOST, SSH_MCP_PORT, SSH_MCP_TLS_CERT, SSH_MCP_TLS_KEY, SSH_MCP_TRANSPORT, SSH_MCP_TRUST_PROXY
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
the tool list (the server exited before answering) · what the tools do when called with real credentials

Connect it with a scoped credential, under the guard. It asks for SSH_MCP_TOKEN, SSH_MCP_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.

$vet-skills run --net declared -- <the server's command>

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; startup only; authenticated tool behavior not tested) on 2026-11-15 and scored it 65/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: Destructive command against a filesystem root or device; Destructive file system command detected; Privileged sudo command. Summary: no network, touches nothing outside the project, writes no memory.

Behavior trace

Honeypot run · 27 s · 2 scenarios · 0 deviations
t+CategoryObserved action
0.0sprocessno install scripts in bundle
6.4sprocessdependency install exit 0
26sclaimedstartup only: exited (0) before answering · syscall: 'open', path: '/tmp/ks-detonate-DtgNd9/task/home/work/acme-api/.claude/skills/ssh-mcp-server/config.json' } Node.js v22.23.5
26sprocessscript backend runs setup only
26sprocessno install scripts to re-run

Static findings

CRITICAL
Destructive command against a filesystem root or devicescripts/check-v04.mjs:29 · Destructive command against a filesystem root or devicefor (const cmd of ["rm -rf /", 'rm -rf "/tmp/demo"', "find / -delete", "mkfs.ext4 /dev/sda", "dd if=/dev/zero of=/dev/sda", "shred /dev/sdb", "echo x > /etc/shadow"]) {Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
HIGH
Destructive file system command detecteddemo-transfer.js:56 · Destructive file system command detectedawait runCommandRetry(s, "rm -rf /opt/ai-demo && echo 已清理");Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
HIGH
Privileged sudo commandscripts/setup-limited-user.sh:48 · Privileged sudo command — agent may execute with elevated privilegesecho "提示: root 权限操作请走 sudo 白名单内命令,或在白名单中按需追加。"Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
HIGH
Access to sensitive file pathsscripts/setup-limited-user.sh:35 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system filesvisudo -c -f /etc/sudoers.d/aiopsFix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
HIGH
Destructive file system command detectedtest-http.js:596 · Destructive file system command detectedawait c.callTool({ name: "run_command", arguments: { command: "rm -f /tmp/ssh-mcp-midstream.bin" } });Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
CRITICAL
Destructive command against a filesystem root or devicescripts/check-v04.mjs:20 · Destructive command against a filesystem root or devicefor (const cmd of ['rm -rf /', 'bash -c "rm -rf /"', "sh -c 'rm -rf /'", "rm -fr /*", "rm -f -r /"]) {Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
CRITICAL
Destructive command against a filesystem root or devicelib.js:62 · Destructive command against a filesystem root or device// rm 递归+强制作用根/通配根:/ 后不允许再出现路径字符("rm -rf /"、'rm -rf /'、rm -rf /* 均命中;rm -rf /tmp 不受影响)Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
HIGH
Access to sensitive file pathstest-http.js:48 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system files...env,Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
HIGH
References a credential file in the home directorybootstrap-host.js:4 · References a credential file in the home directory* 公钥来源:~/.ssh/id_ed25519.pub(不存在则自动生成)Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST03
HIGH
Privileged sudo commandscripts/setup-limited-user.sh:30 · Privileged sudo command — agent may execute with elevated privileges# AI 专用账号 sudo 白名单:全部强制 --no-pager 防 less 分页器逃逸(!sh 提权)Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
HIGH
Destructive file system command detectedlib.js:62 · Destructive file system command detected// rm 递归+强制作用根/通配根:/ 后不允许再出现路径字符("rm -rf /"、'rm -rf /'、rm -rf /* 均命中;rm -rf /tmp 不受影响)Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
HIGH
Destructive file system command detectedlib.js:60 · Destructive file system command detected// 要求 / 后跟空白/结尾/星号,`bash -c "rm -rf /"` 的闭引号导致漏判)。Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
HIGH
Destructive file system command detectedtest-mcp.js:37 · Destructive file system command detectedarguments: { command: "rm -rf / --no-preserve-root" },Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
HIGH
Access to sensitive file pathsbootstrap-host.js:4 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system files* 公钥来源:~/.ssh/id_ed25519.pub(不存在则自动生成)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 pathsconfig.example.json:9 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system files"privateKeyPath": "~/.ssh/id_ed25519",Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
CRITICAL
Destructive command against a filesystem root or devicetest-mcp.js:37 · Destructive command against a filesystem root or devicearguments: { command: "rm -rf / --no-preserve-root" },Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
HIGH
Access to sensitive file pathstest-http.js:118 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system filescheck(normalizeRemotePath("/tmp/../etc/passwd") === "/etc/passwd", "A0 路径规范化处理 ..");Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
HIGH
Destructive file system command detecteddemo-commands.js:12 · Destructive file system command detected["真实写/读/删文件", 'echo "这条内容由 AI 于 $(date +%T) 通过 SSH 写入" > /tmp/ai-demo.txt && cat /tmp/ai-demo.txt && rm /tmp/ai-demo.txt && echo 已删除'],Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
HIGH
Destructive file system command detectedtest-http.js:734 · Destructive file system command detectedawait client.callTool({ name: "run_command", arguments: { command: "rm -f /tmp/ssh-mcp-e2e-200k.bin" } });Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
HIGH
Privileged sudo commandlib.js:78 · Privileged sudo command — agent may execute with elevated privileges// rm 递归+强制作用根/通配根(含引号与 sudo 前缀变体;目录级如 rm -rf /tmp 不入确认清单,由黑名单/用户判断)Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
HIGH
Destructive file system command detectedtest-http.js:749 · Destructive file system command detectedawait client.callTool({ name: "run_command", arguments: { command: "rm -f /tmp/ssh-mcp-e2e-test.txt" } });Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
HIGH
Destructive file system command detectedtest-direct.js:19 · Destructive file system command detectedconst blocked = checkBlocked("rm -rf / --no-preserve-root");Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
References a credential file in the home directory.github/workflows/ci.yml:44 · References a credential file in the home directoryssh-keygen -t ed25519 -N "" -f ~/.ssh/id_ed25519Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST03
HIGH
Destructive file system command detectedtest-http.js:759 · Destructive file system command detectedawait client.callTool({ name: "run_command", arguments: { command: "rm -f /tmp/ssh-mcp-e2e-binary.bin" } });Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
HIGH
Access to sensitive file pathsscripts/check-v04.mjs:29 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system filesfor (const cmd of ["rm -rf /", 'rm -rf "/tmp/demo"', "find / -delete", "mkfs.ext4 /dev/sda", "dd if=/dev/zero of=/dev/sda", "shred /dev/sdb", "echo x > /etc/shadow"]) {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 pathstest-http.js:109 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system filesconst child = startServer(rejectPort++, { env: { SSH_MCP_CONFIG: cfgPath, ...env } });Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
CRITICAL
Destructive command against a filesystem root or devicelib.js:60 · Destructive command against a filesystem root or device// 要求 / 后跟空白/结尾/星号,`bash -c "rm -rf /"` 的闭引号导致漏判)。Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
HIGH
Access to sensitive file pathsdemo-transfer.js:43 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system filesconsole.log(`读 /etc/shadow -> ${hit2 ? "已拦截 ✅" : "未拦截 ❌"}`);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 pathsdemo-transfer.js:42 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system filesconst hit2 = checkBlockedPath("/etc/shadow");Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
HIGH
References a credential file in the home directoryscripts/setup-limited-user.sh:3 · References a credential file in the home directory# 在目标机上以 root 执行;公钥文件内容来自网关侧(本机 ~/.ssh/id_ed25519.pub)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 pathsscripts/setup-limited-user.sh:11 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system files# 3. 写 /etc/sudoers.d/aiops 白名单(只读探查 + 受控服务管理,需 NOPASSWD 的按需删改)Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
MEDIUM
References a credential file in the home directory.github/workflows/ci.yml:27 · References a credential file in the home directorycfg.servers[0] = { id: 'self', name: 'ci-target', host: '127.0.0.1', port: 22, username: process.env.USER, privateKeyPath: '~/.ssh/id_ed25519' };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 pathsscripts/setup-limited-user.sh:3 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system files# 在目标机上以 root 执行;公钥文件内容来自网关侧(本机 ~/.ssh/id_ed25519.pub)Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
HIGH
Destructive file system command detectedscripts/check-v04.mjs:20 · Destructive file system command detectedfor (const cmd of ['rm -rf /', 'bash -c "rm -rf /"', "sh -c 'rm -rf /'", "rm -fr /*", "rm -f -r /"]) {Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
HIGH
Destructive file system command detectedtest-http.js:718 · Destructive file system command detectedawait client.callTool({ name: "run_command", arguments: { command: "rm -f /tmp/ssh-mcp-escape-link" } });Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
HIGH
Destructive file system command detectedscripts/check-v04.mjs:23 · Destructive file system command detectedassert.ok(!checkBlocked("rm -rf /tmp/build"));Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
CRITICAL
Destructive command against a filesystem root or devicetest-http.js:1054 · Destructive command against a filesystem root or deviceconst rootHard = await call({ command: 'bash -c "rm -rf /"' });Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
CRITICAL
Destructive command against a filesystem root or devicetest-http.js:1074 · Destructive command against a filesystem root or deviceconst blacklist = await call({ command: "rm -rf /", confirm: true });Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Reads credential paths from the home directory.github/workflows/ci.yml:46 · Reads credential paths from the home directorycat ~/.ssh/id_ed25519.pub >> ~/.ssh/authorized_keysFix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST03
HIGH
Destructive file system command detectedtest-nginx.js:58 · Destructive file system command detectedarguments: { command: "rm -rf /opt/nginx-demo" },Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
HIGH
Access to sensitive file pathsscripts/setup-limited-user.sh:34 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system fileschmod 440 /etc/sudoers.d/aiopsFix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
HIGH
Destructive file system command detecteddemo-edit.js:86 · Destructive file system command detectedawait run("⑧ 清理演示文件", `rm -f /tmp/app.conf /tmp/app.json && echo 已清理`);Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
CRITICAL
Destructive command against a filesystem root or devicetest-direct.js:19 · Destructive command against a filesystem root or deviceconst blocked = checkBlocked("rm -rf / --no-preserve-root");Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
HIGH
References a credential file in the home directoryconfig.example.json:9 · References a credential file in the home directory"privateKeyPath": "~/.ssh/id_ed25519",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 pathsscripts/setup-limited-user.sh:29 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system filescat > /etc/sudoers.d/aiops <<'SUDOEOF'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 pathstest-http.js:119 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system filescheck(!!checkBlockedPath("/tmp/../etc/passwd"), "A0 敏感路径黑名单匹配规范化路径");Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
MEDIUM
Privileged sudo command.github/workflows/ci.yml:42 · Privileged sudo command — agent may execute with elevated privilegessudo mkdir -p /run/sshdFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
MCP server using network transport (SSE/HTTP)server.js:737 · MCP server using network transport (SSE/HTTP) — data sent over network`[ssh-mcp-server] HTTP 模式已启动: ${tlsOptions ? "https" : "http"}://${host}:${port}/mcp ,` +Fix: Namespace tool names and keep tool descriptions literal; no instructions to the agent inside them.
AST04
MEDIUM
File permission modification commandlib.js:781 · File permission modification command — agent changes file ownership/permissionsif (cm.exitCode !== 0) return finish({ ok: false, code: 500, error: `chmod 失败: ${cm.stderr}`, bytes: count });Fix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.
AST05
MEDIUM
Access to sensitive file paths.github/workflows/ci.yml:45 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system filesmkdir -p ~/.ssh && chmod 700 ~/.sshFix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
MEDIUM
File permission modification command.github/workflows/ci.yml:45 · File permission modification command — agent changes file ownership/permissionsmkdir -p ~/.ssh && chmod 700 ~/.sshFix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.
AST05
MEDIUM
Privileged sudo command.github/workflows/ci.yml:41 · Privileged sudo command — agent may execute with elevated privilegessudo ssh-keygen -AFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Process kill commandlib.js:583 · Process kill command — agent can terminate processes`kill -TERM "$PID" 2>/dev/null; pkill -TERM -P "$PID" 2>/dev/null; sleep 0.5; ` +Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Privileged sudo command.github/workflows/ci.yml:40 · Privileged sudo command — agent may execute with elevated privilegessudo apt-get install -y -qq openssh-serverFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
File permission modification commandtest-http.js:739 · File permission modification command — agent changes file ownership/permissionsarguments: { command: "printf OLD > /tmp/ssh-mcp-e2e-test.txt && chmod 640 /tmp/ssh-mcp-e2e-test.txt" },Fix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.
AST05
MEDIUM
References a credential file in the home directory.github/workflows/ci.yml:46 · References a credential file in the home directorycat ~/.ssh/id_ed25519.pub >> ~/.ssh/authorized_keysFix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST03
MEDIUM
Privileged sudo command.github/workflows/ci.yml:43 · Privileged sudo command — agent may execute with elevated privilegessudo /usr/sbin/sshdFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
File permission modification commandbootstrap-host.js:30 · File permission modification command — agent changes file ownership/permissions`touch /root/.ssh/authorized_keys && chmod 600 /root/.ssh/authorized_keys && ` +Fix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.
AST05
MEDIUM
File permission modification commandtest-http.js:660 · File permission modification command — agent changes file ownership/permissionscheck(chmodBlocked.isError && String(chmodBlocked.content?.[0]?.text).includes("安全策略拦截"), "A4 chmod -R 777 / 被新黑名单拦截");Fix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.
AST05
MEDIUM
File permission modification command.github/workflows/ci.yml:47 · File permission modification command — agent changes file ownership/permissionschmod 600 ~/.ssh/authorized_keysFix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.
AST05
MEDIUM
Access to sensitive file paths.github/workflows/ci.yml:46 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system filescat ~/.ssh/id_ed25519.pub >> ~/.ssh/authorized_keysFix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
MEDIUM
File permission modification commandlib.js:647 · File permission modification command — agent changes file ownership/permissionsconst cm = await execOnConn(conn, `chmod ${finalMode} ${shq(tempPath)}`);Fix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.
AST05
MEDIUM
File permission modification commandscripts/setup-limited-user.sh:26 · File permission modification command — agent changes file ownership/permissionschown aiops:aiops /home/aiops/.ssh/authorized_keysFix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.
AST05
MEDIUM
MCP server using network transport (SSE/HTTP)SKILL.md:5 · MCP server using network transport (SSE/HTTP) — data sent over networkMCP server lvxiangjin/ssh-mcp-server on Glama, built from https://github.com/lvxiangjin/ssh-mcp-server.Fix: Namespace tool names and keep tool descriptions literal; no instructions to the agent inside them.
AST04
MEDIUM
File permission modification commandscripts/build-linux.sh:45 · File permission modification command — agent changes file ownership/permissionschmod +x "$OUT"Fix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.
AST05
MEDIUM
MCP server using network transport (SSE/HTTP)server.js:428 · MCP server using network transport (SSE/HTTP) — data sent over network"[ssh-mcp-server] HTTP 模式需要至少一种凭据来源:SSH_MCP_TOKEN 环境变量," +Fix: Namespace tool names and keep tool descriptions literal; no instructions to the agent inside them.
AST04
MEDIUM
Privileged sudo command.github/workflows/ci.yml:39 · Privileged sudo command — agent may execute with elevated privilegessudo apt-get update -qqFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Process kill commandlib.js:549 · Process kill command — agent can terminate processes`elif [ -f ${shq(dir + "/pid")} ] && kill -0 "$(cat ${shq(dir + "/pid")})" 2>/dev/null; then echo "state: running"; ` +Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
File permission modification commandscripts/gen-cert.sh:47 · File permission modification command — agent changes file ownership/permissionschmod 600 "$KEY"Fix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.
AST05
MEDIUM
Process kill commandlib.js:584 · Process kill command — agent can terminate processes`kill -KILL "$PID" 2>/dev/null; pkill -KILL -P "$PID" 2>/dev/null; ` +Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Access to sensitive file paths.github/workflows/ci.yml:44 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system filesssh-keygen -t ed25519 -N "" -f ~/.ssh/id_ed25519Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
MEDIUM
File permission modification commandbootstrap-host.js:29 · File permission modification command — agent changes file ownership/permissions"mkdir -p /root/.ssh && chmod 700 /root/.ssh && " +Fix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.
AST05
MEDIUM
MCP server using network transport (SSE/HTTP)server.js:752 · MCP server using network transport (SSE/HTTP) — data sent over network`[ssh-mcp-server] 未知的 SSH_MCP_TRANSPORT: ${transportMode}(支持 stdio / http)`Fix: Namespace tool names and keep tool descriptions literal; no instructions to the agent inside them.
AST04
MEDIUM
npx invocation of non-well-known packagescripts/build-linux.sh:43 · npx invocation of non-well-known package — may execute untrusted codenpx postject "$OUT" NODE_SEA_BLOB "$WORK/sea-prep.blob" \Fix: Pin versions and sources; vendor anything fetched at install time.
AST06
MEDIUM
Unicode escape sequence detectedlib.js:134 · Unicode escape sequence detected — may contain obfuscated payloadsthrow new Error(`\u8def\u5f84\u4e0d\u5728\u5141\u8bb8\u8303\u56f4\u5185: ${normalized}`);Fix: Put hosts, commands and strings in plain source. Decoding at runtime looks identical to malware and costs points on its own.
AST07
MEDIUM
File permission modification commandlib.js:780 · File permission modification command — agent changes file ownership/permissionsconst cm = await safeExec(`chmod ${finalMode} ${shq(tempPath)}`);Fix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.
AST05
MEDIUM
File permission modification commandlib.js:648 · File permission modification command — agent changes file ownership/permissionsif (cm.exitCode !== 0) throw new Error(`chmod 失败: ${cm.stderr}`);Fix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.
AST05
MEDIUM
MCP server using network transport (SSE/HTTP)test-http.js:931 · MCP server using network transport (SSE/HTTP) — data sent over networkcheck(m.status === 200 && m.body.includes("ssh-mcp-server"), "V1 HTTPS 下 /mcp 鉴权与协议正常");Fix: Namespace tool names and keep tool descriptions literal; no instructions to the agent inside them.
AST04
MEDIUM
npx invocation of non-well-known packagescripts/build-linux.sh:20 · npx invocation of non-well-known package — may execute untrusted codenpx esbuild "$SRC/server.js" \Fix: Pin versions and sources; vendor anything fetched at install time.
AST06
MEDIUM
File type combined with upload actiontest-http.js:552 · File type combined with upload action — agent may exfiltrate local data filescheck(rBlk.status === 400 && String((await rBlk.json()).error).includes("安全策略拦截"), "A3 敏感路径黑名单同样拦截 /upload");Fix: Remove the call, or declare the host in frontmatter and explain in the README what is sent and why.
AST07
MEDIUM
File permission modification commandscripts/setup-limited-user.sh:34 · File permission modification command — agent changes file ownership/permissionschmod 440 /etc/sudoers.d/aiopsFix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.
AST05
MEDIUM
File type combined with upload actionserver.js:628 · File type combined with upload action — agent may exfiltrate local data filesaudit.log({ ip, tokenId, tool: "upload_stream", args, ok, error: error ?? null });Fix: Remove the call, or declare the host in frontmatter and explain in the README what is sent and why.
AST07
MEDIUM
Access to sensitive file paths.github/workflows/ci.yml:27 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system filescfg.servers[0] = { id: 'self', name: 'ci-target', host: '127.0.0.1', port: 22, username: process.env.USER, privateKeyPath: '~/.ssh/id_ed25519' };Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
MEDIUM
File permission modification commandtest-http.js:659 · File permission modification command — agent changes file ownership/permissionsconst chmodBlocked = await client.callTool({ name: "run_command", arguments: { command: "chmod -R 777 /" } });Fix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.
AST05
MEDIUM
File permission modification commandscripts/setup-limited-user.sh:27 · File permission modification command — agent changes file ownership/permissionschmod 600 /home/aiops/.ssh/authorized_keysFix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.
AST05
MEDIUM
File type combined with upload actiontest-nginx.js:42 · File type combined with upload action — agent may exfiltrate local data filesconsole.log("\n== 3. upload_file(经 Nginx)==");Fix: Remove the call, or declare the host in frontmatter and explain in the README what is sent and why.
AST07
MEDIUM
File type combined with upload actionserver.js:649 · File type combined with upload action — agent may exfiltrate local data files.json({ error: `文件过大(${cl} 字节 > 上限 ${streamUploadMax}),可在 config.json 的 defaults.maxStreamUploadBytes 调整` });Fix: Remove the call, or declare the host in frontmatter and explain in the README what is sent and why.
AST07
MEDIUM
File type combined with upload actionserver.js:517 · File type combined with upload action — agent may exfiltrate local data filesconst jsonParser = express.json({ limit: Math.ceil(defaults.maxUploadBytes * 1.4) + 256 * 1024 });Fix: Remove the call, or declare the host in frontmatter and explain in the README what is sent and why.
AST07

Cost to the agent

Instructions loaded
≈38 tok
1 file · 81 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

Vulnerability advisories (OSV) cover npm and PyPI packages; this registry has no advisory database.

What would make this Verified

15 points to 80 · weights: behavior 45%, static 25%, prompt 15%, publisher 15%
  1. Destructive command against a filesystem root or device≈ +9 on the totalBuild commands from fixed arguments; do not interpolate untrusted strings into a shell.
  2. Unclaimed publisher≈ +8 on the totalClaim lvxiangjin: a verified publisher gets +50 on publisher trust. It is free and usually instant with GitHub sign-in.
  3. Destructive file system command detected≈ +4 on the totalBuild commands from fixed arguments; do not interpolate untrusted strings into a shell.
  4. Privileged sudo command≈ +4 on the totalBuild commands from fixed arguments; do not interpolate untrusted strings into a shell.
  5. 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.
  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 Glama, then queue it here. Not your skill? Claim the handle to get verdict changes by email.Claim lvxiangjinPropose a patch to the maintainer