SlideShare a Scribd company logo
1 of 27
Building a different sort of
WebRTC app
Tim Panton - Protocol Droid - westhawk Ltd
@steely_glint
@steely_glint - Westhawk Ltd
@steely_glint - Westhawk Ltd
@steely_glint - Westhawk Ltd
@steely_glint - Westhawk Ltd
@steely_glint - Westhawk Ltd
@steely_glint - Westhawk Ltd
Security isn’t what it was.
@steely_glint - Westhawk Ltd
Ideal Internet of everything
Protocol would be
Standardized
Secure
Widely deployed
Peer-to-Peer (NAT traversal)
Realtime
Strong on Identity management
Mobile capable (and smaller)
User-centric
@steely_glint - Westhawk Ltd
RTCweb Protocol is
Standardized
Secure
Widely deployed
Peer-to-Peer (NAT traversal)
Realtime
Strong on Identity management
Mobile capable (and smaller) ?
User-centric
@steely_glint - Westhawk Ltd
What we will build today
Realtime
Authenticated
P2P communication
Between a small device
and a webRTC browser
- using the DataChannel but no passwords.
@steely_glint - Westhawk Ltd
Components we need
WebRTC (datachannel) app in my smartphone
WebRTC (datachannel) embedded in a device
WebRTC service for rendevous
Some sort of pairing
@steely_glint - Westhawk Ltd
Components we will use
Chrome on android (well Mac - for easy AV)
Lightweight stack on device
Simple websockets message hub
(https://github.com/steely-glint/fingersmith)
QRcode pairing
@steely_glint - Westhawk Ltd
Duckling protocol
Described by Ross Anderson in
1990s
Device trusts first thing it sees
We flip this and the device shows
QRcode
Smartphone then calls this address
First to connect claims ownership
https://www.flickr.com/photos/bunnygoth/14021732859/
Demo of QR using yoPet.us
Code walk through of
Fingersmith
@steely_glint - Westhawk Ltd
Which address token?
WebRTC has no built in identity so …
Random key
Generated server side (like XMPP anon)
Generated client side and asserted to service
(As in Respoke, Twillio etc)
Exchanged over QR code at ‘hatching’
Stored locally and reused for ‘life’
@steely_glint - Westhawk Ltd
But wait…
Full disclosure:
this is such a good idea I filed a patent on it
Whats this fingerprint thing ?
Hash of the x509 cert used in DTLS exchange
Can we use that as an address ?
Yes - it means the duckling can tell that it is mommy calling
and ignore all other distractions.
More on this at IIT RTC conference in October…
@steely_glint - Westhawk Ltd
Javascript walkthrough
Dummy offer to find it at start-up
Phono.sdp.js parse SDP to extract fingerprint
(open source - thanks tropo)
Ipseorama to set up DataChannel
via Fingersmith
generateCertificate + IndexDB to make firefox use
stable identity
@steely_glint - Westhawk Ltd
Device Code options
Javascript
Use google’s webrtc wrapped in node
C/C++
Use Janus codebase etc….
Java
DIY
@steely_glint - Westhawk Ltd
Yep, you guessed it,
I took the Java way.
STUN/TURN/ICE
Ice4j - Jitsi
DTLS
BouncyCastle - Tropo (now Cisco)
SCTP/DCEP
in progress….
@steely_glint - Westhawk Ltd
Demo on Beaglebone
Think of it as an American Pi :-)
Typical of future devices
Small footprint
Low power
Linux
ARM (see Intel Edison)
@steely_glint - Westhawk Ltd
What, that’s not small enough
Arm 9
300Mhz
64 Mb
Linux
@steely_glint - Westhawk Ltd
Lego EV3
Lego EV3
Arm 9
300Mhz
64 Mb
Linux
LeJos Java ;-)
@steely_glint - Westhawk Ltd
Demo
@steely_glint - Westhawk Ltd
By using webRTC
data channel we have
Standardized
Secure
Widely deployed
Peer-to-Peer (NAT traversal)
Realtime
Strong on Identity management
Mobile capable (and smaller)
User-centric
tldr;
WebRTC isn’t just for video calls - it
can solve Internet of Everything
problems too.
Tim Panton - Protocol Droid - Westhawk Ltd
@steely_glint

More Related Content

Similar to Kranky geek15 - securing IoT with webrtc

Hacktivity 2016: The real risks of the IoT security-nightmare: Hacking IP cam...
Hacktivity 2016: The real risks of the IoT security-nightmare: Hacking IP cam...Hacktivity 2016: The real risks of the IoT security-nightmare: Hacking IP cam...
Hacktivity 2016: The real risks of the IoT security-nightmare: Hacking IP cam...
Zoltan Balazs
 

