SlideShare a Scribd company logo
IoT security is a nightmare. But
what is the real risk?
Camp++ 0x7e0
root@kali:~# whoami
Zoltán Balázs
root@kali:~# whoami
root@kali:~# whoami
I’m NOT a CEH
Creator of the Zombie Browser Toolkit
https://github.com/Z6543/ZombieBrowserPack
Creator of the HWFW Bypass tool
– Idea later(?) implemented by nation state attackers in Duqu 2.0
https://github.com/MRGEffitas/hwfwbypass
Creator of the Malware Analysis Sandbox Tester tool
https://github.com/MRGEffitas/Sandbox_tester
Invented the idea of encrypted exploit delivery via Diffie-Hellman key exchange,
to bypass exploit detection appliances
– Implemented by Angler and Nuclear exploit kit developers
https://www.mrg-effitas.com/generic-bypass-of-next-gen-intrusion-threat-breach-detection-systems/
How did I get into this?
I bought an IP camera
Found multiple high severity issues
Notified manufacturer, published blogpost
After one year, no patch available
The question is:
• Now what?
I wanted to solve this generic issue
Examples of terrible home IoT devices
– IP Camera
– Router
– Baby monitor
– Smart home
– Automated NAS ransomware
– Car hacked
Mandatory Shodan slide
https://www.shodan.io/search?query=nas
https://www.shodan.io/search?query=ipcam
Assumptions
For the next ~5-10 years, assume
– Your IoT device has horrible security holes
– It won’t receive any patches, ever
For the sake of this presentation, I assumed:
• The IoT device is not intentionally malicious
• Is not preloaded with malware
I know, I am an optimistic guy ¯_(ツ)_/¯
IoT Security Excuses
a.k.a #YOLOSEC
I am safe, I changed all IoT passwords
I am safe, I changed all IoT passwords
Vulnerabilities bypassing password protection
• Memory corruption issues (BoF, Format string, …)
• CSRF (later)
• Backdoor accounts
• Lack of brute-force protection
• …
I am safe, I regularly patch all of my IoT
devices
I am safe, I regularly patch all of my IoT
devices
Patches are late by years
Most IoT devices do not get a patch, EVER
Problems with direct IPv4 connection
If your IoT device has an Internet routable IPv4
address, without any firewall port filtering
Just prepare for apocalypse
Seriously, don’t do that
CCTV is OCTV today
The IoT device is only available in a
closed network
The IoT device is only available in a
closed network
(•_•)
<) )╯What
/ 
(•_•)
( (> The
/ 
(•_•)
<) )> fuck were you thinking???
/
The device is only exposed in my area
Physically nearby to open WiFi
The device is only exposed in my area
Physically nearby to open WiFi
The device is only exposed in my area
Smart rifle hacking – open WiFi
Full of FUD
– but still, interesting research based on the devices
you can expect to network connected
I am safe, home network, behind NAT
NAT is sneaky evil
Due to NAT:
• Users believe they are safe behind home router
NAT
• Developers created ways to connect devices behind
NAT, seamlessly
What could possibly go wrong?
https://youtu.be/v26BAlfWBm8
But, but NATs are good …
I am safe, home network, behind NAT
Think again
– UPNP
– IPv6
– Teredo
– Cloud
UPNP
IPv6
IPv6
Market for private IPv6
Timespan for private IPv6 addresses: ~1 day
ICMP means every device is reachable
• network stack hack possible
Predictable IPv6 addresses (mostly enterprise)
• ::0, ::1, ::2, ::service_port, ::IPv4, ::1000-::2000, ::100-::200, ::1.0-::1-2000,
::b00b:babe
Reverse DNS enumeration (mostly enterprise)- dnsrevenum6
Zone transfer … AXFR … (mostly enterprise)
DNSSEC chain walk (mostly enterprise)
DNS brute force (mostly enterprise) – dnsdict6
Recommended:
• Marc van Hauser: IPv6 insecurity revolutions
• THC IPv6
Teredo bubble
IPv4
Teredo client
1.
Teredo server
2.
Teredo NAT hole
IPv4 IPv6
Teredo client
Teredo relay
1.
2.
3.
4.
Teredo server
IPv6 peer
1ce:c01d:bee2:15:a5:900d:a5:11feFirewall
5.
2001:0000:53aa:064c:0055:6bbf:a67b:7887
Teredo in practice
According to a study by Arbor Networks, the 2008 adoption of IPv6 by µTorrent caused a
15-fold increase in IPv6 traffic across the Internet over a ten-month period.
IP camera cloud hack
IP camera cloud hack
This research is work in progress
– Lot of stuff to fine-tune, research
The camera has an Android app
The app can connect to the IP camera even when
it is behind NAT, no port forward
But how???
IoT security is a nightmare. But what is the real risk?
IoT security is a nightmare. But what is the real risk?
IoT security is a nightmare. But what is the real risk?
Demo time
I am safe, none of these apply, my home
network is Sup3rFirewalled
I am safe, none of these apply, my home
network is Sup3rFirewalled
uBlock demo
uBlock is like Adblock, just better
I use two browsers, one for Internet access
And the other, only use to access internal network
I am safe, I changed the network range
from default (192.168.0.0/24)
I am safe, I changed the network range
from default (192.168.0.0/24)
WebRTC (Web Real-Time Communication) is an API
definition … that supports browser-to-browser
applications for voice calling, video calling, and P2P file
sharing …
WebRTC + STUN
Natively supported in
• Chrome (2012)
• Firefox (2013)
• Opera 18 (2013)
• Edge 21 (2015)
• Blackberry
Not in Safari, mobile Chrome, IE
IoT security is a nightmare. But what is the real risk?
BeEF demo
Same-Origin Policy (SOP)
“a web browser permits scripts contained in a first
web page to access data in a second web page,
but only if both web pages have the same
origin”
Port, protocol and host has to be the same
Goal
• an ad on webmail won’t be able to access the e-
mails
DNS rebind attack
It is (was) possible to bypass browser same origin
policy
One public and one private IP address for a domain
• Use the public IP in first request, deliver malicious
script
• Use the private IP later, malicious script can access
private IP, and leak data
Cat and mouse game started in 1996
https://www.usenix.org/conference/usenixsecurity13
/technical-sessions/presentation/johns
Filet – o – firewall
https://github.com/filetofirewall/fof/
Attackers and motives
Script-kiddies: for fun, point-and-click tool, annoy, prank or
extort ordinary people.
Political activists: Not important, unless operated by government
Organized criminals: for profit. Physical presence or no physical
presence. NAS ransomware attacks. Smart homes hacked by
burglers, internet connected IP-cameras hijacked before
burglary, smart-cars stolen via unsecured WiFi, etc.
Nation-state attackers: “collect everything”. domestic or foreign
surveillance, track and profile people, direct surveillance
(audio, video).
Bonus - Advertisment industry: smart devices will be sold either
exclusively, or at a cheaper price, profit for advertisers, more
targeted ads to the people
IoT development guideline in a Utopia
Secure by design
Tested for security
Patch released if security issues are found
Current IoT development guideline in
reality
Secure by design
Tested for security
Patch released if security issues are found
Cheap
Be the first on the market
Linux (Busybox ?) embedded
Webserver or VNC embedded
IoT security is a nightmare. But what is the real risk?
IoT Risks
Lessons learned for home users
Disconnect power cord/remove batteries if IoT is not needed 7*24
Patch (if possible)
Change passwords to complex, non-reused passwords
Disable direct inbound connections (check router)
Disable UPnP (check router)
Filter IPv6 (inbound default deny a’la NAT)
Disable Teredo
Monitor for tunneling protocols
Prevent CSRF from browser (see uBlock slide)
Scan your home network for new devices (LAN, Bluetooth, new AP, Zigbee, IrDA, FM)
Dedicated network for IoT devices (use old Wi-Fi router)
Separate your guests from your IoT network
Disable WebRTC in browser (Chrome: WebRTC Network Limiter)
Disable cloud connection (on device and/or router/firewall)
Prevent DNS rebind attack – see next slide
Moar tips for home users
Private IP addresses can be filtered out of DNS
responses.
– External public DNS servers with this filtering
e.g. OpenDNS
– Local sysadmins can configure the organization's
local nameservers to block the resolution of external
names into internal IP addresses.
– DNS filtering in a firewall or daemon e.g. dnswall
Firefox NoScript ABE feature
“Smart devices will make our life easier”
Maybe in ~2100, but until then, it will make our
life a nightmare
My best advice: don’t buy IoT devices ;)
Lessons learned for IoT vendors
SDLC
Continuous security testing and bug bounties
Seamless auto-update
Opt-in cloud
Lessons learned for goverments
Follow Federal Trade Comission FTC – fine
vendors who put users at risk to maximize profit
https://www.ftc.gov/news-events/press-
releases/2016/02/asus-settles-ftc-charges-
insecure-home-routers-cloud-services-put
References, interesting links
Best IoT Talk ever! 115 batshit stupid things you can put on the internet in as fast
as I can go by Dan Tentler
https://www.youtube.com/watch?v=hMtu7vV_HmY
https://github.com/mandatoryprogrammer/sonar.js/tree/master
https://www.youtube.com/watch?v=34GtH4tghjA
https://jumpespjump.blogspot.com/2015/08/how-to-secure-your-home-
against.html
https://jumpespjump.blogspot.com/2015/09/how-i-hacked-my-ip-camera-and-
found.html
http://www.theverge.com/circuitbreaker/2016/7/12/12159766/internet-of-
things-iot-internet-of-shit-twitter
IoT security is a nightmare. But what is the real risk?
Hack the planet! One computer at a time
…
zoltan.balazs@mrg-effitas.com
https://hu.linkedin.com/in/zbalazs
Twitter – @zh4ck
www.slideshare.net/bz98
Greetz to @CrySySLab, @SpamAndHex
Thx to Attila Bartfai for the conversation starter
JumpESPJump.blogspot.com

