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..
The problem
Section titled “The problem”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.
Learn mode options
Section titled “Learn mode options”Pass mode sub-decisions
Section titled “Pass mode sub-decisions”Impact
Section titled “Impact”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..
Evidence
Section titled “Evidence”- verified Learn mode: “DNS resolves any name and connections are inspected and allowed” (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.). 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. limits it to trusted repositories, and S05-cliS05-cli: Command Line InterfaceSpecify wb, the single user-facing command. refuses
--learnotherwise (“Session flags”). - verified SEC05-default-denySEC05-default-deny: Default-deny egress, enforced on the hostOnly allowlisted hostnames are reachable.: “Only allowlisted hostnames are reachable”, with no exception in SEC00-indexSEC00-index: Security requirementsThe security controls Wraith Box enforces.. AGENTS.md: a security control is never weakened to make something work.
- verified Pass mode relays TLS bytes unchanged and is “a documented residual channel” (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., “Modes, per host”). 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. doesn’t mention pass hosts, and no spec lists them.
- verified Credential replacement and HTTP policy run only on inspected hosts (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., “Credential replacement”, and 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.).
- verified Repository configuration can never switch a host to pass (S09-03-project-settingsS09-03-project-settings: Project SettingsWhat a project's settings hold, and what a repository's own .wraithbox/ configuration may add., “Repository-supplied configuration”).
- verified The threat model assumes prompt injection in content a trusted project reads (S03-requirementsS03-requirements: RequirementsThe problem Wraith Box solves, and where the requirements that answer it are., “Problem”), so trusting the repository doesn’t make an open learn session safe.
- inferred A host can’t be both pass and credential-bound in a useful way: pass never terminates TLS, so
wb-proxydhas nowhere to inject the credential. - assumed That option A finds a project’s hosts in two or three runs. It depends on how deep the chain of hosts behind a refused one goes. A trial on real projects during V1-M5-approvalsV1-M5-approvals: Approvals and policyApprovals with notifications and wb approve, learn mode, credential bindings, the dependency gate, wb trust with the boundary check, wb policy explain, and the toolchain reconcile. would show it. The decision can go ahead without a spike.
What this unblocks
Section titled “What this unblocks”- The learn-mode work in V1-M5-approvalsV1-M5-approvals: Approvals and policyApprovals with notifications and wb approve, learn mode, credential bindings, the dependency gate, wb trust with the boundary check, wb policy explain, and the toolchain reconcile. (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.), and the pass-mode rules 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. needs before its conformance cases.
- I47I47 (closed): S07-egress-gateway: non-HTTP streams, SSH remotes and ECHS07-egress-gateway describes TLS and HTTP., whose raw TCP entries are proposed “in the same class as pass mode, with the same restrictions”.
- The decision itself waits on no spike.
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-proxyddecrypts the connection with its own certificate, applies rules and injects credentials, then connects upstream. - Pass mode:
wb-proxydchecks 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.