Similar to Kranky geek15 - securing IoT with webrtc (20)

10 voipmistakes
10 voipmistakes10 voipmistakes
10 voipmistakes
 
Case Studies and Lessons Learned from SSL/TLS Certificate Verification Vulner...
Case Studies and Lessons Learned from SSL/TLS Certificate Verification Vulner...Case Studies and Lessons Learned from SSL/TLS Certificate Verification Vulner...
Case Studies and Lessons Learned from SSL/TLS Certificate Verification Vulner...
 
HTTP/3 for everyone
HTTP/3 for everyoneHTTP/3 for everyone
HTTP/3 for everyone
 
Hello 1 2 3, can you see me now?
Hello 1 2 3, can you see me now?Hello 1 2 3, can you see me now?
Hello 1 2 3, can you see me now?
 
WebRTC Tutorial by Dean Bubley of Disruptive Analysis & Tim Panton of Westhaw...
WebRTC Tutorial by Dean Bubley of Disruptive Analysis & Tim Panton of Westhaw...WebRTC Tutorial by Dean Bubley of Disruptive Analysis & Tim Panton of Westhaw...
WebRTC Tutorial by Dean Bubley of Disruptive Analysis & Tim Panton of Westhaw...
 
D1 t1 t. yunusov k. nesterov - bootkit via sms
D1 t1   t. yunusov k. nesterov - bootkit via smsD1 t1   t. yunusov k. nesterov - bootkit via sms
D1 t1 t. yunusov k. nesterov - bootkit via sms
 
The year of the peer-to-peer web
The year of the peer-to-peer webThe year of the peer-to-peer web
The year of the peer-to-peer web
 
Architecture in Ajax Applications
Architecture in Ajax ApplicationsArchitecture in Ajax Applications
Architecture in Ajax Applications
 
Node summit workshop
Node summit workshopNode summit workshop
Node summit workshop
 
Morecrypto in the world of SIP - the Session Initiation Protocol
Morecrypto in the world of SIP - the Session Initiation ProtocolMorecrypto in the world of SIP - the Session Initiation Protocol
Morecrypto in the world of SIP - the Session Initiation Protocol
 
WebRTC Summit November 2013 - WebRTC Interoperability (and why it is important)
WebRTC Summit November 2013 - WebRTC Interoperability (and why it is important)WebRTC Summit November 2013 - WebRTC Interoperability (and why it is important)
WebRTC Summit November 2013 - WebRTC Interoperability (and why it is important)
 
WebRTC Reborn - Cloud Expo / WebRTC Summit
WebRTC Reborn - Cloud Expo / WebRTC SummitWebRTC Reborn - Cloud Expo / WebRTC Summit
WebRTC Reborn - Cloud Expo / WebRTC Summit
 
HTTPS: What, Why and How (SmashingConf Freiburg, Sep 2015)
HTTPS: What, Why and How (SmashingConf Freiburg, Sep 2015)HTTPS: What, Why and How (SmashingConf Freiburg, Sep 2015)
HTTPS: What, Why and How (SmashingConf Freiburg, Sep 2015)
 
WebRTC Reborn Hackference
WebRTC Reborn HackferenceWebRTC Reborn Hackference
WebRTC Reborn Hackference
 
HTTP/3 is next generation HTTP
HTTP/3 is next generation HTTPHTTP/3 is next generation HTTP
HTTP/3 is next generation HTTP
 
Hacktivity 2016: The real risks of the IoT security-nightmare: Hacking IP cam...
Hacktivity 2016: The real risks of the IoT security-nightmare: Hacking IP cam...Hacktivity 2016: The real risks of the IoT security-nightmare: Hacking IP cam...
Hacktivity 2016: The real risks of the IoT security-nightmare: Hacking IP cam...
 
Programming for the Internet of Things
Programming for the Internet of ThingsProgramming for the Internet of Things
Programming for the Internet of Things
 
Ethereum Devcon1 Report (summary writing)
Ethereum Devcon1 Report (summary writing)Ethereum Devcon1 Report (summary writing)
Ethereum Devcon1 Report (summary writing)
 
WebRTC Integration from Tim Panton
WebRTC Integration from Tim PantonWebRTC Integration from Tim Panton
WebRTC Integration from Tim Panton
 
WebRTC Reborn - Full Stack Toronto
WebRTC Reborn -  Full Stack TorontoWebRTC Reborn -  Full Stack Toronto
WebRTC Reborn - Full Stack Toronto
 

More from Tim Panton (6)

Putting the 'web' into webRTC
Putting the 'web' into webRTCPutting the 'web' into webRTC
Putting the 'web' into webRTC
 
Simple secure federated identity for webRTC (your new phone number)
Simple secure federated identity for webRTC (your new phone number)Simple secure federated identity for webRTC (your new phone number)
Simple secure federated identity for webRTC (your new phone number)
 
