[DNSOP] Re: DNS, censorship, attacks and centralization

Bill Woodcock <woody@pch.net> Mon, 19 May 2025 08:51 UTC

Return-Path: <woody@pch.net>
X-Original-To: dnsop@mail2.ietf.org
Delivered-To: dnsop@mail2.ietf.org
Received: from localhost (localhost [127.0.0.1]) by mail2.ietf.org (Postfix) with ESMTP id C6FE62A19CB2 for <dnsop@mail2.ietf.org>; Mon, 19 May 2025 01:51:35 -0700 (PDT)
X-Virus-Scanned: amavisd-new at ietf.org
X-Spam-Flag: NO
X-Spam-Score: -1.698
X-Spam-Level:
X-Spam-Status: No, score=-1.698 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=no autolearn_force=no
Authentication-Results: mail2.ietf.org (amavisd-new); dkim=neutral reason="invalid (public key: not available)" header.d=pch.net
Received: from mail2.ietf.org ([166.84.6.31]) by localhost (mail2.ietf.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gmyi8zlcOYdl for <dnsop@mail2.ietf.org>; Mon, 19 May 2025 01:51:35 -0700 (PDT)
Received: from secmail.pch.net (secmail.pch.net [206.220.231.87]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mail2.ietf.org (Postfix) with ESMTPS id 5942F2A19CAF for <dnsop@ietf.org>; Mon, 19 May 2025 01:51:35 -0700 (PDT)
Received: from secmail.pch.net (localhost [127.0.0.1]) by secmail.pch.net (Postfix) with ESMTP id 4b1BHp4pTWz4xXZZ for <dnsop@ietf.org>; Mon, 19 May 2025 01:51:34 -0700 (PDT)
Authentication-Results: secmail.pch.net (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=pch.net
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=pch.net; h= x-mailer:message-id:in-reply-to:to:references:date:subject :mime-version:content-transfer-encoding:content-type:from; s= secmail_dkim; t=1747644693; x=1750236694; bh=Lo2oYqR26iGQKav9FM9 hGimDntsYp859BOLLN8xPgBc=; b=SoREEZb60Ck33Io5qDKo8NmAkMCR6lF0HI3 rIUoUHdjoKvqzcpu7GylLO/yYk4sZ38H57+zEMdHMpMP3ReuG7EFoSCpK1m1IcUt Np3wUFo7nBXyWEmp2qmaFYrj86S3EkeIEt2TKvvSvPgnGxe54joMMybjn79aNaSg PcwC4YvpUfZRa8+1JFCf496f4WKeyDWXEuE/6F0bw/QD4iJ/UIqvfy80/k77Zlcg irMgHMKAbtc4XcyesY/kSCB3mg8GNBMGvclw9VvCuMhAafffVQwdl4a9czavigDt UUHhLMekyQALAbPn50HK/La3d1mtMAu52N6Hb44ZAKLIAqENCdQ==
X-Virus-Scanned: amavisd-new at secmail.pch.net
Received: from secmail.pch.net ([127.0.0.1]) by secmail.pch.net (secmail.pch.net [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 0hja-3aHvxMc for <dnsop@ietf.org>; Mon, 19 May 2025 01:51:33 -0700 (PDT)
Received: from smtpclient.apple (itv-02 [69.166.14.6]) by secmail.pch.net (Postfix) with ESMTPSA id 4b1BHn4Zs8z4xXYf for <dnsop@ietf.org>; Mon, 19 May 2025 01:51:33 -0700 (PDT)
From: Bill Woodcock <woody@pch.net>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.600.51.1.1\))
Date: Mon, 19 May 2025 10:51:31 +0200
References: <CAFpG3gcrWH3w-SgNuk9qx6HL2iZkpWJDRTBEtNToSf6J5mG7wQ@mail.gmail.com> <CB55AFC1-633F-47B8-9E50-063430A4E7AF@nohats.ca> <135700F9-CA5E-45FF-959F-803CF393191C@mnot.net>
To: dnsop@ietf.org
In-Reply-To: <135700F9-CA5E-45FF-959F-803CF393191C@mnot.net>
Message-Id: <80A91A96-05F9-4B85-AD20-A365FC698524@pch.net>
X-Mailer: Apple Mail (2.3826.600.51.1.1)
Message-ID-Hash: WAJAHCGG3BQDWYQ6L62AWGZZXQKDA5GU
X-Message-ID-Hash: WAJAHCGG3BQDWYQ6L62AWGZZXQKDA5GU
X-MailFrom: woody@pch.net
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-dnsop.ietf.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
X-Mailman-Version: 3.3.9rc6
Precedence: list
Subject: [DNSOP] Re: DNS, censorship, attacks and centralization
List-Id: IETF DNSOP WG mailing list <dnsop.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/dnsop/BNHdp2qOjcd3yV8UKdt6rCwxXCU>
List-Archive: <https://mailarchive.ietf.org/arch/browse/dnsop>
List-Help: <mailto:dnsop-request@ietf.org?subject=help>
List-Owner: <mailto:dnsop-owner@ietf.org>
List-Post: <mailto:dnsop@ietf.org>
List-Subscribe: <mailto:dnsop-join@ietf.org>
List-Unsubscribe: <mailto:dnsop-leave@ietf.org>

> On May 19, 2025, at 09:03, Mark Nottingham <mnot=40mnot.net@dmarc.ietf.org> wrote:
> 1. Surfacing censorship events to end users is desirable, because it a) avoids user confusion / misattribution of the problem, and b) allows end users to be more fully informed.

I would generalize this to all errors, not just censorship, but I strongly agree.

> Both my draft and (AIUI, based upon the above) the structured DNS error draft have a notion of 'trusted' DNS resolvers that has privilege over 'untrusted' DNS resolvers, as a mitigation to attack.

I think we have at least four cases here: (1) assertions made by authoritative resolvers, where the authoritative resolver is worthy of trust because it’s serving valid signed answers for the domain, (2) assertions made by recursive resolvers which contradict a valid answer, (3) assertions made by recursive resolvers which contradict an invalid answer, or (4) assertions made by recursive resolvers which are orthogonal to or do not contradict a valid answer.

(1) could include extended DNS error codes 0, 15-18, 20, 21, 24, and perhaps 23.  Since those answers are being provided from the authoritative to the recursive, the recursive could hypothetically make a decision about whether or not to pass them along to the stub or caching/forwarding resolver, and so on, all the way to whatever’s controlling the UI.  It occurs to me that, if RFC 8914 were extended, EDE could be signed, in cases where the error does not contain dynamic data (i.e. all possible error messages could be pre-generated and pre-signed) or in cases where the authoritative server wields a copy of the ZSK and is dynamically signing answers.  I don’t, offhand, see much downside to allowing this, and it would help establish whether the error message was “trustworthy” and thus help the UI determine whether it should be shown to the user.

(2) presumably includes extended DNS error codes 4 and 15-18.  

(3) includes at least EDEs 1-12.

(4) includes at least 13, 14, 19, and 21-23.

A scheme whereby EDEs originating from a recursive resolver could be signed by the recursive resolver can be imagined, but it might not shoehorn in easily.  Presumably if the user has a TLS connection to the resolver, and it is a recursive, not caching/forwarding, resolver, that’s good enough.  One can hope that a caching/forwarding resolver might also have a TLS connection to a “trusted” recursive resolver as well, though that would unfortunately be outside the user’s ability to verify.

…anyway...

>> Will the “trusted” DNS start refusing the .gl TLD soon because of a mad king ?
> 
> If that's the case, I don't see how proposals along this line change the outcome. If a government in a given jurisdiction wants to censor, they will censor. 

However, having three of the four big recursive resolvers all answerable only to the United States District Court for the Northern District of California does represent an astonishing degree of centralization.  Indeed, governments will censor, but we don’t all need to depend upon the same government’s idea of what should be censored.

                                -Bill