iot and industry 4.0 (in-) security - ernw...machine communication using iot • connect embedded...

57
Dominik Schneider, Wojtek Przibylla | ERNW GmbH IoT and Industry 4.0 (In-) Security

Upload: others

Post on 13-Jun-2020

3 views

Category:

Documents


4 download

TRANSCRIPT

Page 1: IoT and Industry 4.0 (In-) Security - ERNW...Machine communication using IoT • Connect embedded systems and smart production facilities to generate a digital convergence between

Dominik Schneider, Wojtek Przibylla | ERNW GmbH

IoT and Industry 4.0 (In-) Security

Page 2: IoT and Industry 4.0 (In-) Security - ERNW...Machine communication using IoT • Connect embedded systems and smart production facilities to generate a digital convergence between

#whoarewe

Dominik Schneider, Pentester

Wojtek Przibylla, Pentester

Contact:

ERNW GmbH

Wojtek Przibylla

Carl-Bosch-Str. 4

69115 Heidelberg

Mail: [email protected], [email protected]

Page 3: IoT and Industry 4.0 (In-) Security - ERNW...Machine communication using IoT • Connect embedded systems and smart production facilities to generate a digital convergence between

Road Map

• History of Automation and IoT

• IoT and Industry 4.0

• Attacks in the wild

• Smart Homes

– KNX

• Conclusion

Page 4: IoT and Industry 4.0 (In-) Security - ERNW...Machine communication using IoT • Connect embedded systems and smart production facilities to generate a digital convergence between

Timeline of Automation and IoT

1832 1900 1980 1990 1996 1998 2002 2010 2015 2020

Remote controlled boat

Nikola Tesla 1832 Internet 1981 - 1993

European Installation Bus 1991

Internet of Things 1999

2nd Industrial Revolution 1870

Switchboards and

Telephone

1888

Google self driving car Year ???

June 1, 2004

1st Industrial

Revolution

3rd Industrial Revolution

Google Glass 2014

1990s

Smartphones 1994-1996

2011

Personal

Computer

1881

Smartmeter 2010

1712

1960

Page 5: IoT and Industry 4.0 (In-) Security - ERNW...Machine communication using IoT • Connect embedded systems and smart production facilities to generate a digital convergence between

Internet of Things

• “Internet of Things is the network of

physical objects that contain embedded

technology to communicate and sense

or interact with their internal states or

external environments.” Wikipedia

Page 6: IoT and Industry 4.0 (In-) Security - ERNW...Machine communication using IoT • Connect embedded systems and smart production facilities to generate a digital convergence between

• German initiative to create smart factories

• Attempt to computerize logistics and Machine-to-

Machine communication using IoT

• Connect embedded systems and smart production

facilities to generate a digital convergence between

industry, business and internal functions and processes.

Industry 4.0

Page 7: IoT and Industry 4.0 (In-) Security - ERNW...Machine communication using IoT • Connect embedded systems and smart production facilities to generate a digital convergence between

What are those things

Page 8: IoT and Industry 4.0 (In-) Security - ERNW...Machine communication using IoT • Connect embedded systems and smart production facilities to generate a digital convergence between

Abstract view

Sensor Layer

Communication Layer

Management Layer

Page 9: IoT and Industry 4.0 (In-) Security - ERNW...Machine communication using IoT • Connect embedded systems and smart production facilities to generate a digital convergence between

Technical view

Sensors

• Collect and process data to determine changes of the physical status

Communication

• Identify and track data of things

• Interconnect devices - RFID/Bluetooth/Wireless/Internet

Platforms / Providers

• Aggregate and control data / things

• Provide management interfaces / UI / APIs

Page 10: IoT and Industry 4.0 (In-) Security - ERNW...Machine communication using IoT • Connect embedded systems and smart production facilities to generate a digital convergence between

IoT in Numbers

• Gartner: 2020, 25 Billion Connected

"Things" Will Be in Use

Category 2013 2014 2015 2020

Automotive 96.0 189.6 372.3 3,511.1

Consumer 1,842.1 2,244.5 2.874.9 13,172.5

Generic

Business

395.2 479.4 623.9 5,158.6

Vertical

