1 overview of sip media security options dan wing [email protected] march 21, 2006 -- ietf 65

25
1 Overview of SIP Media Security Options Dan Wing [email protected] March 21, 2006 -- IETF 65

Upload: luca-swanton

Post on 14-Dec-2015

217 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: 1 Overview of SIP Media Security Options Dan Wing dwing@cisco.com March 21, 2006 -- IETF 65

1

Overview of SIP Media Security Options

Dan [email protected]

March 21, 2006 -- IETF 65

Page 2: 1 Overview of SIP Media Security Options Dan Wing dwing@cisco.com March 21, 2006 -- IETF 65

2

Reminder: Basic Topology

Alice

Atlanta Biloxi

Bob

INVITE

INVITE

INVITE

OK OK

OK

RTP

• SIP and RTP follow different paths– SIP: Signaling path– RTP: Media path

• Media path is often faster (fewer hops)

Page 3: 1 Overview of SIP Media Security Options Dan Wing dwing@cisco.com March 21, 2006 -- IETF 65

3

Forking

Alice Atlanta Biloxi

Bob

INVITE INVITE

INVITE

OK

OK

OK

Carol

INVITE

OK

RTP

RTP

Page 4: 1 Overview of SIP Media Security Options Dan Wing dwing@cisco.com March 21, 2006 -- IETF 65

4

Media Before SDP Answer(“Clipping”)

Alice Biloxi BobINVITE

INVITE

RTP (before SDP Answer)

RINGING

RINGING

OK

OK

RTP (Two-Way)

(Bob answers)

Page 5: 1 Overview of SIP Media Security Options Dan Wing dwing@cisco.com March 21, 2006 -- IETF 65

5

Forking with Media Before SDP Answer

Alice Biloxi BobINVITE

INVITE

RTP (before SDP Answer)

RINGING

RINGING (Bob)

OK

RTP (Two-Way)

Brad

INVITE

RINGING

RTP (before SDP Answer)

RINGING (Brad)

OKOK (Bob)

OK (Brad)CANCEL

(Bob answers)

Page 6: 1 Overview of SIP Media Security Options Dan Wing dwing@cisco.com March 21, 2006 -- IETF 65

6

Router

Conferencing Architectures

Alice Bob Sam

Bridge

AliceTalks

Alice’s voice

Different media stream to each

participant

Alice Bob Sam

Bridge

Same media stream to each

participant

Alice Bob Sam

Router

multicast

Shared key conferencing

Page 7: 1 Overview of SIP Media Security Options Dan Wing dwing@cisco.com March 21, 2006 -- IETF 65

7

Bid-Down Attack

Alice Biloxi BobINVITE (AES-128, AES-256)

INVITE (AES-128)

(Bob selects AES-128)Attacker removes AES-256

ANSWER (AES-128)

SRTP (AES-128)

• Bid down SRTP encryption level• Bid down to RTP (mult/alt, SDP grouping)

ANSWER (AES-128)

Page 8: 1 Overview of SIP Media Security Options Dan Wing dwing@cisco.com March 21, 2006 -- IETF 65

8

Secure RTP

• Channel security is well understood– Techniques documented in RFC3711

• Problem is association management– Key establishment– Peer authentication– Algorithm selection

• This means some kind of handshake

Page 9: 1 Overview of SIP Media Security Options Dan Wing dwing@cisco.com March 21, 2006 -- IETF 65

9

Overall design choices

• Handshake in signaling channel– MIKEY, Security Descriptions– Already written up and implemented– Problems with forking and media-before-SDP-

answer• Handshake in media channel

– ZRTP, EKT, RTP/DTLS– Internet Drafts only– Work well with forking and media-before-SDP-

answer

Page 10: 1 Overview of SIP Media Security Options Dan Wing dwing@cisco.com March 21, 2006 -- IETF 65

10

MIKEY Pre-Shared Key Mode (3830)Alice Biloxi Bob

INVITE: E(PSK, TGK)

OK: Verifier

SRTP

INVITE: E(PSK, TGK)

OK: Verifier

Requires signalling confidentiality NoForking NoMedia before SDP answer YesShared-key conferencing YesRequires PKI No (but pre shared key)Rekeying YesDowngrade attack protection Yes

Page 11: 1 Overview of SIP Media Security Options Dan Wing dwing@cisco.com March 21, 2006 -- IETF 65

11

MIKEY Public Key Mode (3830)Alice Biloxi Bob

INVITE: E(Kbob, TGK)

OK: Verifier

SRTP

INVITE: E(Kbob, TGK)

