Skills/PyPI/medusa-mcp

medusa-mcp@2.2.2

CAUTION· install only

Publisher claims: "Endpoint security agent for Model Context Protocol (MCP) servers" Observed in sandbox: no network, touches nothing outside the project, writes no memory.

Registry PyPI (MCP server)Publisher joshmaster2165 · publishing for 178 daysInstalls 21Last detonated 3d ago

Coverage

Nothing executable in the bundle ran; the trace covers the install step only.
Tested
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
HF_TOKENPOLICY_SIGNING_SECRET or --hf-tokenConfiguration, not credentials: MEDUSA_GITHUB_REPO, MEDUSA_LOG_FORMAT, SUDO_GID, SUDO_UID
Where it talks to
no vendor host named in the codeAlso jsonrpc.org, evil.com, attacker.com — not the publisher's domain; check what for before connecting.
What the honeypot saw
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 jsonrpc.org, evil.com, attacker.com as well as its own vendor. The guard injects HF_TOKEN, POLICY_SIGNING_SECRET only into requests to the host you bind (and its subdomains) and refuses the rest.

$vet-skills run --net declared -- uvx medusa-mcp

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 (1 scenario; nothing executable in the bundle ran; the trace covers the install step only) on 2026-11-11 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; Privileged sudo command; Privileged sudo command. Summary: no network, touches nothing outside the project, writes no memory.

Behavior trace

Honeypot run · 0 s · 1 scenarios · 0 deviations
t+CategoryObserved action
0.0sprocessno install scripts in bundle
0.0sprocessscript backend runs setup only
0.0sprocessscript backend runs setup only
0.0sprocessno install scripts to re-run

Static findings