Ice with that sir? Or what webRTC does once it has a UDP connection
Ice with that sir? Or what webRTC does once it has a UDP connectionIce with that sir? Or what webRTC does once it has a UDP connection
Ice with that sir? Or what webRTC does once it has a UDP connection
 
Yo pet - building a webRTC app in 20 mins
Yo pet - building a webRTC app in 20 minsYo pet - building a webRTC app in 20 mins
Yo pet - building a webRTC app in 20 mins
 
Westhawk integration
Westhawk integrationWesthawk integration
Westhawk integration
 
WebRTC Standards overview.
WebRTC Standards overview.WebRTC Standards overview.
WebRTC Standards overview.
 

Recently uploaded

Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝
soniya singh
 
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...
Sheetaleventcompany
 
Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝
soniya singh
 
Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝
soniya singh
 

Recently uploaded (20)

Hot Call Girls |Delhi |Hauz Khas ☎ 9711199171 Book Your One night Stand
Hot Call Girls |Delhi |Hauz Khas ☎ 9711199171 Book Your One night StandHot Call Girls |Delhi |Hauz Khas ☎ 9711199171 Book Your One night Stand
Hot Call Girls |Delhi |Hauz Khas ☎ 9711199171 Book Your One night Stand
 
Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.
 
Russian Call girl in Ajman +971563133746 Ajman Call girl Service
Russian Call girl in Ajman +971563133746 Ajman Call girl ServiceRussian Call girl in Ajman +971563133746 Ajman Call girl Service
Russian Call girl in Ajman +971563133746 Ajman Call girl Service
 
(INDIRA) Call Girl Pune Call Now 8250077686 Pune Escorts 24x7
(INDIRA) Call Girl Pune Call Now 8250077686 Pune Escorts 24x7(INDIRA) Call Girl Pune Call Now 8250077686 Pune Escorts 24x7
(INDIRA) Call Girl Pune Call Now 8250077686 Pune Escorts 24x7
 
VIP Model Call Girls Hadapsar ( Pune ) Call ON 9905417584 Starting High Prof...
VIP Model Call Girls Hadapsar ( Pune ) Call ON 9905417584 Starting  High Prof...VIP Model Call Girls Hadapsar ( Pune ) Call ON 9905417584 Starting  High Prof...
VIP Model Call Girls Hadapsar ( Pune ) Call ON 9905417584 Starting High Prof...
 
2nd Solid Symposium: Solid Pods vs Personal Knowledge Graphs
2nd Solid Symposium: Solid Pods vs Personal Knowledge Graphs2nd Solid Symposium: Solid Pods vs Personal Knowledge Graphs
2nd Solid Symposium: Solid Pods vs Personal Knowledge Graphs
 
Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝
 
Pune Airport ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready...
Pune Airport ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready...Pune Airport ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready...
Pune Airport ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready...
 
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...
 
All Time Service Available Call Girls Mg Road 👌 ⏭️ 6378878445
All Time Service Available Call Girls Mg Road 👌 ⏭️ 6378878445All Time Service Available Call Girls Mg Road 👌 ⏭️ 6378878445
All Time Service Available Call Girls Mg Road 👌 ⏭️ 6378878445
 
Call Now ☎ 8264348440 !! Call Girls in Rani Bagh Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Rani Bagh Escort Service Delhi N.C.R.Call Now ☎ 8264348440 !! Call Girls in Rani Bagh Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Rani Bagh Escort Service Delhi N.C.R.
 
Al Barsha Night Partner +0567686026 Call Girls Dubai
Al Barsha Night Partner +0567686026 Call Girls  DubaiAl Barsha Night Partner +0567686026 Call Girls  Dubai
Al Barsha Night Partner +0567686026 Call Girls Dubai
 
𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...
𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...
𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...
 
Enjoy Night⚡Call Girls Dlf City Phase 3 Gurgaon >༒8448380779 Escort Service
Enjoy Night⚡Call Girls Dlf City Phase 3 Gurgaon >༒8448380779 Escort ServiceEnjoy Night⚡Call Girls Dlf City Phase 3 Gurgaon >༒8448380779 Escort Service
Enjoy Night⚡Call Girls Dlf City Phase 3 Gurgaon >༒8448380779 Escort Service
 
Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝
 
On Starlink, presented by Geoff Huston at NZNOG 2024
On Starlink, presented by Geoff Huston at NZNOG 2024On Starlink, presented by Geoff Huston at NZNOG 2024
On Starlink, presented by Geoff Huston at NZNOG 2024
 
