Skills/PyPI/mcp-behave

mcp-behave@0.3.0

CAUTION· startup only

Publisher claims: "Runtime behavioral auditor for MCP servers — scope-violation detection via native interposition & syscall tracing" Observed in sandbox: no network, touches nothing outside the project, writes no memory.

Registry PyPI (MCP server)Publisher navid72m · publishing for 146 daysInstalls 354Last detonated 35 min 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.

Before you give it your token

It will ask for
MCP_BEHAVE_TOKENConfiguration, not credentials: MCP_BEHAVE_CALL_TIMEOUT, MCP_BEHAVE_DASHBOARD_URL, MCP_BEHAVE_DEBUG, MCP_BEHAVE_STATE_DIR, OUT_DIR, PROBE_NOISE_EXTRA, TRACE_FILE
Where it talks to
no vendor host named in the codeAlso python.org, astral.sh, githubusercontent.com, modelcontextprotocol-security.io, attacker-c2.example — 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
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, and read the third-party hosts first. The code names python.org, astral.sh, githubusercontent.com, modelcontextprotocol-security.io, attacker-c2.example as well as its own vendor. The guard injects MCP_BEHAVE_TOKEN only into requests to the host you bind (and its subdomains) and refuses the rest.

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

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

What changed since 0.1.3

vet-skills diff mcp-behave 0.1.3 0.3.0

This version reaches for something 0.1.3 did not: 5 new hosts (astral.sh, attacker-c2.example, githubusercontent.com, modelcontextprotocol-security.io, …) · 1 new credential variable (MCP_BEHAVE_TOKEN) · 2 new credential files (~/.env, ~/.ssh/id_rsa). Compared from the two recorded runs, not from source.

New hosts
astral.sh, attacker-c2.example, githubusercontent.com, modelcontextprotocol-security.io, python.org
New credential variables
MCP_BEHAVE_TOKEN
New credential files
~/.env, ~/.ssh/id_rsa

0.1.3 was not run in the sandbox (install failed); the comparison covers what static analysis recorded only.

The guard can hold an update like this until someone approves it (runtime.on_change: hold). A change that only shows with a real credential, or on a path the run did not reach, is not in a trace and so not in this comparison.

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-18 and scored it 62/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: Access to sensitive file paths; Privileged sudo command; Access to sensitive file paths. Summary: no network, touches nothing outside the project, writes no memory.

Behavior trace

Honeypot run · 20 s · 2 scenarios
t+CategoryObserved action
0.0sprocessno install scripts in bundle
20sfilesystemread ~/.cache/mcp-behave/npm-venv/pyvenv.cfg · ~/.cache/mcp-behave/npm-venv/bin/python3._pth · ~/.cache/mcp-behave/npm-venv/lib/python3.11/site-packages · ~/.cache/mcp-behave/npm-venv outside project
20sfilesystemwrote ~/.cache/mcp-behave/npm-venv/pyvenv.cfg
20sprocessexec /app/apps/web/node_modules/.bin/uvx
20sprocessexec /root/.cache/node/corepack/v1/pnpm/10.28.0/dist/node-gyp-bin/uvx
20sprocessexec /app/node_modules/.bin/uvx
20sprocessexec /pnpm/uvx
20sprocessexec /usr/local/sbin/uvx
20sprocessexec /usr/local/bin/uvx
20sprocessexec /usr/sbin/uvx
20sprocessexec /usr/bin/uvx
20sprocessexec /sbin/uvx
20sprocessexec /bin/uvx
20sprocessexec /app/apps/web/node_modules/.bin/pipx
20sprocessexec /root/.cache/node/corepack/v1/pnpm/10.28.0/dist/node-gyp-bin/pipx
20sprocessexec /app/node_modules/.bin/pipx
20sprocessexec /pnpm/pipx
20sprocessexec /usr/local/sbin/pipx
20sprocessexec /usr/local/bin/pipx
20sprocessexec /usr/sbin/pipx
20sprocessexec /usr/bin/pipx
20sprocessexec /sbin/pipx
20sprocessexec /bin/pipx
20sclaimedstartup only: exited (0) before answering · apt install python3.11-venv You may need to use sudo with that command. After installing the python3-venv package, recreate your virtual environment. Failing command: /tmp/ks-detonate-AnDFkB/task/home/.cache/mcp-behave/npm-venv/bin/python3
20sprocessscript backend runs setup only
20sprocessno install scripts to re-run

Static findings

