An Opportunistic Approach for Secure Real-time Transport Protocol (OSRTP)
Unaffiliated
Bellevue
WA
USA
alan.b.johnston@gmail.com
Microsoft
One Microsoft Way
Redmond
WA
98052
USA
bernard.aboba@gmail.com
Unify
Technology Drive
Nottingham
NG9 1LA
UK
andrew.hutton@unify.com
Deutsche Telekom
Heinrich-Hertz-Strasse 3-7
Darmstadt
64295
Germany
R.Jesske@telekom.de
Unaffiliated
thomass.stach@gmail.com
ART
SIPBRANDY Working Group
srtp
opportunistic security
encryption
best effort
osrtp
Opportunistic Secure Real-time Transport Protocol (OSRTP) allows encrypted media to be used in environments where support for encryption is not known in advance, and not required. OSRTP is an implementation of Opportunistic Security, as defined in RFC 7435. OSRTP does not require advanced SDP extensions or features and is fully backwards compatible with existing secure and insecure implementations. OSRTP is not specific to any key management technique for SRTP. OSRTP is a transitional approach useful for migrating existing deployments of real-time communications to a fully encrypted and authenticated state.
Opportunistic Security (OS) is an approach to security that defines a third mode for security between "cleartext" and "comprehensive protection" that allows encryption and authentication to be used if supported but will not result in failures if it is not supported. In terms of secure media, cleartext is RTP media which is negotiated with the AVP (Audio Video Profile) profile defined . Comprehensive protection is Secure RTP , negotiated with a secure profile, such as SAVP or SAVPF . OSRTP allows SRTP to be negotiated with the AVP profile, with fallback to RTP if SRTP is not supported.
There have been some extensions to SDP to allow profiles to be negotiated such as SDP Capabilities Negotiation (capneg) . However, these approaches are complex and have very limited deployment in communication systems. Other key management protocols for SRTP have been developed which by design use OS, such as ZRTP . This approach for OSRTP is based on where it was called "best effort SRTP". has a full discussion of the motivation and requirements for opportunistic secure media.
OSRTP uses the presence of SRTP keying-related attributes in an SDP offer to indicate support for opportunistic secure media. The presence of SRTP keying-related attributes in the SDP answer indicates that the other party also supports OSRTP and encrypted and authenticated media will be used. OSRTP requires no additional extensions to SDP or new attributes and is defined independently of the key agreement mechanism used. OSRTP is only usable when media is negotiated using the Offer/Answer protocol .
OSRTP is a transitional approach that provides a migration path from unencrypted communication (RTP) to fully encrypted communication (SRTP). It is only to be used in existing deployments which are attempting to transition to fully secure communications. New applications and new deployments will not use OSRTP.
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
"SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119.
To indicate support for OSRTP in an SDP offer, the offerer uses the AVP profile but includes SRTP keying attributes. OSRTP is not specific to any key management technique for SRTP. For example:
If the offerer supports DTLS-SRTP key agreement , then an a=fingerprint attribute will be present, or
If the offerer supports SDP Security Descriptions key agreement , then an a=crypto attribute will be present, or
If the offerer supports ZRTP key agreement , then an a=zrtp-hash attribute will be present.
To accept OSRTP, an answerer receiving an offer indicating support for OSRTP generates an SDP answer containing SRTP keying attributes which match one of the keying methods in the offer. The answer MUST NOT contain attributes from more than one keying method, even if the offer contained multiple keying method attributes. The selected SRTP key management approach is followed and SRTP media is used for this session. If the SRTP key management fails for any reason, the media session MUST fail. To decline OSRTP, the answerer generates an SDP answer omitting SRTP keying attributes, and the media session proceeds with RTP with no encryption or authentication used.
If the offerer of OSRTP receives an SDP answer which does not contain SRTP keying attributes, then the media session proceeds with RTP. If the SDP answer contains the AVP (or RTP/AVP) profile with SRTP keying attributes or the SAVP (or UDP/TLS/RTP/SAVP(F)) profile with SRTP keying attributes, then that particular SRTP key management approach is followed and SRTP media is used for this session. If the SRTP key management fails, the media session MUST fail.
It is important to note that OSRTP makes no changes, and has no effect on media sessions in which the offer contains a secure profile of RTP, such as SAVP or SAVPF. As discussed in , this is the "comprehensive protection" for media mode.
The security considerations of apply to OSRTP, as well as the security considerations of the particular SRTP key agreement approach used. However, the authentication requirements of a particular SRTP key agreement approach are relaxed when that key agreement is used with OSRTP. For example:
For DTLS-SRTP key agreement , an authenticated signaling channel does not need to be used with OSRTP if it is not available.
For SDP Security Descriptions key agreement , an authenticated signaling channel does not need to be used with OSRTP if it is not available, although an encrypted signaling channel must still be used.
For ZRTP key agreement , the security considerations are unchanged, since ZRTP does not rely on the security of the signaling channel.
As discussed in , OSRTP is used in cases where support for encryption by the other party is not known in advance, and not required. For cases where it is known that the other party supports SRTP or SRTP needs to be used, OSRTP MUST NOT be used. Instead, a secure profile of RTP is used in the offer.
Note to RFC Editor: Please remove this entire section prior to publication, including the reference to .
This section records the status of known implementations of the
protocol defined by this specification at the time of posting of
this Internet-Draft, and is based on a proposal described in . The description of implementations in this section is
intended to assist the IETF in its decision processes in
progressing drafts to RFCs. Please note that the listing of any
individual implementation here does not imply endorsement by the
IETF. Furthermore, no effort has been spent to verify the
information presented here that was supplied by IETF contributors.
This is not intended as, and must not be construed to be, a
catalog of available implementations or their features. Readers
are advised to note that other implementations may exist.
According to , "this will allow reviewers and working
groups to assign due consideration to documents that have the
benefit of running code, which may serve as evidence of valuable
experimentation and feedback that have made the implemented
protocols more mature. It is up to the individual working groups
to use this information as they see fit".
There are implementations of in deployed products by Microsoft and Unify. The IMTC "Best Practices for SIP Security" document recommends this approach. The SIP Forum planned to include support in the SIPconnect 2.0 SIP trunking recommendation . There are many deployments of ZRTP .
This document is dedicated to our friend and colleague Francois Audet who is greatly missed in our community. His work on improving security in SIP and RTP provided the foundation for this work.
Thanks to Eric Rescorla, Martin Thomson, and Richard Barnes for their comments.
Best Practices for SIP Security
SIP-PBX / Service Provider Interoperability SIPconnect 2.0 - Technical Recommendation