More Related Content

PDF
Email edge security architecture EOP
PPTX
Fog computing
PPTX
Unit 3
PPTX
FOG COMPUTING
PDF
Deep Learning for Computer Vision: Medical Imaging (UPC 2016)
PPTX
basic concept of Cloud computing and its architecture
PPTX
Introduction to Analytics Cloud
PPTX
Kdd process
Email edge security architecture EOP
Fog computing
Unit 3
FOG COMPUTING
Deep Learning for Computer Vision: Medical Imaging (UPC 2016)
basic concept of Cloud computing and its architecture
Introduction to Analytics Cloud
Kdd process

What's hot (20)

PPT
Cloud Computing
PPTX
From machine learning to deepfakes - how AI is revolutionizing cybersecurity
PPTX
Fog Computing
PPTX
Disaster Recovery Using Azure Services
PPTX
클라우드네이티브 보안의 시작 테이텀CSPM 제품소개자료(Cloud Security Posture Management).pptx
PDF
AWS IAM Tutorial | Identity And Access Management (IAM) | AWS Training Videos...
PDF
왜 네이버클라우드플랫폼인가?(박기은 CTO) - 대구 Cloud Innovation summit
PPT
Virtualization in cloud computing ppt
PPTX
Cloud computing and data security
PPTX
Azure Cloud PPT
PDF
はじめての Elastic Beanstalk
PPTX
Green cloud computing
PDF
Introduction to AI Ethics
DOCX
الطـــالبة مشاعل العنزي ..الحوسبة السحابيهه
PPTX
Azure Site Recovery (ASR) for protection and migration from on prem
PPTX
Top 10 Application Problems
PPTX
Cloud computing intro
PPTX
Predict Breast Cancer using Deep Learning
PPTX
AWS Cloud Security
PDF
Introduction to Cloud | Cloud Computing Tutorial for Beginners | Cloud Certif...
Cloud Computing
From machine learning to deepfakes - how AI is revolutionizing cybersecurity
Fog Computing
Disaster Recovery Using Azure Services
클라우드네이티브 보안의 시작 테이텀CSPM 제품소개자료(Cloud Security Posture Management).pptx
AWS IAM Tutorial | Identity And Access Management (IAM) | AWS Training Videos...
왜 네이버클라우드플랫폼인가?(박기은 CTO) - 대구 Cloud Innovation summit
Virtualization in cloud computing ppt
Cloud computing and data security
Azure Cloud PPT
はじめての Elastic Beanstalk
Green cloud computing
Introduction to AI Ethics
الطـــالبة مشاعل العنزي ..الحوسبة السحابيهه
Azure Site Recovery (ASR) for protection and migration from on prem
Top 10 Application Problems
Cloud computing intro
Predict Breast Cancer using Deep Learning
AWS Cloud Security
Introduction to Cloud | Cloud Computing Tutorial for Beginners | Cloud Certif...
Ad

