security and the internet of things (iot)

39
Security and the Internet of Things

Upload: jumping-bean

Post on 15-Apr-2017

853 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: Security and The Internet of Things (IoT)

Securityand the

Internet of Things

Page 3: Security and The Internet of Things (IoT)

Why IoT and Security?

Page 4: Security and The Internet of Things (IoT)

Several Factors came together:

1) Needed a plan for the next big thing,2) Needed a CCTV solution for the office,3) Needed it to be fun and interesting to talk

about

Page 5: Security and The Internet of Things (IoT)

My 3 Step “StartUp” Plan

Page 6: Security and The Internet of Things (IoT)

Step 1Find something to do with:

– Cloud, – Internet of Things – Security &– Big Data

Step 3Profit!

Page 7: Security and The Internet of Things (IoT)

The CCTV Project Plan

Page 8: Security and The Internet of Things (IoT)

1) Research CCTV cameras,2) Buy some cameras,3) Install cameras,4) Use ZoneMinder,5) Profit!

Page 9: Security and The Internet of Things (IoT)

● Pros– “Hassle Free”– No compatibility issues– Cheap

● Cons– No ZoneMinder!– Lock in, No source– Not easily hackable

● Lots of cheap CCTV camera solutions out there,● 4 – 8 Channels with DVR,● Everything comes in one kit,

Page 10: Security and The Internet of Things (IoT)

Analogue vs IP Cameras

Analogue Cameras● Pros

– Cheap,● Cons

– Low resolution,– Wall wart power supply,– Need video capture card

IP Cameras● Pros

– Use POE,

– High Resolution 1080p,

– No capture card

● Cons– Expensive,

– Requires POE switch

Page 11: Security and The Internet of Things (IoT)

Test Cameras

Page 12: Security and The Internet of Things (IoT)

Securi Pro Analogue Planet Dome IP

Page 13: Security and The Internet of Things (IoT)

ImpactVCB – Video Capture Card

Page 14: Security and The Internet of Things (IoT)

Installation

Page 15: Security and The Internet of Things (IoT)

● Didn't die figuring out the live and neutral wire!

● Internet said the black wire is always live. What does the internet know!

● Chose the red wire● I was right!

Page 16: Security and The Internet of Things (IoT)

Use ZoneMinder

Page 17: Security and The Internet of Things (IoT)

● Trouble free install on Ubuntu,● Analogue camera just worked,● IP Camera – needed to figure out the

undocumented stream URL

Page 19: Security and The Internet of Things (IoT)

Open Source Wins (again)

– ZoneMinder expandable,

– Configurable,– Hackable,– Source available– ZoneMinder is

awesome

Analogue Cameras:– Good for external

cameras. Who wants an ethernet cable dangling outside the office?

IP Cameras– Bit of a nightmare– Undocumented,– Insecure

Page 20: Security and The Internet of Things (IoT)

● Planet Hardware● Atrocious, I.E no, documentation and really

bad firmware (wasn't surprised.)● Browser app required ActiveX!

● Yay for Windows XP vm – used for tax and other unsavoury purposes.

● No documentation for stream URL!● Nada in web ui :(● Nada on the interwebs :`(

Page 21: Security and The Internet of Things (IoT)

What to do?

Page 22: Security and The Internet of Things (IoT)

●Duck-duck-go!●Run nmap and see what's open!

Page 23: Security and The Internet of Things (IoT)

● Duck-Duck-Go● There is a standards body that develops a

remote camera control API (ONVIF) Yay!● Its a SOAP based service :(● Planet claimed compliance Yay!

● Nmap - scary results23/tcp open telnet

80/tcp open http

554/tcp open rtsp

8080/tcp open Http-alt

16000/tcp open fmsas

68/udp open|filtered DHCP

3702/udp open|filtered WS-Discovery

5060/udp open|filtered SIP

Page 24: Security and The Internet of Things (IoT)

● 23 – Telnet – Can't access, shows login prompt,● 8080 – HTTP-Alt – Query to port 8080 with

SOAP browser plugin responds with wsdl!● 5060 – SIP – ?● Banner Grabbing – running ancient Boa http

server As of January 2006, Boa has the following limitations:● No access control features (HTTP Basic access

authentication, etc.)● No chroot option (planned)● No Server Side Includes (deemed incompatible with server

performance goals)● No SSL support although there are some patches against

0.94.13 that introduce SSL support

Page 26: Security and The Internet of Things (IoT)

● Different profiles for functionality● Got security designed in up-front● Planet implementation

● No SSL,● No password to query web service● Handy web method GetUsers→

● Returns users and plain text passwords,● Got rtsp URL with GetStreamURI YAY!● RTSP stream not encrypted!● No account lockout

Page 27: Security and The Internet of Things (IoT)

How to Fix?

Page 28: Security and The Internet of Things (IoT)

● Put DVR on own non-routable network or VLAN,● Don't use externally,

Page 29: Security and The Internet of Things (IoT)

WOW – Scary Stuff!

Page 33: Security and The Internet of Things (IoT)

Is it just Planet?

Page 34: Security and The Internet of Things (IoT)

● Vivotek Dome IP Camera● Has Wifi, ● Supports ONVIF,● Supports POE,

● HikVision Dome IP Camera● Supports ONVIF,● Support POE,● Support Wifi

22/tcp open ssh

80/tcp open http

554/tcp open rtsp

8000/tcp open unknown (uPnP)?

8200/tcp open Unknown (uPnP)?

3702/udp open|filtered ws-discovery

5353/udp open Multicast DNS

Page 35: Security and The Internet of Things (IoT)

● Hikvision– The Good

● Web interface support SSL,

● ONVIF web service protected by basic auth,

● Can upload SSL certificate,

● Can disable uPnP,

– The Bad● Support a cloud

service● Supports PPOE,● Supports Wifi,● Support FTP – built in

SD card slot for recording,

● Upnp on by default,● No SSL by default● Stream not encrypted!● No account lock out

Page 36: Security and The Internet of Things (IoT)

The Ugly● Huge attack

surface for a device directly exposed to the internet– Mobile app

Page 37: Security and The Internet of Things (IoT)

Owasp Top 10 IoT Project

Page 39: Security and The Internet of Things (IoT)

● WWW: www.JumpingBean.co.za● Twitter: @JumpingBeanSA● Trainings:

● Certified Ethical Hacker Training● JBoss Training