ZIGBEE SMART HOMES
TOBIAS ZILLNER
A HACKER’S OPEN HOUSE
ZIGBEE SMART HOMES A HACKERS OPEN HOUSE ZIGBEE SMART HOMES TOBIAS - - PowerPoint PPT Presentation
TOBIAS ZILLNER ZIGBEE SMART HOMES A HACKERS OPEN HOUSE ZIGBEE SMART HOMES TOBIAS ZILLNER ABOUT ME Senior IS Auditor @ Cognosec in Vienna Penetration Testing, Security Audits & Consulting IoT Security Research, Playing with
TOBIAS ZILLNER
A HACKER’S OPEN HOUSE
2
Consulting
automation system :D
ABOUT ME ZIGBEE SMART HOMES
3
ZIGBEE SMART HOMES
ZIGBEE SMART HOMES
ZIGBEE SMART HOMES
5
Based on IEEE 802.15.4 Low-cost Low-power Two-way Reliable Wireless
6
ZigBee Application Domains
Remote Control Building Automation Home Automation Health Care Smart Energy Retail Services Telecom Services ZIGBEE SMART HOMES
7
ZIGBEE SMART HOMES
http://www.zigbee.org/zigbee-in-space-xbee-rf-modules-launched-by-nasa/
8
ZIGBEE SMART HOMES
9
device will be part of IoT till 2019” 3
2022 1
1 http://www.gartner.com/newsroom/id/2839717 2 http://www.gartner.com/newsroom/id/2636073 3 http://www.heise.de/newsticker/meldung/CES-Internet-der-Dinge-komfortabel-
vernetzt-2512856.html
0.9 billion 26 billion 5,000,000,000 10,000,000,000 15,000,000,000 20,000,000,000 25,000,000,000 30,000,000,000 2009 2020
Number of IoT Devices
ZIGBEE SMART HOMES
ZIGBEE SMART HOMES
10
https://www.praetorian.com/iotmap/
11
ZIGBEE SMART HOMES
https://www.praetorian.com/iotmap/
12
ZIGBEE SMART HOMES
13
ZIGBEE SMART HOMES
14
privacy requirements
personalized data Items of interest will be located, identified, monitored, and remotely controlled through technologies such as radio- frequency identification, sensor networks, tiny embedded servers, and energy harvesters - all connected to the next- generation internet1
David Petraeus"
ZIGBEE SMART HOMES
ZIGBEE SMART HOMES
16
Symmetric Encryption Message Authentication Integrity Protection Replay Protection
AES-CCM* 128bit MIC 0 - 128 bit Frame Counter 4 Byte ZIGBEE SMART HOMES
17
"To avoid 'bugs' that an attacker can use to his advantage, it is crucial that security be well implemented and tested. […] Security services should be implemented and tested by security experts […]." (ZigBee Alliance 2008, p. 494)
ZIGBEE SMART HOMES
ZIGBEE SMART HOMES
18
all devices
between two devices
ZIGBEE SMART HOMES
19
Trust in the security is ultimately reduces to:
20
Preinstalled ¡Devices Key ¡Transport
recommended Key ¡Establishment
keys ZIGBEE SMART HOMES
ZIGBEE SMART HOMES
ZIGBEE SMART HOMES
22
Define communication between devices
Enable applications to
Startup Attribute Sets (SAS) provide interoperability and compatibility
ZIGBEE SMART HOMES
23
Default Trust Center Link Key
0x65 0x30 0x39
Use Default Link Key Join
at startup time.
ZIGBEE SMART HOMES
24
known as the ZLL key, which shall be stored in each ZLL device. All ZLL devices use the ZLL key to encrypt/decrypt the exchanged network key. “
with a safekeeping contract“
ZIGBEE SMART HOMES
25
ZIGBEE SMART HOMES
26
nwkAllFresh
Trust center link key
0x65 0x30 0x39
Use insecure join
ZIGBEE SMART HOMES
27
fallback
ZIGBEE EXPLOITED
ZIGBEE SMART HOMES
29
"The request-key service provides a secure means for a device to request the active network key, or an end-to-end application master key, from another device" (ZigBee Alliance 2008, p. 425)
ZIGBEE SMART HOMES
30
/** Remote device asked us for key. Application keys are not implemented. Send current network key. Not sure: send unsecured? What is meaning
Maybe, idea is that we can accept "previous" nwk key? Or encrypt by it? */
ZIGBEE SMART HOMES
31
/* Initiate unsecured key transfer. Not sure it is right, but I really have no ideas about request meaning
network key. */
32
ZIGBEE SMART HOMES
33
ALL tested systems only use the default TC Link Key for securing the initial key exchange No link keys are used or supported
No ZigBee security configuration possibilities available No key rotation applied
ZIGBEE SMART HOMES
34
Device reset often difficult
Light bulbs do not require physical interaction for pairing Workarounds like reduced transmission power are used to prevent pairing problems
ZIGBEE SMART HOMES
ZIGBEE EXPLOITED
ZIGBEE EXPLOITED
ZigBee security testing tool Target audience
Based on scapy-radio, µracoli and killerbee
https://github.com/Cognosec/SecBee
Raspbee USRP B210
ZIGBEE EXPLOITED
Provides features for testing of security services as well as weak security configuration and implementation
Raspbee USRP B210
communication
ZIGBEE SMART HOMES
38
Coordinator Coordinator End device End device
ACK ACK Data request DATA DATA
timeframe < 0.8ms
ZIGBEE SMART HOMES
ZIGBEE SMART HOMES
40
ZIGBEE EXPLOITED
41
ZIGBEE SMART HOMES
42
ZIGBEE SMART HOMES
43
So, the
… what would an attacker do?
44
45
It is not only about technology :D
ZIGBEE SMART HOMES
46
ZIGBEE SMART HOMES
ZIGBEE SMART HOMES
47
48
ZIGBEE SMART HOMES
ZIGBEE SMART HOMES
49
No physical access is required No knowledge of the secret key is needed Usability overrules security Fully compromised system
ZIGBEE EXPLOITED
51
ZIGBEE EXPLOITED
52
weaken the security level drastically
minimum to be compliant
ZIGBEE SMART HOMES
53
Compliance is not Security
ZIGBEE SMART HOMES
ZIGBEE EXPLOITED
54