Viewers also liked (7)

PPTX
Ransomware - what is it, how to protect against it
PDF
How to hide your browser 0-days
PDF
Hacktivity 2016: The real risks of the IoT security-nightmare: Hacking IP cam...
PDF
DEFCON 22: Bypass firewalls, application white lists, secure remote desktops ...
PPTX
Sandbox detection: leak, abuse, test - Hacktivity 2015
PDF
Hacking Windows 95 #33c3
PPTX
Sandboxes
Ransomware - what is it, how to protect against it
How to hide your browser 0-days
Hacktivity 2016: The real risks of the IoT security-nightmare: Hacking IP cam...
DEFCON 22: Bypass firewalls, application white lists, secure remote desktops ...
Sandbox detection: leak, abuse, test - Hacktivity 2015
Hacking Windows 95 #33c3
Sandboxes
Ad

Similar to IoT security is a nightmare. But what is the real risk? (20)

PDF
The bad, the ugly and the weird about IoT
PPTX
The Internet of Fails - Mark Stanislav, Senior Security Consultant, Rapid7
PDF
Internet of Fails: Where IoT Has Gone Wrong and How We're Making it Right by ...
PDF
Internet of Things - Privacy and Security issues
PDF
WHITE PAPER▶ Insecurity in the Internet of Things
PPTX
Thought Leadership Webinar - Internet of things (IoT): The Next Cyber Securit...
DOCX
Addressing security and privacy in io t ecosystem v0.4
PDF
The Internet of Things: We've Got to Chat
PPTX
Security challenges for internet of things
PDF
IoT Hardware Teardown, Security Testing & Control Design
PPTX
IoT Security Briefing FBI 07 23-2017 final
PDF
This Time, It’s Personal: Why Security and the IoT Is Different
DOCX
IoT Vulnerability Analysis and IOT In security Controls
PDF
Privacy and Security in the Internet of Things / Конфиденциальность и безопас...
PDF
IoT_and_the_Impact_on_Security_Brian_Knopf_ISSA-OC_July-2014
PPTX
IoT Security Risks and Challenges
PPTX
Internet of Things (IoT) Security
PDF
The Sharp Increase in Unmasking of Obtrusion into Internet of Things (IoT) IP...
PPTX
IoT Security, Threats and Challenges By V.P.Prabhakaran
PDF
IoT – Breaking Bad
The bad, the ugly and the weird about IoT
The Internet of Fails - Mark Stanislav, Senior Security Consultant, Rapid7
Internet of Fails: Where IoT Has Gone Wrong and How We're Making it Right by ...
Internet of Things - Privacy and Security issues
WHITE PAPER▶ Insecurity in the Internet of Things
Thought Leadership Webinar - Internet of things (IoT): The Next Cyber Securit...
Addressing security and privacy in io t ecosystem v0.4
The Internet of Things: We've Got to Chat
Security challenges for internet of things
IoT Hardware Teardown, Security Testing & Control Design
IoT Security Briefing FBI 07 23-2017 final
This Time, It’s Personal: Why Security and the IoT Is Different
IoT Vulnerability Analysis and IOT In security Controls
Privacy and Security in the Internet of Things / Конфиденциальность и безопас...
IoT_and_the_Impact_on_Security_Brian_Knopf_ISSA-OC_July-2014
IoT Security Risks and Challenges
Internet of Things (IoT) Security
The Sharp Increase in Unmasking of Obtrusion into Internet of Things (IoT) IP...
IoT Security, Threats and Challenges By V.P.Prabhakaran
IoT – Breaking Bad

