You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Security] Actor DNS Relay Egress Policy Bypass & Internal Discovery #2075
This is a result of an internal vuln finding run. Many of these are known issues, but don't appear to have tracking issues, so I'm filing them anyway.
[Security] Actor DNS Relay Egress Policy Bypass & Internal Discovery
Severity: MEDIUM (3.20) | CWE: CWE-284
Problem Description
The atunnel DNS relay explicitly bypasses the actor egress proxy tunnel and forwards DNS queries without evaluating egress policies:
DNS requests originating inside actor sandboxes are forwarded directly via local UDP/TCP listeners (internal/atunnel/dns_relay.go).
While HTTP/TCP egress traffic is intercepted and subject to egress network policies, DNS resolution queries are not filtered against destination allowlists or domain policies.
Attack Vector
Network Reconnaissance: A compromised or untrusted actor can query internal Kubernetes DNS names (*.svc.cluster.local) to enumerate services, namespaces, and internal infrastructure topology.
Covert Data Exfiltration: An actor restricted from outbound TCP egress can exfiltrate sensitive data via DNS tunneling (e.g., encoded DNS queries to an attacker-controlled authoritative nameserver).
Impact
Bypass of egress security policies, reconnaissance of internal cluster infrastructure, and covert data exfiltration via DNS tunneling.
Proposed Remediation
Route DNS queries through the egress policy engine to enforce domain allowlisting and egress policy checks.
Block resolution of internal cluster domains (*.cluster.local, *.internal) from actor sandboxes unless explicitly allowed.
Implement DNS request rate limiting and anomaly detection for tunnel detection.
Do we need to support resolution of internal names for A2A traffic? If not, we should filter them out. And I think we probably need to require an explicit opt-in for DNS resolution? If you're relying on denying egress to break one leg of the lethal trifecta, having a DNS exfil channel available is not good, your trifecta is still lethal.
I agree that this needs to be solved, but is this a requirement for M3? We discussed split horizon DNS and other things, but i think we need time to design this.
Shared relay limits (64 UDP in-flight, 16 TCP conns across sandboxes, dns.go:38-48) also allow one actor to degrade DNS for co-located actors.
This part is a different issue from the title and the rest of the description.
That we are definitely hardening before GA. Bowei Du (@bowei) planned to send me some PRs for this.
I think we're weakening our "no egress by default" security principle if we allow DNS outbound by default. We can just document it, but it's a security surprise.
Activity
destijl commentedon Oct 1, 2026
Do we need to support resolution of internal names for A2A traffic? If not, we should filter them out. And I think we probably need to require an explicit opt-in for DNS resolution? If you're relying on denying egress to break one leg of the lethal trifecta, having a DNS exfil channel available is not good, your trifecta is still lethal.
EItanya commentedon Oct 1, 2026
I agree that this needs to be solved, but is this a requirement for M3? We discussed split horizon DNS and other things, but i think we need time to design this.
bowei commentedon Oct 1, 2026
This is a known issue with the GA. I am hesitant to do a crash implementation right before the deadline.
BenTheElder commentedon Oct 1, 2026
This part is a different issue from the title and the rest of the description.
That we are definitely hardening before GA. Bowei Du (@bowei) planned to send me some PRs for this.
BenTheElder commentedon Oct 1, 2026
We are tracking hardening the relay against DOS etc in #1816
destijl commentedon Oct 2, 2026
I think we're weakening our "no egress by default" security principle if we allow DNS outbound by default. We can just document it, but it's a security surprise.
destijl commentedon Oct 5, 2026
Could we add a very simple flag that just turns off egress by default, with an opt-in and figure out a more sophisticated API at a later time?
docs(security): clarify DNS relay default and link issue agent-substr…
BenTheElder commentedon Oct 13, 2026
I think #2524 is the right approach for "turn off egress by default".
Block DNS if there is no egress policy configured (agent-substrate#2524)
Route actor DNS through the egress gateway over DoH