OK: Verifier

Requires signalling confidentiality NoForking NoMedia before SDP answer YesShared-key conferencing YesRequires PKI YesRekeying YesDowngrade attack protection Yes

Page 12: 1 Overview of SIP Media Security Options Dan Wing dwing@cisco.com March 21, 2006 -- IETF 65

12

MIKEY Diffie-Hellman Mode (3830)Alice Biloxi Bob

INVITE: DHAlice, Sig(KAlice, MSG)

SRTP

INVITE: DHAlice, Sig(KAlice, MSG)

OK: DHBob, Sig(KBob, MSG)

OK: DHBob, Sig(KBob, MSG)

Requires signalling confidentiality NoForking NoMedia before SDP answer NoShared-key conferencing NoRequires PKI YesRekeying YesDowngrade attack protection Yes

Page 13: 1 Overview of SIP Media Security Options Dan Wing dwing@cisco.com March 21, 2006 -- IETF 65

13

MIKEY Diffie-Hellman HMAC Mode (draft-ietf-msec-mikey-dhhmac-11)

Alice Biloxi BobINVITE: DHAlice, MAC(PSK, MSG)

SRTP

INVITE: DHAlice, MAC(PSK, MSG)

OK: DHBob, MAC(PSK, MSG)

OK: DHBob, MAC(PSK, MSG)

Requires signalling confidentiality NoForking NoMedia before SDP answer NoShared-key conferencing NoRequires PKI No (pre-shared key)Rekeying YesDowngrade attack protection Yes

Page 14: 1 Overview of SIP Media Security Options Dan Wing dwing@cisco.com March 21, 2006 -- IETF 65

14

MIKEY RSA-R Mode(draft-ietf-msec-mikey-rsa-r-02)

Alice Biloxi BobINVITE: Sig(KAlice, MSG)

SRTP

INVITE: Sig(KAlice, MSG)

OK: E(KAlice, TGK), Sig(KAlice, MSG)

OK: E(KAlice, TGK), Sig(KAlice, MSG)

Requires signalling confidentiality NoForking YesMedia before SDP answer NoShared-key conferencing YesRequires PKI YesRekeying YesDowngrade attack protection Yes

Page 15: 1 Overview of SIP Media Security Options Dan Wing dwing@cisco.com March 21, 2006 -- IETF 65

15

SDESCRIPTIONS (draft-ietf-mmusic-sdescriptions-12)

Alice Biloxi BobINVITE: AliceTransmit-Key

SRTP

INVITE: AliceTransmit-Key

OK: BobTransmit-Key

OK: BobTransmit-Key

Requires signalling confidentiality YesForking Yes (insecure)Media before SDP answer NoShared-key conferencing YesRequires PKI NoRekeying Yes (New Offer)Downgrade attack protection No

Dan Wing
"SDES Mode" -> "sdescriptions"
Page 16: 1 Overview of SIP Media Security Options Dan Wing dwing@cisco.com March 21, 2006 -- IETF 65

16

SDES Early Media Mode(draft-wing-mmusic-sdes-early-media-00)

Alice Biloxi BobINVITE: BothTransmit-Keys

SRTP

INVITE: BothTransmit-Keys

OK: Thanks!

OK: Thanks!

Requires signalling confidentiality YesForking Yes (insecure)Media before SDP answer YesShared-key conferencing YesRequires PKI NoRekeying Yes (New Offer)Downgrade attack protection No

Page 17: 1 Overview of SIP Media Security Options Dan Wing dwing@cisco.com March 21, 2006 -- IETF 65

17

Encrypted Key Transport w/ SDES(draft-mcgrew-srtp-ekt-00)

Alice Biloxi BobINVITE: EKT Master Key

SRTP

INVITE: EKT Master Key

OK: Thanks!

OK: Thanks!

RTCP: E(Master, MEK)

Requires signalling confidentiality In SDES modeForking Yes (insecure)Media before SDP answer YesShared-key conferencing YesRequires PKI NoRekeying YesDowngrade attack protection Depends on base

handshake

Page 18: 1 Overview of SIP Media Security Options Dan Wing dwing@cisco.com March 21, 2006 -- IETF 65

18

SDP DH Mode(draft-baugher-mmusic-sdp-00)

Alice Biloxi BobINVITE: DHAlice

SRTP

INVITE: DHAlice

OK: DHBob

OK: DHBob

Requires signalling confidentiality NoForking NoMedia before SDP answer NoShared-key conferencing NoRequires PKI NoRekeying NoDowngrade attack protection No