Business

698.7 836.5 1,009.4 3,164.4

Grand Total 3,032.0 3,750.0 4,880.6 25,006.6

Source:www.gartner.com/newsroom/id/2905717

Page 11: IoT and Industry 4.0 (In-) Security - ERNW...Machine communication using IoT • Connect embedded systems and smart production facilities to generate a digital convergence between

IoT in Numbers II

Page 12: IoT and Industry 4.0 (In-) Security - ERNW...Machine communication using IoT • Connect embedded systems and smart production facilities to generate a digital convergence between

Where does IoT already affect us?

• Industry / Science / Medical

– Supply chain management

– Factory automation

– Medical devices

– Solar installations

– Quality sensors

• Consumer market

– Mail and delivery

– Smart watches

– Smart car

– Smart homes

– Smart cities

• Military/Public Drones

Automatic weapons

Traffic sensors

Page 13: IoT and Industry 4.0 (In-) Security - ERNW...Machine communication using IoT • Connect embedded systems and smart production facilities to generate a digital convergence between

Where does IoT already affect us?

• Industry / Science / Medical:

– Supply chain management

– Factory automation

– Medical devices

– Solar installations

– Quality sensors

• Military/Public applications

– Drones

– Traffic sensors

– Face recognition

• Mail and delivery

• Smartwatches

• Smartcar – Connected Car

Page 14: IoT and Industry 4.0 (In-) Security - ERNW...Machine communication using IoT • Connect embedded systems and smart production facilities to generate a digital convergence between

Why is IoT so innovative/promising?

• Economic reasons: The price of sensors, processors, and networking has come way down. Since WiFi is now

widely deployed, it is relatively easy to add new networked devices to the home and office.”

– Market players see a great potential in IoT • New customers & markets

• “Make your life more comfortable”

• Mobile data plans are cheap

• IPv6 is enabling IoT

• M2M communication

– Intelligent production steps

• Almost unlimited usage scenarios…

Page 15: IoT and Industry 4.0 (In-) Security - ERNW...Machine communication using IoT • Connect embedded systems and smart production facilities to generate a digital convergence between

YOU

Internet Automation

IoT

Safety Privacy

Security

Page 16: IoT and Industry 4.0 (In-) Security - ERNW...Machine communication using IoT • Connect embedded systems and smart production facilities to generate a digital convergence between

What is wrong with IoT ?

• Spreading:

– You will have more than just one IoT device

increased attack surface

– Widely used software components

One bug affects several products

• Uniqueness:

– How to patch firmware ?

– Guaranteed interoperability ?

• Privacy:

– Who hast access to your “things” ?

– Where and how does all the data go ?

Page 17: IoT and Industry 4.0 (In-) Security - ERNW...Machine communication using IoT • Connect embedded systems and smart production facilities to generate a digital convergence between

Types of Deployment

• Requirement: Control via the Internet

– Some kind of gateway is required

1.Direct connection to the gateway

2.Connection to the gateway via a service

provider

– The device has to be registered at a vendor for

service consumption

Page 18: IoT and Industry 4.0 (In-) Security - ERNW...Machine communication using IoT • Connect embedded systems and smart production facilities to generate a digital convergence between

Potential attack surface

Page 19: IoT and Industry 4.0 (In-) Security - ERNW...Machine communication using IoT • Connect embedded systems and smart production facilities to generate a digital convergence between

Attacks in the wild I

Page 20: IoT and Industry 4.0 (In-) Security - ERNW...Machine communication using IoT • Connect embedded systems and smart production facilities to generate a digital convergence between

Attacks in the wild II

Page 21: IoT and Industry 4.0 (In-) Security - ERNW...Machine communication using IoT • Connect embedded systems and smart production facilities to generate a digital convergence between

Attacks in the wild III

Page 22: IoT and Industry 4.0 (In-) Security - ERNW...Machine communication using IoT • Connect embedded systems and smart production facilities to generate a digital convergence between

IoT Enabling Technologies

Source: Wikipedia

Protocol Power

Line

Radio-Frequency Data Rate Available

API?

Open Source

C-Bus no yes 3500 bit/s yes no

