pip install reqursts
pip install requests
Security review packet for AI agents
BeforeWire runs in your environment between agent intent and tool execution. It decides risky actions before they run, records why the policy matched, and leaves reviewers a local evidence packet.
The homepage shows the short proof. A compatible API route returns a suspicious package install and a safe one; BeforeWire quarantines the suspicious action before execution, preserves the safe call, and writes a receipt reviewers can inspect.
pip install reqursts
pip install requests
policy=relay-guard reason=slopsquat
pip install requests
safe tool call preserved
Three short casts show the action boundary directly on the homepage: response-path poisoning, sensitive egress, and MCP drift. Each one shows the proposed action, the BeforeWire decision, and the evidence a reviewer can inspect.
A compatible relay returns reqursts and requests. BeforeWire denies the suspicious install before execution and preserves the safe call.
An agent prepares to send a suspected secret and Chinese personal-data patterns to an unapproved webhook. BeforeWire denies the outbound action and keeps audit evidence redacted.
A previously approved MCP tool changes its description or schema. BeforeWire detects snapshot drift and requires review before the changed tool is used.
Keep the review materials close to the demos: a report sample, a generated sensitive-egress report, the audit intake template, and the recording guide.
MCP / tools / skills
tamper / injection
allow / warn / deny
hash-chain receipt
AI agents read returned content, then convert it into shell commands, package installs, HTTP calls, MCP tool calls, file access, database writes, office webhooks, and delegated work.
If a model response is modified after passing through a third-party API router or gateway, the risk may not come from the model itself. It appears after the response returns and before the action is actually executed.
A safe model response is changed into a malicious tool call on the return path.
response pathA normal-looking tool result pushes new instructions back into the agent context.
tool outputrequests becomes reqursts, and the agent proceeds to install it.
A fake key appears in a response or tool result and can be traced to a session.
attributionAn approved MCP tool, skill, or workflow changes its schema, script, description, or capability boundary.
surfaceSecurity review starts with placement. BeforeWire keeps enforcement close to the agent and its tools, where a proposed action is still inspectable but has not yet touched shell, network, files, databases, or MCP servers.
tool_use
allow / warn / deny
response path
execution
BeforeWire is not a generic AI safety scanner. It focuses on the path between what an agent is allowed to use, what a response tries to make it do, and what concrete action is about to execute.
BeforeWire governs surfaces that change agent behavior: MCP tools, local tools, skills, prompt packs, workflow instructions, and referenced scripts. Each surface can be scanned, snapshotted, approved, diffed, and sent back for review when it drifts.
MCP / tool scan, approval, diff, and snapshot hash enforcement.
Skills, prompt packs, workflow instructions, and referenced scripts.
MCP / tool scanskill reviewsnapshot hashapprove / diffEvery proposed tool call, package install, shell command, file operation, outbound request, message, or delegated task is evaluated while it is still only an intent. A denied action never reaches the tool.
effect: deny
allow / warn / denypolicy decisionpre-execution denialaudit recordBeforeWire screens model and tool responses before they become execution intent, catching API route tampering, AI MITM, malicious tool use, tool-result injection, slopsquat suggestions, risky commands, secret leakage, suspicious egress, and canary replay.
response tamper screeningstreaming text passthroughbuffered tool-call reviewcanary attributionScan capability surfaces -> screen returned content -> decide the concrete action -> write a reviewable receipt.
BeforeWire gates agent actions, not packets. It makes decisions before actions happen and records verifiable evidence.
Run BeforeWire in your environment, point an AI client or SDK at the local proxy, and watch a risky response get quarantined before execution.
pip install beforewire
beforewire init
beforewire selftest
beforewire proxy
export OPENAI_BASE_URL=http://127.0.0.1:8788/v1
When returned content tries to install reqursts, run curl | sh, leak a secret, or replay a canary, BeforeWire denies the action and records the policy, reason, and hash-chain receipt.
Each allow, warn, or deny records the source, proposed action, destination, matched policy, effect, reason, capability-surface context, redacted evidence, and hash-chain receipt. Security, risk, and audit teams can review the control path without reading a full model trace.
If there is no control before execution, audit is only incident replay. With pre-execution decisions, security review has a boundary and a packet of evidence.
BeforeWire should be easy to test as a local developer tool. Security review needs a clear enforcement point, a decision record, a drift approval surface, and a path to team governance.
BeforeWire turns response screening and action decisions into concrete review objects: denied actions, sensitive egress, capability drift, canary hits, policy changes, and receipt hashes.
Run response screening and action decisions near the agent and tools, while keeping keys, prompts, capability snapshots, and audit records in your environment.
Record source, action, matched policy, effect, reason, capability snapshot, and hash-chain receipt for each allow, warn, or deny result.
Review denied actions, canary hits, capability drift, unapproved tools, and policy changes before they become production incidents.
Add team policy packs, approval workflows, private audit aggregation, compliance evidence, and a managed capability registry.
The open-source release proves the critical control path: local proxy, response screening, pre-execution decisions, tool approval, sensitive egress control, and verifiable audit records. Team deployments can add policy distribution, approval workflows, private audit aggregation, compliance evidence, and a capability registry.
Run the enforcement point close to the agent and its tools, while keeping keys, capability snapshots, and audit data in your environment.
Distribute policy packs, review changes to MCP tools, skills, prompt packs, and workflow bundles, and require approval before reuse.
Aggregate receipts privately, map decisions to controls, and produce evidence for internal security review, risk, and compliance.
Request a shadow audit to map your agent runtime, MCP tools, outbound destinations, approval flow, and the evidence packet your security team needs for launch review.