HIGH
Privileged sudo commandsrc/medusa/agent/doctor.py:931 · Privileged sudo command — agent may execute with elevated privileges"Repair with: sudo chown -R $USER:staff ~/.medusa, "Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
HIGH
Privileged sudo commandsrc/medusa/agent/update_installer.py:117 · Privileged sudo command — agent may execute with elevated privileges"installer without sudo failed (rc=%d): %s",Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
HIGH
Privileged sudo commandsrc/medusa/agent/platform/darwin.py:47 · Privileged sudo command — agent may execute with elevated privileges# When `sudo medusa-agent install` is used, mkdir creates dirsFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
HIGH
Access to sensitive file pathssrc/medusa/training/convert_bigcode.py:64 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system filesenv_path = Path(__file__).resolve().parents[3] / ".env"Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
HIGH
Auto-update or dynamic fetch configurationsrc/medusa/agent/telemetry.py:206 · Auto-update or dynamic fetch configuration — agent may load new code at runtime# Sync auto_update_enabled from dashboard → agent configFix: Remove the call, or declare the host in frontmatter and explain in the README what is sent and why.
AST06
HIGH
Auto-update or dynamic fetch configurationsrc/medusa/agent/daemon.py:342 · Auto-update or dynamic fetch configuration — agent may load new code at runtimeself._config.auto_update_interval_seconds,Fix: Pin versions and sources; vendor anything fetched at install time.
AST06
HIGH
Access to sensitive file pathssrc/medusa/training/convert_bigcode.py:11 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system files# Set HF_TOKEN in medusa/.env, then: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 pathssrc/medusa/training/convert_bigcode.py:74 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system filesprint("Error: HF_TOKEN not found. Set it in medusa/.env or as an environment variable.")Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
MEDIUM
File permission modification commandsrc/medusa/agent/doctor.py:168 · File permission modification command — agent changes file ownership/permissionsfix="Run: chmod 600 ~/.medusa/agent-config.yaml",Fix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.
AST05
HIGH
Privileged sudo commandsrc/medusa/agent/update_installer.py:11 · Privileged sudo command — agent may execute with elevated privileges* **macOS** — ``installer -pkg`` → ``sudo -n installer`` → direct swapFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
HIGH
Access to sensitive file pathssrc/medusa/cli/agent_cli.py:735 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system fileshelp='Tool arguments as a JSON object, e.g. \'{"path":"/etc/passwd"}\'',Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
MEDIUM
Python subprocess execution detectedsrc/medusa/agent/platform/darwin.py:97 · Python subprocess execution detectedresult = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Process kill commandsrc/medusa/agent/daemon.py:227 · Process kill command — agent can terminate processes# Best-effort: failure to bind doesn't kill the daemon.Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Remote installer piped to shellsrc/medusa/agent/config_monitor.py:332 · Remote installer piped to shelldescription="Unsafe pipe command (curl|sh pattern) in server config",Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST07
HIGH
Privileged sudo commandsrc/medusa/agent/update_installer.py:122 · Privileged sudo command — agent may execute with elevated privileges# Attempt 2: installer with non-interactive sudoFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Python subprocess execution detectedsrc/medusa/agent/platform/linux.py:72 · Python subprocess execution detectedresult = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedsrc/medusa/agent/platform/darwin.py:73 · Python subprocess execution detectedresult = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
HIGH
Access to sensitive file pathssrc/medusa/training/convert_bigcode.py:63 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system files# Try .env in project rootFix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
HIGH
Access to sensitive file pathssrc/medusa/gateway/policy.py:63 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system files``path`` matches ``/etc/shadow``).Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
MEDIUM
File permission modification commandsrc/medusa/agent/doctor.py:931 · File permission modification command — agent changes file ownership/permissions"Repair with: sudo chown -R $USER:staff ~/.medusa, "Fix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.
AST05
MEDIUM
Python subprocess execution detectedsrc/medusa/agent/platform/darwin.py:85 · Python subprocess execution detectedresult = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
HIGH
Privileged sudo commandsrc/medusa/cli/agent_cli.py:109 · Privileged sudo command — agent may execute with elevated privileges"Re-run without sudo — Medusa is installed per-user. "Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
HIGH
Auto-update or dynamic fetch configurationsrc/medusa/agent/telemetry.py:207 · Auto-update or dynamic fetch configuration — agent may load new code at runtimeauto_update = data.get("auto_update_enabled")Fix: Remove the call, or declare the host in frontmatter and explain in the README what is sent and why.
AST06
MEDIUM
File permission modification commandsrc/medusa/agent/daemon.py:81 · File permission modification command — agent changes file ownership/permissionskey is left in the YAML at chmod 0600 (legacy behavior).Fix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.
AST05
MEDIUM
Process kill commandsrc/medusa/agent/control_server.py:66 · Process kill command — agent can terminate processes"""Start the server. Best-effort — failures don't kill the daemon."""Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
HIGH
Access to sensitive file pathssrc/medusa/connectors/mcp_clients.py:120 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system files"linux": "~/.aws/amazonq/mcp.json",Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
HIGH
Auto-update or dynamic fetch configurationsrc/medusa/agent/daemon.py:337 · Auto-update or dynamic fetch configuration — agent may load new code at runtimeif self._config.auto_update_enabled:Fix: Pin versions and sources; vendor anything fetched at install time.
AST06
HIGH
Auto-update or dynamic fetch configurationsrc/medusa/agent/models.py:129 · Auto-update or dynamic fetch configuration — agent may load new code at runtimeauto_update_enabled: bool = TrueFix: Pin versions and sources; vendor anything fetched at install time.
AST06
HIGH
Auto-update or dynamic fetch configurationsrc/medusa/agent/telemetry.py:208 · Auto-update or dynamic fetch configuration — agent may load new code at runtimeif auto_update is not None:Fix: Remove the call, or declare the host in frontmatter and explain in the README what is sent and why.
AST06
HIGH
Privileged sudo commandsrc/medusa/agent/update_installer.py:105 · Privileged sudo command — agent may execute with elevated privileges# Attempt 1: installer without sudo (works if running as admin/root)Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
HIGH
Auto-update or dynamic fetch configurationsrc/medusa/agent/models.py:130 · Auto-update or dynamic fetch configuration — agent may load new code at runtimeauto_update_interval_seconds: int = 3600 # check hourlyFix: Pin versions and sources; vendor anything fetched at install time.
AST06
HIGH
Privileged sudo commandsrc/medusa/agent/update_installer.py:12 · Privileged sudo command — agent may execute with elevated privileges* **Linux** — ``dpkg -i`` → ``sudo -n dpkg`` → direct swapFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
HIGH
Access to sensitive file pathssrc/medusa/connectors/mcp_clients.py:118 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system files"darwin": "~/.aws/amazonq/mcp.json",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 pathssrc/medusa/training/convert_bigcode.py:62 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system files"""Load HuggingFace token from .env file or environment."""Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
HIGH
Auto-update or dynamic fetch configurationsrc/medusa/agent/telemetry.py:190 · Auto-update or dynamic fetch configuration — agent may load new code at runtimeremotely toggle auto-update behavior on individual agents.Fix: Remove the call, or declare the host in frontmatter and explain in the README what is sent and why.
AST06
HIGH
Auto-update or dynamic fetch configurationsrc/medusa/agent/telemetry.py:189 · Auto-update or dynamic fetch configuration — agent may load new code at runtimeAlso handles ``auto_update_enabled`` to allow the dashboard toFix: Remove the call, or declare the host in frontmatter and explain in the README what is sent and why.
AST06
MEDIUM
Python subprocess execution detectedsrc/medusa/agent/platform/windows.py:110 · Python subprocess execution detectedresult = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedsrc/medusa/agent/platform/linux.py:82 · Python subprocess execution detectedresult = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedsrc/medusa/agent/platform/windows.py:63 · Python subprocess execution detectedresult = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedsrc/medusa/agent/platform/windows.py:78 · Python subprocess execution detectedresult = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedsrc/medusa/agent/update_installer.py:204 · Python subprocess execution detectedresult = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Process kill commandsrc/medusa/gateway/proxy.py:689 · Process kill command — agent can terminate processes# Also kill the process group to clean up node childrenFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
npx invocation of non-well-known packagesrc/medusa/cli/agent_cli.py:1506 · npx invocation of non-well-known package — may execute untrusted codemedusa-agent gateway-proxy -- npx -y @modelcontextprotocol/server-everythingFix: Pin versions and sources; vendor anything fetched at install time.
AST06
MEDIUM
Python subprocess execution detectedsrc/medusa/agent/update_installer.py:123 · Python subprocess execution detectedresult = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Process kill commandsrc/medusa/gateway/proxy.py:634 · Process kill command — agent can terminate processesstart_new_session=True, # Own process group for clean killFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Python subprocess execution detectedsrc/medusa/agent/update_installer.py:155 · Python subprocess execution detectedresult = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
File permission modification commandsrc/medusa/agent/secrets.py:6 · File permission modification command — agent changes file ownership/permissions``~/.medusa/agent-config.yaml`` at chmod 600. That's enough to keepFix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.
AST05
MEDIUM
Process kill commandsrc/medusa/agent/policy_sync.py:305 · Process kill command — agent can terminate processes# Best-effort: a write failure shouldn't kill the sync.Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Python subprocess execution detectedsrc/medusa/agent/platform/linux.py:123 · Python subprocess execution detectedresult = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedsrc/medusa/agent/platform/linux.py:95 · Python subprocess execution detectedresult = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedsrc/medusa/agent/update_installer.py:106 · Python subprocess execution detectedresult = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
npx invocation of non-well-known packagesrc/medusa/gateway/proxy.py:8 · npx invocation of non-well-known package — may execute untrusted codemedusa gateway-proxy -- npx -y @modelcontextprotocol/server-everythingFix: Pin versions and sources; vendor anything fetched at install time.
AST06
MEDIUM
npx invocation of non-well-known packagesrc/medusa/gateway/proxy.py:684 · npx invocation of non-well-known package — may execute untrusted code# process group (npx spawns node children that survive a simpleFix: Pin versions and sources; vendor anything fetched at install time.
AST06
MEDIUM
Python subprocess execution detectedsrc/medusa/agent/platform/windows.py:98 · Python subprocess execution detectedresult = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedsrc/medusa/agent/platform/windows.py:46 · Python subprocess execution detectedresult = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedsrc/medusa/agent/update_installer.py:172 · Python subprocess execution detectedresult = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedsrc/medusa/cli/agent_cli.py:690 · Python subprocess execution detectedsubprocess.run(["tail", "-f", "-n", str(lines), str(log_file)])Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedsrc/medusa/agent/platform/linux.py:109 · Python subprocess execution detectedresult = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05

Cost to the agent

Instructions loaded
≈51 tok
1 file · 60 in bundle

Tokens estimated at four characters each. Skills load their instruction text when triggered; the figure is what that costs.

Known vulnerabilities

No advisories in OSV for medusa-mcp@2.2.2 as of 3d ago. This is the package itself, not its dependencies.

What would make this Verified

12 points to 80 · weights: behavior 45%, static 25%, prompt 15%, publisher 15%
  1. Unclaimed publisher≈ +8 on the totalClaim joshmaster2165: 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. Auto-update or dynamic fetch configuration≈ +4 on the totalRemove the call, or declare the host in frontmatter and explain in the README what is sent and why.
  5. File permission modification command≈ +2 on the totalRequest the narrowest permission that works; replace wildcards with the exact paths or hosts.
  6. 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 PyPI, then queue it here. Not your skill? Claim the handle to get verdict changes by email.Claim joshmaster2165Propose a patch to the maintainer