Skills/Glama/the-bastion-mcp

the-bastion-mcp@0.1.0

CAUTION· not started

Publisher claims: "Enables AI coding agents to run one-shot commands and copy single files to and from remote servers through The Bastion, which authenticates, authorizes, and records each action. Access is controlled by the bastion rather than allowlists or deny lists." In our sandbox: Not started: dependency install failed; the server itself was not observed.

Registry GlamaPublisher fihufil · publishing for 18 daysInstalls 0Last detonated 18d ago

Coverage

Not started: dependency install failed; the server itself was not observed.
Tested
the dependency install step · every file read, file written and host contacted by what ran
Not tested
server startup · the tool list · tool behavior

What this means for the label: Caution here covers what ran. The server's tools were not exercised with a real credential, so nothing about their behavior is asserted; the credential summary below says what to do with that.

Behavior

In our sandbox run on 2026-11-06, [email protected] read no files and called no hosts, and its code names no environment variables. Coverage: not started.

Files read

None recorded.

Hosts called

None recorded.

Environment variables its code names

None found.

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 date2026-11-06
Coveragenot started
Engine1.9.2, script@linux
Reproducenpx -y vet-skills try the-bastion-mcp
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

Code inventory arrives with this version's next honeypot run.
It will ask for
unknown until the next run
Where it talks to
unknown until the next run
What we saw when it ran
no credential files read · no network
What we could not test
server startup · the tool list · tool behavior

Not enough was observed to say yet. Not started: dependency install failed; the server itself was not observed. This version's code has not been inventoried for credentials and hosts either; both arrive with its next honeypot run (popular servers first). `vet-skills try the-bastion-mcp` runs it now and prints the full answer.

Never paste a credential into a chat, a ticket or a report, including ours. How the guard holds it.

Is [email protected] safe to install?

KillerSkills ran it in the KillerSkills honeypot sandbox (2 scenarios; not started: dependency install failed; the server itself was not observed) on 2026-11-06 and scored it 74/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; Privileged sudo command; Access to sensitive file paths. Summary: no network, touches nothing outside the project, writes no memory.

Behavior trace

Honeypot run · 0 s · 2 scenarios · 0 deviations
t+CategoryObserved action
0.0sprocessno install scripts in bundle
0.1sprocessdependency install exit 1
0.2sprocessexec /usr/bin/date
0.2sprocessexec /usr/bin/timeout
0.2sprocessexec .venv/bin/the-bastion-mcp
0.2sclaimedno tools/list reply (exit 0)
0.2sprocessscript backend runs setup only
0.2sprocessno install scripts to re-run

Static findings

