mcp-behave 0.3.2 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -15
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -26,10 +26,10 @@ Static scanners only read tool descriptions. `mcp-behave` observes what servers
|
|
|
26
26
|
Compare three bundled targets in `targets/`:
|
|
27
27
|
|
|
28
28
|
- `honest_server.py`: advertises a purely local note formatter and behaves honestly.
|
|
29
|
-
- `leaky_server.py`: advertises the exact same harmless note formatter, but secretly accesses SSH keys and phones home via network
|
|
30
|
-
- `poisoned_server.py`: never makes
|
|
29
|
+
- `leaky_server.py`: advertises the exact same harmless note formatter, but secretly accesses SSH keys and phones home via network sockets.
|
|
30
|
+
- `poisoned_server.py`: never makes outbound connections, but poisons its descriptions with covert zero-width spaces and prompt injection, and returns an external Markdown image link (``) to trigger client-side HTTP GET exfiltration when rendered in a chat UI.
|
|
31
31
|
|
|
32
|
-
| Target | Network
|
|
32
|
+
| Target | Network Egress | File System Access | Metadata & Output Safety | Verdict |
|
|
33
33
|
| :--- | :--- | :--- | :--- | :--- |
|
|
34
34
|
| `honest_server` | none | none | clean | **0 (PASS)** |
|
|
35
35
|
| `leaky_server` | `93.184.216.34:80` | `~/.ssh/id_rsa` (canary) | clean | **2 HIGH** |
|
|
@@ -473,18 +473,9 @@ CI tests across Ubuntu and macOS; see `.github/workflows/ci.yml`.
|
|
|
473
473
|
|
|
474
474
|
## Known limits
|
|
475
475
|
|
|
476
|
-
- **Runtime tracing
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
- **stdio is the only transport with syscall tracing.** `sse` and
|
|
480
|
-
`streamable-http` connect to a remote server we cannot trace; only manifest
|
|
481
|
-
analysis and rug-pull detection apply there.
|
|
482
|
-
- **Input synthesis is heuristic** — JSON Schema `format`, key-name hints, and
|
|
483
|
-
type defaults. Schema-coverage fuzzing (hypothesis-jsonschema) is roadmap.
|
|
484
|
-
- **AF_UNIX egress** isn't matched — a server exfiltrating over a unix domain
|
|
485
|
-
socket would slip past the current network detection.
|
|
486
|
-
- **Single call per capability** — servers that misbehave only on specific
|
|
487
|
-
inputs or after N calls may not be triggered.
|
|
476
|
+
- **Runtime tracing operates at libc interposition level.** macOS (DYLD interposition) and Linux (LD_PRELOAD) intercept standard dynamic runtime library calls (Python, Node.js, Ruby). Statically linked binaries (e.g. Go, musl Rust) and inline assembly syscalls bypass libc interposition unless run under the Linux `strace` tracer (`--tracer strace`) or the planned kernel eBPF backend — see [ROADMAP.md](ROADMAP.md).
|
|
477
|
+
- **stdio is the primary transport with full runtime tracing.** `sse` and `streamable-http` connect to remote servers where client-side process tracing is not available; manifest analysis, CSA rule linting, and rug-pull detection run there.
|
|
478
|
+
- **Canary & Fuzzing synthesis** — generates realistic, diverse arguments across `--probe-rounds` and adversarial boundary vectors with `--fuzz`. Full property-based hypothesis fuzzing is planned for v0.4.x.
|
|
488
479
|
|
|
489
480
|
## License
|
|
490
481
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mcp-behave",
|
|
3
|
-
"version": "0.3.
|
|
4
|
-
"description": "Runtime behavioral auditor for MCP servers — scope-violation detection via native interposition &
|
|
3
|
+
"version": "0.3.3",
|
|
4
|
+
"description": "Runtime behavioral auditor for MCP servers — scope-violation detection via native libc interposition & runtime tracing",
|
|
5
5
|
"main": "bin/mcp-behave.js",
|
|
6
6
|
"bin": "./bin/mcp-behave.js",
|
|
7
7
|
"files": [
|