EnOcean no 902 MHz (North America) 9600 bit/s yes no

Insteon yes yes 13,165 bit/s yes no

KNX yes yes 9600 bit/s yes no

UPB yes no 480 bit/s no no

X10 yes

310 MHz (North America)

433 MHz (Europe)

20 bit/s yes no Sometimes

Zigbee no

2.4 GHz (worldwide)

915 MHz (Americas and Australia)

868 MHz (Europe)

20-250k bps yes no ?

Z-Wave no yes 250k bps yes no

Page 23: IoT and Industry 4.0 (In-) Security - ERNW...Machine communication using IoT • Connect embedded systems and smart production facilities to generate a digital convergence between

SMART HOME

Page 24: IoT and Industry 4.0 (In-) Security - ERNW...Machine communication using IoT • Connect embedded systems and smart production facilities to generate a digital convergence between

What is KNX?

• Technology for building home automation systems

• Developed in the 90‘s (back then known as EIB)

Advantages:

• Reduction of energy consumption and costs

• Huge amount of different devices

• Comfortable (controlling via Smartphone / Tablet / Browser)

Page 25: IoT and Industry 4.0 (In-) Security - ERNW...Machine communication using IoT • Connect embedded systems and smart production facilities to generate a digital convergence between

Some numbers

• Three-quarter of all smart

homes in Germany are

equipped with KNX (in

number 237k, increasing)

• In 2020 there will be an

expected number of one

million smart homes

Taken from: http://www.bitkom.org/files/documents/BITKOM-Praesentation_Smart_Home_in_Deutschland_18_12_2014_02.pdf

Page 26: IoT and Industry 4.0 (In-) Security - ERNW...Machine communication using IoT • Connect embedded systems and smart production facilities to generate a digital convergence between

Today

• More than 300 vendors are part of the

KNX Group

• Devices for nearly every scenario

• Widely used

Page 27: IoT and Industry 4.0 (In-) Security - ERNW...Machine communication using IoT • Connect embedded systems and smart production facilities to generate a digital convergence between

How it works

• Address range

– 0.0.0 to 15.15.255

Max ~ 64k devices

• Physical Address

– Every device has ist own

physical address

• Group Address

– Used to connect devices to

each other

– A device can be part of one

or more group addresses

Page 28: IoT and Industry 4.0 (In-) Security - ERNW...Machine communication using IoT • Connect embedded systems and smart production facilities to generate a digital convergence between

Bus system style

• All components are connected to each

other via the bus line

– Signal reaches all participants

Page 29: IoT and Industry 4.0 (In-) Security - ERNW...Machine communication using IoT • Connect embedded systems and smart production facilities to generate a digital convergence between

Communication types

• TP (Twisted Pair)

• Powerline

– Communication via Power Supply System

• KNX – RF

– 868 MHz

• KNXnet

– Communication via IP driven network

Page 30: IoT and Industry 4.0 (In-) Security - ERNW...Machine communication using IoT • Connect embedded systems and smart production facilities to generate a digital convergence between

Base components

• Power Supply

• Interface

(programming)

• Switch actuator

• Sensor

• Bus Line

Page 31: IoT and Industry 4.0 (In-) Security - ERNW...Machine communication using IoT • Connect embedded systems and smart production facilities to generate a digital convergence between

Smart?

Page 32: IoT and Industry 4.0 (In-) Security - ERNW...Machine communication using IoT • Connect embedded systems and smart production facilities to generate a digital convergence between

Web Interfaces

• Web application or app on

smartphone

• Hundreds of web interfaces

on the internet without

authentication

• Embedded webserver on

KNX devices

Page 33: IoT and Industry 4.0 (In-) Security - ERNW...Machine communication using IoT • Connect embedded systems and smart production facilities to generate a digital convergence between

How to find Smart Home Visualizations?

• Like always Just Google!

• Visit vendor website for testing visualizations online

– Use the gathered information for a more specific google

search

• Make use of specific Google search filters

– inurl, intitle, …

Page 34: IoT and Industry 4.0 (In-) Security - ERNW...Machine communication using IoT • Connect embedded systems and smart production facilities to generate a digital convergence between
Page 35: IoT and Industry 4.0 (In-) Security - ERNW...Machine communication using IoT • Connect embedded systems and smart production facilities to generate a digital convergence between