More from Zoltan Balazs (16)

PPTX
[ Hackersuli ] Privacy on the blockchain
PPTX
MLSEC 2020
PDF
Web3 + scams = It's a match
PDF
PPTX
How to hide your browser 0-day @ Disobey
PPTX
Explain Ethereum smart contract hacking like i am a five
PPTX
Test & Tea : ITSEC testing, manual vs automated
PPTX
Hacking with Remote Admin Tools (RAT)
PDF
[ENG] Hacktivity 2013 - Alice in eXploitland
PPTX
[ENG] OHM2013 - The Quest for the Client-Side Elixir Against Zombie Browsers -
PPTX
[HUN] Védtelen böngészők - Ethical Hacking
PDF
[ENG] Hacker halted 2012 - Zombie browsers, spiced with rootkit extensions
PDF
[ENG] Zombie browsers spiced with rootkit extensions - Hacktivity 2012
PPTX
[HUN] Zombi tűzróka, avagy mire képes egy rosszindulatú böngősző kiegészitő
PPT
[ENG] IPv6 shipworm + My little Windows domain pwnie
PPT
[HUN] Hacktivity2009 - M&M’s: Mafia & Malware’s
[ Hackersuli ] Privacy on the blockchain
MLSEC 2020
Web3 + scams = It's a match
How to hide your browser 0-day @ Disobey
Explain Ethereum smart contract hacking like i am a five
Test & Tea : ITSEC testing, manual vs automated
Hacking with Remote Admin Tools (RAT)
[ENG] Hacktivity 2013 - Alice in eXploitland
[ENG] OHM2013 - The Quest for the Client-Side Elixir Against Zombie Browsers -
[HUN] Védtelen böngészők - Ethical Hacking
[ENG] Hacker halted 2012 - Zombie browsers, spiced with rootkit extensions
[ENG] Zombie browsers spiced with rootkit extensions - Hacktivity 2012
[HUN] Zombi tűzróka, avagy mire képes egy rosszindulatú böngősző kiegészitő
[ENG] IPv6 shipworm + My little Windows domain pwnie
[HUN] Hacktivity2009 - M&M’s: Mafia & Malware’s

