National Cyber Warfare Foundation (NCWF)login

pipelock for insulating AI agents from secret exfiltration and poisoned tool traffic


0 user ratings
2026-10-22 19:29:29
milo
Red Team (CNA)
"pipelock

pipelock is an open-source Go egress firewall that sits between AI agents and the network, inspecting mediated HTTP, MCP, and A2A traffic for exfiltration and injection during authorized security deployments.








ToolluckyPipewrench/pipelock — open-source AI agent firewall and egress proxy written in Go, focused on verifiable egress control
CategoryAI agent security / egress filtering proxy
Primary UseMediating and scanning agent traffic across HTTP, WebSocket, MCP, and A2A for secret exfiltration, prompt injection, SSRF, and tool poisoning in authorized environments
Safe UseDeployed defensively in authorized environments: internal agent sandboxes, CI pipelines, labs, and enterprise fleets where the operator owns the agents and infrastructure being mediated
Telemetry NoteDefenders benefit twice: pipelock emits mediator-signed action receipts (verifiable offline with pipelock verify-receipt) and can anchor receipt checkpoints to a Rekor transparency log, so every boundary decision leaves auditable cryptographic evidence

The core premise of pipelock is deceptively simple: an AI agent holding $PROVIDER_API_KEY and shell access can leak that secret in a single outbound request, and nothing in a typical agent runtime stops it. The project positions itself as the boundary between an agent's secrets and the open internet, intercepting mediated traffic before it leaves the host. With 871 stars, an Apache-2.0 core license, and a listing on the CNCF Landscape under Security & Compliance, it is one of the more serious entries in the emerging ai-firewall niche. The README is unusually candid about the tool's limits, which is a refreshing signal in a category crowded with dashboard-driven claims.


Architecturally, pipelock is a Go 1.26+ proxy that inspects mediated HTTP, WebSocket, MCP, and A2A traffic, plus the contents of CONNECT tunnels when TLS interception is enabled. Without interception, plain CONNECT traffic is still scanned at the hostname and URL level — a reasonable degradation that avoids the operational cost of certificate management in some deployments. The detection surface covers secret exfiltration, prompt injection, SSRF, tool poisoning, and what the project calls risky tool-call chains, meaning sequences of tool invocations that are individually benign but collectively suspicious.


The SSRF handling shows real design thought. Private-address blocking is the default posture, but configured MCP upstreams are an explicit exception: local and private MCP servers are permitted, because a wrapper in front of a local tool server is the normal deployment shape. Crucially, cloud metadata endpoints remain blocked even in that exception path, closing the classic escalation where an attacker pivots from a local tool to the instance identity credentials at the metadata service. This nuance suggests the authors have actually operated agents rather than just theorized about them.


What distinguishes pipelock from most agent-security tooling is its evidence model. Instead of asking you to trust a dashboard, it emits mediator-signed action receipts over content-aware boundary decisions — cryptographic records a reviewer can verify outside the agent runtime, offline, with a key the operator holds. The demo command pipelock demo --receipts-dir ./out fires real attack scenarios, blocks them, and writes seven signed receipts plus a signer.pub key to disk with no network access. Verification is then a one-liner: pipelock verify-receipt against the public key. The philosophical framing, spelled out in the project's demonstration-over-attestation document, is that signed evidence of what happened beats attestations about what a vendor claims happened.


The honesty notes deserve attention from any professional evaluating this for production. The README states plainly that the demo signs with an ephemeral key, proving self-consistency rather than identity binding; that the operator running pipelock holds the signing key, so a receipt proves what the boundary decided and who signed it, not that the operator is honest; and that operator-independent verification against pipelock anchor receipts checkpoints — writable to a local backend or a Rekor transparency log — is still being proven end to end. A tool that grades its own proof scorecard with stated limits, including an explicit Authentic, Untampered, Anchored, and Completeness rubric in the evidence viewer, is doing threat modeling in public.


