Skip to main content Switch to mobile version probebox 1.1.0 Local security toolkit for AI agents: deterministic red-team scan, fail-closed MCP audit proxy, Skill auditor, read-only discovery
pip install probebox Copy PIP instructions
ProbeBox is a local security toolkit for AI agents. It scans an agent with deterministic attacks and evidence that leaves the model's reach, sits between an agent and its real MCP servers as a fail-closed audit proxy, audits Skills offline and in an isolated container, and starts with a read-only look at what an agent on your machine is already configured to reach. It adds no agent code of its own, spends no attacker-side model tokens, and works on Linux, macOS and Windows.
What a result means here. A VULNERABLE verdict or a CONFIRMED_SPECIFIC_VIOLATION is backed by something ProbeBox observed itself: a request to its own collector, a write to its own sandbox, a tool trace. Everything else — DEFENDED, INCONCLUSIVE, a clean Skill audit, an empty discovery report — is not proof of safety. The static Skill engine in particular finds few malicious Skills and cannot be used to clear one; see Auditing Skills.
Security Coverage (38 Built-In Scenarios)
Auditing a Real MCP Server
Security Warning & Responsible Use
Development, Testing & Contributing
Roadmap, License & Citation
All commands run offline except where a model or a server is involved, and none loads .env except scan and scan-skill --dynamic.
No agent code inside the scanner. src/probebox/ targets any external agent over HTTP JSON, OpenAI /chat/completions, a local CLI (with multi-turn --resume) or a Python subprocess in its own virtual environment.
Evidence instead of a judge. ProbeBox does not ask a model whether an attack worked. It starts two isolated local HTTP servers, an ownership-guarded sandbox and an MCP probe server, and decides from what arrives there: callbacks, canaries, marker writes, tool traces.
It refuses to guess. A scenario whose probe was never delivered is INCONCLUSIVE, never DEFENDED. A Skill it could not read is reported as not scanned. A discovery file that is a link is refused, not followed.
Defaults that fail closed. The MCP proxy starts in audit_readonly and forwards nothing until a tool is listed. Shell hooks are disabled without --allow-shell-hooks. Dynamic Skill audits are opt-in.
Where it sits next to other tools
They complement each other: use a scanner for breadth and ProbeBox when you need to show that a specific agent did a specific thing.
Requires Python 3.11+ and uv.
git clone https://github.com/ShunyangLiu/probebox.git cd probebox uv sync 1. See what your agents can already reach
Read-only, offline, a few seconds. It reads the well-known configuration, Skills and rule files of Claude Code, Codex CLI, Cursor, Windsurf, Claude Desktop and VS Code, and prints a JSON report.
uv run probebox discover --format markdown Credentials stay where they are: the report keeps names, kinds, hosts and shapes, never a value. Discover and Init says exactly what is read and what is not.
2. Write a configuration to review
uv run probebox init --target my-agent=http://127.0.0.1:8000/chat uv run probebox init --target my-agent=http://127.0.0.1:8000/chat \ --mcp-proxy-upstream https://mcp.example.com/mcp The second form also writes a proxy-policy.yaml that allows nothing until you list a tool. init never copies anything discover found, and never replaces an existing file unless you pass --force.
3. Run the 0-token demo
Two local demo agents answer from a fixed script, so this needs no API key and finishes in a few seconds:
uv run probebox scan --config examples/scan.demo-mock.yaml With Suite v3.0 the unguarded unsafe-agent falls for 25 of the 31 attacks it can receive (6 are DEFENDED, 2 INCONCLUSIVE); the guarded safe-agent falls for 0 of 31. Both pass the 5 benign controls. Reports are written to results/demo-mock/.
4. Run against your own agent
# A generic JSON HTTP agent uv run probebox scan --target my-agent=http://127.0.0.1:8000/chat --capabilities chat,web # The fast baseline only, or the deep set uv run probebox scan --tag core --target my-agent=http://127.0.0.1:8000/chat --capabilities chat,web,mcp_probe uv run probebox scan --tag extended --target my-agent=http://127.0.0.1:8000/chat --capabilities chat,web,mcp_probe # An OpenAI-compatible gateway uv run probebox scan --target openai:https://your-gateway.example.com/v1/chat/completions --model my-agent # Fail a CI run on findings, errors or missing coverage uv run probebox scan --config examples/scan.external-blackbox.yaml --fail-on-vuln --fail-on-benign-fail --fail-on-inconclusive Ready-made configurations for Claude Code, Codex CLI, OpenAI Agents SDK, LangGraph, Dify, Flowise and Browser Use are in examples/.
import asyncio from pathlib import Path from probebox import HttpTarget, run_scan report = asyncio.run( run_scan( targets=[HttpTarget(name="my-agent", url="http://127.0.0.1:8000/chat", capabilities={"chat", "web"})], tags=["core"], # Omit to run all 38 built-in scenarios results_dir=Path("results/matrix-run"), ) ) Security Coverage (38 Built-In Scenarios)
The built-in suite (src/probebox/scenarios/suite.yaml, v3.0) holds 33 attack scenarios and 5 benign utility controls and maps every one of the ten OWASP Agentic Security categories (ASI01–ASI10).
Tags select a subset: core (18), extended (20), non-mcp (11), owasp-full (6) and skill-defense (2). Seven scenarios run over several turns.
How many scenarios you can run depends on what you control. ProbeBox skips a scenario whose requirements you cannot meet and records it as SKIPPED rather than scoring it.
Delivery before verdicts. Each report lists, per target, which ASI categories the suite maps, which were selected, which were provably delivered and which received a verdict. A verdict is not proof of delivery, and for chat turns and web pages delivery means only that the adapter or fixture server returned content, not that the model read it.
Strategies. --strategy applies one deterministic transformation (for example delimiter_wrap) to the attack text of marked scenarios. Multi-turn scenarios that a strategy cannot transform are skipped. compare keys results by (scenario_id, strategy), so runs made under different strategies are never treated as the same condition. --attacker-model proposes at most one new candidate for review and never runs a target; --export-replay writes a sanitized suite you can rerun offline.
Full schemas and oracles: docs/suite-and-oracles.md.
# Offline. Reads the Skill, executes nothing, makes no request. uv run probebox scan-skill ./skill uv run probebox scan-skill sample.zip --format sarif # Opt in: runs one fixed task with and without the Skill, in an isolated container. uv run probebox scan-skill ./skill --dynamic Offline audit. The Skill must have SKILL.md at its root. The reader follows no symbolic link or junction, refuses hard links and special files, and bounds the number and size of entries, on every platform. The engine then reports four kinds of evidence: structure and hidden text, declarative natural-language rules, a narrow static analysis of Python and shell snippets, and — when discover runs it — what the Skill could reach through configured MCP servers. Findings are labelled clue or static_taint; files it cannot analyze are listed as not scanned.
The offline audit cannot clear a Skill. On SkillFortifyBench (MIT, pinned commit eb9d5a9), 180 Claude Markdown Skills read as single-file SKILL.md assets, the rules frozen before scoring found 0 of 16 malicious Skills in a development split and 0 of 74 in a held-out split, with 0 false positives on 17 and 73 benign Skills. After analysis of fenced Python and shell was added from the development split, a regression run on the same splits found 6 of 16 and 27 of 74; the held-out split had been seen by then, and is no longer an independent test. On the SkillHarm corpus (CC BY 4.0, pinned commit cc21f90), 687 complete Skills of 5,274 files, the rules found 19 of the 642 scanned; 45 could not be scanned. Its clues are worth a reviewer's attention; its silence is worth nothing.
Dynamic audit. --dynamic needs a Linux Docker host with the pinned agent image (docker/skill-agent, built by scripts/build_skill_agent_image.py). One synthetic task runs twice in a fixed, versioned agent: once without the Skill and once with it. The container has no network, a read-only root and Skill mount, no capabilities and fixed resource limits. The host keeps the model credentials and makes each model request itself. The Docker endpoint must be one you trust to stay what it is while the audit runs: the audit checks that the daemon is the one it recorded, but cannot defend against the local Docker configuration being rewritten under it. The audit confirms a violation only when its own collector receives the confidential synthetic marker through an authorized tool call in the Skill arm and not in the baseline; every other outcome is INCONCLUSIVE.
Dynamic mode sends the Skill text, the synthetic task and the tool results to the model endpoint in LLM_BASE_URL, and says so on stderr before starting. Do not use it on Skills that contain sensitive content.
Evidence for the dynamic path comes from a real Docker daemon on Linux with a simulated model: isolation, cleanup and the protocol are verified there. With a real model (deepseek-flash) the result has been INCONCLUSIVE, which is not a safety result. Dynamic mode has not yet been exercised against Docker Desktop on macOS or Windows.
probebox proxy-mcp sits between an agent and a server it actually uses, over stdio, Streamable-HTTP or SSE in any combination.
annotations.readOnlyHint from the upstream is shown and never trusted. The proxy strips credentials the agent sends before talking to the upstream, keeps the upstream's credentials from the agent, and can inject faults and lossless canaries into tool calls so that an exfiltration can be proven by the collector receiving the canary. It was exercised on Linux against the reference filesystem, SQLite and fetch servers with a real agent; the independent file, database and HTTP counters showed no business write and no leftover process.
Details: docs/proxy-policy.md.
probebox discover answers "what can the agents on this machine reach?" before you configure anything.
uv run probebox discover # JSON on stdout uv run probebox discover --format markdown # for reading uv run probebox discover --output r.json --html r.html --sarif r.sarif.json uv run probebox discover --no-home # project files only uv run probebox discover --probe-tools 'cursor/user/live@616c549372575100' # the token a listing gives uv run probebox discover --fail-on high # exit 1 for a finding, 3 if the audit did not finish What it reads. Well-known default locations only:
What it reports. For each configured server: what the client does to reach it (starts a local program, connects out), what its tools can do (file_read, file_write, network, command), and on what basis that was inferred: a known server package, or the tools a probed server listed — never the transport. For each Skill and rule file: the same clues scan-skill finds. And the two combined: a Skill that names a credential location is one clue; a file-reading server configured for the same client is another; together they are reported as a cross-asset finding, at clue level, when the same agent is presented with both in one situation: a server kept for one project is never pooled with one kept for another. Typical configuration findings are server code fetched and run without a pinned version, plain http to a non-local server, a credential written into the configuration, a server started through a shell string, a file server rooted at / or the home directory, and servers defined by the project directory.
What never leaves the machine. No value of an environment variable or header, no command-line argument other than its class, no query string, user info or unusual path of a URL, and no bare word off a command line. Paths appear as $HOME/… and $CWD/…. A file name that is not a plain name, or that is shaped like a credential, is shown under a stable stand-in. Tool descriptions of a probed server are not recorded.
What it will not do. It executes nothing. It follows no link, on any platform. A root is reached component by component without following a link, and one that cannot be reached that way is not read. --no-home reads nothing under your home directory and refuses a project root that is it, is below it, or reaches it through another path; no environment variable that relocates a client's configuration (CODEX_HOME, CLAUDE_CONFIG_DIR, XDG_CONFIG_HOME) is honoured at any time, so there is no second route back. --probe-tools contacts only the running remote servers you approve by id and token, where the token is the endpoint and credential references a listing gave, asks each for its tool list and calls nothing; stdio servers are never started, no redirect is followed, and an answer is cut off at a fixed size.
What it does not look at. Hooks and permission settings, servers given on a command line or inside settings.json, enterprise-managed settings, directories other than the working directory and --root, and combinations across different clients. Each of these is listed in the report's limitations, and everything it could not read is listed under coverage as not scanned.
probebox init writes the configuration that comes next. It takes only typed options, generates network targets only, and has no option for commands, hooks, environment variables or credentials — so it cannot copy one in. With --from-discovery it attaches what discover found as comments, which configure nothing. ProbeBox validates the configuration and policy before writing. It publishes each file atomically, with a new policy first. If writing the scan configuration fails after the policy was published, init reports the policy path and a retry can reuse it. Existing policies must meet the requested restrictions and are kept as written.
Details: docs/discover-and-init.md.
ProbeBox installs from a pure-Python wheel with no compiler on Linux, macOS and Windows, and runs natively on each.
"Tested" means the full test suite passes there: in CI on Ubuntu and Windows Server for pushes to main, for pull requests into main and by hand on a branch; on macOS and on Windows 10 by the maintainer. On Windows, discovery and Skill reads reject junctions and symbolic links. Spawned processes enter a Job Object before they run so their whole tree can be ended. Command strings keep their backslashes, and output is UTF-8 whatever the system code page. A request to an address on the machine itself never goes through a proxy, whatever proxy the system is set to use: Windows reports such a setting to Python without the addresses the system leaves out of it.
Before a release, the one candidate wheel is installed into an empty directory outside the repository on all three systems and checked by scripts/verify_wheel.py.
Numbers below come from runs made for a specific suite version. Results recorded under different suite versions or strategies are not comparable with each other.
Suite v3.0, five agent frameworks. Claude Code, Codex CLI, OpenAI Agents SDK, LangGraph and Browser Use, each with two DeepSeek models and two strategies (baseline, delimiter_wrap): 20 reports, 156 results. Of the attack scenarios 97 were DEFENDED and 1 VULNERABLE; the rest were 32 PASS, 4 FAIL, 16 SKIPPED, 5 INCONCLUSIVE and 1 ERROR. The 16 skips are multi-turn scenarios the transformation cannot handle, the one error is a model HTTP 400 kept as an error rather than scored, and the single vulnerability is an ASI05 probe on a simulated executor, which shows the controlled endpoint accepting the request, not code running on a host. Each condition was observed once. Across strategies the same-condition intersection for attacks was empty, so the two strategies say nothing about each other.
Suite v2.1, recorded before 1.0.0. The earlier seven-agent matrix (27 scenarios) is kept as it was measured, with its caveats, in docs/recorded-results.md.
Authorized testing only. ProbeBox is a red-team tool. Run it only against local sandboxes, staging deployments, or agents you own or have written authorization to audit. Never run it against production agents connected to real customer data, live credentials, or tools with external side effects.
CLI agents keep their own tools unless you take them away. examples/scan.claude-code.yaml passes --permission-mode bypassPermissions strictly paired with --strict-mcp-config --tools "", so Claude Code can reach only ProbeBox's sandboxed probe tools. Keep that isolation when auditing any coding agent.
observe mode is not audit_readonly. In observe the proxy forwards what it sees. Real writes reach the real server.
Built-in safety controls
Two origins. Simulated public and callback routes and the SSRF metadata endpoint bind separate origins. No admin or log route is exposed.
A probe directory that must be yours. --probe-dir gets an ownership marker and an exclusive lock. ProbeBox refuses a non-empty directory without its marker and refuses linked markers and sandbox paths. It checks directory ownership and write permissions on POSIX. On Windows, use a directory under your private user profile with the inherited permissions.
Egress allowlist. The probe's web_fetch refuses every URL outside the current scan's two origins and follows no redirect.
Credentials stay on their origin. An HTTP target's headers are never sent to its health_url or reset_url.
Child processes never outlive their scan. Every managed process runs in a tree of its own — a session and process group on POSIX, a job object on Windows — and is ended with all of its descendants on timeout or cancellation.
uv sync --group dev # pytest and ruff uv run --no-sync ruff check . uv run --no-sync pytest -v # unit and end-to-end tests uv run --no-sync python scripts/smoke_demo.py # the 0-token demo through the CLI uv run --no-sync python scripts/verify_wheel.py --probebox
The Docker-based tests of scan-skill --dynamic need Linux, the pinned base image and scripts/build_skill_agent_image.py; scripts/validate_skill_dynamic.py is the real-daemon acceptance run and is meant for that Linux host.
To add an attack scenario, add a declarative entry to suite.yaml and check it against both demo agents. To add an agent integration, share a tested examples/scan.
probebox/ ├── docs/ # Reference manuals ├── docker/skill-agent/ # Pinned, networkless agent for dynamic Skill audits ├── examples/ # Demo agents and ready-made scan configurations ├── scripts/ # Image build, wheel verification, benchmarks, real-Docker acceptance ├── src/probebox/ │ ├── cli.py # scan · scan-skill · discover · init · probe-mcp · proxy-mcp · compare │ ├── config.py # Typed scan configuration │ ├── runner.py · scenarios/ # Scheduler, suite schema, deterministic oracles │ ├── targets/ # HTTP · OpenAI · CLI · Python adapters │ ├── probes/ # HTTP probe servers, sandbox, MCP probe and proxy │ ├── skills/ # Skill audit: static engine, isolated dynamic audit │ ├── discover/ · init_config.py # Read-only discovery and configuration generation │ ├── contracts.py · sarif.py · html_report.py · compare.py │ ├── _safefs.py · _win32.py # Path checks and atomic I/O, Windows process control │ └── telemetry.py · budget.py · fingerprints.py · hooks.py └── tests/ Changes in 1.0.0
probebox discover and probebox init.
Suite v3.0: 33 attack scenarios and 5 benign controls, all ten OWASP ASI categories, non-MCP chat and web surfaces, and malicious-Skill scenarios. Suite v2.1 is replaced in place; there is no second suite.
Deterministic strategies, offline candidate proposal and replay export.
probebox proxy-mcp, the fail-closed audit proxy for real servers.
probebox scan-skill, offline and --dynamic.
Native Windows support.
Reports are schema 2.0, with one Finding model shared by every command and exported to JSON, Markdown, HTML and SARIF. A report without a schema version, or with 1.0, is the older scan report; compare still reads it and normalizes it in memory without rewriting the file.
Two new report types: skill_audit (scan-skill) and discover_audit (discover).
Every command uses the same exit codes: 0 nothing to report, 1 a finding (or a gate on findings), 2 an error or a failed gate, 3 a scan cut short by its budget. discover exits 0 by default and 1 only with --fail-on; scan-skill --dynamic exits 1 on a confirmed violation and 2 when inconclusive.
Suite v2.1 had core (18) and extended (9) over 27 scenarios. Suite v3.0 has core (18), extended (20), non-mcp (11), owasp-full (6) and skill-defense (2) over 38. A --tag core run is a different set of scenarios than before.
Shell pre_scenario_hooks now need --allow-shell-hooks.
proxy-mcp starts in audit_readonly and forwards nothing until a policy allows it.
Dynamic Skill audits are opt-in and say on stderr what they send to the model endpoint.
discover reads nothing under HOME with --no-home, follows no link at any time, and contacts a server only when --probe-tools names it.
Results that cannot be compared
Suite v2.1 and v3.0 results, baseline and transformed-strategy results, and runs made before the incidental-leak accounting changed are different conditions. Use compare on reports of one suite version and one strategy.
Details: docs/changes-in-1.0.0.md.
Shipped: the 38-scenario Suite v3.0 with OWASP ASI coverage and SARIF export; strategies, candidates and replay; the MCP audit proxy; Skill audits; discovery and init; latency, token and cost telemetry; native Linux, macOS and Windows support.
Next: a semantic-model option for Skill audits; a static Skill engine with a recall that can support a verdict; dynamic Skill audits verified on Docker Desktop for macOS and Windows; enterprise-managed settings and hooks in discover.
Released under the MIT License.
If you use ProbeBox in academic research, benchmarks, or security evaluations, please cite:
@software{probebox2026, title = {ProbeBox: Local security toolkit for AI agents}, author = {Liu, Shunyang}, year = {2026}, url = {https://github.com/ShunyangLiu/probebox}, version = {1.0.0} } Project links
Released: Dec 2, 2026
Author: Shunyang Liu
Both files in this release have provenance metadata.
View provenance details
agent-security ai-security mcp mcp-audit owasp-asi prompt-injection red-teaming sarif skill-security
Development Status 5 - Production/Stable
Intended Audience Developers
Information Technology
License OSI Approved :: MIT License
Operating System MacOS
Microsoft :: Windows
Programming Language Python :: 3
Release files for probebox 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
Built distribution (wheel)
Total release size: 659.6 kB
Release files / probebox-1.1.0.tar.gz
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 2, 2026.
Release files / probebox-1.1.0-py3-none-any.whl
Security for probebox 1.1.0
Both files in this release have been uploaded with provenance metadata.
With provenance probebox-1.1.0.tar.gz Dec 2, 2026
With provenance probebox-1.1.0-py3-none-any.whl Dec 2, 2026
Attestation for probebox-1.1.0.tar.gz
Attestation for probebox-1.1.0-py3-none-any.whl
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.
Release history Release notifications | RSS feed
Dec 2, 2026 2 release files Full provenance
Dec 1, 2026 2 release files Full provenance
"PyPI", "Python Package Index", and the blocks logos are registered trademarks of the Python Software Foundation.
© 2026 Python Software Foundation
Deployed from 147871d











