SlideShare a Scribd company logo
SIP &TLS
Security in a peer to peer world
Olle E. Johansson, oej@edvina.net, Fosdem 2016, january 30-31, Brussels

Twitter @oej
TLS IN ONE PICTURE
Server
Network
Link
Application
Client
Identity check
Algorithm agreement
Key Set up
Encryption of data
Without prior agreement
Certificate validation
A SIP REGISTRATION AND CALL
SIP client/server

(phone)
SIP serverHello, here’s my current location

SIP Contact URI

(IPv6 or IPv4 address + port)
Incoming callIncoming call
Contact

URI
Two separate

Connections/Flows
…WITHTLS
SIP client/server

(phone)
SIP server
Hello, here’s my current location

SIP Contact URI

(IPv6 or IPv4 address + port)
Incoming call
Incoming call
TLS
TLS
The phone needs
to be a TLS server with a
certificate
Contact

URI
The cert needs to match

the Contact URI.

Which is changing unless you use GRUU
Contact

URI
SIPS: - WAS A BAD IDEA.
Just forget it. SIP doesn’t work like the
web.And the web is also changing.
SIP MATCHING CERTIFICATE
sip:alice@example.com
SIP server
cn: example.com
san: ww.example.com
SIP server
cn: namn.se
san: example.com
SIP server
cn: example.com
DNS SRV for example.com points to

sip01.siphosting.com
FAIL
OK!OK!
SIP server
cn: *.example.com
Fail
Wildcards are

not allowed.
With no SAN, CN is used.

But only with no SAN.
RFC 5922 - SIP domain certificates
COMPARE WITH XMPP -
CONNECTION = “AVAILABLE”
XMPP client
XMPP

server
Incoming message
TLS
A client without a
connection is off line.
OneTCP/TLS connection.
SIP XMPP STYLE

= SIP OUTBOUND
SIP client/server

(phone)
SIP server
Incoming call
TLS
Reuse the same connection,
managed by the client!
REGISTER
INVITE
As long as we have at least
one connection, the UA is ”online”
and available.
RFC 5626
SIP OUTBOUND AND IP FLOWS
SIP
”it’s really hard to notice that aTCP connection is dead”

Panagiotis Stathopoulos at #Fosdem 2016
UA
SIP
SIP
SIP edge proxys
SIP location server
SECURITY? 

NO GUARANTEES, EVER
SIP SIP
UA UA
You can only control and

verify the first hop
SIP PEER 2 PEER
SIP proxy

(man in the middle)
…WITH FORKING
The payload and message reach

everyone!
AND CONFERENCE CALLS
MY QUESTION:

A SECURE SESSION IS?
SIP proxy

(man in the middle)
SIP is a rendevous
protocol. We find each other and
establish a session.
Can we find a way to secure that
session and trust it?
MY QUESTION:

WHAT IS A SECURE SESSION?
SIP proxy

(man in the middle)
MSRP? 

WebRTC Datachannels? This applies to webrtc,
XMPP, SIP and other
solutions…
IN SHORT FOR SIP: WITHOUT
OUTBOUND,YOU’RE A NO GO
Managing client certs is a
pain and a high cost.
The standards doesn’t
work, only outbound…
WORKTO DO
Kill SIPS: 

Finally. Get rid of it.
Clarify SIP/TLS usage.
Mandate outbound for UAs.
Standardize SIP client
certificates.
Standardise DANE usage in
SIP.
Work on Peer-to-
peer security for all
protocols.

More Related Content

PDF
Security Process in DevSecOps
PDF
Kamailio - Secure Communication
PDF
SIP and DNS - federation, failover, load balancing and more
PDF
Container Networking Deep Dive
PDF
Introduction to VoIP, RTP and SIP
PDF
Introducing Vault
PDF
Kamailio :: A Quick Introduction
Security Process in DevSecOps
Kamailio - Secure Communication
SIP and DNS - federation, failover, load balancing and more
Container Networking Deep Dive
Introduction to VoIP, RTP and SIP
Introducing Vault
Kamailio :: A Quick Introduction

What's hot (20)