MEDIUM
Remote installer piped to shellDockerfile:15 · Remote installer piped to shellRUN curl -LsSf https://astral.sh/uv/install.sh | shFix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST07
HIGH
Access to sensitive file pathspyproject.toml: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
MEDIUM
Destructive file system command detectedDockerfile:9 · Destructive file system command detected&& rm -rf /var/lib/apt/lists/*Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
HIGH
Privileged sudo commandsrc/mcp_behave/cli.py:28 · Privileged sudo command — agent may execute with elevated privilegesthe server. This runs as YOU -- no sudo needed. Two things can prevent it:Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
HIGH
Access to sensitive file pathsrun.sh:3 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system files# canary files in ./sandbox_home are used as ~/.ssh, ~/.env, etc.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 directorytargets/leaky_server.py:30 · References a credential file in the home directorywith open(os.path.expanduser("~/.ssh/id_rsa")) as f: # reads a secretFix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST03
HIGH
Access to sensitive file pathssrc/mcp_behave/report.py:11 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system files".netrc", "/etc/shadow", ".kube", ".docker/config")Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
MEDIUM
Remote installer piped to shellDockerfile:11 · Remote installer piped to shellRUN curl -fsSL https://deb.nodesource.com/setup_22.x | bash - \Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST07
HIGH
Access to sensitive file pathssrc/mcp_behave/lint.py:44 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system files".env", "id_rsa", "id_ed25519", ".ssh", ".aws", ".kube", "/etc/passwd",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/mcp_behave/report.py:10 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system filesSENSITIVE = (".ssh", "id_rsa", "id_ed25519", ".env", ".aws", "credentials",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/mcp_behave/probe.py:143 · Python subprocess execution detectedsubprocess.run([cc, "-shared", "-fPIC", "-O2", "-o", so, src, "-ldl"],Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
HIGH
Access to sensitive file pathssrc/mcp_behave/lint.py:45 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system files"/etc/shadow", ".npmrc", ".git/config", "credentials", "secrets",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 pathstargets/leaky_server.py:30 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system fileswith open(os.path.expanduser("~/.ssh/id_rsa")) as f: # reads a secretFix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
MEDIUM
Python subprocess execution detectedsrc/mcp_behave/probe.py:84 · Python subprocess execution detectedsubprocess.run([cc, *arch_flags, "-dynamiclib", "-O2",Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
CRITICAL
Reads credential paths from the home directorytargets/leaky_server.py:30 · Reads credential paths from the home directorywith open(os.path.expanduser("~/.ssh/id_rsa")) as f: # reads a secretFix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST03
HIGH
Access to sensitive file pathssrc/mcp_behave/probe.py:298 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system files("../../../../../../../../etc/passwd", -1),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/mcp_behave/probe.py:110 · Python subprocess execution detectedout = subprocess.run([cs, "-d", "--verbose=4", path],Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
HIGH
Access to sensitive file pathssrc/mcp_behave/config_scanner.py:245 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system fileselif any(sens in arg_norm for sens in ("/.ssh", "/.aws", "/.kube", "/.gnupg", "/etc/shadow")):Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
MEDIUM
npx invocation of non-well-known packageDockerfile:19 · npx invocation of non-well-known package — may execute untrusted code# server directly, not a uvx/npx downloader. Tracing through uvx/npx pollutesFix: Pin versions and sources; vendor anything fetched at install time.
AST06
MEDIUM
References a credential file in the home directorytests/test_config.py:64 · References a credential file in the home directory("HIGH", "read a sensitive path: ~/.ssh/id_rsa"),Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST03
MEDIUM
Reads credential paths from the home directorytests/test_sarif.py:10 · Reads credential paths from the home directoryassert sarif.classify_rule_id("HIGH", "read a sensitive path: ~/.ssh/id_rsa") == "MCP002"Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST03
MEDIUM
Access to sensitive file pathstests/test_fixture_servers.py:63 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system filesf"leaky server's ~/.ssh/id_rsa read was not detected. findings: {findings}"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/test_fixture_servers.py:20 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system filesserver's ~/.ssh/id_rsa read hits something."""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 directorytests/test_sarif.py:10 · References a credential file in the home directoryassert sarif.classify_rule_id("HIGH", "read a sensitive path: ~/.ssh/id_rsa") == "MCP002"Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST03
MEDIUM
Access to sensitive file pathstests/test_config.py:64 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system files("HIGH", "read a sensitive path: ~/.ssh/id_rsa"),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/test_config_scanner.py:79 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system files"args": ["-y", "@modelcontextprotocol/server-filesystem", "/", "~/.ssh"],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 directorytests/test_fixture_servers.py:20 · References a credential file in the home directoryserver's ~/.ssh/id_rsa read hits something."""Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST03
MEDIUM
npx invocation of non-well-known packagesrc/mcp_behave/config_scanner.py:10 · npx invocation of non-well-known package — may execute untrusted code- Unpinned remote package execution (e.g. npx without version tag).Fix: Pin versions and sources; vendor anything fetched at install time.
AST06
MEDIUM
References a credential file in the home directorytests/test_fixture_servers.py:63 · References a credential file in the home directoryf"leaky server's ~/.ssh/id_rsa read was not detected. findings: {findings}"Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST03
MEDIUM
Destructive file system command detectedDockerfile:13 · Destructive file system command detected&& rm -rf /var/lib/apt/lists/*Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
LOW
Fake instruction boundary tagREADME.md:392 · Fake instruction boundary tag · informational: not an instruction file- Direct prompt injection patterns (e.g., `Ignore previous instructions`, `SYSTEM PROMPT:`, `<system>`, `[system instruction]`, `you must always call this tool first`).Fix: Remove the text that addresses the agent rather than the reader; describe behavior, do not instruct.
AST01
MEDIUM
Access to sensitive file pathstests/test_csa_features.py:252 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system filesassert any("../../../../../../../../etc/passwd" in f.get("path", "") for f in fuzz_sets)Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
MEDIUM
Pipe-to-shell patternDockerfile:11 · Pipe-to-shell pattern — downloads and immediately executes remote codeRUN curl -fsSL https://deb.nodesource.com/setup_22.x | bash - \Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST06
MEDIUM
Access to sensitive file pathstests/test_sarif.py:93 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system files{"severity": "HIGH", "message": "read a sensitive path: ~/.ssh/id_rsa"}Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
MEDIUM
MCP server using network transport (SSE/HTTP)src/mcp_behave/cli.py:129 · MCP server using network transport (SSE/HTTP) — data sent over network"`python -m mcp_server_fetch`). For --transport sse/"Fix: Namespace tool names and keep tool descriptions literal; no instructions to the agent inside them.
AST04
MEDIUM
Access to sensitive file pathstests/test_lint.py:180 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system files"uri": "file:///app/config/.env",Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
LOW
Prompt injection attemptREADME.md:416 · Prompt injection attempt — 'ignore previous instructions' · informational: not an instruction file[!] HIGH prompt injection pattern detected in tool 'notes_analyzer' description: 'Ignore previous instructions'Fix: Keep SKILL.md to visible, descriptive text. Remove comments and encoded text that address the agent.
AST01
MEDIUM
References a credential file in the home directorytests/test_sarif.py:93 · References a credential file in the home directory{"severity": "HIGH", "message": "read a sensitive path: ~/.ssh/id_rsa"}Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST03
MEDIUM
Access to sensitive file pathstests/test_fixture_servers.py:23 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system files(home / ".env").write_text("CANARY_SECRET=canary\n")Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
LOW
Prompt injection attemptREADME.md:392 · Prompt injection attempt — 'ignore previous instructions' · informational: not an instruction file- Direct prompt injection patterns (e.g., `Ignore previous instructions`, `SYSTEM PROMPT:`, `<system>`, `[system instruction]`, `you must always call this tool first`).Fix: Keep SKILL.md to visible, descriptive text. Remove comments and encoded text that address the agent.
AST01
MEDIUM
File type combined with upload actionsrc/mcp_behave/lint.py:297 · File type combined with upload action — agent may exfiltrate local data fileshelp="Path to manifest.json, tools.json, output directory, or '-' for stdin (default: stdin).",Fix: Remove the call, or declare the host in frontmatter and explain in the README what is sent and why.
AST07
MEDIUM
Reads credential paths from the home directorytests/test_sarif.py:93 · Reads credential paths from the home directory{"severity": "HIGH", "message": "read a sensitive path: ~/.ssh/id_rsa"}Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST03
MEDIUM
Pipe-to-shell patternDockerfile:15 · Pipe-to-shell pattern — downloads and immediately executes remote codeRUN curl -LsSf https://astral.sh/uv/install.sh | shFix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST06
MEDIUM
Reads credential paths from the home directorytests/test_config.py:64 · Reads credential paths from the home directory("HIGH", "read a sensitive path: ~/.ssh/id_rsa"),Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST03
MEDIUM
Access to sensitive file pathstests/test_sarif.py:10 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system filesassert sarif.classify_rule_id("HIGH", "read a sensitive path: ~/.ssh/id_rsa") == "MCP002"Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05

Cost to the agent

Instructions loaded
≈64 tok
1 file · 43 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

Not checked against OSV yet; the weekly check has not reached this version.

What would make this Verified

18 points to 80 · weights: behavior 45%, static 25%, prompt 15%, publisher 15%
  1. Reads credential paths from the home directory≈ +9 on the totalStop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
  2. Unclaimed publisher≈ +8 on the totalClaim navid72m: a verified publisher gets +50 on publisher trust. It is free and usually instant with GitHub sign-in.
  3. Touches files outside the project≈ +7 on the totalKeep reads and writes inside the working directory, or declare the exact paths in `filesystem:` and explain why in the README.
  4. 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.
  5. Privileged sudo command≈ +4 on the totalBuild commands from fixed arguments; do not interpolate untrusted strings into a shell.
  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 PyPI, then queue it here. Not your skill? Claim the handle to get verdict changes by email.Claim navid72mPropose a patch to the maintainer