How to find Smart Home Systems?

• Again Just Google!

• „Hilton Mainz KNX“

Page 36: IoT and Industry 4.0 (In-) Security - ERNW...Machine communication using IoT • Connect embedded systems and smart production facilities to generate a digital convergence between

Smarthome Crawler

• Small Python Script with ~25 lines of Code

• Search is done via a specific URL pattern

• Required Time for /16 network about 8

Minutes with a Timeout of 0.5s

• Many Results especially on scanning static ip

address ranges ;)

Page 37: IoT and Industry 4.0 (In-) Security - ERNW...Machine communication using IoT • Connect embedded systems and smart production facilities to generate a digital convergence between

KNXnet/IP

• Ability to control the

installation via IP

driven network (e.g.

Smartphone)

• On top of UDP

Page 38: IoT and Industry 4.0 (In-) Security - ERNW...Machine communication using IoT • Connect embedded systems and smart production facilities to generate a digital convergence between

Nmap Script Scan

• knx-gateway-discover.nse

– Can discover multiple gateway

via one single packet

– Multicast

• knx-gateway-info.nse

– Identifies a KNX gateway on

UDP port 3671 by sending a

KNX Description Request

knx-gateway-info:

-- | Body:

-- | DIB_DEV_INFO:

-- | KNX address: 15.15.255

-- | Decive serial: 00ef2650065c

-- | Multicast address: 0.0.0.0

-- | Device friendly name: IP-Viewer

-- | DIB_SUPP_SVC_FAMILIES:

-- | KNXnet/IP Core version 1

-- | KNXnet/IP Device Management version 1

-- | KNXnet/IP Tunneling version 1

-- |_ KNXnet/IP Object Server version 1

nmap --script knx-gateway-discover -e eth0

Page 39: IoT and Industry 4.0 (In-) Security - ERNW...Machine communication using IoT • Connect embedded systems and smart production facilities to generate a digital convergence between

There are even bigger installations!

• Telekom Frankfurt

• LVM Versicherung Münster (14185 Devices)

• Deutsche Börse AG Frankfurt

• Flughafen Köln Bonn

• Max-Planck-Institut Greifswald (1112 Devices)

• Mittdeldeutscher Rundfunk Leipzig (4050 Devies)

• …

Page 40: IoT and Industry 4.0 (In-) Security - ERNW...Machine communication using IoT • Connect embedded systems and smart production facilities to generate a digital convergence between

The other side of the coin…

• Attack surface increases

• Web Visualizations contain common

web vulnerabilities

– XSS

– Stacktraces

– …

• Burglar 4.0

Page 41: IoT and Industry 4.0 (In-) Security - ERNW...Machine communication using IoT • Connect embedded systems and smart production facilities to generate a digital convergence between

Attack Scenario

• Is there a setup that the installation can be controlled by an

attacker remotely without visualization? – YES!

• Requirements: – Physical connection to the bus (KNXnet/IP interface)

– Software for sending and receiving KNXnet/IP packets (Raspberry Pi + eibd)

– Remote Connection (UMTS Stick)

– Power Supply for Raspberry Pi (Power Bank)

Page 42: IoT and Industry 4.0 (In-) Security - ERNW...Machine communication using IoT • Connect embedded systems and smart production facilities to generate a digital convergence between

Attack Setup

Page 43: IoT and Industry 4.0 (In-) Security - ERNW...Machine communication using IoT • Connect embedded systems and smart production facilities to generate a digital convergence between

DEMO TIME

Page 44: IoT and Industry 4.0 (In-) Security - ERNW...Machine communication using IoT • Connect embedded systems and smart production facilities to generate a digital convergence between

What about security on the bus ?

• Confidentiality?

• Integrity?

• Authentication?

Page 45: IoT and Industry 4.0 (In-) Security - ERNW...Machine communication using IoT • Connect embedded systems and smart production facilities to generate a digital convergence between

Quotations from the standard

• Für KNX war und ist das Thema Sicherheit von keiner großen

Bedeutung, da man für eine Verletzung der Sicherheit lokal Zugriff auf