Integration breadth is a genuine strength. The README lists compatibility with Claude Code, OpenAI Codex, Cline, OpenCode, Pi, Zed, Cursor, VS Code, JetBrains IDEs, and agent frameworks including the OpenAI Agents SDK, Google ADK, AutoGen, CrewAI, and LangGraph. Routing an agent through the proxy, MCP wrapper, sandbox, host containment model, or cluster topology is the deployment pattern; pipelock init --output ./pipelock.yaml discovers local agent integrations and generates the configuration plus a recorder signing key. From there, pipelock run --config ./pipelock.yaml records a flight-recorder session while the agent works, and pipelock evidence view renders a static offline report.html from the receipt directory — no server, no account, no license required for the single-session viewer.


Installation follows the standard paths: source build via git clone --branch v3.7.0 --depth 1 and make install for the Community edition, prebuilt binaries from the releases page, docker pull ghcr.io/luckypipewrench/pipelock:3.7.0, or brew install luckyPipewrench/tap/pipelock on macOS. The release engineering is notably rigorous: SLSA provenance, CycloneDX SBOMs, checksums, signed container images, and from 3.6.0 an attested Helm chart, all verifiable with gh attestation verify — the README even flags a dependency on GitHub CLI v2.102.0+ to correctly verify against a fixed signer-matching vulnerability. For a security product, supply-chain hygiene of this caliber is table stakes that most competitors skip.


The licensing split is worth understanding before deployment. The core is Apache-2.0; the enterprise tier is ELv2, and source builds produce a Community-only binary while prebuilt release artifacts include paid-tier code that activates with a license key. The Pro/Enterprise operator dashboard (pipelock dashboard serve) adds token, OIDC, or mTLS authentication, bounded RBAC, redacted metadata views, exemption lifecycle records, and fleet views — a read-only console over signed evidence rather than a source of truth. Teams evaluating pipelock for an authorized enterprise deployment should budget for where that line falls, but the free evidence tooling stands on its own.


Detection quality is exercised publicly rather than asserted. The agent-egress-bench corpus on GitHub runs the detections, and the Gauntlet workflow is a scheduled candidate exam against a pinned corpus commit — though the README is careful to note it does not auto-publish a public score, avoiding the benchmark-gaming optics that plague AI security marketing. The self-scanned badge, CI, security workflows, codecov, and an OpenSSF Scorecard entry round out a project that appears to run its own medicine. A simple smoke test after configuration is pipelock check --config ./pipelock.yaml --url ..., which should block a request containing a fake AWS access key pattern and allow an ordinary documentation URL.


Where does this fit in an authorized workflow? The obvious niches are agent sandboxes in CI — the github-action topic suggests pipeline integration — and enterprise fleets where security teams need defensible evidence of what an agent was permitted to do. The receipt model maps cleanly onto audit and compliance requirements: an incident responder can later reconstruct the boundary decisions, verdicts, and hash-linked timeline without trusting the agent runtime's own logs, which are the first thing a compromised agent would falsify. That forensic posture is the quiet differentiator here.


Watch items remain. TLS interception for CONNECT content scanning carries its own key-management burden and trust questions; the metadata-endpoint blocking is documented but the broader private-address exception logic deserves a configuration review before deployment; and the enterprise licensing boundary means anyone building from source gets a subset of the released binary's capabilities. None of these are disqualifying — they are the questions a senior operator should bring to the pipelab.org documentation before routing production agents through the proxy. As an educational reference implementation of verifiable egress control, pipelock is currently one of the most complete designs in the space.



Official project repository for luckyPipewrench/pipelock.

Download Tool

Educational analysis for authorized security professionals. Use only in controlled, authorized environments.






Source: OffensiveSec
Source Link: https://www.offsecblog.com/2026/10/pipelock-for-insulating-ai-agents-from.html


Comments
new comment
Nobody has commented yet. Will you be the first?
 
Forum
Red Team (CNA)



Copyright 2012 through 2026 - National Cyber Warfare Foundation - All rights reserved worldwide.