rackhand@1.9.0
CAUTION· install onlyPublisher claims: "A self-hosted remote MCP server that gives AI agents a real shell, file read/write/edit, and background jobs on the VPS it runs on and on every host reachable over SSH, with NAT- and firewall-bound machines able to connect out through tunnels. Includes batched multi-step operations, an audit log, and a confirmation tripwire guarding destructive commands." In our sandbox: Bundled scripts ran with no arguments; no agent task scenario for this bundle.
Coverage
Bundled scripts ran with no arguments; no agent task scenario for this bundle.- Tested
- install scripts, with decoy credentials in place · second launch with the clock 45 days ahead · 4 of 4 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.
Behavior
In our sandbox run on 2026-11-21, [email protected] read no files and called no hosts, and its code names 16 environment variables. Coverage: install only.
Files read
None recorded.
Hosts called
None recorded.
Environment variables its code names
AUDIT_DIR, AUDIT_LOG, HOSTS_FILE, JOBS_DIR, MCP_SECRET, PQ_SSH, PQ_SSH_KEEP, PUBLIC_URL, SSHMCP_AUTHORIZED_KEYS, TRIPWIRE, TUNNEL, TUNNEL_DIR, TUNNEL_PORTS, TUNNEL_SSHD, TUNNEL_USER, UNIT_PATH
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
- use of the skill by an agent
| Run date | 2026-11-21 |
| Coverage | install only |
| Engine | 1.9.2, script@linux |
| Reproduce | npx -y vet-skills try rackhand |
| 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
MCP_SECRETSSHMCP_AUTHORIZED_KEYSor--no-ask-passwordConfiguration, not credentials: AUDIT_DIR, AUDIT_LOG, HOSTS_FILE, JOBS_DIR, PQ_SSH, PQ_SSH_KEEP, PUBLIC_URL, TRIPWIRE, TUNNEL, TUNNEL_DIR, TUNNEL_PORTS, TUNNEL_SSHD, TUNNEL_USER, UNIT_PATH- Where it talks to
- no vendor host named in the codeAlso githubusercontent.com, nodejs.org, ipify.org, ifconfig.me, caddyserver.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
- use of the skill by an agent
Connect it with a scoped credential, under the guard, and read the third-party hosts first. The code names githubusercontent.com, nodejs.org, ipify.org, ifconfig.me, caddyserver.com as well as its own vendor. The guard injects MCP_SECRET, SSHMCP_AUTHORIZED_KEYS only into requests to the host you bind (and its subdomains) and refuses the rest.
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 (3 scenarios; bundled scripts ran with no arguments; no agent task scenario for this bundle) on 2026-11-21 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: URL to the cloud instance metadata address; Pipe-to-shell pattern; Privileged sudo command. Summary: no network, touches nothing outside the project, writes no memory.
Behavior trace
Honeypot run · 15 s · 3 scenariosStatic findings
TOK=$(curl -s -m 2 -X PUT http://169.254.169.254/latest/api/token -H 'X-aws-ec2-metadata-token-ttl-seconds: 60' 2>/dev/null || true)Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.# Everything is in one function, so that bash has read the whole script before any of it runs (curl ... | bash).Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.[ "$(id -u)" = 0 ] || die "run as root (sudo bash install.sh)"Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.# curl -fsSL https://raw.githubusercontent.com/Matrixx0070/rackhand/main/install.sh | sudo bashFix: Pin versions and sources; vendor anything fetched at install time.# curl -fsSL https://raw.githubusercontent.com/Matrixx0070/rackhand/main/install.sh | sudo bashFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.const name = w.length ? baseName(w[0]) : /^(sudo|doas)$/.test(baseName(words[0])) ? "sh" : ""; // `sudo -i` is a shellFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.… || exit 96\\n' "$(${cdExpr})" > "$D/$id.cmd"; printf %s ${shq(b64(command))} | base64 -d >> "$D/$id.cmd"` : `printf %s ${shq(b64(command))} | base64 -d > "$D/$id.cmd"`} || { echo "cannot write $D/$id.cmd" >&2; exit 98; } cat > "$D/$id.sh"…Fix: Put hosts, commands and strings in plain source. Decoding at runtime looks identical to malware and costs points on its own.[ -n "$TOK" ] && PUBLIC_IP=$(curl -s -m 2 -H "X-aws-ec2-metadata-token: $TOK" http://169.254.169.254/latest/meta-data/public-ipv4 2>/dev/null || true)Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.if [ -n "${TOK:-}" ]; then ROLE=$(curl -s -m 2 -H "X-aws-ec2-metadata-token: $TOK" http://169.254.169.254/latest/meta-data/iam/security-credentials/ 2>/dev/null | head -1 || true); fiFix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.// The wrapper traps TERM so that after a kill it still records the exit code (143).Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.# KillMode=process + OOMPolicy=continue: restarting, crashing or an out-of-memory kill of the connectorFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.` mkdir -p ~/.ssh && chmod 700 ~/.ssh && echo '${key.publicKey}' >> ~/.ssh/authorized_keys && chmod 600 ~/.ssh/authorized_keys`,Fix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.// A recursive delete, chmod or chown of one of these breaks the machine ...Fix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.["false && rm -rf / home/user/old", /recursive delete of "\/"/], // the classic stray spaceFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.const linkIn = (text) => (/^ curl -fsSL https:\/\/127\.0\.0\.1:\d+\/t\/([0-9a-f]{32}) \| sudo bash$/m.exec(text) ?? [])[1];Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.` curl -fsSL ${url} | sudo bash`,Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.` curl -fsSL ${url} | sudo bash`,Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.let stderr = "", aborted = false, settled = false, kill = () => {}, src: Readable | null = null;Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.`1. On that server, as ${username}, add this line to ~/.ssh/authorized_keys:`,Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.# 2. lets the connector log in as __USERNAME__: adds the connector's key to that user's ~/.ssh/authorized_keysFix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.[ "$(id -u)" = 0 ] || die "run it as root (curl ... | sudo bash): it installs a system service. To keep the tunnel in the foreground instead, without root: SSHMCP_TUNNEL_FOREGROUND=1"Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.["false && rm -rf /", /recursive delete of "\/"/],Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.if mkdir -p "$d" 2>/dev/null && cp "$0" "$d/box" 2>/dev/null && chmod +x "$d/box"; thenFix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.chmod 600 "$APP/hosts.json"Fix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.chmod +x /usr/local/bin/caddyFix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.chmod 700 "$D" 2>/dev/nullFix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.sig() { kill "-$1" -- "-$pid" 2>/dev/null || kill "-$1" "$pid" 2>/dev/null; systemctl kill --signal="$1" "ssh-mcp-job-$id.scope" >/dev/null 2>&1; return 0; }Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.chmod 600 "$ENVF"Fix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.# To undo it: systemctl disable --now ssh-mcp-tunnel; rm -r /etc/ssh-mcp-tunnel /etc/systemd/system/ssh-mcp-tunnel.serviceFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.mkdir -p "$APP"; chmod 755 "$APP"Fix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.assert.ok(r.text.includes(`curl -fsSL https://127.0.0.1:${U.tlsPort}/t/${U.link} | sudo bash`));Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.const json = express.json({ limit: "20mb" }); // only on the MCP routes: bridge uploads must arrive unparsedFix: Remove the call, or declare the host in frontmatter and explain in the README what is sent and why."If the server does not accept that key yet, the tool returns the public key line to add to the server's ~/.ssh/authorized_keys: have the user do that, then call it again. " +Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.# curl -fsSL https://raw.githubusercontent.com/Matrixx0070/rackhand/main/install.sh | sudo bashFix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.- run: sudo apt-get install -y openssh-server openssh-client # a real sshd for the post-quantum testsFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell."curl -fsSL https://example.com/install.sh | bash",Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.${DIR_LIB}R=$(dirname "$D"); mkdir -p "$R/sessions" "$R/out" 2>/dev/null; chmod 700 "$R/sessions" "$R/out" 2>/dev/nullFix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.// Where state lives on the target host: $D = jobs dir (falls back to ~/.ssh-mcp/jobs when not writable).Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.` mkdir -p ~/.ssh && chmod 700 ~/.ssh && echo '${key.publicKey}' >> ~/.ssh/authorized_keys && chmod 600 ~/.ssh/authorized_keys`,Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.# 1. UNITFIX=1 (first run only): install a unit drop-in so that a restart, a crash or an OOM kill of theFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.if [ -n "$home" ]; then chown "$user:$group" "$ak"; fiFix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.# Stopping, restarting or an out-of-memory kill of the connector no longer takes down what was started through it.Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.["false && chmod -R 777 /", /recursive chmod of "\/"/],Fix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts."curl -fsSL https://example.com/install.sh | bash",Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.["false && bash -c 'rm -rf /'", /recursive delete of "\/"/],Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.['false && sudo sh -lc "rm -rf /opt/*"', /recursive delete of "\/opt"/],Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.await assert.rejects(call("bash", { host: "local", command: `kill -9 ${p.pid} # a7-killer` }, base));Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.`chmod -R 755 ${d}`,Fix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.["false && rm -r /etc", /recursive delete of "\/etc"/],Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.["false && rm -rf / home/user/old", /recursive delete of "\/"/], // the classic stray spaceFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.["false && ssh -p 2222 -i /root/.ssh/id [email protected] 'rm -rf /'", /recursive delete of "\/"/],Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.# Everything is in one function, so that bash has read the whole script before any of it runs (curl ... | bash).Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.["false && sudo rm -rf --no-preserve-root /", /recursive delete of "\/"/],Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.["false && rm -rf /", /recursive delete of "\/"/],Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.chmod 700 "$dir"Fix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.assert.match(shown, new RegExp(` bash local no result \\(still running, or the server stopped\\) - kill -9 ${p.pid} # a7-killer$`, "m"));Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.["false && rm -fr /*", /recursive delete of "\/"/],Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.["false && sudo -i <<EOF\nreboot\nEOF", /reboot stops or restarts the machine/],Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.test(`N8 ssh_job kill ${host}: job ignoring SIGTERM gets SIGKILL after 5s, exit 137`, async () => {Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.test(`N7 ssh_job kill ${host}: SIGTERM ends the whole process group, exit 143`, async () => {Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.[ "$(id -u)" = 0 ] || die "run it as root (curl ... | sudo bash): it installs a system service. To keep the tunnel in the foreground instead, without root: SSHMCP_TUNNEL_FOREGROUND=1"Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.assert.ok(auditEntries(fallback).some((e) => e.tool === "list_hosts" && e.done && e.ok), "calls are logged under ~/.ssh-mcp/audit");Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.["false && sudo systemctl reboot", /systemctl reboot stops or restarts the machine/],Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.chmod 700 "$dir/connect"Fix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.["false && rm -fr /*", /recursive delete of "\/"/],Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.["false && sudo -u root rm -rf /", /recursive delete of "\/"/],Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.test("K7 a host written into hosts.json by hand becomes post-quantum with \"pq\": true - given a pinned host key and a key file without a passphrase", { skip: NO_REAL }, async () => {Fix: Remove the call, or declare the host in frontmatter and explain in the README what is sent and why.for (const bad of ["../../etc/passwd", "a b", "x;id", ""]) assert.equal((await job(host, bad, "status")).isError, true, bad);Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.const js = await fetch(`${BR}/fs/${host}?p64=${p64(path.join(dir, "data.json"))}`, { method: "PUT", headers: { "Content-Type": "application/json" }, body: '{"a": 1}' });Fix: Remove the call, or declare the host in frontmatter and explain in the README what is sent and why.["false && chown -R nobody:nogroup /etc", /recursive chown of "\/etc"/],Fix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.env: { ...process.env, PORT: String(port), MCP_SECRET: SECRET, HOSTS_FILE: path.join(TMP, "hosts.json"), JOBS_DIR: JOBS, TMPDIR: CODE_TMP, PQ_SSH_KEEP: "3", ...env },Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.["false && rm -Rf /usr/", /recursive delete of "\/usr"/],Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.…vps <URL>` | | **ChatGPT** | Settings → Apps & Connectors → Advanced → turn on *Developer mode*, add a connector with the URL, authentication: *No authentication*. Which plan…Fix: Remove the text that addresses the agent rather than the reader; describe behavior, do not instruct.m=$(mainpid); kill -9 "$m"; sleep 1; waitfor $TOFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.# O out-of-memory kill inside the unit -> only the hog dies, unit and workloads carry onFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.for q in $KEEP $(listener); do incg "$q" && kill -TERM "$q" 2>/dev/null; doneFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.…vps <URL>` | | **ChatGPT** | Settings → Apps & Connectors → Advanced → turn on *Developer mode*, add a connector with the URL, authentication: *No authentication*. Which plan…Fix: Keep SKILL.md to visible, descriptive text. Remove comments and encoded text that address the agent.for q in $KEEP $(listener); do incg "$q" && kill -KILL "$q" 2>/dev/null; doneFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.echo; echo "== S. plain 'systemctl restart', then a crash of the connector (kill -9)"Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.[ -n "$PH" ] && kill "$PH" 2>/dev/nullFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.echo "MCP_SECRET=$(openssl rand -hex 32)" > $R/env; chmod 600 $R/env # throwaway secretFix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.# S plain restart, then a crash (kill -9) -> workloads alive both timesFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.for p in $(cat $CG/cgroup.procs 2>/dev/null); do kill -9 "$p" 2>/dev/null; done # only this throwaway unit's cgroupFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.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
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%- URL to the cloud instance metadata address≈ +9 on the totalStop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
- Pipe-to-shell pattern≈ +9 on the totalBuild commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
- Unclaimed publisher≈ +8 on the totalClaim matrixx0070: 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.
- Privileged sudo command≈ +4 on the totalBuild commands from fixed arguments; do not interpolate untrusted strings into a shell.
- Direct script execution from GitHub raw URL≈ +4 on the totalPin versions and sources; vendor anything fetched at install time.