das Netzwerk haben muss. Im Fall von KNX TP (EIB) und KNX PL

bedeutet das, dass man dafür sogar den physikalischen Zugriff auf die

Netzwerkkabel benötigt, was in fast allen Fällen unmöglich ist, da die

Kabel innerhalb des Gebäudes oder unter der Erde verlegt sind.

• Aus diesem Grund spielen Sicherheitsaspekte für KNX-Medien auf der

Feldebene eine untergeordnete Rolle.

• Es ist eher unwahrscheinlich, dass legitimierte Benutzer eines

Netzwerks über Mittel zum Abfangen und Entschlüsseln verfügen, um

KNXnet/IP anschließend zu verfälschen, ohne die KNX-Normen

intensiv studiert zu haben.

Page 46: IoT and Industry 4.0 (In-) Security - ERNW...Machine communication using IoT • Connect embedded systems and smart production facilities to generate a digital convergence between

How to secure this?

• No Bus to the outside

• Make use of bus line separation with line couplers

this requires a concept

• Ensure that the requirements in the KNX Security

Checklist are followed (KNX Association)

• Need for new specification

– Take a look at KNX secure devices!

Page 47: IoT and Industry 4.0 (In-) Security - ERNW...Machine communication using IoT • Connect embedded systems and smart production facilities to generate a digital convergence between

WHAT ELSE IS OUT THERE ?

After all these new kind of devices…

Page 48: IoT and Industry 4.0 (In-) Security - ERNW...Machine communication using IoT • Connect embedded systems and smart production facilities to generate a digital convergence between

EVA

„A Smarter Way to Shower“

• Messures the distance between

a person and the device.

• An App can be used to get

statistical information like water

consumption.

Page 49: IoT and Industry 4.0 (In-) Security - ERNW...Machine communication using IoT • Connect embedded systems and smart production facilities to generate a digital convergence between

Smart Garden

Page 50: IoT and Industry 4.0 (In-) Security - ERNW...Machine communication using IoT • Connect embedded systems and smart production facilities to generate a digital convergence between

Is there a connectivity problem?

Page 51: IoT and Industry 4.0 (In-) Security - ERNW...Machine communication using IoT • Connect embedded systems and smart production facilities to generate a digital convergence between

Samsung Smart Fridge

• Exposed Gmail passwords

– MitM Attack

– Unproper Certificate

Validation

– Logfiles of Google Calendar

Page 52: IoT and Industry 4.0 (In-) Security - ERNW...Machine communication using IoT • Connect embedded systems and smart production facilities to generate a digital convergence between

The Wink case

• Due to a problem on the

vendor site, the smart home

hubs stopped working

• All smart home devices

connected to the smart hub

also stopped working

Page 53: IoT and Industry 4.0 (In-) Security - ERNW...Machine communication using IoT • Connect embedded systems and smart production facilities to generate a digital convergence between

Qivicon outtage

Source: http://www.heise.de/newsticker/meldung/Deutsche-Telekom-Ausfall-des-Qivicon-Servers-legt-Smart-Homes-lahm-2832456.html

Page 54: IoT and Industry 4.0 (In-) Security - ERNW...Machine communication using IoT • Connect embedded systems and smart production facilities to generate a digital convergence between

News from IFA 2015

Page 55: IoT and Industry 4.0 (In-) Security - ERNW...Machine communication using IoT • Connect embedded systems and smart production facilities to generate a digital convergence between

Conclusion I

• Don’t put things on the internet that are not

properly secured for it.

• But nowadays and in the future more and

more devices will be reachbale via the

Internet

Page 56: IoT and Industry 4.0 (In-) Security - ERNW...Machine communication using IoT • Connect embedded systems and smart production facilities to generate a digital convergence between

Conclusion II

• We need user awareness

Does my shoe really need internet connectivity ?

• Smart devices will affect everybody

Even those who don’t use it

• Evaluate your deployment scenario

Make use of encryption and authentication

Page 57: IoT and Industry 4.0 (In-) Security - ERNW...Machine communication using IoT • Connect embedded systems and smart production facilities to generate a digital convergence between

Questions ?