ODP
Using Asterisk and Kamailio for Reliable, Scalable and Secure Communication S...
PPTX
Hashicorp Vault ppt
PDF
The State of DevSecOps
PDF
Introduction to Vault
PDF
Grafana Loki: like Prometheus, but for Logs
PDF
Red Hat OpenShift Container Platform Overview
PDF
Gitlab, GitOps & ArgoCD
PDF
Prometheus
PDF
Kubernetes Security with Calico and Open Policy Agent
PDF
Vault 101
PPTX
Policy as Code: IT Governance With HashiCorp Sentinel
PDF
Cisco umbrella overview
PDF
DevSecOps
PDF
Practical DevSecOps - Arief Karfianto
PDF
Kamailio - Load Balancing Load Balancers
PDF
SIPREC RTPEngine Media Forking
PPTX
CKA_1st.pptx
PDF
F5 DDoS Protection
PDF
Introduction to FreeSWITCH
PDF
ISE-802.1X-MAB
Using Asterisk and Kamailio for Reliable, Scalable and Secure Communication S...
Hashicorp Vault ppt
The State of DevSecOps
Introduction to Vault
Grafana Loki: like Prometheus, but for Logs
Red Hat OpenShift Container Platform Overview
Gitlab, GitOps & ArgoCD
Prometheus
Kubernetes Security with Calico and Open Policy Agent
Vault 101
Policy as Code: IT Governance With HashiCorp Sentinel
Cisco umbrella overview
DevSecOps
Practical DevSecOps - Arief Karfianto
Kamailio - Load Balancing Load Balancers
SIPREC RTPEngine Media Forking
CKA_1st.pptx
F5 DDoS Protection
Introduction to FreeSWITCH
ISE-802.1X-MAB
Ad

Viewers also liked (20)

PDF
SIPNOC 2014 - Is It Time For TLS for SIP?
PDF
Open Source and The Global Disruption Of Telecom: What Choices Will We Make?
PDF
Reboot the Open Realtime Revolution - #MoreCrypto (Fall 2014)
PDF
Participate in SIPit
PDF
DNSSEC and VoIP: Who are you really calling?
PPTX
Jekyll Island, Georgia
PDF
Jekyll Island, Georgia - Notes Pages
PPTX
MCCVLC Webinar - Good Practices in Online Delivery of Developmental Ed
PDF
IPv6 and Telecom: IPv4 Is FInally Running Out. Now What?
PPT
Skype anlaysis
PPTX
FreeSWITCH as a Kickass SBC
PDF
Kamailio - SIP Firewall for Carrier Grade Traffic
PDF
Kamailio - API Based SIP Routing
PDF
WebRTC for Telco: Informa's WebRTC Global Summit Preconference
PPTX
Comprendre comment utiliser le web et les médias sociaux à son avantage et ce...
PDF
VoIP Wars: Destroying Jar Jar Lync (Filtered version)
PPTX
VoIP – vulnerabilities and attacks
PDF
VoIP Wars: Destroying Jar Jar Lync (Unfiltered version)
PPT
VoIP Security
PDF
Save Publishing
SIPNOC 2014 - Is It Time For TLS for SIP?
Open Source and The Global Disruption Of Telecom: What Choices Will We Make?
Reboot the Open Realtime Revolution - #MoreCrypto (Fall 2014)
Participate in SIPit
DNSSEC and VoIP: Who are you really calling?
Jekyll Island, Georgia
Jekyll Island, Georgia - Notes Pages
MCCVLC Webinar - Good Practices in Online Delivery of Developmental Ed
IPv6 and Telecom: IPv4 Is FInally Running Out. Now What?
Skype anlaysis
FreeSWITCH as a Kickass SBC
Kamailio - SIP Firewall for Carrier Grade Traffic
Kamailio - API Based SIP Routing
WebRTC for Telco: Informa's WebRTC Global Summit Preconference
Comprendre comment utiliser le web et les médias sociaux à son avantage et ce...
VoIP Wars: Destroying Jar Jar Lync (Filtered version)
VoIP – vulnerabilities and attacks
VoIP Wars: Destroying Jar Jar Lync (Unfiltered version)
VoIP Security
Save Publishing
Ad

Similar to SIP & TLS - Security in a peer to peer world (20)

