Re: [AVTCORE] draft-ietf-avtcore-srtp-aes-gcm-15

John Mattsson <john.mattsson@ericsson.com> Thu, 21 May 2015 15:35 UTC

Return-Path: <john.mattsson@ericsson.com>
X-Original-To: avt@ietfa.amsl.com
Delivered-To: avt@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 609F81A913A for <avt@ietfa.amsl.com>; Thu, 21 May 2015 08:35:38 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.201
X-Spam-Level:
X-Spam-Status: No, score=-4.201 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001] autolearn=ham
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 Z1IfDS7cTmB5 for <avt@ietfa.amsl.com>; Thu, 21 May 2015 08:35:34 -0700 (PDT)
Received: from sesbmg22.ericsson.net (sesbmg22.ericsson.net [193.180.251.48]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 8E7241A9008 for <avt@ietf.org>; Thu, 21 May 2015 08:35:22 -0700 (PDT)
X-AuditID: c1b4fb30-f798d6d0000009ec-60-555dfb389b37
Received: from ESESSHC002.ericsson.se (Unknown_Domain [153.88.253.125]) by sesbmg22.ericsson.net (Symantec Mail Security) with SMTP id B3.4C.02540.83BFD555; Thu, 21 May 2015 17:35:20 +0200 (CEST)
Received: from ESESSMB307.ericsson.se ([169.254.7.199]) by ESESSHC002.ericsson.se ([153.88.183.24]) with mapi id 14.03.0210.002; Thu, 21 May 2015 17:35:20 +0200
From: John Mattsson <john.mattsson@ericsson.com>
To: "avt@ietf.org" <avt@ietf.org>, "Igoe, Kevin M." <kmigoe@nsa.gov>, "mcgrew@cisco.com" <mcgrew@cisco.com>
Thread-Topic: [AVTCORE] draft-ietf-avtcore-srtp-aes-gcm-15
Thread-Index: AdB2v4EWvXVrxcreTu2iKwJMTNj98QBrfdIAAACG24AAAJexgAbWQdkA
Date: Thu, 21 May 2015 15:35:19 +0000
Message-ID: <75B0FAB3-532C-45FB-905B-1A650AD8DA99@ericsson.com>
References: <3C4AAD4B5304AB44A6BA85173B4675CABC80F8F9@MSMR-GH1-UEA03.corp.nsa.gov> <B8FFC532-EC77-4FC3-B141-5BC0553E81E4@nostrum.com> <3C4AAD4B5304AB44A6BA85173B4675CABC80FB8D@MSMR-GH1-UEA03.corp.nsa.gov> <E2CFAEF9-A04F-4868-9819-DCA839E0788F@nostrum.com>
In-Reply-To: <E2CFAEF9-A04F-4868-9819-DCA839E0788F@nostrum.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [153.88.183.147]
Content-Type: text/plain; charset="utf-8"
Content-ID: <C79E932A6D243F4084D78150C11E75EE@ericsson.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprPIsWRmVeSWpSXmKPExsUyM+Jvra7F79hQg+5HOhYve1ayW0w49ZrV 4uqqP+wW0/deY7f4tOoxkwOrx5TfG1k91nZfZfNYsuQnk8e1k39ZPfp3vWQNYI3isklJzcks Sy3St0vgyngwvbxgglvF6ymTWRsYV7h0MXJwSAiYSOxaqtnFyAlkiklcuLeerYuRi0NI4Cij xNd9VxghnCWMEjt6FrCDVLEJGEjM3dPABmKLCORKfLi0kgXEZhbwlXh6dy9YXFjAUuL9pkfs EDVWEkt/LmEDWSYi4Cax6pQwSJhFQFXiQN8+ZhCbV8BeYs3MTVCLW5kkZlyaxwqS4ARK/GvZ zQhiMwJd9/3UGiaIXeISt57MZ4K4WkBiyZ7zzBC2qMTLx/9YIR5Tkpi2NQ3EZBbQlFi/Sx+i 01pi8qyDUBcrSkzpfsgOcYKgxMmZT1gmMIrPQrJgFkL3LCTds5B0z0LSvYCRdRWjaHFqcVJu upGRXmpRZnJxcX6eXl5qySZGYIwe3PLbYAfjy+eOhxgFOBiVeHgVbGJDhVgTy4orcw8xSnOw KInzenaFhAoJpCeWpGanphakFsUXleakFh9iZOLglGpgXHmzT9LSn7lOSaqM/WhtY97BNRsu ri/N8MyM1+BtOK77634e0+O3bccKty5zq3w722jPow9599RMPVf8nKr87rtjeEsiu7Lm/VPc +2JPyr5jWrLglvqdLu2Q7nu/8noXf/nbfEtgvUXE0Sn75a48/7JBo/3JgutPOaZfZCidUd3U 9cLYf5OhvxJLcUaioRZzUXEiAEuUkl2yAgAA
Archived-At: <http://mailarchive.ietf.org/arch/msg/avt/cKHmfai2SISd7itL_NlgXRJUPow>
Cc: Tim Polk <tim.polk@nist.gov>, Stephen Farrell <stephen.farrell@cs.tcd.ie>
Subject: Re: [AVTCORE] draft-ietf-avtcore-srtp-aes-gcm-15
X-BeenThere: avt@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Audio/Video Transport Core Maintenance <avt.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/avt>, <mailto:avt-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/avt/>
List-Post: <mailto:avt@ietf.org>
List-Help: <mailto:avt-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/avt>, <mailto:avt-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 21 May 2015 15:35:38 -0000

Hi,

My previous standpoint was that usage of GCM with short tags was acceptable if the NIST requirements were followed. Thinking more about the usage of GCM with short tags in general and the usage of GCM in SRTP in particular I have changed my mind.

I do not think GCM with short tags (i.e. 64 bits) should be standardized by IETF even if the NIST requirements are followed, in fact I think that NIST should revise SP 800-38D.

I strongly recommend that AEAD_AES_128_GCM_8 is removed from draft-ietf-avtcore-srtp-aes-gcm.

(Note that this is only about GCM with short tags. I do fully recommend GCM for usage with 128-bit tags. I believe that with its excellent performance and proven security, it should be the first choice for everybody wanting an AEAD algorithm.)



General usage of GCM with short tags:

Regarding the general usage of GCM with short tags, I wrote a paper suggesting improvements to, and analyzing the complexity of, Ferguson’s method for authentication key recovery. In summary the security level (i.e. the effective key lengths) for GCM with 64-bit tags are 70–75 bits, far below not only the current NIST requirement of 112-bit security, but also the old NIST requirement of 80-bit security.

https://eprint.iacr.org/2015/477

Note that draft-ietf-avtcore-srtp-aes-gcm-15 does not follow the NIST requirements, it choses deliberately to ignore them. This means that the security level for 64-bit tags against authentication key recovery is only 64 bits, down from the already low 70–75 bits offered by the NIST specification.



Usage of GCM with short tags in SRTP:

Regarding the usage of GCM in SRTP, Appendix C of SP 800-38D lists several guidelines for protocols using GCM with short tags. Two of these guidelines are that AAD should be limited to necessary header information and that protocols should not provide feedback regarding the integrity of individual packets. NIST then makes the statement: “An example of a protocol that meets these guidelines is Secure Real-time Transport Protocol carrying Voice over Internet Protocol, running over User Datagram Protocol”. This is not a correct statement and SRTP does in fact violate both of the guidelines mentioned above:

- The AAD is not at all limited. In RTP, the associated data consists of the RTP header, which is not limited as e.g. the header in the TLS record layer. The RTP header is extensible with proprietary header extensions carrying any type of information. In RTCP, the scope of the AAD depends on the encryption flag E. If the encryption flag is '1', the AAD data is limited to necessary header information, but if the encryption flag is '0', the AAD consists of the entire RTCP packet.

- RTCP receiver reports provide a wealth of information that can be used to determine the integrity of individual forged RTP packages, e.g. SSRC of the source, cumulative number of packets lost, extended highest sequence number received, last SR timestamp, and delay since last SR. The RTCP extension for port mapping [RFC6284] is even worse as it echoes back the 64-bit nonce received in the request.

- RTP Rapid Synchronisation [RFC6051] is used, a forged Rapid Resynchronisation Request results in a RTP header extension with sync information sent from the sender.

- If the RTP header extension Client-to-Mixer Audio Level Indication [RFC6464] is used, a forged RTP packet with a high audio level will result in the MCU forwarding the SSRC. As the SSRC is not encrypted, this is easily detected by the attacker.

Even if encryption of RTCP is mandated and specific RTP header extensions and RTCP packets types are forbidden, an attacker may still in many cases determine whether a forgery was successful by looking at the length of packets. Either by looking at the length of RTCP packets from the sender or by looking at the length of RTP packets forwarded by an MCU.

A further problem with SRTP and GCM is that SRTP is very often used in one-to-many scenarios. The maximum number of invocations of each instance of the authenticated decryption function would have to be restricted to q/r, where q is the maximum total number of invocations of the authenticated decryption function, and r is the total number of receivers, including any late joiners.

All in all, SRTP does absolutely not meet the NIST guidelines for usage of GCM with short tags.

Cheers,
John

------------------------------------------------------------------
John Mattsson
MSc Engineering Physics, MSc Business Administration and Economics
Ericsson IETF Security Coordinator 
Senior Researcher, Security

Ericsson AB                             Phone +46 10 71 43 501               
Ericsson Research                       SMS/MMS +46 76 11 53 501
Färögatan 6                             john.mattsson@ericsson.com
SE-164 80 Stockholm, Sweden             www.ericsson.com
------------------------------------------------------------------



> On 16 Apr 2015, at 22:19, Ben Campbell <ben@nostrum.com> wrote:
> 
> Thanks!
> 
> On 16 Apr 2015, at 15:03, Igoe, Kevin M. wrote:
> 
>> Nothing substantive that needs Stephen's attention yet.  He'll probably grump
>> using a  -8 versus a -64 to denote an 8 byte tag sizes, but that decision was made
>> in RFC 5282 long before this ID came along,
>> 
>>> -----Original Message-----
>>> From: Ben Campbell [mailto:ben@nostrum.com]
>>> Sent: Thursday, April 16, 2015 3:48 PM
>>> To: Igoe, Kevin M.
>>> Cc: avt@ietf.org
>>> Subject: Re: [AVTCORE] draft-ietf-avtcore-srtp-aes-gcm-15
>>> 
>>> Hi,
>>> 
>>> Should Stephen look at this version in regards to his DISCUSS, or do you want to wait for the final one?
>>> 
>>> Thanks!
>>> 
>>> Ben.
>>> 
>>> On 14 Apr 2015, at 9:34, Igoe, Kevin M. wrote:
>>> 
>>>> A new interim draft draft-ietf-avtcore-srtp-aes-gcm-15 has been
>>>> posted.  This has (I hope) expunged any references to AES-GCM and
>>>> reduced to only 3 modes of AES-GCM.  The final draft will include test
>>>> vectors.
>>>> 
>>>> I'm being cautious in the generation of test vectors (with
>>>> intermediate values displayed) becuse , you REALLY don't want any
>>>> typo's or other errors in test vectors.
>>>> 
>>>> _______________________________________________
>>>> Audio/Video Transport Core Maintenance avt@ietf.org
>>>> https://www.ietf.org/mailman/listinfo/avt
> 
> _______________________________________________
> Audio/Video Transport Core Maintenance
> avt@ietf.org
> https://www.ietf.org/mailman/listinfo/avt