1
On the security of security extensions for IP-based KNX networks
On the security of security extensions for IP-based KNX networks - - PowerPoint PPT Presentation
On the security of security extensions for IP-based KNX networks Aljosha Judmayer ajudmayer@sba-research.org ajudmayer@auto.tuwien.ac.at On the security of security extensions for IP-based KNX networks 1 SBA Research P1.1: Risk Management
1
On the security of security extensions for IP-based KNX networks
P1.1: Risk Management and Analysis P1.2: Secure BP Modeling, Simulation and Verifjcation P1.3: Computer Security Incident Response T eam P1.4: Awareness and E-Learning
Area 1 (GRC): Governance, Risk and Compliance
P2.1: Privacy Enhancing T echnologies P2.2: Enterprise Rights Management P2.3: Digital Preservation
Area 2 (DSP): Data Security and Privacy
P3.1: Malware Detection and Botnet Economics P3.2: Systems and Software Security P3.3: Digital Forensics
Area 3 (SCA): Secure Coding and Code Analysis
P4.1: Hardware Security and Difgerential Fault Analysis P4.2: Pervasive Computing P4.3: Network Security of the Future Internet
Area 4 (HNS): Hardware and Network Security
3
On the security of security extensions for IP-based KNX networks
– Lukas Krammer
– Wolfgang Kastner
4
On the security of security extensions for IP-based KNX networks
5
On the security of security extensions for IP-based KNX networks
–
publish KNX Systems specification
–
Develop the ETS (Engineering Tool Software)
6
On the security of security extensions for IP-based KNX networks
–
publish KNX Systems specification (first version 2002)
–
Develop the ETS (Engineering Tool Software)
systems
–
Twisted pair cable (TP1)
–
Ethernet (IP)
7
On the security of security extensions for IP-based KNX networks
– heating, ventilation and air conditioning (HVAC) – BUS networks
8
On the security of security extensions for IP-based KNX networks
– heating, ventilation and air conditioning (HVAC) – BUS networks
– security and safety stuff (e.g. alarm systems, access control
systems)
– remote management and stuff ... – >> connected to IP based networks << !!!111!
What can possibly go wrong?
9
On the security of security extensions for IP-based KNX networks
– heating, ventilation and air conditioning (HVAC) – BUS networks
– security and safety stuff (e.g. alarm systems, access control
systems)
– remote management and stuff ... – >> connected to IP based networks << !!!111!
What can possibly go wrong?
Source: http://laughingsquid.com/wp-content/uploads/tetris1_img6080.jpg
10
On the security of security extensions for IP-based KNX networks
11
On the security of security extensions for IP-based KNX networks
12
On the security of security extensions for IP-based KNX networks
13
On the security of security extensions for IP-based KNX networks
14
On the security of security extensions for IP-based KNX networks
15
On the security of security extensions for IP-based KNX networks
16
On the security of security extensions for IP-based KNX networks
17
On the security of security extensions for IP-based KNX networks
Source:https://www.auto.tuwien.ac.at/images/practicals/siemens_gamma_img_0515.jpg
18
On the security of security extensions for IP-based KNX networks
Backbone lv. Field lv.
19
On the security of security extensions for IP-based KNX networks
IP Backbone TP / Bus TP / Bus SAC SAC SAC SAC SAC SAC ICD ICD ICD MD
Sensors, Actuators, and Controller devices Interconnection devices Management devices (ETS)
MD
WAN
SAC
Backbone lv. Field lv.
20
On the security of security extensions for IP-based KNX networks
IP Backbone TP / Bus TP / Bus SAC SAC SAC SAC SAC SAC ICD ICD ICD MD
Sensors, Actuators, and Controller devices Interconnection devices Management devices (ETS)
MD
WAN
SAC
Backbone lv. Field lv.
KNX IP KNXnet/IP
21
On the security of security extensions for IP-based KNX networks
IP Backbone TP / Bus TP / Bus SAC SAC SAC SAC SAC SAC ICD ICD ICD MD C
Sensors, Actuators, and Controller devices Interconnection devices Management devices (ETS)
MD
WAN
USB
USB interface N 148/11 * USB interface to KNX bus * Connected to wiring by pressure contacts * eibd open source software
SAC
Backbone lv. Field lv.
22
On the security of security extensions for IP-based KNX networks
IP Backbone TP / Bus TP / Bus SAC SAC SAC SAC SAC SAC ICD ICD ICD MD C
Sensors, Actuators, and Controller devices Interconnection devices Management devices (ETS)
MD
WAN
USB
USB interface N 148/11 * USB interface to KNX bus * Connected to wiring by pressure contacts * eibd open source software
SAC
Backbone lv. Field lv.
* Eavesdrop * DoS * Inject * Identify (2^16 addresses)
23
On the security of security extensions for IP-based KNX networks
$ eibd --listen-local=/tmp/eibhandle -t1023 usb:2:4:1:0:0 $ vbusmonitor1 local:/tmp/eibhandle
$ groupswrite local:/tmp/eibhandle 1/1/5 1
$ mread local:/tmp/eibhandle AA04 116 100 09 AA 04 09 00 09 01 09 02 09 03 09 04 09 05 0B 00 0B 02 FE 20 01 00 FE 01 FE 02 FE 03 02 04 FE 05 FE 06 FE 07 03 08 FE 09 FE 0A FE 0B 04 0C FE 0D FE
24
On the security of security extensions for IP-based KNX networks
$ eibd --listen-local=/tmp/eibhandle -t1023 usb:2:4:1:0:0 $ vbusmonitor1 local:/tmp/eibhandle
$ groupswrite local:/tmp/eibhandle 1/1/5 1
$ mread local:/tmp/eibhandle AA04 116 100 09 AA 04 09 00 09 01 09 02 09 03 09 04 09 05 0B 00 0B 02 FE 20 01 00 FE 01 FE 02 FE 03 02 04 FE 05 FE 06 FE 07 03 08 FE 09 FE 0A FE 0B 04 0C FE 0D FE
25
On the security of security extensions for IP-based KNX networks
$ eibd --listen-local=/tmp/eibhandle -t1023 usb:2:4:1:0:0 $ vbusmonitor1 local:/tmp/eibhandle
$ groupswrite local:/tmp/eibhandle 1/1/5 1
$ mread local:/tmp/eibhandle AA04 116 100 09 AA 04 09 00 09 01 09 02 09 03 09 04 09 05 0B 00 0B 02 FE 20 01 00 FE 01 FE 02 FE 03 02 04 FE 05 FE 06 FE 07 03 08 FE 09 FE 0A FE 0B 04 0C FE 0D FE
Group addr.
1/1/0
26
On the security of security extensions for IP-based KNX networks
IP Backbone TP / Bus TP / Bus SAC SAC SAC SAC SAC SAC ICD ICD ICD MD
Sensors, Actuators, and Controller devices Interconnection devices Management devices (ETS)
MD
WAN
USB
USB interface N 148/11 * USB interface to KNX bus * Connected to wiring by pressure contacts * eibd open source software
SAC * Eavesdrop * Identify (2^16 addresses) * Inject * DoS * tcpdump * tcpreplay * IGMP
Backbone lv. Field lv.
27
On the security of security extensions for IP-based KNX networks
0000 01 00 5e 00 17 0c 00 0e 8c 00 8a fa 08 00 45 00 0010 00 2d 00 7e 40 00 10 11 b2 8b c0 a8 00 02 e0 00 0020 17 0c 0e 57 0e 57 00 19 05 01 06 10 05 30 00 11 0030 29 00 bc f0 aa 0f 09 04 01 00 81 81
$ tcpdump -nnvvXSw switchon.cap udp port 3671 $ tcpreplay -i eth0 -v switchon.cap
28
On the security of security extensions for IP-based KNX networks
IP Backbone TP / Bus TP / Bus SAC SAC SAC SAC SAC SAC ICD ICD ICD MD C
Sensors, Actuators, and Controller devices Interconnection devices Management devices (ETS)
MD
WAN
USB
USB interface N 148/11 * USB interface to KNX bus * Connected to wiring by pressure contacts * eibd open source software
SAC
IP Controller N 350E * Scheduler & timer * TIME protocol (RFC 868)
* Eavesdrop * Identify (2^16 addresses) * Inject * DoS * IGMP * tcpdump * tcpreplay
Backbone lv. Field lv.
29
On the security of security extensions for IP-based KNX networks
IP Backbone TP / Bus TP / Bus SAC SAC SAC SAC SAC SAC ICD ICD ICD MD C
Sensors, Actuators, and Controller devices Interconnection devices Management devices (ETS)
MD
WAN
USB
USB interface N 148/11 * USB interface to KNX bus * Connected to wiring by pressure contacts * eibd open source software
SAC
IP Controller N 350E * Scheduler & timer * TIME protocol (RFC 868)
* Eavesdrop * Identify (2^16 addresses) * Inject * DoS * IGMP * tcpdump * tcpreplay * fuzzer (scapy) * ...
Backbone lv. Field lv.
30
On the security of security extensions for IP-based KNX networks
31
On the security of security extensions for IP-based KNX networks
32
On the security of security extensions for IP-based KNX networks
33
On the security of security extensions for IP-based KNX networks
34
On the security of security extensions for IP-based KNX networks
– Custom version of CCM (CTR + CBC-MAC) – AES block cipher
– Custom protocol – ECDH + Custom version of CCM – AES block cipher
35
On the security of security extensions for IP-based KNX networks
IP Backbone using KNXnet/IP Secure TP / Bus TP / Bus SAC SAC SAC SAC SAC SAC ICD ICD MD
Sensors, Actuators, and Controller devices Management devices (ETS)
ICD
Interconnection devices
TP / Bus
36
On the security of security extensions for IP-based KNX networks
IP Backbone using KNXnet/IP Secure TP / Bus TP / Bus SAC SAC SAC SAC SAC SAC ICD ICD MD
Sensors, Actuators, and Controller devices Management devices (ETS)
ICD
Interconnection devices
TP / Bus Still possible: * Eavesdrop * Inject * DoS
37
On the security of security extensions for IP-based KNX networks
IP Backbone using KNXnet/IP Secure TP / Bus TP / Bus SAC SAC SAC SAC SAC SAC ICD ICD MD
Sensors, Actuators, and Controller devices Management devices (ETS)
ICD
Interconnection devices
TP / Bus
Unicast
38
On the security of security extensions for IP-based KNX networks
IP Backbone using KNXnet/IP Secure TP / Bus TP / Bus SAC SAC SAC SAC SAC SAC ICD ICD MD
Sensors, Actuators, and Controller devices Management devices (ETS)
ICD
Interconnection devices
TP / Bus
Multicast
39
On the security of security extensions for IP-based KNX networks
IP Backbone using KNXnet/IP Secure TP / Bus TP / Bus SAC SAC SAC SAC SAC SAC ICD ICD MD
Sensors, Actuators, and Controller devices Management devices (ETS)
ICD
Interconnection devices
TP / Bus
* No forward secrecy * No non-repudiation
40
On the security of security extensions for IP-based KNX networks
IP Backbone using KNXnet/IP Secure TP / Bus TP / Bus SAC SAC SAC SAC SAC SAC ICD ICD MD
Sensors, Actuators, and Controller devices Management devices (ETS)
ICD
Interconnection devices
TP / Bus
* Compromise ICD
=> extract key information => impersonate this ICD => compromise group => reconfigure other ICD hash used as a pwd !
41
On the security of security extensions for IP-based KNX networks
IP Backbone using KNXnet/IP Secure TP / Bus TP / Bus SAC SAC SAC SAC SAC SAC ICD ICD MD
Sensors, Actuators, and Controller devices Management devices (ETS)
ICD
Interconnection devices
TP / Bus
42
On the security of security extensions for IP-based KNX networks
IP Backbone using KNXnet/IP Secure TP / Bus TP / Bus SAC SAC SAC SAC SAC SAC ICD ICD MD
Sensors, Actuators, and Controller devices Management devices (ETS)
ICD
Interconnection devices
TP / Bus
43
On the security of security extensions for IP-based KNX networks
44
On the security of security extensions for IP-based KNX networks
45
On the security of security extensions for IP-based KNX networks
46
On the security of security extensions for IP-based KNX networks
47
On the security of security extensions for IP-based KNX networks
48
On the security of security extensions for IP-based KNX networks
49
On the security of security extensions for IP-based KNX networks
50
On the security of security extensions for IP-based KNX networks
Property KNX KNXnet/IP Secure Authentication
~ / - Authorization
+ / - Non-repudiation
Integrity
+ / ~ Freshness
+ / ~ Confidentiality
+ / ~ Forward secrecy
+ / - Availability
51
On the security of security extensions for IP-based KNX networks