Skip to content

What happens between a blocked lookup and the user's answer?

Decided 2026-10-04: A. Hold the answer, then refuse uncached. The decision and its reasons are in the I51I51 (closed): S09-policy-credentials-audit: approval flow, what the blocked client sees, and approval noiseS07-egress-gateway and S09-policy-credentials-audit describe approval choices and their security (SEC14-no-fake-approvals), not how the flow behaves. comment that starts Decision (2026-10-04):. Source: I51I51 (closed): S09-policy-credentials-audit: approval flow, what the blocked client sees, and approval noiseS07-egress-gateway and S09-policy-credentials-audit describe approval choices and their security (SEC14-no-fake-approvals), not how the flow behaves.. Affects 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.. Blocked by I36I36 (closed): S07-egress-gateway: attribute network flows to projects in the shared work VMThe work VM hosts every trusted project, and its wb-netd sees one guest MAC and one leased IPv4 address (S07-egress-gateway "Addressing"). and X03-network-pathX03-network-path: Network pathA macOS guest boots on the file-handle attachment with the gVisor stack: gets a DHCP lease, resolves only allowlisted names, reaches only the proxy..

guest, untrustedagent’s toolfails at once on NXDOMAINguest OS daemonsupdates, iCloud, timehost: trustedwb-netdDNS: NXDOMAINcached by the guestwb-hostdapproval eventusernotification”allow” arrives after the tool faileda prompt per name

Figure 1. Today wb-netd answers an unknown name with NXDOMAIN at once and raises an approval. The tool has failed before the user reads the notification, and the guest may cache the refusal. The guest’s own daemons look up names too, and each one would become a notification.

wb-netd holds the DNS answer while the notification is open, up to 4 seconds. An approval in that window gets a real answer. After that, or on deny, it answers NXDOMAIN with a negative TTL of zero. The next lookup then reaches wb-netd again.

As today, plus a negative TTL of zero. The tool fails, and the agent must notice and retry after the user approves.

NXDOMAIN at once, with whatever negative TTL the code picks. If it caches, “the next lookup succeeds” is false.

  • Cost: none now. Approvals appear not to work.
Point Recommendation Decide now?
Negative TTL NXDOMAIN carries an SOA record with TTL 0 and MINIMUM 0. yes
Silent deny list Guest OS names are refused without a notification, and the image build turns those services off at the source. Each refusal is still audited. rule now, list after X03-network-pathX03-network-path: Network pathA macOS guest boots on the file-handle attachment with the gVisor stack: gets a DHCP lease, resolves only allowlisted names, reaches only the proxy.
Coalescing One open request per name. Repeated lookups join it. yes
Cap on open requests A fixed number open at once. Over the cap, names are refused and audited, and wb status shows the count. per VM now, per session after I36I36 (closed): S07-egress-gateway: attribute network flows to projects in the shared work VMThe work VM hosts every trusted project, and its wb-netd sees one guest MAC and one leased IPv4 address (S07-egress-gateway "Addressing").
Timeout A request stays in wb status until answered or until its session ends, and is audited as expired. yes
Display Show the name as received (punycode form). Show the Unicode form next to it only with a warning when it mixes scripts or uses confusable characters. Escape every byte outside letters, digits, hyphen, and dot. yes
“Allow for this session” Needs to know which session asked. after I36I36 (closed): S07-egress-gateway: attribute network flows to projects in the shared work VMThe work VM hosts every trusted project, and its wb-netd sees one guest MAC and one leased IPv4 address (S07-egress-gateway "Addressing").
RequirementA. HoldB. RefuseC. Hold connectD. As is
FR09-approve-unknownFR09-approve-unknown: Approve unknown destinationsA request to an unknown destination is blocked and offered to the user for approval out-of-band (allow once, allow for project, deny). blocked, then approved out of bandworks in timeagent retrieslong windowcache may block
SEC05-default-denySEC05-default-deny: Default-deny egress, enforced on the hostOnly allowlisted hostnames are reachable. only allowlisted hostnames are reachablekeptholdsif heldunchanged
SEC14-no-fake-approvalsSEC14-no-fake-approvals: Approvals cannot be spoofed by the guestApproval prompts are never rendered in the agent's terminal stream. the guest can’t fake an approvalkeptholdsunchangedas today
T04-bad-approvalsT04-bad-approvals: Bad approvalsA user approving a malicious request or merging a malicious change despite the flags. user approves something maliciouscap and display rulescap and display rulescap and display rulesno cap
NFR06-explained-refusalsNFR06-explained-refusals: OperabilityEvery refusal names the rule that caused it and how to change it. each refusal names its ruleauditedrecordedreset, auditedunspecified
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., 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.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., 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.spike, then 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.none
Details and glossary

Why not answer SERVFAIL instead of NXDOMAIN. A temporary failure makes some tools retry by themselves. It also says “try again” to a name the user may deny, and resolvers handle it less predictably than NXDOMAIN. Option A gets the retry benefit for the names the user approves in time.

Glossary

  • NXDOMAIN: the DNS answer “this name doesn’t exist”.
  • Negative TTL: how long a resolver remembers an NXDOMAIN before asking again.
  • SOA record: a DNS record that, in a negative answer, carries the negative TTL.
  • Stub resolver: the part of the guest OS that sends DNS queries for programs. On macOS it is mDNSResponder.
  • Punycode: the ASCII form of an internationalized name (xn--…), which is what DNS carries.
  • Confusable characters: letters from different scripts that look alike, such as Latin a and Cyrillic а.
  • Coalescing: treating repeated requests for the same name as one.