Skip to content
Surf Wiki
Save to docs
technology/cryptography

From Surf Wiki (app.surf) — the open knowledge base

ZRTP

VoIP key-agreement protocol


Summary

VoIP key-agreement protocol

ZRTP (composed of Z and Real-time Transport Protocol) is a cryptographic key-agreement protocol to negotiate the keys for encryption between two end points in a Voice over IP (VoIP) phone telephony call based on the Real-time Transport Protocol. It uses Diffie–Hellman key exchange and the Secure Real-time Transport Protocol (SRTP) for encryption. ZRTP was developed by Phil Zimmermann, with help from Bryce Wilcox-O'Hearn, Colin Plumb, Jon Callas and Alan Johnston and was submitted to the Internet Engineering Task Force (IETF) by Zimmermann, Callas and Johnston on March 5, 2006 and published on April 11, 2011 as .

Overview

ZRTP ("Z" is a reference to its inventor, Zimmermann; "RTP" stands for Real-time Transport Protocol) is described in the Internet Draft as a "key agreement protocol which performs Diffie–Hellman key exchange during call setup in-band in the Real-time Transport Protocol (RTP) media stream which has been established using some other signaling protocol such as Session Initiation Protocol (SIP). This generates a shared secret which is then used to generate keys and salt for a Secure RTP (SRTP) session." One of ZRTP's features is that it does not rely on SIP signaling for the key management, or on any servers at all. It supports opportunistic encryption by auto-sensing if the other VoIP client supports ZRTP.

This protocol does not require prior shared secrets or rely on a Public key infrastructure (PKI) or on certification authorities, in fact ephemeral Diffie–Hellman keys are generated on each session establishment: this allows the complexity of creating and maintaining a trusted third-party to be bypassed.

These keys contribute to the generation of the session secret, from which the session key and parameters for SRTP sessions are derived, along with previously shared secrets (if any): this gives protection against man-in-the-middle (MiTM) attacks, so long as the attacker was not present in the first session between the two endpoints.

ZRTP can be used with any signaling protocol, including SIP, H.323, Jingle, and distributed hash table systems. ZRTP is independent of the signaling layer, because all its key negotiations occur via the RTP media stream.

ZRTP/S, a ZRTP protocol extension, can run on any kind of legacy telephony networks including GSM, UMTS, ISDN, PSTN, SATCOM, UHF/VHF radio, because it is a narrow-band bitstream-oriented protocol and performs all key negotiations inside the bitstream between two endpoints.

Alan Johnston named the protocol ZRTP because in its earliest Internet drafts it was based on adding header extensions to RTP packets, which made ZRTP a variant of RTP. In later drafts the packet format changed to make it syntactically distinguishable from RTP. In view of that change, ZRTP is now a pseudo-acronym.

Authentication

The Diffie–Hellman key exchange by itself does not provide protection against a man-in-the-middle attack. To ensure that the attacker is indeed not present in the first session (when no shared secrets exist), the Short Authentication String (SAS) method is used: the communicating parties verbally cross-check a shared value displayed at both endpoints. If the values do not match, a man-in-the-middle attack is indicated. A specific attack theorized against the ZRTP protocol involves creating a synthetic voice of both parties to read a bogus SAS which is known as a "Rich Little attack", but this class of attack is not believed to be a serious risk to the protocol's security.{{cite web |access-date=2010-06-17 The SAS is used to authenticate the key exchange, which is essentially a cryptographic hash of the two Diffie–Hellman values. The SAS value is rendered to both ZRTP endpoints. To carry out authentication, this SAS value is read aloud to the communication partner over the voice connection. If the values on both ends do not match, a man-in-middle attack is indicated; if they do match, a man-in-the-middle attack is highly unlikely. The use of hash commitment in the DH exchange constrains the attacker to only one guess to generate the correct SAS in the attack, which means the SAS may be quite short. A 16-bit SAS, for example, provides the attacker only one chance out of 65536 of not being detected.

Key continuity