Recently uploaded (20)

PDF
RPKI Status Update, presented by Makito Lay at IDNOG 10
PPTX
Introduction to Information and Communication Technology
PPT
tcp ip networks nd ip layering assotred slides
PDF
Testing WebRTC applications at scale.pdf
PPTX
June-4-Sermon-Powerpoint.pptx USE THIS FOR YOUR MOTIVATION
DOCX
Unit-3 cyber security network security of internet system
PPTX
PptxGenJS_Demo_Chart_20250317130215833.pptx
PDF
SASE Traffic Flow - ZTNA Connector-1.pdf
PDF
Best Practices for Testing and Debugging Shopify Third-Party API Integrations...
PDF
💰 𝐔𝐊𝐓𝐈 𝐊𝐄𝐌𝐄𝐍𝐀𝐍𝐆𝐀𝐍 𝐊𝐈𝐏𝐄𝐑𝟒𝐃 𝐇𝐀𝐑𝐈 𝐈𝐍𝐈 𝟐𝟎𝟐𝟓 💰
PPTX
artificial intelligence overview of it and more
PDF
Decoding a Decade: 10 Years of Applied CTI Discipline
PDF
WebRTC in SignalWire - troubleshooting media negotiation
PDF
Automated vs Manual WooCommerce to Shopify Migration_ Pros & Cons.pdf
PPTX
innovation process that make everything different.pptx
PPTX
522797556-Unit-2-Temperature-measurement-1-1.pptx
PPT
Design_with_Watersergyerge45hrbgre4top (1).ppt
PPTX
Introduction about ICD -10 and ICD11 on 5.8.25.pptx
PPTX
Digital Literacy And Online Safety on internet
PDF
Unit-1 introduction to cyber security discuss about how to secure a system
RPKI Status Update, presented by Makito Lay at IDNOG 10
Introduction to Information and Communication Technology
tcp ip networks nd ip layering assotred slides
Testing WebRTC applications at scale.pdf
June-4-Sermon-Powerpoint.pptx USE THIS FOR YOUR MOTIVATION
Unit-3 cyber security network security of internet system
PptxGenJS_Demo_Chart_20250317130215833.pptx
SASE Traffic Flow - ZTNA Connector-1.pdf
Best Practices for Testing and Debugging Shopify Third-Party API Integrations...
💰 𝐔𝐊𝐓𝐈 𝐊𝐄𝐌𝐄𝐍𝐀𝐍𝐆𝐀𝐍 𝐊𝐈𝐏𝐄𝐑𝟒𝐃 𝐇𝐀𝐑𝐈 𝐈𝐍𝐈 𝟐𝟎𝟐𝟓 💰
artificial intelligence overview of it and more
Decoding a Decade: 10 Years of Applied CTI Discipline
WebRTC in SignalWire - troubleshooting media negotiation
Automated vs Manual WooCommerce to Shopify Migration_ Pros & Cons.pdf
innovation process that make everything different.pptx
522797556-Unit-2-Temperature-measurement-1-1.pptx
Design_with_Watersergyerge45hrbgre4top (1).ppt
Introduction about ICD -10 and ICD11 on 5.8.25.pptx
Digital Literacy And Online Safety on internet
Unit-1 introduction to cyber security discuss about how to secure a system

