| draft-perkins-avt-srtp-vbr-audio-00.txt | draft-perkins-avt-srtp-vbr-audio-01.txt | |||
|---|---|---|---|---|
| Network Working Group C. Perkins | Network Working Group C. Perkins | |||
| Internet-Draft University of Glasgow | Internet-Draft University of Glasgow | |||
| Intended status: BCP March 4, 2009 | Intended status: BCP July 13, 2009 | |||
| Expires: September 5, 2009 | Expires: January 14, 2010 | |||
| Guidelines for the use of Variable Bit Rate Audio with Secure RTP | Guidelines for the use of Variable Bit Rate Audio with Secure RTP | |||
| draft-perkins-avt-srtp-vbr-audio-00.txt | draft-perkins-avt-srtp-vbr-audio-01.txt | |||
| Status of this Memo | Status of this Memo | |||
| This Internet-Draft is submitted to IETF in full conformance with the | This Internet-Draft is submitted to IETF in full conformance with the | |||
| provisions of BCP 78 and BCP 79. | provisions of BCP 78 and BCP 79. | |||
| Internet-Drafts are working documents of the Internet Engineering | Internet-Drafts are working documents of the Internet Engineering | |||
| Task Force (IETF), its areas, and its working groups. Note that | Task Force (IETF), its areas, and its working groups. Note that | |||
| other groups may also distribute working documents as Internet- | other groups may also distribute working documents as Internet- | |||
| Drafts. | Drafts. | |||
| skipping to change at page 1, line 32 ¶ | skipping to change at page 1, line 32 ¶ | |||
| and may be updated, replaced, or obsoleted by other documents at any | and may be updated, replaced, or obsoleted by other documents at any | |||
| time. It is inappropriate to use Internet-Drafts as reference | time. It is inappropriate to use Internet-Drafts as reference | |||
| material or to cite them other than as "work in progress." | material or to cite them other than as "work in progress." | |||
| The list of current Internet-Drafts can be accessed at | The list of current Internet-Drafts can be accessed at | |||
| http://www.ietf.org/ietf/1id-abstracts.txt. | http://www.ietf.org/ietf/1id-abstracts.txt. | |||
| The list of Internet-Draft Shadow Directories can be accessed at | The list of Internet-Draft Shadow Directories can be accessed at | |||
| http://www.ietf.org/shadow.html. | http://www.ietf.org/shadow.html. | |||
| This Internet-Draft will expire on September 5, 2009. | This Internet-Draft will expire on January 14, 2010. | |||
| Copyright Notice | Copyright Notice | |||
| Copyright (c) 2009 IETF Trust and the persons identified as the | Copyright (c) 2009 IETF Trust and the persons identified as the | |||
| document authors. All rights reserved. | document authors. All rights reserved. | |||
| This document is subject to BCP 78 and the IETF Trust's Legal | This document is subject to BCP 78 and the IETF Trust's Legal | |||
| Provisions Relating to IETF Documents | Provisions Relating to IETF Documents in effect on the date of | |||
| (http://trustee.ietf.org/license-info) in effect on the date of | publication of this document (http://trustee.ietf.org/license-info). | |||
| publication of this document. Please review these documents | Please review these documents carefully, as they describe your rights | |||
| carefully, as they describe your rights and restrictions with respect | and restrictions with respect to this document. | |||
| to this document. | ||||
| Abstract | Abstract | |||
| This memo discusses potential security issues that arise when using | This memo discusses potential security issues that arise when using | |||
| variable bit rate audio with the secure RTP profile. Guidelines to | variable bit rate audio with the secure RTP profile. Guidelines to | |||
| mitigate these issues are suggested. | mitigate these issues are suggested. | |||
| Table of Contents | Table of Contents | |||
| 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . . 3 | 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . . 3 | |||
| 2. Guidelines for the use of VBR Audio with SRTP . . . . . . . . . 3 | 2. Guidelines for use of VBR Audio with SRTP . . . . . . . . . . . 3 | |||
| 3. Security Considerations . . . . . . . . . . . . . . . . . . . . 4 | 3. Guidelines for use of Voice Activity Detection with SRTP . . . 4 | |||
| 4. IANA Considerations . . . . . . . . . . . . . . . . . . . . . . 4 | 4. Security Considerations . . . . . . . . . . . . . . . . . . . . 4 | |||
| 5. Acknowledgements . . . . . . . . . . . . . . . . . . . . . . . 4 | 5. IANA Considerations . . . . . . . . . . . . . . . . . . . . . . 4 | |||
| 6. References . . . . . . . . . . . . . . . . . . . . . . . . . . 4 | 6. Acknowledgements . . . . . . . . . . . . . . . . . . . . . . . 5 | |||
| 6.1. Normative References . . . . . . . . . . . . . . . . . . . 4 | 7. References . . . . . . . . . . . . . . . . . . . . . . . . . . 5 | |||
| 6.2. Informative References . . . . . . . . . . . . . . . . . . 4 | 7.1. Normative References . . . . . . . . . . . . . . . . . . . 5 | |||
| 7.2. Informative References . . . . . . . . . . . . . . . . . . 5 | ||||
| Author's Address . . . . . . . . . . . . . . . . . . . . . . . . . 5 | Author's Address . . . . . . . . . . . . . . . . . . . . . . . . . 5 | |||
| 1. Introduction | 1. Introduction | |||
| The secure RTP framework (SRTP) [1] is a widely used framework for | The secure RTP framework (SRTP) [RFC3711] is a widely used framework | |||
| securing RTP sessions. SRTP provides the ability to encrypt the | for securing RTP sessions. SRTP provides the ability to encrypt the | |||
| payload of an RTP packet, and optionally add an authentication tag, | payload of an RTP packet, and optionally add an authentication tag, | |||
| while leaving the RTP header and any header extension in the clear. | while leaving the RTP header and any header extension in the clear. | |||
| A range of encryption transforms can be used with SRTP, but none of | A range of encryption transforms can be used with SRTP, but none of | |||
| the pre-defined encryption transforms use any padding; the RTP and | the pre-defined encryption transforms use any padding; the RTP and | |||
| SRTP payload sizes match exactly. | SRTP payload sizes match exactly. | |||
| When using SRTP with voice streams compressed using variable bit rate | When using SRTP with voice streams compressed using variable bit rate | |||
| (VBR) codecs, the length of the compressed packets will therefore | (VBR) codecs, the length of the compressed packets will therefore | |||
| depend on the characteristics of the speech signal. This variation | depend on the characteristics of the speech signal. This variation | |||
| in packet size will leak significant amounts of information about the | in packet size will leak significant amounts of information about the | |||
| contents of the speech signal. For example [3] shows that known | contents of the speech signal. For example [spot-me] shows that | |||
| phrases in an encrypted call can be recognised with high accuracy in | known phrases in an encrypted call can be recognised with high | |||
| certain circumstances, without breaking the encryption. Other work, | accuracy in certain circumstances, without breaking the encryption. | |||
| referenced from [3], has shown that the language spoken in encrypted | Other work, referenced from [spot-me], has shown that the language | |||
| conversations can also be recognised. This is potentially a | spoken in encrypted conversations can also be recognised. This is | |||
| significant security risk for some applications. This memo discusses | potentially a significant security risk for some applications. This | |||
| ways in which this traffic analysis risk may be mitigated. | memo discusses ways in which this traffic analysis risk may be | |||
| mitigated. | ||||
| The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", | The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", | |||
| "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this | "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this | |||
| document are to be interpreted as described in RFC 2119 [2]. | document are to be interpreted as described in RFC 2119 [RFC2119]. | |||
| 2. Guidelines for the use of VBR Audio with SRTP | 2. Guidelines for use of VBR Audio with SRTP | |||
| To avoid the potential information leaks that might enable traffic | To avoid the potential information leaks that might enable traffic | |||
| analysis, VBR audio codecs SHOULD NOT be used with encrypted SRTP | analysis, VBR audio codecs that alter the size or spacing of their | |||
| sessions. | output according to the characteristics of the input speech signal | |||
| SHOULD NOT be used with encrypted SRTP sessions. | ||||
| Similarly, the use of voice activity detection with silence | It is safe to use variable rate coding to adapt the output of a voice | |||
| suppression or comfort noise can be considered an extreme form of VBR | codec the match characteristics of a network channel, for example for | |||
| coding, which changes both the size and spacing of packets, and so | congestion control purposes, provided this adaptation done in a way | |||
| leaks some information on the characteristics of the speech signal. | that does not expose any information on the speech signal. That is, | |||
| Accordingly, it SHOULD NOT be used with encrypted SRTP sessions. | if the variation is driven by the available network bandwidth, not by | |||
| the input speech (i.e. if the packet sizes and spacing are constant | ||||
| It is safe to use variable rate coding to adapt a speech signal to | unless the network conditions change). VBR speech codecs can safely | |||
| the characteristics of a network channel, for example for congestion | be used in this fashion with SRTP while avoiding leaking information | |||
| control purposes, provided this is done in a way which does not | on the contents of the speech signal that might be useful for traffic | |||
| expose any information on the speech signal. That is, if the | ||||
| variation is driven by the available network bandwidth, not by the | ||||
| input speech (i.e. if the packet sizes are constant unless the | ||||
| network conditions change). VBR speech codecs can safely be used in | ||||
| this fashion with SRTP while avoiding leaking information on the | ||||
| contents of the speech signal that might be useful for traffic | ||||
| analysis. | analysis. | |||
| 3. Security Considerations | 3. Guidelines for use of Voice Activity Detection with SRTP | |||
| The security considerations of [1] apply. | Many speech codecs employ some form of voice activity detection (VAD) | |||
| to either suppress output frames, or generate some form of lower-rate | ||||
| comfort noise frames, during periods when the speaker is not active. | ||||
| If VAD is used on an encrypted speech signal, then some information | ||||
| about the characteristics of that speech signal can be determined by | ||||
| watching the patterns of voice activity. This information leakage is | ||||
| less than with VBR coding since only the lengths of continuous bursts | ||||
| of voice activity can be determined, and not the length of individual | ||||
| words or phonemes, but is still potentially a concern. | ||||
| The information leakage due to VAD in SRTP audio sessions can be much | ||||
| reduced if the sender adds an unpredictable "overhang" period to the | ||||
| end of active speech intervals, so obscuring their actual length. an | ||||
| RTP sender using VAD with encrypted SRTP audio SHOULD insert such an | ||||
| overhang period at the end of each talkspurt, delaying the start of | ||||
| the silence/comfort noise by a random interval. The length of the | ||||
| overhang applied to each talkspurt must be randomly chosen in such a | ||||
| way that it is computationally infeasible for an attacker to predict | ||||
| the length of that talkspurt. The audio data comprising the overhang | ||||
| period must be packetised and transmitted in RTP packets in a manner | ||||
| that is indistinguishable from the other data in the talkspurt. | ||||
| The application of such a random overhang period to each talkspurt | ||||
| will reduce the effectiveness of VAD in SRTP sessions when compared | ||||
| to non-SRTP sessions. It is, however, still expected that the use of | ||||
| VAD will provide a significant bandwidth saving for many encrypted | ||||
| sessions. | ||||
| 4. Security Considerations | ||||
| The security considerations of [RFC3711] apply. | ||||
| It might be thought that it is sufficient to pad the output of a VBR | It might be thought that it is sufficient to pad the output of a VBR | |||
| codec to a constant size using the RTP padding feature as a means of | codec using RTP padding to generate constant size RTP data packets as | |||
| mitigating the traffic analysis attacks considered here (indeed, [3] | a means of mitigating the traffic analysis attacks considered here | |||
| suggests such a mitigation). Section 3.1 of [1] discusses potential | (indeed, [spot-me] suggests such a mitigation). Section 3.1 of | |||
| problems with this approach, which mean that it is NOT RECOMMENDED in | [RFC3711] discusses potential problems with this approach, which mean | |||
| general. | that it is NOT RECOMMENDED in general. | |||
| 4. IANA Considerations | 5. IANA Considerations | |||
| No IANA actions are required. | No IANA actions are required. | |||
| 5. Acknowledgements | 6. Acknowledgements | |||
| This memo is based on the discussion in [3]. Recent versions of ZRTP | This memo is based on the discussion in [spot-me]. Recent versions | |||
| [4] contain a similar recommendation; the purpose of this memo is to | of ZRTP [I-D.zimmermann-avt-zrtp] contain a similar recommendation; | |||
| highlight the issue to a wider audience, since it is not specific to | the purpose of this memo is to highlight these issues to a wider | |||
| ZRTP. | audience, since they are not specific to ZRTP. Thanks are due to | |||
| Phil Zimmermann, Stefan Dohla, Mats Naslund, Jean-Marc Valin, Gregory | ||||
| Maxwell, David McGrew, and Mark Baugher for their comments and | ||||
| feedback on this memo. | ||||
| 6. References | 7. References | |||
| 6.1. Normative References | 7.1. Normative References | |||
| [1] Baugher, M., McGrew, D., Naslund, M., Carrara, E., and K. | [RFC2119] Bradner, S., "Key words for use in RFCs to Indicate | |||
| Norrman, "The Secure Real-time Transport Protocol (SRTP)", | Requirement Levels", BCP 14, RFC 2119, March 1997. | |||
| RFC 3711, March 2004. | ||||
| [2] Bradner, S., "Key words for use in RFCs to Indicate Requirement | [RFC3711] Baugher, M., McGrew, D., Naslund, M., Carrara, E., and K. | |||
| Levels", BCP 14, RFC 2119, March 1997. | Norrman, "The Secure Real-time Transport Protocol (SRTP)", | |||
| RFC 3711, March 2004. | ||||
| 6.2. Informative References | 7.2. Informative References | |||
| [3] Wright, C., Ballard, L., Coull, S., Monrose, F., and G. Masson, | [I-D.zimmermann-avt-zrtp] | |||
| "Spot me if you can: Uncovering spoken phrases in encrypted VoIP | Zimmermann, P., Johnston, A., and J. Callas, "ZRTP: Media | |||
| conversation", Proceedings of the IEEE Symposium on Security | Path Key Agreement for Secure RTP", | |||
| and Privacy 2008, May 2008. | draft-zimmermann-avt-zrtp-15 (work in progress), | |||
| March 2009. | ||||
| [4] Zimmermann, P., Johnston, A., and J. Callas, "ZRTP: Media Path | [spot-me] Wright, C., Ballard, L., Coull, S., Monrose, F., and G. | |||
| Key Agreement for Secure RTP", draft-zimmermann-avt-zrtp-15 | Masson, "Spot me if you can: Uncovering spoken phrases in | |||
| (work in progress), March 2009. | encrypted VoIP conversation", Proceedings of the IEEE | |||
| Symposium on Security and Privacy 2008, May 2008. | ||||
| Author's Address | Author's Address | |||
| Colin Perkins | Colin Perkins | |||
| University of Glasgow | University of Glasgow | |||
| Department of Computing Science | Department of Computing Science | |||
| Sir Alwyn Williams Building | ||||
| Lilybank Gardens | ||||
| Glasgow G12 8QQ | Glasgow G12 8QQ | |||
| UK | UK | |||
| Email: csp@csperkins.org | Email: csp@csperkins.org | |||
| End of changes. 26 change blocks. | ||||
| 74 lines changed or deleted | 103 lines changed or added | |||
This html diff was produced by rfcdiff 1.46. The latest version is available from http://tools.ietf.org/tools/rfcdiff/ | ||||