DNS encriptado (DoH/DoT) e o seu impacto nas capacidades de interceção legal

DNS encriptado - ilustração da conformidade com a interceção legal

The Domain Name System (DNS) has long been one of the most valuable data sources for lawful interception and network intelligence. DNS queries reveal which websites a user visits, which services they access, and which applications they use, even when the rest of the traffic is encrypted. For decades, DNS traffic has been transmitted in plaintext, making it readily accessible to network-level interception. The emergence of encrypted DNS protocols — DNS over HTTPS (DoH) and DNS over TLS (DoT) — is fundamentally changing this landscape, with significant implications for capacidades de interceção legal.

Este artigo analisa o funcionamento do DoH e do DoT, as razões pelas quais estão a ser adotados, o impacto que têm na interceção legal e o que as operadoras podem fazer para cumprir as suas obrigações de conformidade num ambiente em que o tráfego DNS está cada vez mais encriptado.

O Desafio do DNS Encriptado para os Operadores

Traditional DNS resolution uses port 53 (mostly UDP, with TCP for larger responses), transmitting queries and responses in plaintext. Anyone with access to the network path between the user and the DNS resolver — including the operator, intermediate network elements, and potential eavesdroppers — can observe the DNS queries and determine which domain names the user is resolving.

DNS over TLS (DoT), defined in RFC 7858, encrypts DNS traffic by wrapping it in a TLS connection on TCP port 853. The DNS queries and responses are encrypted in transit, preventing observation by intermediaries. However, the use of a dedicated port (853) makes DoT traffic identifiable at the network level — an observer can determine that DNS resolution is occurring, even though the content of the queries is encrypted. A third protocol, DNS over QUIC (DoQ, RFC 9250), runs on UDP port 853. Oblivious DoH (RFC 9230) additionally hides the user’s IP address from the resolver.

DNS over HTTPS (DoH), defined in RFC 8484, takes encryption a step further by tunnelling DNS traffic within standard HTTPS connections on port 443 (TCP, or UDP when HTTP/3 over QUIC is used). Because DoH uses ordinary HTTPS on port 443, its content cannot be separated from web traffic, although connections to well-known public resolvers can still be recognised by their addresses. DoH effectively hides DNS resolution within the vast volume of encrypted web traffic that traverses modern networks.

Ambos os protocolos foram concebidos para proteger a privacidade dos utilizadores, impedindo que os intermediários de rede observem as consultas DNS. Os principais fornecedores de navegadores — incluindo o Mozilla Firefox e o Google Chrome — implementaram o suporte ao DoH, e alguns sistemas operativos já suportam o DoH e o DoT de forma nativa. A adoção do DNS encriptado está a acelerar, impulsionada pela defesa da privacidade, pelas predefinições dos navegadores e pela tendência mais ampla para encriptar todo o tráfego de rede.

O impacto na intercepção legal

The encryption of DNS traffic has a direct and significant impact on lawful interception capabilities. Plaintext DNS queries have traditionally been visible to investigators inside the content of communication (CC): the IP copy of the target’s traffic includes every DNS packet, providing a detailed record of the target’s online activity. When a target visits a website, sends an email, or uses an application, the corresponding DNS queries reveal the domain names involved, even when the content of the communication is encrypted.

Com o DoH e o DoT, os operadores já não conseguem monitorizar as consultas DNS ao nível da rede se o dispositivo do destinatário estiver configurado para utilizar um resolvedor DNS encriptado que não seja gerido pelo operador. O processo de resolução DNS é encriptado de ponta a ponta entre o dispositivo e o resolvedor, e o equipamento de rede da operadora não consegue desencriptar as consultas sem acesso às chaves de sessão TLS.

This loss of DNS visibility affects real-time interception: the IP copy of the target’s traffic still contains every DNS packet, but with DoH and DoT those packets are encrypted, so the LEA loses the domain names it used to read from them. Encrypted DNS does not affect retained data: data retention rules, where they apply, cover subscriber and IP-assignment records. They do not cover DNS queries or browsing history, which in Germany are expressly excluded from data retention (§ 176(5) TKG).

O impacto é mais acentuado quando o alvo utiliza um resolvedor DoH de terceiros — como os operados pela Cloudflare, pelo Google ou por outros fornecedores — em vez da própria infraestrutura DNS do operador. Neste caso, as consultas DNS são resolvidas inteiramente fora da rede da operadora, e esta não tem qualquer acesso às mesmas. Se o destino utilizar o próprio resolvedor DNS da operadora com DoT ou DoH, a operadora mantém o acesso aos dados das consultas ao nível do resolvedor, mas não em pontos intermédios da rede.

Estratégias de mitigação para os operadores

Operators cannot prevent the adoption of encrypted DNS, but they can implement strategies to mitigate its impact on lawful interception. The first strategy is to operate their own DoH and DoT resolvers and to encourage their subscribers to use these resolvers, for example by advertising them through DDR (RFC 9462) or DNR (RFC 9463) so that devices upgrade to the operator’s encrypted resolver automatically. If the operator runs the encrypted resolver, an interception point at the resolver can still see a target’s queries in plaintext once a valid order is in force. This is not a reason to log all subscribers’ DNS: keeping such data needs its own legal basis. This approach preserves DNS visibility for lawful interception while still providing subscribers with the privacy benefits of encrypted DNS against third-party observation.