IoT security is a nightmare. But what is the real risk?

  • 1. IoT security is a nightmare. But what is the real risk? Camp++ 0x7e0
  • 4. root@kali:~# whoami I’m NOT a CEH Creator of the Zombie Browser Toolkit https://github.com/Z6543/ZombieBrowserPack Creator of the HWFW Bypass tool – Idea later(?) implemented by nation state attackers in Duqu 2.0 https://github.com/MRGEffitas/hwfwbypass Creator of the Malware Analysis Sandbox Tester tool https://github.com/MRGEffitas/Sandbox_tester Invented the idea of encrypted exploit delivery via Diffie-Hellman key exchange, to bypass exploit detection appliances – Implemented by Angler and Nuclear exploit kit developers https://www.mrg-effitas.com/generic-bypass-of-next-gen-intrusion-threat-breach-detection-systems/
  • 5. How did I get into this? I bought an IP camera Found multiple high severity issues Notified manufacturer, published blogpost After one year, no patch available The question is: • Now what? I wanted to solve this generic issue
  • 6. Examples of terrible home IoT devices – IP Camera – Router – Baby monitor – Smart home – Automated NAS ransomware – Car hacked
  • 8. Assumptions For the next ~5-10 years, assume – Your IoT device has horrible security holes – It won’t receive any patches, ever For the sake of this presentation, I assumed: • The IoT device is not intentionally malicious • Is not preloaded with malware I know, I am an optimistic guy ¯_(ツ)_/¯
  • 10. I am safe, I changed all IoT passwords
  • 11. I am safe, I changed all IoT passwords Vulnerabilities bypassing password protection • Memory corruption issues (BoF, Format string, …) • CSRF (later) • Backdoor accounts • Lack of brute-force protection • …
  • 12. I am safe, I regularly patch all of my IoT devices
  • 13. I am safe, I regularly patch all of my IoT devices Patches are late by years Most IoT devices do not get a patch, EVER
  • 14. Problems with direct IPv4 connection If your IoT device has an Internet routable IPv4 address, without any firewall port filtering Just prepare for apocalypse Seriously, don’t do that CCTV is OCTV today
  • 15. The IoT device is only available in a closed network
  • 16. The IoT device is only available in a closed network (•_•) <) )╯What / (•_•) ( (> The / (•_•) <) )> fuck were you thinking??? /
  • 17. The device is only exposed in my area Physically nearby to open WiFi
  • 18. The device is only exposed in my area Physically nearby to open WiFi
  • 19. The device is only exposed in my area Smart rifle hacking – open WiFi Full of FUD – but still, interesting research based on the devices you can expect to network connected
  • 20. I am safe, home network, behind NAT
  • 21. NAT is sneaky evil Due to NAT: • Users believe they are safe behind home router NAT • Developers created ways to connect devices behind NAT, seamlessly What could possibly go wrong? https://youtu.be/v26BAlfWBm8 But, but NATs are good …
  • 22. I am safe, home network, behind NAT Think again – UPNP – IPv6 – Teredo – Cloud
  • 23. UPNP
  • 24. IPv6
  • 25. IPv6 Market for private IPv6 Timespan for private IPv6 addresses: ~1 day ICMP means every device is reachable • network stack hack possible Predictable IPv6 addresses (mostly enterprise) • ::0, ::1, ::2, ::service_port, ::IPv4, ::1000-::2000, ::100-::200, ::1.0-::1-2000, ::b00b:babe Reverse DNS enumeration (mostly enterprise)- dnsrevenum6 Zone transfer … AXFR … (mostly enterprise) DNSSEC chain walk (mostly enterprise) DNS brute force (mostly enterprise) – dnsdict6 Recommended: • Marc van Hauser: IPv6 insecurity revolutions • THC IPv6
  • 27. Teredo NAT hole IPv4 IPv6 Teredo client Teredo relay 1. 2. 3. 4. Teredo server IPv6 peer 1ce:c01d:bee2:15:a5:900d:a5:11feFirewall 5. 2001:0000:53aa:064c:0055:6bbf:a67b:7887
  • 28. Teredo in practice According to a study by Arbor Networks, the 2008 adoption of IPv6 by µTorrent caused a 15-fold increase in IPv6 traffic across the Internet over a ten-month period.
  • 30. IP camera cloud hack This research is work in progress – Lot of stuff to fine-tune, research The camera has an Android app The app can connect to the IP camera even when it is behind NAT, no port forward But how???
  • 35. I am safe, none of these apply, my home network is Sup3rFirewalled
  • 36. I am safe, none of these apply, my home network is Sup3rFirewalled
  • 37. uBlock demo uBlock is like Adblock, just better I use two browsers, one for Internet access And the other, only use to access internal network
  • 38. I am safe, I changed the network range from default (192.168.0.0/24)
  • 39. I am safe, I changed the network range from default (192.168.0.0/24) WebRTC (Web Real-Time Communication) is an API definition … that supports browser-to-browser applications for voice calling, video calling, and P2P file sharing … WebRTC + STUN Natively supported in • Chrome (2012) • Firefox (2013) • Opera 18 (2013) • Edge 21 (2015) • Blackberry Not in Safari, mobile Chrome, IE
  • 42. Same-Origin Policy (SOP) “a web browser permits scripts contained in a first web page to access data in a second web page, but only if both web pages have the same origin” Port, protocol and host has to be the same Goal • an ad on webmail won’t be able to access the e- mails
  • 43. DNS rebind attack It is (was) possible to bypass browser same origin policy One public and one private IP address for a domain • Use the public IP in first request, deliver malicious script • Use the private IP later, malicious script can access private IP, and leak data Cat and mouse game started in 1996 https://www.usenix.org/conference/usenixsecurity13 /technical-sessions/presentation/johns
  • 44. Filet – o – firewall https://github.com/filetofirewall/fof/
  • 45. Attackers and motives Script-kiddies: for fun, point-and-click tool, annoy, prank or extort ordinary people. Political activists: Not important, unless operated by government Organized criminals: for profit. Physical presence or no physical presence. NAS ransomware attacks. Smart homes hacked by burglers, internet connected IP-cameras hijacked before burglary, smart-cars stolen via unsecured WiFi, etc. Nation-state attackers: “collect everything”. domestic or foreign surveillance, track and profile people, direct surveillance (audio, video). Bonus - Advertisment industry: smart devices will be sold either exclusively, or at a cheaper price, profit for advertisers, more targeted ads to the people
  • 46. IoT development guideline in a Utopia Secure by design Tested for security Patch released if security issues are found
  • 47. Current IoT development guideline in reality Secure by design Tested for security Patch released if security issues are found Cheap Be the first on the market Linux (Busybox ?) embedded Webserver or VNC embedded
  • 50. Lessons learned for home users Disconnect power cord/remove batteries if IoT is not needed 7*24 Patch (if possible) Change passwords to complex, non-reused passwords Disable direct inbound connections (check router) Disable UPnP (check router) Filter IPv6 (inbound default deny a’la NAT) Disable Teredo Monitor for tunneling protocols Prevent CSRF from browser (see uBlock slide) Scan your home network for new devices (LAN, Bluetooth, new AP, Zigbee, IrDA, FM) Dedicated network for IoT devices (use old Wi-Fi router) Separate your guests from your IoT network Disable WebRTC in browser (Chrome: WebRTC Network Limiter) Disable cloud connection (on device and/or router/firewall) Prevent DNS rebind attack – see next slide
  • 51. Moar tips for home users Private IP addresses can be filtered out of DNS responses. – External public DNS servers with this filtering e.g. OpenDNS – Local sysadmins can configure the organization's local nameservers to block the resolution of external names into internal IP addresses. – DNS filtering in a firewall or daemon e.g. dnswall Firefox NoScript ABE feature
  • 52. “Smart devices will make our life easier” Maybe in ~2100, but until then, it will make our life a nightmare
  • 53. My best advice: don’t buy IoT devices ;)
  • 54. Lessons learned for IoT vendors SDLC Continuous security testing and bug bounties Seamless auto-update Opt-in cloud
  • 55. Lessons learned for goverments Follow Federal Trade Comission FTC – fine vendors who put users at risk to maximize profit https://www.ftc.gov/news-events/press- releases/2016/02/asus-settles-ftc-charges- insecure-home-routers-cloud-services-put
  • 56. References, interesting links Best IoT Talk ever! 115 batshit stupid things you can put on the internet in as fast as I can go by Dan Tentler https://www.youtube.com/watch?v=hMtu7vV_HmY https://github.com/mandatoryprogrammer/sonar.js/tree/master https://www.youtube.com/watch?v=34GtH4tghjA https://jumpespjump.blogspot.com/2015/08/how-to-secure-your-home- against.html https://jumpespjump.blogspot.com/2015/09/how-i-hacked-my-ip-camera-and- found.html http://www.theverge.com/circuitbreaker/2016/7/12/12159766/internet-of- things-iot-internet-of-shit-twitter
  • 58. Hack the planet! One computer at a time … zoltan.balazs@mrg-effitas.com https://hu.linkedin.com/in/zbalazs Twitter – @zh4ck www.slideshare.net/bz98 Greetz to @CrySySLab, @SpamAndHex Thx to Attila Bartfai for the conversation starter JumpESPJump.blogspot.com