Skip to content

[Security] Actor DNS Relay Egress Policy Bypass & Internal Discovery #2075

Closed

Description

@destijl

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

  1. Network Reconnaissance: A compromised or untrusted actor can query internal Kubernetes DNS names (*.svc.cluster.local) to enumerate services, namespaces, and internal infrastructure topology.
  2. 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

  1. Route DNS queries through the egress policy engine to enforce domain allowlisting and egress policy checks.
  2. Block resolution of internal cluster domains (*.cluster.local, *.internal) from actor sandboxes unless explicitly allowed.
  3. Implement DNS request rate limiting and anomaly detection for tunnel detection.

Activity

  1. added
    kind/bug
    area/security
    on Oct 1, 2026
  2. destijl commented on Oct 1, 2026

    @destijl
    CollaboratorAuthor

    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.

  3. added this to the M3 milestone on Oct 1, 2026
  4. EItanya commented on Oct 1, 2026

    @EItanya
    Collaborator

    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.

  5. bowei commented on Oct 1, 2026

    @bowei
    Collaborator

    This is a known issue with the GA. I am hesitant to do a crash implementation right before the deadline.

  6. BenTheElder commented on Oct 1, 2026

    @BenTheElder
    Collaborator

    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.

  7. BenTheElder commented on Oct 1, 2026

    @BenTheElder
    Collaborator

    We are tracking hardening the relay against DOS etc in #1816

  8. destijl commented on Oct 2, 2026

    @destijl
    CollaboratorAuthor

    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.

  9. destijl commented on Oct 5, 2026

    @destijl
    CollaboratorAuthor

    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?

  10. BenTheElder commented on Oct 13, 2026

    @BenTheElder
    Collaborator

    I think #2524 is the right approach for "turn off egress by default".

  11. added a commit that references this issue on Oct 14, 2026
    df1331d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area/networkarea/nodearea/securitykind/bug

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions