[TLS] Re: RNG state should not cascade across TLS connections

Simon Josefsson <simon@josefsson.org> Mon, 13 July 2026 15:54 UTC

Return-Path: <simon@josefsson.org>
X-Original-To: tls@mail2.ietf.org
Delivered-To: tls@mail2.ietf.org
Received: from localhost (localhost [127.0.0.1]) by mail2.ietf.org (Postfix) with ESMTP id BD0C0115EC622; Mon, 13 Jul 2026 08:54:25 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ietf.org; s=ietf1; t=1783958065; bh=cbF0DVurqipi2YCLkAlwZenhAyMLhvn2fRa7nMZ8QrE=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=ilR063N3h7ZFpGxicyK2819GdFiZ9LIowIvk6k8MjeZjd1O3HJEVZxMTpE2IbZRVa HunBYR19QFoSYP1QUYqh15R0HTD7gfYKRji7FhUYSQBDVimm1HAAi3iEiv26SjTZFE T8qv2qGrSIo91XPeP0kWlanChT0fTndaJ0OazQqw=
X-Virus-Scanned: amavisd-new at ietf.org
X-Spam-Flag: NO
X-Spam-Score: -4.399
X-Spam-Level:
X-Spam-Status: No, score=-4.399 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: mail2.ietf.org (amavisd-new); dkim=neutral reason="invalid (unsupported algorithm ed25519-sha256)" header.d=josefsson.org header.b="XeulMLxY"; dkim=pass (2736-bit key) header.d=josefsson.org header.b="h9qGfRJD"
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 COuftn22yjAB; Mon, 13 Jul 2026 08:54:24 -0700 (PDT)
Received: from uggla.sjd.se (uggla.sjd.se [178.174.241.107]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail2.ietf.org (Postfix) with ESMTPS id 3B202115EC609; Mon, 13 Jul 2026 08:54:23 -0700 (PDT)
DKIM-Signature: v=1; a=ed25519-sha256; q=dns/txt; c=relaxed/relaxed; d=josefsson.org; s=ed2303; h=Content-Type:MIME-Version:Message-ID:Date: References:In-Reply-To:Subject:Cc:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=plgTIrC1MfJcDfrlwREQT5VywJ3CfumwkswtNOV9OoI=; t=1783958062; x=1785167662; b=XeulMLxYaVboDV8fqGmkHeAsNV+nNPJfdJH55p4E5NoV7+/ke762hFvYK5reoQtXBCEFM/lvXWv K9B6zvfDrDA==;
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=josefsson.org; s=rsa2303; h=Content-Type:MIME-Version:Message-ID:Date: References:In-Reply-To:Subject:Cc:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=plgTIrC1MfJcDfrlwREQT5VywJ3CfumwkswtNOV9OoI=; t=1783958062; x=1785167662; b=h9qGfRJDsycQPlEFQXfp2Gq8UXSZuYySgr3kY2KUdE4603ChWioKHSWo3wrOES76W8KbdqoWnWB Xu1aT/Wbsmqhx9q8t8YqvYHTZ+M5Mihhu2QcF3/1J/nMirGbo/pTH/Hj13EMghLHTULC+qsWWr4rx p0tMij9mBIayAVA8EmFQM++Muai34s3kN7PrbkiU9FGRgQN7WKIoqqmzvOEB4k8PUQ6t7tIz8m4c6 ZGpynIB5lsZ33D1tLPD+hC5Z7un/QOKeaO15OwBSE95ReooZa4SGzFaUXpcN1xvtiU/XA8lblmuRD V1sr5fo2Iot5Opgpbe5is+/hjZ6zWNeaOIM8axxO5VxCeq/dlycFbQOuw1XQe9SOJOzP/Df0/QklE mtMu8Jc0rQ+UjPiaIpwFRG+Vl2TG/gV7xJ4feFdtlm5h5ycjv5WrZz+DHa9ze6NVeIk5tC7Es;
Received: from h-178-174-130-130.a498.priv.bahnhof.se ([178.174.130.130]:57910 helo=frallan) by uggla.sjd.se with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from <simon@josefsson.org>) id 1wjIz1-000WFq-Mm; Mon, 13 Jul 2026 15:54:15 +0000
From: Simon Josefsson <simon@josefsson.org>
To: John Mattsson <john.mattsson=40ericsson.com@dmarc.ietf.org>
In-Reply-To: <AS4PR07MB8825F42629C1B23A325E4ECE89FA2@AS4PR07MB8825.eurprd07.prod.outlook.com> (John Mattsson's message of "Mon, 13 Jul 2026 15:36:08 +0000")
References: <AS4PR07MB8825F42629C1B23A325E4ECE89FA2@AS4PR07MB8825.eurprd07.prod.outlook.com>
OpenPGP: id=B1D2BD1375BECB784CF4F8C4D73CF638C53C06BE; url=https://josefsson.org/key-20190320.txt
X-Hashcash: 1:23:260713:jacob@appelbaum.net::g8/JaJ9nUDroYsEb:23JH
X-Hashcash: 1:23:260713:tls@ietf.org::vk2yx94qt4roUYNe:KIYd
X-Hashcash: 1:23:260713:nicholas.sullivan@gmail.com::rY+kAyviH5b9r2cD:BCHF
X-Hashcash: 1:23:260713:john.mattsson=40ericsson.com@dmarc.ietf.org::/9lGhr3UjHghWboK:0gxaR
Date: Mon, 13 Jul 2026 17:54:16 +0200
Message-ID: <87cxwq997b.fsf@josefsson.org>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-="; micalg="pgp-sha512"; protocol="application/pgp-signature"
Message-ID-Hash: HAL6SDASI2K7RVESJCN7BBEWQNAKM5KP
X-Message-ID-Hash: HAL6SDASI2K7RVESJCN7BBEWQNAKM5KP
X-MailFrom: simon@josefsson.org
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-tls.ietf.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
CC: "tls@ietf.org" <TLS@ietf.org>
X-Mailman-Version: 3.3.9rc6
Precedence: list
Subject: [TLS] Re: RNG state should not cascade across TLS connections
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/tls/6Iv_a35HBHqUbBmiLQHScOt9Ty0>
List-Archive: <https://mailarchive.ietf.org/arch/browse/tls>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Owner: <mailto:tls-owner@ietf.org>
List-Post: <mailto:tls@ietf.org>
List-Subscribe: <mailto:tls-join@ietf.org>
List-Unsubscribe: <mailto:tls-leave@ietf.org>

John Mattsson <john.mattsson=40ericsson.com@dmarc.ietf.org> writes:

>>Redirecting to talk about entropy is unhelpful.
>
> I don't think I mentioned entropy, but entropy is very useful. As
> noted, m = H(m, independent entropy), where the entropy comes from any
> source other than the attacker-controlled RNG, thwarts a much larger
> class of attacks than m = H(m).
>
> I don't think it is helpful to focus on Dual_EC_DRBG except as a
> historical example. I think the discussion should focus on
> attacker-controlled RNGs in general.

This is a good point -- and we could design a TLS-specific RNG
recommendation that recommends using a per-session randomness source as:

rng = SHAKE(OS-rng, session-specific-symmetric-key ||
                    full-transcript-of-session)

It is easy to dismiss this class of problem by saying "go fix your PRNG"
but I believe that is naive and suggest people aren't familiar with the
history of compromised RNGs and what kind of attacks they enable.

This aspect isn't visible on the wire, so maybe IETF isn't the best
place to develop this in.

Cryptography isn't the only reasonable method to obtain security:
defense-in-depth is another strategy.  It is one motivation behind
hybrid KEMs, which we fortunately have deployed for good reasons.

One way to mitigate this entire class of problems is to do covert
channel analysis.  If your protocol enables a covert channel, it has a
problem.  The IETF historically haven't worried a lot about covert
channels as a protocol vulnerability, but perhaps it is time to change.

I believe TLS has some concerns in this area (e.g., the 32-byte
client/server 'random' fields), but ML-KEM increases the attack surface.

/Simon