MEDIUM
Python subprocess execution detectedtests/fake_ssh.py:66 · Python subprocess execution detectedrc = subprocess.call([os.environ["FAKE_SSH_SFTP_SERVER"]])Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
HIGH
Privileged sudo commandsrc/the_bastion_mcp/server.py:52 · Privileged sudo command — agent may execute with elevated privileges(use --no-pager, -y, sudo -n with passwordless sudo).Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Privileged sudo commandtests/integration/test_integration.py:303 · Privileged sudo command — agent may execute with elevated privilegesassert sh.returncode != 0, "sudo must not allow a shell as the backend user"Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
HIGH
Privileged sudo commandsrc/the_bastion_mcp/config.py:29 · Privileged sudo command — agent may execute with elevated privileges`sudo -n -u <backend user>` in front.Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Python subprocess execution detectedtests/integration/test_integration.py:305 · Python subprocess execution detectedp = subprocess.run(argv, input=b'{"version":1}', capture_output=True)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
HIGH
Access to sensitive file pathsbackend.example.toml:16 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system filesidentity_file = "~/.ssh/aiagent" # key file without a passphrase, mode 0600. "~" = home of the backend userFix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
MEDIUM
Privileged sudo commandtests/integration/test_integration.py:306 · Privileged sudo command — agent may execute with elevated privilegesassert p.returncode != 0 and p.stdout == b"", "sudo must not allow arguments"Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Python subprocess execution detectedtests/fake_ssh.py:138 · Python subprocess execution detectedrc = subprocess.call(["/bin/bash", "-c", command], env=env)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
HIGH
Access to sensitive file pathssrc/the_bastion_mcp/backend/ssh.py:139 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system filesopts += ["ControlMaster=auto", "ControlPersist=60", "ControlPath=~/.ssh/cm-%C"]Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
MEDIUM
Python subprocess execution detectedtests/integration/test_integration.py:43 · Python subprocess execution detectedwant = subprocess.run(["bash", "-c", cmd], capture_output=True, env=env, timeout=30)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/integration/conftest.py:141 · Python subprocess execution detectedreturn subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
HIGH
Privileged sudo commandsrc/the_bastion_mcp/backend_client.py:188 · Privileged sudo command — agent may execute with elevated privileges# In split mode the child is sudo (it relays SIGTERM). The backend itself belongs to another user.Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Privileged sudo commandtests/integration/test_integration.py:291 · Privileged sudo command — agent may execute with elevated privilegespytest.fail("the [split] mcp_config must run the backends with `sudo -n -u <backend user>`")Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Access to sensitive file pathstests/integration/integration.example.toml:16 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system filesidentity_file = "~/.ssh/aiagent" # key file without a passphrase (mode 0600); no ssh-agent is usedFix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
MEDIUM
Python subprocess execution detectedtests/integration/test_integration.py:302 · Python subprocess execution detectedsh = subprocess.run(["sudo", "-n", "-u", user, "/bin/sh", "-c", "true"], capture_output=True)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
HIGH
Privileged sudo commandsrc/the_bastion_mcp/backend/audit.py:37 · Privileged sudo command — agent may execute with elevated privileges"""SUDO_USER when the backend runs under sudo as another user, else the effective user."""Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
LOW
Authorization escalation languagedocs/setup.md:226 · Authorization escalation language · informational: not an instruction file · informational: not an instruction file · informational: not an instruction file · informational: not an instruction file2. The agent user is not in a group that gives root access, for example `docker` or `lxd`.Fix: Remove the text that addresses the agent rather than the reader; describe behavior, do not instruct.
AST01
MEDIUM
Access to sensitive file pathstests/unit/test_transfer.py:321 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system filesperm = HELLO + 'remote open "/etc/shadow": Permission denied (x)\r\n>>> Done, 134 bytes uploaded.\n'Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
MEDIUM
Python subprocess execution detectedtests/unit/test_protocol.py:64 · Python subprocess execution detectedp = subprocess.Popen(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/unit/test_protocol.py:76 · Python subprocess execution detectedsubprocess.run(["sleep", "0.05"])Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/unit/test_wire.py:75 · Python subprocess execution detectedreturn subprocess.run(["bash", "-c", script], input=input, capture_output=True, env=env, cwd="/", timeout=30)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Access to sensitive file pathstests/integration/test_integration.py:237 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system filesr, _ = await download(live, "/etc/shadow")Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
MEDIUM
Access to sensitive file pathstests/unit/test_validation.py:167 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system files"identity_file": "~/.ssh/k",Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
MEDIUM
Access to sensitive file pathstests/unit/test_transfer.py:258 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system files({"local_path": "/etc/passwd"}, "local_path: Extra inputs are not permitted"),Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
MEDIUM
Access to sensitive file pathstests/unit/test_backend_config.py:16 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system filesassert _shorten(home / ".ssh" / "k", home) == "~/.ssh/k"Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
MEDIUM
Python subprocess execution detectedtests/unit/test_protocol.py:16 · Python subprocess execution detectedreturn subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Access to sensitive file pathstests/unit/test_validation.py:31 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system filesbastion = {"host": "the-bastion1", "port": 2022, "user": "aiagent", "identity_file": "~/.ssh/aiagent"}Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
MEDIUM
Python subprocess execution detectedtests/unit/test_run_command.py:33 · Python subprocess execution detectedwant = subprocess.run(["bash", "-c", cmd], capture_output=True, timeout=30, env={"PATH": "/usr/bin:/bin"})Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05

Cost to the agent

Instructions loaded
≈37 tok
1 file · 57 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

6 points to 80 · weights: behavior 45%, static 25%, prompt 15%, publisher 15%
  1. Unclaimed publisher≈ +8 on the totalClaim fihufil: a verified publisher gets +50 on publisher trust. It is free and usually instant with GitHub sign-in.
  2. Privileged sudo command≈ +4 on the totalBuild commands from fixed arguments; do not interpolate untrusted strings into a shell.
  3. 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.
  4. New publisher≈ +3 on the totalTime clears this on its own after 14 and 30 days. Claiming the handle (+50) is the fastest way past it.
  5. Python subprocess execution detected≈ +2 on the totalBuild commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
Publish a new version to Glama, then queue it here. Not your skill? Claim the handle to get verdict changes by email.Claim fihufilPropose a patch to the maintainer