Trump Diapers Over Dems t shirts Sweatshirt
Trump Diapers Over Dems t shirts SweatshirtTrump Diapers Over Dems t shirts Sweatshirt
Trump Diapers Over Dems t shirts Sweatshirt
 
Russian Call Girls in %(+971524965298 )# Call Girls in Dubai
Russian Call Girls in %(+971524965298  )#  Call Girls in DubaiRussian Call Girls in %(+971524965298  )#  Call Girls in Dubai
Russian Call Girls in %(+971524965298 )# Call Girls in Dubai
 
WhatsApp 📞 8448380779 ✅Call Girls In Mamura Sector 66 ( Noida)
WhatsApp 📞 8448380779 ✅Call Girls In Mamura Sector 66 ( Noida)WhatsApp 📞 8448380779 ✅Call Girls In Mamura Sector 66 ( Noida)
WhatsApp 📞 8448380779 ✅Call Girls In Mamura Sector 66 ( Noida)
 
Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝
 

Kranky geek15 - securing IoT with webrtc

  • 1. Building a different sort of WebRTC app Tim Panton - Protocol Droid - westhawk Ltd @steely_glint
  • 9. @steely_glint - Westhawk Ltd Ideal Internet of everything Protocol would be Standardized Secure Widely deployed Peer-to-Peer (NAT traversal) Realtime Strong on Identity management Mobile capable (and smaller) User-centric
  • 10. @steely_glint - Westhawk Ltd RTCweb Protocol is Standardized Secure Widely deployed Peer-to-Peer (NAT traversal) Realtime Strong on Identity management Mobile capable (and smaller) ? User-centric
  • 11. @steely_glint - Westhawk Ltd What we will build today Realtime Authenticated P2P communication Between a small device and a webRTC browser - using the DataChannel but no passwords.
  • 12. @steely_glint - Westhawk Ltd Components we need WebRTC (datachannel) app in my smartphone WebRTC (datachannel) embedded in a device WebRTC service for rendevous Some sort of pairing
  • 13. @steely_glint - Westhawk Ltd Components we will use Chrome on android (well Mac - for easy AV) Lightweight stack on device Simple websockets message hub (https://github.com/steely-glint/fingersmith) QRcode pairing
  • 14. @steely_glint - Westhawk Ltd Duckling protocol Described by Ross Anderson in 1990s Device trusts first thing it sees We flip this and the device shows QRcode Smartphone then calls this address First to connect claims ownership https://www.flickr.com/photos/bunnygoth/14021732859/
  • 15. Demo of QR using yoPet.us
  • 16. Code walk through of Fingersmith
  • 17. @steely_glint - Westhawk Ltd Which address token? WebRTC has no built in identity so … Random key Generated server side (like XMPP anon) Generated client side and asserted to service (As in Respoke, Twillio etc) Exchanged over QR code at ‘hatching’ Stored locally and reused for ‘life’
  • 18. @steely_glint - Westhawk Ltd But wait… Full disclosure: this is such a good idea I filed a patent on it Whats this fingerprint thing ? Hash of the x509 cert used in DTLS exchange Can we use that as an address ? Yes - it means the duckling can tell that it is mommy calling and ignore all other distractions. More on this at IIT RTC conference in October…
  • 19. @steely_glint - Westhawk Ltd Javascript walkthrough Dummy offer to find it at start-up Phono.sdp.js parse SDP to extract fingerprint (open source - thanks tropo) Ipseorama to set up DataChannel via Fingersmith generateCertificate + IndexDB to make firefox use stable identity
  • 20. @steely_glint - Westhawk Ltd Device Code options Javascript Use google’s webrtc wrapped in node C/C++ Use Janus codebase etc…. Java DIY
  • 21. @steely_glint - Westhawk Ltd Yep, you guessed it, I took the Java way. STUN/TURN/ICE Ice4j - Jitsi DTLS BouncyCastle - Tropo (now Cisco) SCTP/DCEP in progress….
  • 22. @steely_glint - Westhawk Ltd Demo on Beaglebone Think of it as an American Pi :-) Typical of future devices Small footprint Low power Linux ARM (see Intel Edison)
  • 23. @steely_glint - Westhawk Ltd What, that’s not small enough Arm 9 300Mhz 64 Mb Linux
  • 24. @steely_glint - Westhawk Ltd Lego EV3 Lego EV3 Arm 9 300Mhz 64 Mb Linux LeJos Java ;-)
  • 26. @steely_glint - Westhawk Ltd By using webRTC data channel we have Standardized Secure Widely deployed Peer-to-Peer (NAT traversal) Realtime Strong on Identity management Mobile capable (and smaller) User-centric
  • 27. tldr; WebRTC isn’t just for video calls - it can solve Internet of Everything problems too. Tim Panton - Protocol Droid - Westhawk Ltd @steely_glint