PDF
Security and Real-time Communications – a maze of twisty little passages, tha...
PDF
Sips must die, die, die - about TLS usage in the SIP protocol
PDF
SIP & TLS - a very brief overview for the POSH BOF at IETF 87
PPT
Sinnreich Henry Johnston Alan Pt 1
PDF
SIP :: Half outbound (random notes)
PPTX
Session Initiation Protocol
PDF
Kamailio World 2016: Update your SIP!
PPTX
CCIE Collaboration Lecture Chapter 4.4 voice gateway cucm sip overview
PDF
Session initiation protocol security considerations
PPT
SIP for geeks
PPTX
Session Initiation Protocol - In depth analysis
PDF
Review of SIP based DoS attacks
PPTX
SIP security in IP telephony
PDF
SIPCORE - presentation of SIP and DANE (IETF #89)
PDF
Fact sheet sip v1
PPT
1 Vo Ip Overview
PPT
1 Vo I P Overview
PDF
VOIP services
PPTX
SIP: Call Id, Cseq, Via-branch, From & To-tag role play
PPT
Security and Real-time Communications – a maze of twisty little passages, tha...
Sips must die, die, die - about TLS usage in the SIP protocol
SIP & TLS - a very brief overview for the POSH BOF at IETF 87
Sinnreich Henry Johnston Alan Pt 1
SIP :: Half outbound (random notes)
Session Initiation Protocol
Kamailio World 2016: Update your SIP!
CCIE Collaboration Lecture Chapter 4.4 voice gateway cucm sip overview
Session initiation protocol security considerations
SIP for geeks
Session Initiation Protocol - In depth analysis
Review of SIP based DoS attacks
SIP security in IP telephony
SIPCORE - presentation of SIP and DANE (IETF #89)
Fact sheet sip v1
1 Vo Ip Overview
1 Vo I P Overview
VOIP services
SIP: Call Id, Cseq, Via-branch, From & To-tag role play

More from Olle E Johansson (20)

PDF
Cybernode.se: Securing the software supply chain (CRA)
PDF
CRA - overview of vulnerability handling
PDF
Introduction to the proposed EU cyber resilience act (CRA)
PDF
The birth and death of PSTN
PDF
WebRTC and Janus intro for FOSS Stockholm January 2019
PDF
Kamailio World 2018: Having fun with new stuff
PDF
Kamailio on air
PDF
Webrtc overview
PDF
Realtime communication over a dual stack network
PDF
The Realtime Story - part 2
PDF
Sip2016 - a talk at VOIP2DAY 2016
PDF
Tio tester av TLS - Transport Layer Security (TLS-O-MATIC.COM)
PDF
2015 update: SIP and IPv6 issues - staying Happy in SIP
PDF
TCP/IP Geeks Stockholm :: Introduction to IPv6
PDF
Why is Kamailio so different? An introduction.
PDF
RFC 7435 - Opportunistic security - Some protection most of the time
PDF
TCP/IP geeks Stockholm :: Manifesto
PDF
#Morecrypto (with tis) - version 2.2
PDF
WebRTC - a quick introduction
PDF
#Morecrypto 1.8 - with introduction to TLS
Cybernode.se: Securing the software supply chain (CRA)
CRA - overview of vulnerability handling
Introduction to the proposed EU cyber resilience act (CRA)
The birth and death of PSTN
WebRTC and Janus intro for FOSS Stockholm January 2019
Kamailio World 2018: Having fun with new stuff
Kamailio on air
Webrtc overview
Realtime communication over a dual stack network
The Realtime Story - part 2
Sip2016 - a talk at VOIP2DAY 2016
Tio tester av TLS - Transport Layer Security (TLS-O-MATIC.COM)
2015 update: SIP and IPv6 issues - staying Happy in SIP
TCP/IP Geeks Stockholm :: Introduction to IPv6
Why is Kamailio so different? An introduction.
RFC 7435 - Opportunistic security - Some protection most of the time
TCP/IP geeks Stockholm :: Manifesto
#Morecrypto (with tis) - version 2.2
WebRTC - a quick introduction
#Morecrypto 1.8 - with introduction to TLS

Recently uploaded (20)

PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Modernizing your data center with Dell and AMD
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Electronic commerce courselecture one. Pdf
PPTX
MYSQL Presentation for SQL database connectivity
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Encapsulation theory and applications.pdf
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
cuic standard and advanced reporting.pdf
PPT
Teaching material agriculture food technology
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Modernizing your data center with Dell and AMD
Review of recent advances in non-invasive hemoglobin estimation
Mobile App Security Testing_ A Comprehensive Guide.pdf
Electronic commerce courselecture one. Pdf
MYSQL Presentation for SQL database connectivity
“AI and Expert System Decision Support & Business Intelligence Systems”
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
Per capita expenditure prediction using model stacking based on satellite ima...
Encapsulation theory and applications.pdf
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Reach Out and Touch Someone: Haptics and Empathic Computing
20250228 LYD VKU AI Blended-Learning.pptx
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
Building Integrated photovoltaic BIPV_UPV.pdf
Unlocking AI with Model Context Protocol (MCP)
cuic standard and advanced reporting.pdf
Teaching material agriculture food technology
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...

SIP & TLS - Security in a peer to peer world

  • 1. SIP &TLS Security in a peer to peer world Olle E. Johansson, oej@edvina.net, Fosdem 2016, january 30-31, Brussels
 Twitter @oej
  • 2. TLS IN ONE PICTURE Server Network Link Application Client Identity check Algorithm agreement Key Set up Encryption of data Without prior agreement Certificate validation
  • 3. A SIP REGISTRATION AND CALL SIP client/server
 (phone) SIP serverHello, here’s my current location
 SIP Contact URI
 (IPv6 or IPv4 address + port) Incoming callIncoming call Contact
 URI Two separate
 Connections/Flows
  • 4. …WITHTLS SIP client/server
 (phone) SIP server Hello, here’s my current location
 SIP Contact URI
 (IPv6 or IPv4 address + port) Incoming call Incoming call TLS TLS The phone needs to be a TLS server with a certificate Contact
 URI The cert needs to match
 the Contact URI.
 Which is changing unless you use GRUU Contact
 URI
  • 5. SIPS: - WAS A BAD IDEA. Just forget it. SIP doesn’t work like the web.And the web is also changing.
  • 6. SIP MATCHING CERTIFICATE sip:alice@example.com SIP server cn: example.com san: ww.example.com SIP server cn: namn.se san: example.com SIP server cn: example.com DNS SRV for example.com points to
 sip01.siphosting.com FAIL OK!OK! SIP server cn: *.example.com Fail Wildcards are
 not allowed. With no SAN, CN is used.
 But only with no SAN. RFC 5922 - SIP domain certificates
  • 7. COMPARE WITH XMPP - CONNECTION = “AVAILABLE” XMPP client XMPP
 server Incoming message TLS A client without a connection is off line. OneTCP/TLS connection.
  • 8. SIP XMPP STYLE
 = SIP OUTBOUND SIP client/server
 (phone) SIP server Incoming call TLS Reuse the same connection, managed by the client! REGISTER INVITE As long as we have at least one connection, the UA is ”online” and available. RFC 5626
  • 9. SIP OUTBOUND AND IP FLOWS SIP ”it’s really hard to notice that aTCP connection is dead”
 Panagiotis Stathopoulos at #Fosdem 2016 UA SIP SIP SIP edge proxys SIP location server
  • 10. SECURITY? 
 NO GUARANTEES, EVER SIP SIP UA UA You can only control and
 verify the first hop
  • 11. SIP PEER 2 PEER SIP proxy
 (man in the middle)
  • 12. …WITH FORKING The payload and message reach
 everyone!
  • 14. MY QUESTION:
 A SECURE SESSION IS? SIP proxy
 (man in the middle) SIP is a rendevous protocol. We find each other and establish a session. Can we find a way to secure that session and trust it?
  • 15. MY QUESTION:
 WHAT IS A SECURE SESSION? SIP proxy
 (man in the middle) MSRP? 
 WebRTC Datachannels? This applies to webrtc, XMPP, SIP and other solutions…
  • 16. IN SHORT FOR SIP: WITHOUT OUTBOUND,YOU’RE A NO GO Managing client certs is a pain and a high cost. The standards doesn’t work, only outbound…
  • 17. WORKTO DO Kill SIPS: 
 Finally. Get rid of it. Clarify SIP/TLS usage. Mandate outbound for UAs. Standardize SIP client certificates. Standardise DANE usage in SIP. Work on Peer-to- peer security for all protocols.