Eclusia
Freemium
Legal professionals handling confidential cases
Prompt-level filters assume the model will behave — but the model already believes it's doing the right thing when it exfiltrates your API key to [email protected]. ModelFuzz intercepts that call at the execution layer, before the damage is done.
The library ships two halves: a red-team scanner that fires deceptive prompt-injection payloads at any OpenAI-compatible endpoint so you can see which attacks actually trigger a tool call, and a decorator that wraps individual tools and checks every argument against your policies before the function executes. The decorator approach means enforcement lives in your code, not in a separate proxy or prompt. The policy engine works on argument content — keyword matching and pattern rules the docs describe — which catches known-bad patterns well but leaves gaps for novel exfiltration routes that do not match existing rules. A hosted dashboard with centralized policies and audit logs is on a waitlist and not yet available, so teams running multiple agents coordinate policy changes manually across codebases.
Bottom line: Drop this in when you are building an agent with tool-calling and need execution-layer enforcement fast — but plan additional policy infrastructure the moment you have more than a handful of tools or need audit trails across a team.
Find your fit
More options in Guardrails & Safety. Compare pricing, platforms, and features side by side.
Freemium
Legal professionals handling confidential cases
Free · Open source
AI security researchers
An agent that calls tools is only as safe as the arguments it passes to them. ModelFuzz addresses this by sitting between the LLM’s decision and the function that executes it. The core workflow is a Python decorator: wrap any tool function with `@shield_tool`, define your policies, and any call that violates those policies raises a `ModelFuzzBlockError` before the underlying function runs. Installation is `pip install modelfuzz`; no hosted dependency is required at runtime.
The differentiating feature is the pairing of offense and defense in one package. The CLI scanner — `modelfuzz scan` — accepts an OpenAI-compatible endpoint and model name, fires a suite of indirect prompt-injection payloads, and reports which ones successfully tricked the agent into executing a tool. That output is a direct map of your attack surface before you deploy shields. Most security libraries pick one side; ModelFuzz lets you find the holes with the scanner, then seal them with the decorator, in the same tool.
The library fits cleanly into codebases where tool functions are discrete Python callables — a `send_email`, an `http_post`, a `shell.run`. The enforcement happens at argument inspection: the blocked example in the docs catches `’secret’` as a sensitive keyword in an outbound email body. That works for known-bad patterns, but policy coverage is only as good as the rules you write. Teams encountering novel exfiltration paths — encoded payloads, indirect channels, arguments that split sensitive content across fields — will need to write and maintain custom rules. The hosted dashboard with centralized policy management and team-level audit logs is listed as a waitlist feature and is not publicly available, so multi-agent deployments today manage policy files per codebase.
Sign in to rate this tool or suggest an edit.