R05 - iron-proxy
Purpose: What iron-proxy is, how it relates to Wraith Box’s egress
gateway, which of its threats and defenses Wraith Box lacks, and what
to do about it. Read at iron-proxy commit 60ed3566 (v0.54.0,
2026-10-21).
Requirements: SEC04-no-guest-secretsSEC04-no-guest-secrets: No secrets in the guestThis includes the model credential., SEC05-default-denySEC05-default-deny: Default-deny egress, enforced on the hostOnly allowlisted hostnames are reachable., SEC06-repo-writesSEC06-repo-writes: Repository-scoped writesGit pushes and repository-mutating API calls are allowed only for the repositories of the projects that have a session in the VM., SEC10-auditSEC10-audit: AuditEvery egress decision, approval, and returned change is recorded on the host in a persisted log the guest cannot alter., NFR08-licensingNFR08-licensing: LicensingApache-2.0; dependencies under permissive licenses only., T01-allowed-channelsT01-allowed-channels: Data through allowed channelsData sent through allowed operations to allowed destinations, for example a push to an allowed repository that is public, or prompt content sent to the model provider., T10-unnamed-credentialsT10-unnamed-credentials: Guest credentials in unnamed placeswb-proxyd removes Authorization, Proxy-Authorization and Cookie on every inspected host.
What iron-proxy is
Section titled “What iron-proxy is”iron-proxy (ironsh/iron-proxy, Apache-2.0, v0.1.0 on 2026-04-01,
v0.54.0 on 2026-10-21) is an egress proxy that inspects TLS, in one Go
binary with one YAML file. It is for CI jobs, containers and coding
agents. Its own CI runs behind it, through the GitHub Action
ironsh/iron-proxy-action. One author wrote most of it. The company
iron.sh sells a control plane on top: in managed mode the proxy polls
it for rules, secrets and transforms (internal/controlplane).
The binary has these parts:
- A DNS server that answers every
Aquery with the proxy’s own address. Names that match apassthroughglob resolve for real and bypass the proxy, and static records come first. - HTTP and HTTPS listeners. The HTTPS listener terminates TLS with
leaf certificates from a CA whose key the operator supplies as a
file. A global
sni-onlymode relays TLS by its SNI instead. An optional tunnel listener acceptsCONNECT, SOCKS5 and absolute-form HTTP. - A transform pipeline, run in order on each request:
allowlist: domain globs and CIDRs, with optional method and path rules. Anything else gets a 403.secrets: swaps a proxy token for a real secret, or injects one (see “Credentials” below).header_allowlist,annotateandbody_capture.judge: an LLM that can only refuse a request its rules match.grpc: calls an externalTransformService(proto/transform/v1/transform.proto).- credential transforms:
aws_authre-signs SigV4,gcp_authandgcp_id_tokenget Google tokens,oauth_tokenruns four OAuth 2 grants, andhmac_signsigns requests for exchange APIs.
- An upstream deny list, checked against each address at connect
time (
internal/dnsguard). - MCP policy and an MCP gateway for MCP’s Streamable HTTP
transport, a PostgreSQL proxy that pins a role per database, a
response retry that an outside handler authorizes (its default
header is
Payment-Receipt), and a reload API. - Audit: a JSON line per request with each transform’s decision, and the same record as OpenTelemetry logs over OTLP.
iron-proxy doesn’t confine the workload. Getting its traffic to the
proxy is the operator’s job: DNS alone, which the README calls “easy to
bypass”, nftables rules that the workload’s container loads before it
drops CAP_NET_ADMIN, or TPROXY. In the usual Docker setup the proxy
and the workload share a kernel.
It has no written threat model. The README’s problem statement names
the threats: a compromised dependency, a prompt injection or a
malicious build step that steals secrets, phones home or opens a
reverse shell. AGENTS.md lists the invariants a change must not
weaken: default-deny, the upstream deny list, secret values never in
logs, errors or responses, an audit record for every request, cleanup
on error, and the MCP and PostgreSQL gates. It has no list of accepted
risks.
How it relates to Wraith Box
Section titled “How it relates to Wraith Box”Overlap. iron-proxy does the job of wb-proxyd, and the DNS half
of wb-netd. Since it has nothing for the VM, the git round trip,
approvals or the dependency gate, it doesn’t compete with
wb claude. A user who puts it in front of a container that runs
Claude Code gets egress control and credential replacement, but
shares a kernel with the agent and relies on the container’s firewall
to keep traffic on the proxy.
iron-proxy is a component. It competes with wb-proxyd as a choice
between building and reusing. That choice is open now, because
wb-proxyd is still a stub that V1-M3-network-floorV1-M3-network-floor: The network floorwb-netd and wb-proxyd in inspect mode with a static policy, the audit log, and the conformance cases for egress. builds.
Could wb-proxyd be iron-proxy? Not without rewriting most of it.
- Listeners.
wb-proxydtakes streams fromwb-netdover a hand-off socket per VM, each bound to a name (S07-05-stream-hand-offS07-05-stream-hand-off: Stream Hand-offHow wb-netd hands each stream to wb-proxyd, and the checks that keep a compromised wb-netd from widening what a stream may reach.). iron-proxy listens on TCP ports and takes the name from the request. - Policy. One global file, against per-VM unions of OpenShell policy, guarded hosts, modes per host, profile parts and the prover.
- Credentials. The secret model differs at its root (“Credentials” below), and the default deny list is narrower.
- Quality gates. The tree has no fuzz targets. S10-tech-stackS10-tech-stack: Technology ChoicesFix languages, libraries, packaging, and repository layout, with the reason for each choice. asks for one on every parser that handles guest bytes.
- Licenses. iron-proxy’s own code is Apache-2.0, but its module
depends on
hashicorp/golang-lru/v2andhashicorp/vault/api, both MPL-2.0. S10-01-librariesS10-01-libraries: LibrariesThe libraries and programs Wraith Box uses, and their licenses. doesn’t allow copyleft, so the module can’t be a dependency (NFR08-licensingNFR08-licensing: LicensingApache-2.0; dependencies under permissive licenses only.). A package that doesn’t import them, such asinternal/dnsguardorinternal/mcp, could be copied with its license notice. Its other dependencies include the AWS SDK, two 1Password SDKs (one a fork through areplaceline), a PostgreSQL parser, OpenTelemetry and gRPC.
Besides a few packages and tests that could be copied, what is left
to reuse is the parts that Go’s standard library already gives
wb-proxyd: TLS termination, the leaf cache and the upstream
transport.
Shared ideas. iron-proxy’s TransformService and OpenShell’s
supervisor middleware, which the dependency gate implements in process
(S07-12-dependency-gateS07-12-dependency-gate: Dependency GateHow wb-proxyd keeps young and vulnerable package versions from the guest on the gated registries.), both let outside code allow, refuse or
rewrite a request. Each project speaks only its own proto.
Where the two meet today. Nowhere at run time. No spec gives
wb-proxyd an upstream proxy, so it can’t send its traffic through an
iron-proxy. That is just as well: a second inspecting proxy would
be a second holder of credentials. Wraith Box’s own CI could run
behind ironsh/iron-proxy-action, as iron-proxy’s CI does. That is a
question about this repository’s supply chain, not the product, and
the action would need an allowlist entry (docs/github-settings.md).
Credentials
Section titled “Credentials”The difference that matters most is how each one puts a credential into a request.
iron-proxy’s secrets transform works in one of these modes:
injectsets one header or query parameter to the secret on requests that match the entry’s rules.replacelooks for the proxy token in the headers it names (all headers when the list is empty), and optionally in the query, the path and the body. It swaps every occurrence for the secret with a substring replace (internal/transform/secrets/secrets.go).
With replace, the workload decides where in the request the secret
goes. On a bound host that echoes or stores what it receives, the
workload can read the secret back. iron-proxy’s own demo does that on purpose: it
sends the token to httpbin.org/headers, which echoes the request’s
headers, and tells the reader to “look for the real key in the
response” (examples/docker-compose/client.sh). A token placed in an
issue body with match_body on a code host, or in a conversation with
match_body on a model API, would do the same. The README’s claim
that “a compromised workload can exfiltrate a token that’s worthless
outside the proxy” holds for inject, not for replace.
Wraith Box closes this by design. The real credential goes only in
the header its binding injects, and a placeholder anywhere else gets a
403 with placeholder-outside-binding, or model-placeholder-in-body
in a conversation (S07-09-placeholder-bindingS07-09-placeholder-binding: Placeholder BindingWhere a credential placeholder may go in a request, how wb-proxyd scans for it, and what it refuses.). It also removes the
guest’s own Authorization, Proxy-Authorization and Cookie on
every inspected host, and Set-Cookie from the responses of a bound
host (S07-08-requests-and-credentialsS07-08-requests-and-credentials: Requests and CredentialsThe form of each request wb-proxyd sends upstream, and how it removes the guest's credentials and injects bound ones.). iron-proxy forwards the
workload’s own credentials. Its require flag only refuses a request
that lacks the proxy token, and a header_allowlist drops only the
headers it doesn’t name. It doesn’t touch response cookies.
iron-proxy goes further than Wraith Box’s specs on credential kinds.
aws_authtakes a request the workload signed with placeholder AWS keys, removes that signature, and signs again with the real keys.allowed_regionsandallowed_serviceslimit what it signs.gcp_authandoauth_tokenanswer the token endpoint, and for Google the metadata server, themselves. So an SDK in the workload completes its usual token exchange with a placeholder, and the proxy injects the real token on the API requests.
S09-05-credentialsS09-05-credentials: CredentialsHow credentials are stored and bound to requests, and how the model credential reaches the model API without entering the guest. plans SigV4 signing and OAuth 2 bindings, but says neither how a guest SDK gets through its token exchange nor how a SigV4 binding is scoped.
Threats iron-proxy covers that Wraith Box doesn’t
Section titled “Threats iron-proxy covers that Wraith Box doesn’t”- MCP tool calls through an allowed host. An MCP server over
Streamable HTTP takes every tool call as a
POSTto one path. Wraith Box’s HTTP rules match method and path (S07-11-http-policyS07-11-http-policy: HTTP PolicyThe HTTP rules of inspected hosts, the built-in profiles, and the parts a user can turn off.), so a rule that allows the endpoint allows every tool. iron-proxy parses the JSON-RPC body, refuses tools that aren’t listed or whose arguments fail a rule, and removes refused tools fromtools/list, per event on a server-sent event stream (internal/mcp). Wraith Box V1V1-initial: Initial versionThe first version: what it delivers, what it leaves out, and the milestones that get there. doesn’t copy an MCP server into the guest (S14-03-configuration-filterS14-03-configuration-filter: Configuration FilterThe units, bounds, filters and secret scan that the user's configuration passes, and how wb-guestd writes the copy in the guest.), refuses OpenShell’smcpendpoint key at load (S09-01-policy-filesS09-01-policy-files: Policy FilesWhere policy is written, the network policy schema Wraith Box accepts, how the prover sees it, and narrowing by program and project.), and an approval grants read methods only (S07-17-approvals-and-learningS07-17-approvals-and-learning: Approvals and LearningHow an unknown destination reaches the user as an approval request, what an approval grants, and how learn mode collects names.). So in V1V1-initial: Initial versionThe first version: what it delivers, what it leaves out, and the milestones that get there. this needs a user who allowsPOSTto an MCP host in a policy file. It matters once MCP servers get credential bindings. - Writes judged by what they do. A
judgeinstance asks a small model whether a write, such as aPOSTtoapi.github.com, fits a policy written in prose. The judge can only refuse. A static deny applies before it, and when the model call fails the request is refused by default. This is iron-proxy’s answer to the gap R01-defenseclawR01-defenseclaw: DefenseClawWhat Cisco's DefenseClaw is, how it relates to Wraith Box, which of its threats and defenses Wraith Box lacks, and what to do about it. found under SEC06-repo-writesSEC06-repo-writes: Repository-scoped writesGit pushes and repository-mutating API calls are allowed only for the repositories of the projects that have a session in the VM.: any write to a granted repository passes. - Unexpected request headers.
header_allowlistdrops every request header a host’s list doesn’t name. T10-unnamed-credentialsT10-unnamed-credentials: Guest credentials in unnamed placeswb-proxyd removes Authorization, Proxy-Authorization and Cookie on every inspected host. accepts that a guest’s own credential reaches a host in a header that no profile names. A header list on a host with a binding would narrow that.
iron-proxy’s other defenses are already in Wraith Box, in a stricter form:
- Its default deny list has
169.254.169.254/32, the AWS and Google Cloud IPv6 metadata addresses, and loopback. RFC 1918 is left out on purpose, for corporate networks. That list misses the ECS task credentials address169.254.170.2, Alibaba Cloud’s metadata at100.100.100.200, NAT64 and 6to4. Wraith Box’s list covers each (S07-07-hosts-and-modesS07-07-hosts-and-modes: Hosts and ModesHow wb-proxyd binds a stream to its name, which upstream addresses it refuses, and the inspect, pass and audit modes., “Upstream address”). Both miss the Azure WireServer,168.63.129.16, which R01-defenseclawR01-defenseclaw: DefenseClawWhat Cisco's DefenseClaw is, how it relates to Wraith Box, which of its threats and defenses Wraith Box lacks, and what to do about it. already lists. - It refuses a TLS request whose
Hostdiffers from its SNI, and paths with.or..segments. Wraith Box does both, and canonicalizes the path (S07-08-requests-and-credentialsS07-08-requests-and-credentials: Requests and CredentialsThe form of each request wb-proxyd sends upstream, and how it removes the guest's credentials and injects bound ones.). - It relays a WebSocket’s bytes unread after the upgrade. Wraith Box’s HTTP policy matches WebSocket messages (S07-11-http-policyS07-11-http-policy: HTTP PolicyThe HTTP rules of inspected hosts, the built-in profiles, and the parts a user can turn off.).
- Its
sni-onlymode relays every host, with no check of ECH or a second ClientHello. Wraith Box allowspassper named host and parses the handshake (S07-16-tls-and-tunnelsS07-16-tls-and-tunnels: TLS and TunnelsWhat wb-proxyd does with client certificates, encrypted ClientHello and tunnels, and which refusals no mode or approval relaxes.).
The PostgreSQL proxy has no counterpart. A database the guest reaches by a raw TCP entry (S07-15-non-http-streamsS07-15-non-http-streams: Non-HTTP StreamsHow wb-proxyd checks the protocol of each stream, and what it does with SSH, other protocols and raw TCP.) needs a password in the guest, against SEC04-no-guest-secretsSEC04-no-guest-secrets: No secrets in the guestThis includes the model credential.. Wraith Box lacks that feature, and it isn’t on any version’s list.
Detection and response
Section titled “Detection and response”R01-defenseclawR01-defenseclaw: DefenseClawWhat Cisco's DefenseClaw is, how it relates to Wraith Box, which of its threats and defenses Wraith Box lacks, and what to do about it. placed a detection layer in wb-proxyd, where the
guest can’t turn it off. iron-proxy shows what such a layer looks like
in a shipping proxy:
- the
judgetransform, which only refuses, fails closed by default, and, when placed beforesecretsas its README recommends, sends the model provider placeholders rather than credentials; - MCP decisions, with the tool and the reason, in each audit record;
body_capture, which writes request bodies, such as prompts, to the audit log;- OTLP export to a log store.
Its Respond is a config reload. It has no way to stop one workload or revoke one grant.
A judge in wb-proxyd would send request content from the host to a
model provider. That is new egress from the host, it costs money per
request, and it sends data that S09-11-auditS09-11-audit: AuditWhat the audit log records, the budgets that bound it, and what happens when the log can't be written. never records. Bodies in
the audit log would break that rule too. The open question of
R01-defenseclawR01-defenseclaw: DefenseClawWhat Cisco's DefenseClaw is, how it relates to Wraith Box, which of its threats and defenses Wraith Box lacks, and what to do about it. stands: which layer detects what, and what a finding
makes Wraith Box or the user do.
Recommendations
Section titled “Recommendations”- Don’t use iron-proxy as
wb-proxyd, or as a module. Its MPL-2.0 dependencies rule the module out (NFR08-licensingNFR08-licensing: LicensingApache-2.0; dependencies under permissive licenses only.), and its listeners, policy model and credential model differ from S07-egress-gatewayS07-egress-gateway: Egress GatewayThe only path from a guest to any network: a userspace network stack (wb-netd) and a policy-enforcing proxy (wb-proxyd) on the host.. What fits is Go’s standard library, which Wraith Box already uses. - Don’t integrate. Both want to be the egress. Chaining them would
add a second inspecting proxy and a second credential holder, for
nothing
wb-proxydlacks. - Use it as a reference while V1-M3-network-floorV1-M3-network-floor: The network floorwb-netd and wb-proxyd in inspect mode with a static policy, the audit log, and the conformance cases for egress. builds
wb-proxyd. Its fix history names problems the same code meets: hop-by-hop headers named inConnection, WebSocket relays that hang, leaf certificates that expire in the cache, case in host globs, percent-encoded reserved characters in the upstream path, and the CA missing from the served chain. Each belongs in a test. - Re-review after V1V1-initial: Initial versionThe first version: what it delivers, what it leaves out, and the milestones that get there.. iron-proxy went from v0.1.0 to v0.54.0 in under seven months. A re-review after V1V1-initial: Initial versionThe first version: what it delivers, what it leaves out, and the milestones that get there., as I240I240 (open): Re-review the research notes on related projects after V1 and fold their recommendations into post-V1 plansAfter V1 ships, review the recommendations of the research notes that compare Wraith Box with related projects, and fold the ones that still hold into the post-V1 plans. does for R01-defenseclawR01-defenseclaw: DefenseClawWhat Cisco's DefenseClaw is, how it relates to Wraith Box, which of its threats and defenses Wraith Box lacks, and what to do about it., updates this note and then files precise issues. This re-review and I240I240 (open): Re-review the research notes on related projects after V1 and fold their recommendations into post-V1 plansAfter V1 ships, review the recommendations of the research notes that compare Wraith Box with related projects, and fold the ones that still hold into the post-V1 plans. can be one pass.
Candidates for that re-review, roughly in order of value:
- MCP-aware rules for when MCP servers get credential bindings: a tool
allowlist with argument rules, and
tools/listfiltering. Decide between OpenShell’smcpendpoint key and a Wraith Box extension. - For the SigV4 and OAuth 2 bindings of S09-05-credentialsS09-05-credentials: CredentialsHow credentials are stored and bound to requests, and how the model credential reaches the model API without entering the guest.: scope a
SigV4 binding by service and region, and let
wb-proxydanswer the token endpoint so a guest SDK works with a placeholder. Copy iron-proxy’s tests with its license notice where they fit. - A request header allowlist per host with a binding, to narrow T10-unnamed-credentialsT10-unnamed-credentials: Guest credentials in unnamed placeswb-proxyd removes Authorization, Proxy-Authorization and Cookie on every inspected host..
- A refusing judge on write methods of the git hosting profile, as a Detection Finding rather than a control. This belongs to the Detect and Respond spec that R01-defenseclawR01-defenseclaw: DefenseClawWhat Cisco's DefenseClaw is, how it relates to Wraith Box, which of its threats and defenses Wraith Box lacks, and what to do about it. asks for, and comes after it.
- The Azure WireServer address, already a candidate of I240I240 (open): Re-review the research notes on related projects after V1 and fold their recommendations into post-V1 plansAfter V1 ships, review the recommendations of the research notes that compare Wraith Box with related projects, and fold the ones that still hold into the post-V1 plans..
Not to adopt: replace substitution in place, passthrough names
that skip the proxy, a global SNI relay, warn mode across the whole
allowlist, OAuth requests forwarded without a token when the token
request fails (iron-proxy’s default), request bodies in the audit
log, a CA key in a file, and an LLM judge as a control.
Status: Read 2026-10-23, re-review after V1V1-initial: Initial versionThe first version: what it delivers, what it leaves out, and the milestones that get there. (no issue yet)