Skip to content

May learn mode and pass mode open holes in default-deny egress?

Decided 2026-10-04: A. Collect and refuse. The decision and its reasons are in the I40I40 (closed): S03-requirements, S07-egress-gateway: record learn mode and pass mode as SEC05-default-deny exceptionsSEC05-default-deny is "default-deny egress", and AGENTS.md says an S control is never weakened. comment that starts Decision (2026-10-04):. Source: I40I40 (closed): S03-requirements, S07-egress-gateway: record learn mode and pass mode as SEC05-default-deny exceptionsSEC05-default-deny is "default-deny egress", and AGENTS.md says an S control is never weakened.. Affects SEC00-indexSEC00-index: Security requirementsThe security controls Wraith Box enforces., T00-indexT00-indexboundary 6 is the host terminal stream., 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. and S09-policy-credentials-auditS09-policy-credentials-audit: Policy, Credentials, Certificates and AuditWhere policy comes from, how secrets are held, how TLS inspection is trusted, and what is recorded..

guest, untrustedagentmay be prompt-injectedhost: trustedwb-netd, wb-proxydDNS, inspect, or passper hostallowlisted hostinspected, HTTP policy appliespass hostrelayed blind, no policy insideany other hostrefused, unless learn modelearn mode

Figure 1. The agent’s only network path is the host gateway. As 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. is written, learn mode opens a connection to any host (lower red path), and a pass host gets bytes the proxy cannot read (middle red path). The specs record both as neither an exception nor an accepted risk.

An unknown name is refused as usual, but no notification is shown. The name goes on the session’s list. At session end, or with wb learn report, the user approves the list in one batch.

As written today: any name resolves and every connection is allowed and inspected. A new accepted risk in T00-indexT00-indexboundary 6 is the host terminal stream. says egress is open for that session. The issue adds a confirmation outside the agent terminal for each learn session.

New hosts are reachable for GET and HEAD. Data still leaves in URLs and headers.

Question Recommendation Source
Where is the list of pass hosts? In the user’s policy files. wb policy explain lists every pass host with the reason given. the issue
Who may add one? Only the user, never repository configuration. S09-policy-credentials-auditS09-policy-credentials-audit: Policy, Credentials, Certificates and AuditWhere policy comes from, how secrets are held, how TLS inspection is trusted, and what is recorded. already says so. the issue
Is each addition audited? Yes, as a policy change event (SEC10-auditSEC10-audit: AuditEvery egress decision, approval, and returned change is recorded on the host in a persisted log the guest cannot alter.). the issue
Which hosts may never be pass? A host with a credential binding, or one covered by a built-in profile (git hosting, model API, package registries). Refused at load with the reason (NFR06-explained-refusalsNFR06-explained-refusals: OperabilityEvery refusal names the rule that caused it and how to change it.). this brief
Where is the risk written? 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. names pass hosts as one of its channels. the issue
RequirementA. CollectB. OpenC. Reads only
SEC05-default-denySEC05-default-deny: Default-deny egress, enforced on the hostOnly allowlisted hostnames are reachable. only allowlisted hostnames are reachablekeptopen per sessionopen for reads
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. writes only to the project’s repositorieskeptif host rules stay onif host rules stay on
FR10-learn-modeFR10-learn-mode: Learn modeA learn mode, available only to projects whose placement is work (S05-cli), records the destinations a project needs and proposes an allowlist. learn mode proposes an allowlistover more runsone runreads 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. data through allowed channelsunchangedany hostany host, in URLs
T04-bad-approvalsT04-bad-approvals: Bad approvalsA user approving a malicious request or merging a malicious change despite the flags. the user approves something maliciousbatch approvalone approval opens allone approval opens reads
Spec workS07-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.SEC00-indexSEC00-index: Security requirementsThe security controls Wraith Box enforces., T00-indexT00-indexboundary 6 is the host terminal stream., 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.SEC00-indexSEC00-index: Security requirementsThe security controls Wraith Box enforces., T00-indexT00-indexboundary 6 is the host terminal stream., 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.

The pass-mode rules are the same under every option. They touch SEC09-host-policySEC09-host-policy: Policy is held on the hostThe guest cannot read or change policy. (the user holds the list), SEC10-auditSEC10-audit: AuditEvery egress decision, approval, and returned change is recorded on the host in a persisted log the guest cannot alter. (each addition is recorded) and 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..

Details and glossary

Why the confirmation step in B matters. --learn is a flag on wb claude. A shell alias or a script the user forgot about could add it to every session. The issue’s guard is a per-session confirmation through a notification or wb approve, which the guest can’t fake (SEC14-no-fake-approvalsSEC14-no-fake-approvals: Approvals cannot be spoofed by the guestApproval prompts are never rendered in the agent's terminal stream.).

What A looks like for the user. wb claude --learn runs without approval notifications. Each refused name is listed in the session summary and in wb learn report, together with the program label if one exists. The user then runs wb allow for the names they accept, or approves the list from the report.

Glossary

  • Default-deny egress: only hosts on the allowlist are reachable, and everything else is refused.
  • Learn mode: a session mode for trusted projects that records which hosts the project needs.
  • Inspect mode: wb-proxyd decrypts the connection with its own certificate, applies rules and injects credentials, then connects upstream.
  • Pass mode: wb-proxyd checks the host name and relays the encrypted bytes unread.
  • SNI: the host name a TLS client names in its first message.
  • Residual risk: a known gap written down in T00-indexT00-indexboundary 6 is the host terminal stream. rather than closed.