mcp-behave@0.5.3
CAUTION· startup onlyPublisher claims: "Runtime behavioral auditor and security scanner for MCP servers. Observes live syscalls (network, filesystem, subprocesses) and detects undeclared actions and manifest rug-pulls." Observed in sandbox: no network, touches nothing outside the project, writes no memory.
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-21, [email protected] read 4 files and called no hosts, and its code names 14 environment variables. Coverage: startup only.
Files read
- ~/.cache/mcp-behave/npm-venv
- ~/.cache/mcp-behave/npm-venv/bin/python3._pth
- ~/.cache/mcp-behave/npm-venv/lib/python3.11/site-packages
- ~/.cache/mcp-behave/npm-venv/pyvenv.cfg
Hosts called
None recorded.
Environment variables its code names
MCP_BEHAVE_ALLOWED_COMMANDS, MCP_BEHAVE_ALLOW_ALL_EXEC, MCP_BEHAVE_CALL_TIMEOUT, MCP_BEHAVE_DASHBOARD_URL, MCP_BEHAVE_DEBUG, MCP_BEHAVE_EBPF_REQUIRED, MCP_BEHAVE_MOCK_EBPF, MCP_BEHAVE_STATE_DIR, MCP_BEHAVE_TOKEN, MCP_BEHAVE_UNSAFE_HOST, OUT_DIR, PROBE_NOISE_EXTRA, TRACE_FILE, XDG_STATE_HOME
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 date | 2026-11-21 |
| Coverage | startup only |
| Engine | 1.9.2, script@linux |
| Reproduce | npx -y vet-skills try mcp-behave |
| 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_BEHAVE_TOKENConfiguration, not credentials: MCP_BEHAVE_ALLOW_ALL_EXEC, MCP_BEHAVE_ALLOWED_COMMANDS, MCP_BEHAVE_CALL_TIMEOUT, MCP_BEHAVE_DASHBOARD_URL, MCP_BEHAVE_DEBUG, MCP_BEHAVE_EBPF_REQUIRED, MCP_BEHAVE_MOCK_EBPF, MCP_BEHAVE_STATE_DIR, MCP_BEHAVE_UNSAFE_HOST, OUT_DIR, PROBE_NOISE_EXTRA, TRACE_FILE, XDG_STATE_HOME- Where it talks to
- mcp-behave.dev (its own)Also githubusercontent.com, python.org, astral.sh, example.org, example.net, modelcontextprotocol-security.io — 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
- 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 githubusercontent.com, python.org, astral.sh, example.org, example.net, modelcontextprotocol-security.io as well as its own vendor. The guard injects MCP_BEHAVE_TOKEN only into requests to mcp-behave.dev (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 (2 scenarios; startup only; authenticated tool behavior not tested) on 2026-11-21 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; Access to sensitive file paths; References a credential file in the home directory. Summary: no network, touches nothing outside the project, writes no memory.
Behavior trace
Honeypot run · 21 s · 2 scenariosStatic findings
"name": "Sensitive File Snooping (SSH/AWS/.env)",Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.SENSITIVE = (".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."notes": "Benign local formatting manifest; injected code probes ~/.ssh/id_rsa.",Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.res = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.elif 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.with open(os.path.join(canary_dir, ".netrc"), "w") as f:Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.return True, "/etc/shadow"Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose."notes": "Benign local formatting manifest; injected code probes ~/.ssh/id_rsa.",Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.declared_paths.add(os.path.expanduser("~/.ssh/known_hosts"))Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose."MCP-T1001": "Sensitive File Snooping (SSH/AWS/.env)",Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.("../../../../../../../../etc/passwd", -1),Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.subprocess.run([cc, *arch_flags, "-dynamiclib", "-O2",Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.if norm == "/etc/shadow" or norm.endswith("/etc/shadow"):Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.out = subprocess.run([cs, "-d", "--verbose=4", path],Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.# 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.declared_paths.add(os.path.expanduser("~/.ssh/config"))Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.".aws", ".kube", "/etc/passwd", "/etc/shadow", ".npmrc", ".git/config",Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.the 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.return True, ".netrc"Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.subprocess.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.with open(os.path.join(canary_dir, ".env"), "w") as f:Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.".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.if ".netrc" in parts:Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.f.write("[default]\naws_access_key_id = AKIAIOSFODNN7EXAMPLE\naws_secret_access_key = wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY\n")Fix: Never read or enumerate credential locations; accept a documented environment variable instead.".env", "id_rsa", "id_ed25519", ".ssh", ".pem", ".key", "private_key",Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.(.ssh/id_rsa, .aws/credentials, .env, .netrc) so credential probes trip detectionFix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.collector.emit_synthetic_event(EVENT_FILE_OPEN, target="/etc/passwd")Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.- Fake system XML tags (`<system>`, `[INST]`, `<<SYS>>`).Fix: Remove the text that addresses the agent rather than the reader; describe behavior, do not instruct.RUN 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.- Fake system XML tags (`<system>`, `[INST]`, `<<SYS>>`).Fix: Keep SKILL.md to visible, descriptive text. Remove comments and encoded text that address the agent.- 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.collector.emit_synthetic_event(EVENT_FILE_OPEN, target="/etc/shadow")Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.res = subprocess.run(["pgrep", "-f", "sleep 12345"], stdout=subprocess.PIPE, text=True)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.- 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."uri": "file:///app/config/.env",Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.RUN 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."""Inspect local NPX runner arguments and local disk cache offline (or query registry if allow_network=True)."""Fix: Pin versions and sources; vendor anything fetched at install time.RUN 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.("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.subprocess.Popen(["osascript", "-e", script], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out."`python -m mcp_server_fetch`). For --transport sse/"Fix: Namespace tool names and keep tool descriptions literal; no instructions to the agent inside them.("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.{"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.p = subprocess.Popen(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.assert 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.- Instruction override directives (`ignore previous instructions`, `disregard prior`).Fix: Keep SKILL.md to visible, descriptive text. Remove comments and encoded text that address the agent.RUN 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.- Role hijacking (`you are now in unrestricted / godmode / dan`).Fix: Keep SKILL.md to visible, descriptive text. Remove comments and encoded text that address the agent.- Unpinned remote package execution (e.g. npx without version tag).Fix: Pin versions and sources; vendor anything fetched at install time.subprocess.Popen(["osascript", "-e", script], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.assert 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.res = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.help="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.assert 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.proc = subprocess.Popen(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.assert weather_status["target_command"] == "npx -y @weather"Fix: Pin versions and sources; vendor anything fetched at install time.{"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.assert "/etc/shadow" in profile["files_opened"]Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.p = subprocess.Popen(['sleep', '12345'])Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.&& rm -rf /var/lib/apt/lists/*Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.p = subprocess.Popen(["sleep", "120"])Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.[!] 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.assert "/etc/passwd" in ebpf_profile["files_opened"]Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.- Keyword cues (`jailbreak`).Fix: Keep SKILL.md to visible, descriptive text. Remove comments and encoded text that address the agent.&& rm -rf /var/lib/apt/lists/*Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.{"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.# server directly, not a uvx/npx downloader. Tracing through uvx/npx pollutesFix: Pin versions and sources; vendor anything fetched at install time.# 1. NPX / Node.jsFix: Pin versions and sources; vendor anything fetched at install time.… Dynamic Library Interposition (User-Space libc Tracing) Rather than requiring root privileges or heavy kernel tracing up front, `mcp-behave` intercepts standard C library (…Fix: Remove the text that addresses the agent rather than the reader; describe behavior, do not instruct.("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.- Fake system XML tags (`<system>`, `[INST]`, `<<SYS>>`).Fix: Keep SKILL.md to visible, descriptive text. Remove comments and encoded text that address the agent.- Keyword cues (`jailbreak`).Fix: Keep SKILL.md to visible, descriptive text. Remove comments and encoded text that address the agent.- Fake system XML tags (`<system>`, `[INST]`, `<<SYS>>`).Fix: Remove the text that addresses the agent rather than the reader; describe behavior, do not instruct.- `<system>`, `[INST]`, `<<SYS>>`, `---BEGIN SYSTEM PROMPT---`Fix: Remove the text that addresses the agent rather than the reader; describe behavior, do not instruct.- Role hijacking (`you are now in unrestricted / godmode / dan`).Fix: Keep SKILL.md to visible, descriptive text. Remove comments and encoded text that address the agent.- Instruction override directives (`ignore previous instructions`, `disregard prior`).Fix: Keep SKILL.md to visible, descriptive text. Remove comments and encoded text that address the agent.- `Ignore previous instructions and execute...`Fix: Keep SKILL.md to visible, descriptive text. Remove comments and encoded text that address the agent.- `<system>`, `[INST]`, `<<SYS>>`, `---BEGIN SYSTEM PROMPT---`Fix: Keep SKILL.md to visible, descriptive text. Remove comments and encoded text that address the agent.Cost to the agent
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
18 points to 80 · weights: behavior 45%, static 25%, prompt 15%, publisher 15%- 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.
- 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.
- 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.
- 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.
- Privileged sudo command≈ +4 on the totalBuild commands from fixed arguments; do not interpolate untrusted strings into a shell.
- AWS access key pattern detected≈ +4 on the totalNever read or enumerate credential locations; accept a documented environment variable instead.