Re: [TLS] Renegotiation and TLSNotary
Mike Hamburg <mike@shiftleft.org> Wed, 25 March 2015 05:51 UTC
Return-Path: <mike@shiftleft.org>
X-Original-To: tls@ietfa.amsl.com
Delivered-To: tls@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 07C971ACDBF for <tls@ietfa.amsl.com>; Tue, 24 Mar 2015 22:51:00 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 1.557
X-Spam-Level: *
X-Spam-Status: No, score=1.557 tagged_above=-999 required=5 tests=[AC_DIV_BONANZA=0.001, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FH_HOST_EQ_D_D_D_D=0.765, FH_HOST_EQ_D_D_D_DB=0.888, HELO_MISMATCH_ORG=0.611, HOST_MISMATCH_NET=0.311, HTML_MESSAGE=0.001, RDNS_DYNAMIC=0.982, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5zmWQM2_8sFU for <tls@ietfa.amsl.com>; Tue, 24 Mar 2015 22:50:57 -0700 (PDT)
Received: from aspartame.shiftleft.org (199-116-74-168-v301.PUBLIC.monkeybrains.net [199.116.74.168]) (using TLSv1.1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 93D551ACDBE for <tls@ietf.org>; Tue, 24 Mar 2015 22:50:57 -0700 (PDT)
Received: from [192.168.1.102] (unknown [192.168.1.1]) by aspartame.shiftleft.org (Postfix) with ESMTPSA id 2A9F5F210A; Tue, 24 Mar 2015 22:47:13 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=shiftleft.org; s=sldo; t=1427262433; bh=piZ9goyTRW0Tm1nkSpf0CdY7JPPHPW9Qox5nq5Fqh/E=; h=Date:From:To:Subject:References:In-Reply-To:From; b=HrLyvY2q0JHW0av+HdoXQ/GjfCzsQWqzV+CPX1wxtzsRsDeQXL3FWcX6TdBtpQOtA Cu6BmgSOAH7S2PD3OUBq/a4zi3oPX4WQ7dbRB/XsNjzne/lscJrdIZmniquiZhKFw6 TSx0SOTraYDXEFO8pqEkn50CRUpQf18HOtApZ1ZE=
Message-ID: <55124CC3.80708@shiftleft.org>
Date: Tue, 24 Mar 2015 22:50:59 -0700
From: Mike Hamburg <mike@shiftleft.org>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0
MIME-Version: 1.0
To: Sergio Demian Lerner <sergio@coinspect.com>, tls@ietf.org
References: <CAEoH-p4F006Uu8Xr=+V08DMAA5_yo2v8_6x-u6Yd+OMmh=_ytg@mail.gmail.com>
In-Reply-To: <CAEoH-p4F006Uu8Xr=+V08DMAA5_yo2v8_6x-u6Yd+OMmh=_ytg@mail.gmail.com>
Content-Type: multipart/alternative; boundary="------------040208020005020408070505"
Archived-At: <http://mailarchive.ietf.org/arch/msg/tls/1psnKAAA35trRboSSeapMo3UDak>
Subject: Re: [TLS] Renegotiation and TLSNotary
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls/>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 25 Mar 2015 05:51:00 -0000
Hi Sergio, It is worth noting that MAC functions are not generally strong enough here. For one thing, the MAC is meaningless to a party who doesn't know the key. But even if you reveal the key afterwards, unless you're using a sufficiently long HMAC mode, a party who knows the key can probably find a message with the same MAC value. Cheers, -- Mike On 03/24/2015 08:09 PM, Sergio Demian Lerner wrote: > Hi, > This is my first post to this mailing list and I if I break some > prestablished rule, I apologize in advance. > > One of our clients requires the notarization of TLS sessions. One > interesting application I found is the TLSNotary project, but it only > partially solves this problem: is only allows auditing a single stream > direction, is is not compatible with TLS 1.2 nor 1.3 and it lowers > considerably the protocol security. Of course he wants transparent > notarization for eavy website, not a higher-level protocol provided by > a website on purpose, and this is completely logical and coherent with > the attributes of a notary. > > I would be interesting if TLS 1.3 could allow optional and easy > notarization of the streams. TLS 1.3 has eliminated renegotiation, > which may be a bulding block for notarization, so I hope in > incorporates another way of providing that functionality. > > For example: if every MAC computed included the the MAC digest of each > previous message sent in that stream, then a single signature of the > last MAC would be enought to validate one of the streams. Or in AEAD > terminology, every packet payload additional_data would include the > authentication tag of the previous packet. > > If key renegocitation is allowed, then a renegotiation done by a third > party after a protocol interaction would be enought to notariaze all > previous interactions. > > To get a join notarization of both streams, TLS in notarization could > add a new message GetMAC that should be responded with the message > SendMAC, containing the sequence number and MAC of the the last packet > decrypted in the other stream (client->server). Since the MAC on one > stream would contain the previous packet MAC digest, then the MAC sent > with sendMAC would provide a MAC validating both streams > (client->server and servcer->client) > > A full communication would be > Client Server > > ClientHello --------> > (client specifies a NOTARY extension somehow) ServerHello > ..... > [ChangeCipherSpec] > Finished --------> > [ChangeCipherSpec] > <-------- Finished > Application Data <-------> Application Data > Now the client gives the notary the control of the streams. > The server does a renegotiation to obtain a signature of the > previuously sent data. > > Notary tunneled over Client Server > > ClientHello --------> > ServerHello > ..... > [ChangeCipherSpec] > Finished --------> > [ChangeCipherSpec] > <-------- Finished > Application Data <-------> Application Data > getMAC --------> > <-------- sendMAC > > This "notarization" can only convince the notary of the encrypted > information exchange, but cannot convince a third party. Also it gives > the notary some control over the streams. So better than this would be > that instead of getMAC/sendMAC there can be two messages > getSignature/SendSignature that send a digitally signed MAC using a > server's pubkey, instead of only the MAC. > > Another option is that in notarization mode, each MAC sent would > include the nseq and the MAC of the last packets received/sent of both > streams. Then an exact reproduction of the message interaction would > be available for notarization, but the seq_num of the opposed stream > would need to be transmitted in the header or encrypted in the payload > (it cannot be part of the additional_data because it is not known to > the client, because of the delay of the network) > > In AEAD terminology the first idea would be done by modifying the > additional_data: > additional_data = seq_num +* prev_authentication_tag* + > TLSPlaintext.type + > TLSPlaintext.version > while the second would be: > > additional_data = seq_num +*prev_authentication_tag + > opposite_stream_prev_authentication_tag* + > TLSPlaintext.type + > TLSPlaintext.version > Again, this would be an optional mode, orthogonal with ciphersuite > chosen, extensions, etc. > > I hope you find this extension as usefull as we do. Last, we have > several use cases for key renegotiation, and it's a pity it will be > excluded from TLS 1.3. I will present my arguments in another e-mail. > > Best regards, > > -- > Sergio D. Lerner > Cryptocurrency Security Auditor > Coinspect.com > > > _______________________________________________ > TLS mailing list > TLS@ietf.org > https://www.ietf.org/mailman/listinfo/tls
- [TLS] Renegotiation and TLSNotary Sergio Demian Lerner
- Re: [TLS] Renegotiation and TLSNotary Martin Thomson
- Re: [TLS] Renegotiation and TLSNotary Mike Hamburg
- Re: [TLS] Renegotiation and TLSNotary Watson Ladd
- Re: [TLS] Renegotiation and TLSNotary Sergio Demian Lerner
- Re: [TLS] Renegotiation and TLSNotary Ilari Liusvaara