ZRTP provides a second layer of authentication against a MitM attack, based on a form of key continuity. It does this by caching some hashed key information for use in the next call, to be mixed in with the next call's DH shared secret, giving it key continuity properties analogous to SSH. If the MitM is not present in the first call, he is locked out of subsequent calls. Thus, even if the SAS is never used, most MitM attacks are stopped because the MitM was not present in the first call. ZRTP provides yet a third layer of protection against a MitM attack. The IETF plans to add integrity protection to the delivery of Session Initiation Protocol (SIP) information, and that integrity protection will rely on a PKI. When this eventually deploys, ZRTP can take advantage of this. See the ZRTP Internet Draft on how ZRTP can leverage an integrity-protected SIP layer to provide integrity protection for ZRTP's Diffie–Hellman exchange in the media layer. This protects against a MitM attack, without requiring the users to verbally compare the SAS. However, no VoIP clients yet offer a fully implemented SIP stack that provides end-to-end integrity protection for the delivery of SIP information. Thus, real-world implementations of ZRTP endpoints will continue to depend on SAS authentication for quite some time. Even after there is widespread availability of SIP products that offer integrity protection, many users will still be faced with the fact that the signaling path may be controlled by institutions that do not have the best interests of the end user in mind. In those cases, ZRTP's built-in SAS authentication will remain the gold standard for the prudent user.

Operating environment

  • ZRTP protocol has been implemented and used on the following platforms: Windows, Linux, Android
  • ZRTP protocol has been implemented in the following languages: C, C++, Java
  • ZRTP protocol has been used successfully on the following transport media: WiFi, UMTS, EDGE, GPRS, Satellite IP modem, GSM CSD, ISDN

Implementations

ZRTP has been implemented as

  • GNU ZRTP which is used in Twinkle
  • GNU ZRTP4J which is used in Jitsi (formerly SIP Communicator).
  • ortp for use in Linphone.
  • libzrtp which can be used in FreeSWITCH.
  • Signal and its predecessor, RedPhone, used ZRTP for encrypted calls on Android and iOS. As of March 2017, Signal's voice and video calling functionality uses the app's Signal Protocol channel for authentication instead of ZRTP.
  • CSipSimple is a free application for Android OS which fully supports ZRTP
  • PhonerLite softphone for Windows supports ZRTP

Commercial implementations of ZRTP are available in RokaCom from RokaCom, and PrivateWave Professional from PrivateWave and more recently in Silent Phone from Silent Circle, a company founded by Zimmermann. There is also Softphone from Acrobits. Draytek support ZRTP in some of their VoIP hardware and software.

A list of free SIP Providers with ZRTP support has been published.

References

References

  1. [http://countingfromzero.wordpress.com/2011/04/12/zrtp-published-today-as-rfc-6189/ ''Alan B. Johnston's Blog: ZRTP Published Today as RFC 6189'']. Retrieved 2013-01-13
  2. (25 February 2009). "Twinkle - SIP softphone for Linux". Twinklephone.com.
  3. "Zrtp FAQ". jitsi.org.
  4. "oRTP, a Real-time Transport Protocol (RTP, RFC3550) library | Linphone, an open-source video sip phone". Linphone.org.
  5. (2009-05-21). "ZRTP - FreeSWITCH Wiki". FreeSWITCH Wiki.
  6. (21 May 2009). "FreeSWITCH Now Supports ZRTP!". FreeSWITCH.
  7. Andy Greenberg. (2014-07-29). "Your iPhone Can Finally Make Free, Encrypted Calls". Wired.
  8. (14 February 2017). "Video calls for Signal now in public beta". Open Whisper Systems.
  9. (14 March 2017). "Signal's Encrypted Video Calling For iOS, Android Leaves Beta". Purch Group, Inc..
  10. (22 February 2012). "Free SIP Providers with ZRTP support". The Guardian Project.
  11. "PhonerLite". Phonerlite.de.
  12. (2014-11-29). "RokaCom". RokaCom.
  13. (1999-02-22). "PrivateWave". PrivateWave.
  14. Join us for a Live Webinar. "Silent Circle". Silent Circle.
  15. "Softphone". Acrobits.
  16. (2013-08-13). "Specification of Draytek 2820Vn ADSL modem/router/switch". Ipbusinessphones.co.uk.
  17. "Draytek Softphone (software) description". Draytek.co.uk.
Wikipedia Source

This article was imported from Wikipedia and is available under the Creative Commons Attribution-ShareAlike 4.0 License. Content has been adapted to SurfDoc format. Original contributors can be found on the article history page.

Want to explore this topic further?

Ask Mako anything about ZRTP — get instant answers, deeper analysis, and related topics.

Research with Mako

Free with your Surf account

Content sourced from Wikipedia, available under CC BY-SA 4.0.

This content may have been generated or modified by AI. CloudSurf Software LLC is not responsible for the accuracy, completeness, or reliability of AI-generated content. Always verify important information from primary sources.

Report