The second strategy involves using alternative data sources to reconstruct the information that DNS queries previously provided. Server Name Indication (SNI) in TLS handshakes provides the domain name of the server that the client is connecting to, and this information has traditionally been transmitted in plaintext. However, Encrypted Client Hello (ECH, RFC 9849, published 2026, the successor to ESNI) now encrypts the SNI as well, wherever browser and server support it, further reducing visibility. IP address analysis can also provide some information about which services a target is accessing, but the widespread use of content delivery networks (CDNs) and shared hosting means that IP-to-domain mapping is often ambiguous.

The third strategy is to implement interception at the application layer or at the device level, rather than relying solely on network-level data. This approach is beyond the scope of traditional telecommunications interception, but some jurisdictions already permit device-level interception under strict conditions (in Germany, ‘Quellen-TKÜ’ under § 100a StPO), as a response to the increasing encryption of network traffic. For operators, this is not a practical solution, but it is part of the broader context in which encrypted DNS should be understood.

A fourth strategy involves regulatory and policy engagement. Outside the EU, some governments block third-party resolvers or encrypted handshakes. In the EU, net-neutrality rules (Regulation (EU) 2015/2120) make such blocking by operators difficult without a specific legal basis. These approaches are controversial and raise questions about network neutrality, user freedom, and technical feasibility.

A tendência geral para o uso da encriptação

O DNS encriptado faz parte de uma tendência mais ampla no sentido da encriptação de todo o tráfego de rede, impulsionada por preocupações com a privacidade, pelas melhores práticas de segurança e pelas configurações predefinidas das principais plataformas de software. O TLS 1.3, o ECH, o QUIC e outras tecnologias estão a encriptar progressivamente uma parte cada vez maior dos metadados e conteúdos nos quais a interceção ao nível da rede tradicionalmente se baseava. Cada passo nesta tendência de encriptação reduz a visibilidade disponível para os operadores e, por extensão, para a interceção legal.

Os operadores devem reconhecer que a visibilidade ao nível da rede de que têm historicamente beneficiado está a diminuir e continuará a diminuir. A resposta a esta tendência não pode ser puramente técnica — exige o envolvimento com as entidades reguladoras, os organismos de normalização e as autoridades responsáveis pela aplicação da lei, a fim de desenvolver novas abordagens à interceção legal que tenham em conta as realidades de um ambiente de rede fortemente encriptado.

At the same time, operators must continue to deliver whatever interception data they are technically capable of providing. The encryption of DNS does not eliminate the operator’s legal obligation to intercept; it changes the scope of what can be intercepted. Operators must remove encryption they apply in the network or whose keys they help generate or exchange (in Germany § 8(3) TKÜV). Third-party DoH or DoT traffic is handed over as captured. Operators must be transparent with law enforcement about these limitations and must ensure that their LI systems are updated to handle the reduced visibility gracefully — delivering the complete copy of the target’s traffic, encrypted DNS included, without filtering it.

Implicações em matéria de conformidade e prestação de informações

Encrypted DNS does not reduce what an operator has to deliver: the complete copy of the target’s traffic, including the encrypted DNS packets, still meets the obligation. What changes is what law enforcement can read from it, and operators should explain this when agencies ask why domain names are missing.

As entidades reguladoras em algumas jurisdições poderão ter de atualizar os seus requisitos técnicos e expectativas para ter em conta a realidade do DNS encriptado. Os operadores podem desempenhar um papel construtivo neste processo, contribuindo com conhecimentos técnicos e perspetivas práticas para orientar o desenvolvimento da regulamentação. O pior cenário para todas as partes seria uma expectativa regulatória de que as operadoras forneçam dados aos quais não têm acesso por motivos técnicos — uma situação que cria um risco de incumprimento sem, no entanto, proporcionar qualquer valor para a investigação.

Conclusão

Encrypted DNS represents a significant shift in the balance between privacy and surveillance capability in telecommunications networks. DoH and DoT protect user privacy by preventing the observation of DNS queries by network intermediaries, but they also reduce the visibility available to lawful interception systems. Operators can help by offering their own encrypted DNS resolvers, leveraging alternative data sources, engaging with regulators on evolving requirements, and ensuring that their LI systems accurately reflect the data that is actually available. The trend toward comprehensive network encryption is irreversible, and operators that adapt proactively will be better positioned to maintain compliance and to provide meaningful support to law enforcement within the constraints of the evolving technical landscape.

O debate em torno do DNS encriptado também destaca a tensão entre os direitos individuais à privacidade e as necessidades legítimas das autoridades responsáveis pela aplicação da lei. Encontrar o equilíbrio certo requer a colaboração entre especialistas em tecnologia, decisores políticos, a sociedade civil e as autoridades responsáveis pela aplicação da lei. Os operadores encontram-se na intersecção destes interesses e têm a responsabilidade única de garantir que as capacidades técnicas, as obrigações legais e as proteções de privacidade estejam alinhadas. Ao participarem ativamente no desenvolvimento de normas, em consultas regulamentares e em fóruns do setor, as operadoras podem ajudar a definir soluções que respeitem a privacidade, preservando simultaneamente a capacidade das sociedades democráticas de realizar vigilância legal, em conformidade com o Estado de direito.

Artigos relacionados

Para mais informações sobre temas relacionados, consulte estes artigos:

Recursos externos

Os seguintes recursos externos fornecem contexto adicional e documentação oficial:

Deslocar para o topo
ICS
Visão geral da privacidade

Este sítio Web utiliza cookies para que possamos proporcionar ao utilizador a melhor experiência possível. As informações dos cookies são armazenadas no seu browser e desempenham funções como reconhecê-lo quando regressa ao nosso sítio Web e ajudar a nossa equipa a compreender quais as secções do sítio Web que considera mais interessantes e úteis.