Page 19: 1 Overview of SIP Media Security Options Dan Wing dwing@cisco.com March 21, 2006 -- IETF 65

19

ZRTP (draft-zimmermann-avt-zrtp-01)

Alice Biloxi BobINVITE

ZRTP Handshake

INVITE

OK

OK

SRTP

Requires signalling confidentiality NoForking YesMedia before SDP answer YesShared-key conferencing NoRequires PKI NoRekeying YesDowngrade attack protection Yes

Page 20: 1 Overview of SIP Media Security Options Dan Wing dwing@cisco.com March 21, 2006 -- IETF 65

20

DTLS/RTP(draft-tschofenig-avt-rtp-dtls-00, etc.)

Alice Biloxi BobINVITE: Alice’s Fingerprint

DTLS Handshake

INVITE: Alice’s Fingerprint

OK: Bob’s Fingerprint

OK: Bob’s Fingerprint

RTP over DTLS (or SRTP as discussed in AVT)

Requires signalling confidentiality NoForking YesMedia before SDP answer YesShared-key conferencing NoRequires PKI NoRekeying YesDowngrade attack protection Yes

Page 21: 1 Overview of SIP Media Security Options Dan Wing dwing@cisco.com March 21, 2006 -- IETF 65

Summary TableSig.

Conf.Forking Media

before Answer

Shared-key conf.

PKI? Rekey Bid-down protection

MIKEY-PSK No No Yes Yes No* Yes Yes

MIKEY-RSA No No Yes Yes Yes Yes Yes

MIKEY-DH No No No No Yes Yes Yes

MIKEY-DHHMAC

No No No No No* Yes Yes

MIKEY-RSA-R No Yes No Yes Yes Yes Yes

SDES Yes Yes* No Yes No Yes* No

SDES-EM Yes Yes* Yes Yes No Yes No

EKT Yes* Yes* Yes Yes No Yes *

SDP-DH No No No No No No No

ZRTP No Yes Yes No No Yes Yes

DTLS No Yes Yes No No Yes Yes

Page 22: 1 Overview of SIP Media Security Options Dan Wing dwing@cisco.com March 21, 2006 -- IETF 65

22

Architecture: Key Exchange: Signalling or Media Path?

• Signalling (SDP, SIP)– Already standardized

• MIKEY/kmgmt-ext, Security Descriptions– Problems with

• Media-before-SDP-Answer, forking• Media path

– Internet Drafts only• Pure inline

– ZRTP• Hybrid

– EKT (key exchange using security descriptions)– DTLS/RTP (fingerprints in SDP)

– Better coordination with media protection– Changes RTP architecture

Page 23: 1 Overview of SIP Media Security Options Dan Wing dwing@cisco.com March 21, 2006 -- IETF 65

23

Architecture: Authenticating the Association

• Through external PKI– This seems problematic

• Through security of signalling channel– Confidentiality (TLS, S/MIME)– Integrity only

• Voice authentication• Protocols more flexible than specified

– Could use ZRTP with fingerprints, MIKEY-DH with voice authentication, MIKEY-DH w/o certificate validation, etc.

– Not really a function of handshake but of design style• With some exceptions

Page 24: 1 Overview of SIP Media Security Options Dan Wing dwing@cisco.com March 21, 2006 -- IETF 65

24

Discussion Topics

• Importance of:– Media before SDP answer (“clipping”)– Secure Forking– Shared-Key Conferencing

• Interoperable SRTP Keying is Desirable ?• Architecture Choices

– Key Exchange: Signaling / Media Path– PKI

Page 25: 1 Overview of SIP Media Security Options Dan Wing dwing@cisco.com March 21, 2006 -- IETF 65

25

List of documentsRFC 3830 (MIKEY)RFC 3711 (SRTP)draft-ietf-mmusic-kmgmt-ext-15draft-ietf-mmusic-sdescriptions-12

draft-ietf-msec-mikey-rsa-r-02draft-ietf-msec-mikey-dhhmac-11draft-ietf-msec-newtype-keyid-05draft-mcgrew-srtp-ekt-00draft-baugher-mmusic-sdp-dh-00draft-zimmermann-avt-zrtp-01draft-tschofenig-avt-rtp-dtls-00draft-fischl-sipping-media-dtls-00draft-fischl-mmusic-sdp-dtls-00draft-rescorla-tls-partial-00draft-modadugu-dtls-short-00draft-lehtovirtya-srtp-rcc-00draft-fries-msec-applicability-00draft-wing-mmusic-sdes-early-media-00 (expired)

DTLS