[00:00.000 --> 00:04.940] Welcome everybody. Thanks for being here. I'd like to start by saying that this is my [00:04.940 --> 00:11.420] first time at DEF CON, so I'm really happy to be here. And really happy to be able to [00:11.420 --> 00:18.160] talk to you. I know that the title is a little bit generic, Building the IoT in Smart Buildings, [00:18.160 --> 00:24.240] but that's intentional. That's because I want to take you through a journey of the research [00:24.240 --> 00:29.980] that we did in smart buildings that is culminating in, let's say, consumer-grade IoT devices [00:29.980 --> 00:35.200] in smart buildings. But it started with industrial protocols, with BACnet and all of that. And I'll [00:35.200 --> 00:41.400] take you through all of that by showing you some of the attacks that we developed. And that's the [00:41.400 --> 00:50.840] main focus of the talk today. But first, a little bit about me. So I have a bachelor's and a master's [00:50.840 --> 00:56.720] and PhD in computer science. So I have an academic background. I have more than five years now in [00:56.720 --> 01:02.020] security doing some pen testing and mostly academic research also. Right now I'm a senior [01:02.020 --> 01:09.740] researcher at Forescout and I do vulnerability research for OT and IoT environments and devices. [01:10.040 --> 01:14.460] And I also work with network monitoring and intrusion detection for OT and IoT. [01:15.120 --> 01:20.520] This presentation, of course, is not just my work. It's the result of more or less a couple of years [01:20.520 --> 01:26.340] of research with many collaborators at Forescout and also at the University of Eindhoven, where I [01:26.340 --> 01:32.960] used to work before. So just bear in mind that this is not something that only I did. [01:34.600 --> 01:41.920] So a little bit of motivation. Why are we talking about IoT in smart buildings and IoT in general? [01:41.920 --> 01:48.280] So what are the risks from IoT devices, right? So the number of devices in organizations is rapidly [01:48.280 --> 01:53.260] increasing and I think everybody is aware about that. The IoT has already grown a lot in the past [01:53.260 --> 02:00.220] decades and is expected to reach... the numbers vary there, but people say between 20, 30, up to [02:00.220 --> 02:07.520] 50 billion connected devices in the next few years. Those devices are mostly unmanaged. They [02:07.520 --> 02:12.680] come from different vendors. It's not just the usual IT world anymore where we had Windows and [02:12.680 --> 02:19.920] Linux and maybe macOS. So we have non-standard operating systems. We have a diversity of [02:20.480 --> 02:25.860] protocols. Many of them are insecure. There are infamous cases of insecure protocols in [02:26.300 --> 02:32.360] building automation. Some of these devices may dynamically connect to other devices. [02:32.400 --> 02:38.360] It could be inside or outside of the organization's network. And there's also another [02:38.360 --> 02:45.020] statistics there that by 2020, next year, more than 25% of identified attacks in enterprises [02:45.020 --> 02:50.460] will involve the IoT. This is a projection, but it's something that could happen, right? And [02:51.140 --> 02:57.880] there was this report released by Microsoft just last week about nation-state attackers using IoT [02:57.880 --> 03:06.000] devices to infiltrate in corporations, right? They're using printers and voice over IP phones [03:06.000 --> 03:12.960] and stuff like that and IP cameras mostly. But let's talk then about smart buildings. So smart [03:12.960 --> 03:21.380] buildings is one of the places where the IoT is rapidly proliferating. So in a smart building, [03:21.380 --> 03:26.900] we have several functions. We have lifts. We have surveillance systems. We have fire alarm systems. [03:26.900 --> 03:36.480] We have lighting systems, HVAC, so thermostats, fans. We have data centers that have to be cooled. [03:36.480 --> 03:41.460] We have surveillance rooms to control the surveillance systems. And all of these are [03:41.460 --> 03:49.720] connected to a network and connected to building controllers. And why would anybody [03:49.720 --> 03:53.440] attack smart buildings? Well, first of all, smart buildings are not just [03:54.640 --> 03:59.100] shopping malls or residential buildings or something like that. They could be very [03:59.100 --> 04:04.820] critical buildings like airports, data centers, hospitals, public spaces, even factories. We're [04:04.820 --> 04:11.180] talking about we're in the ICS village, right? So the factories that host the ICS devices can [04:11.180 --> 04:17.600] also be critical buildings that are smart buildings. These building automation systems [04:17.600 --> 04:23.240] and smart building networks are many times legacy systems. So some of those systems are [04:23.240 --> 04:29.960] decades old. There's many times no encryption, no authentication. It's the same story as in ICS. [04:30.600 --> 04:34.440] But what's happening nowadays is that connectivity is increasing, right? So there's an increasing [04:34.440 --> 04:40.600] attack surface. There are default protocols and open ports, default passwords, weak passwords [04:40.600 --> 04:46.580] used in these devices. And all of that creates a perfect storm, let's say, for attackers. [04:49.820 --> 04:55.940] So OT, IT, and IoT are all converging in smart buildings. So if you look at a typical smart [04:55.940 --> 05:01.920] building network, you have a management layer where you have workstations, you have IoT platforms, [05:01.920 --> 05:09.260] and you have building management workstations that are connected and used to manage all of [05:09.260 --> 05:13.600] the field devices and the controller devices and all of that. And then you have separate [05:14.160 --> 05:18.540] subsystems, right? You have, for instance, video surveillance with IP cameras and NVRs and [05:18.540 --> 05:23.980] displays. And then you have the access control systems with badge readers and door locks [05:24.980 --> 05:31.640] and access control, physical access control controllers. You have the HVAC system, you have [05:31.640 --> 05:38.540] the smart lighting system. And then you also have, in this whole scenario, the consumer-grade IoT [05:38.540 --> 05:48.100] entry. So you have IoT gateways, you have things like smart plugs, smart TVs, wearables. In hospitals [05:48.100 --> 05:53.020] you have medical devices, which many times are in the same networks as the building [05:53.020 --> 05:59.220] automation devices. You have other kinds of sensors and actuators and smart everything, basically. [06:00.300 --> 06:05.220] And although, we will see that later on, but although ideally these networks would not be [06:05.220 --> 06:10.400] just flat networks and things should be isolated and all of that, in many cases in practice what [06:10.400 --> 06:14.900] we do see is just a flat network where everything is able to communicate to everything else, [06:14.900 --> 06:22.780] which is an ideal scenario for an attack. So what is the focus of our research? [06:22.780 --> 06:26.500] So we wanted to study vulnerabilities and attacks in smart buildings. [06:28.680 --> 06:35.780] And there are many attacks, attack factors in smart buildings. And we were looking first at [06:35.780 --> 06:41.060] building automation systems of the legacy protocols and devices and then later on the [06:41.060 --> 06:46.120] consumer-grade IoT stuff. And then some of the attacks and areas that we imagined and some of [06:46.120 --> 06:51.460] the things that we implemented are, for instance, in HVAC changing the temperature set points to... [06:51.900 --> 06:57.840] I think there was a presentation before talking about BACnet and from the McAfee guys about BACnet [06:57.840 --> 07:04.920] and how you can change temperature set points and hack HVAC devices so that basically data [07:04.920 --> 07:13.180] centers are taken offline or in hospitals biological or medical material can suffer [07:13.180 --> 07:19.360] severe consequences. So you also have in the access control systems you can add or delete [07:19.360 --> 07:24.860] authorized users. In the surveillance system you can for instance delete or replay footage so that [07:24.860 --> 07:30.660] physical intrusions can happen. For the smart lighting systems you can switch lights [07:31.200 --> 07:37.780] on or off or continuously on and off and basically make them unusable. And for other IoT systems you [07:37.780 --> 07:41.660] can do things like denial of service, you can use them for information gathering, for pivoting in [07:41.660 --> 07:49.340] the network and all of that. So on the left-hand side there what you can see is the lab that we [07:49.340 --> 07:57.540] built for this research and you can see that there is a mix of legacy building automation stuff [07:57.540 --> 08:04.640] so workstations and industrial-grade building automation controllers using protocols like [08:04.640 --> 08:11.800] BACnet and Modbus and KNX and Lontoc and others. And you also have IP cameras and [08:11.800 --> 08:17.880] Philips Hue and Wi-Fi access points and stuff that are more consumer-grade IoT. [08:19.240 --> 08:24.840] So now I'll go through a list of attack scenarios and stuff that we implemented [08:25.660 --> 08:30.220] so that we can show some of these scenarios in practice what are their [08:30.220 --> 08:37.860] effects and how to achieve those things. So we started this as almost everybody who [08:37.860 --> 08:42.060] starts looking at smart buildings by looking at the BACnet protocol because it's really [08:42.060 --> 08:46.600] one of the major protocols used for interoperability in these systems. [08:46.600 --> 08:53.200] It's one of the most used protocols in building automation. Nowadays it's infamous [08:53.200 --> 08:58.360] because it's a clear text protocol, there's mostly no authentication. Because of that there are [08:58.360 --> 09:03.960] all the security threats. You can use it for reconnaissance, you can spoof devices, [09:03.960 --> 09:11.540] you can tamper with variables, for instance temperature set points or inputs and outputs [09:11.540 --> 09:18.140] and all that. You can do denial of service easily in many of these devices. So if you [09:18.140 --> 09:23.720] look at the right hand side there, it's one of the parts of the lab that I showed before. [09:23.720 --> 09:30.040] And the house there, the little dollhouse, is simulating a smart building where on the upper [09:30.040 --> 09:38.460] floor you have a motion sensor and a light and on the lower floor you have a thermostat and a fan. [09:38.460 --> 09:44.200] On the right hand side you can see a lot of devices there. There's a network switch [09:44.200 --> 09:49.340] and there's an HMI that's used to program the BACnet devices. And there's another [09:49.880 --> 09:55.580] touchscreen device which is actually a Raspberry Pi simulating an attacker. And then on top you [09:55.580 --> 10:02.160] can see some BACnet controllers. So the idea is that the usual functioning there is you have a [10:02.160 --> 10:08.620] temperature set point and then if the temperature ever goes above the set point the fan starts [10:08.620 --> 10:14.420] working and then if it lowers down the fan stops working and when there's a presence detected in [10:14.420 --> 10:26.680] the house the light goes off. But you can easily DOS the BACnet router which is the blue device in [10:26.680 --> 10:36.040] the middle there on the top and the effect that you have when you run a simple DOS so you're [10:36.040 --> 10:40.320] basically just flooding the device with many packets and you can see that the packets being [10:40.320 --> 10:46.560] sent there by the attacker and you will see that basically the router will stop working and then [10:46.560 --> 10:53.570] the error LED will go on and yeah that means that the device is not active anymore and then it [10:53.570 --> 10:57.870] It could be controlling the light, but it doesn't. So the light doesn't work anymore. [10:57.890 --> 11:01.610] So in this case, it's controlling the lights, but it could be controlling HVAC [11:01.610 --> 11:06.370] or any other of the subsystems that I mentioned before. [11:06.870 --> 11:10.590] So, OK, we can do that with using the BACnet protocol [11:10.590 --> 11:14.830] and with building automation devices, [11:14.830 --> 11:18.610] but then we wanted to look at another attack scenario, which is [11:18.610 --> 11:23.550] basically, OK, if we have many vulnerable devices, [11:23.550 --> 11:28.290] can we create a chain, an attack path, [11:28.290 --> 11:31.030] for instance, where a remote attacker could reach [11:31.350 --> 11:36.030] the devices that are actually controlling, for instance, the access control [11:37.170 --> 11:39.770] function in this case. So another thing we did [11:39.770 --> 11:43.630] in that lab, we did some vulnerability research, we disclosed [11:43.630 --> 11:47.450] some CVs, we found around, if I'm not mistaken, [11:47.450 --> 11:51.690] eight CVs, and most of them were actually related [11:51.690 --> 11:55.810] to the web applications running in these devices. So I think almost all of them had [11:56.750 --> 11:59.630] cross-site scripting and some of them had command [11:59.630 --> 12:03.750] injections. This is very common in this kind of environment. [12:03.750 --> 12:08.110] And we also found a buffer overflow that allowed for remote code execution. [12:08.430 --> 12:11.670] So we basically chained an attack [12:11.670 --> 12:15.070] where the steps are those on the bottom there. [12:15.070 --> 12:19.890] So first we gain access remotely using an IP camera, then we perform [12:19.890 --> 12:23.330] some lateral movement to the management workstation, then from there we [12:23.710 --> 12:27.930] move to the access control PLC using the buffer [12:27.930 --> 12:31.870] overflow. We execute our payload over there, and then the idea is [12:31.870 --> 12:34.810] to persist also in that. And that [12:35.630 --> 12:38.570] was achieved basically by [12:39.470 --> 12:44.730] exploiting mostly the access control PLC, [12:44.730 --> 12:47.790] which has a web application and a [12:47.790 --> 12:51.930] specific building automation framework, Java framework running on that, [12:51.930 --> 12:55.730] and runs on top of the QNX operating system. So once we have that [12:55.730 --> 12:59.710] buffer overflow, we can basically live off the land there [12:59.710 --> 13:03.570] on the device and use some of the devices on [13:03.570 --> 13:08.670] functions to upload our malware and persist. [13:09.030 --> 13:11.650] And then implement our final attack, which is to open [13:11.650 --> 13:15.050] or close doors depending on whether [13:16.510 --> 13:19.090] what we want to achieve. So for instance, [13:19.090 --> 13:23.130] here you can allow unauthorized people [13:23.130 --> 13:27.010] to access sensitive locations. Imagine that in a hospital or [13:27.010 --> 13:31.070] an airport or something like that. Or you could also not [13:31.070 --> 13:35.190] allow somebody to access a specific location. [13:35.190 --> 13:38.910] So for instance, you combine both attacks and you have [13:40.070 --> 13:43.130] an HVAC not working [13:43.130 --> 13:46.230] in the data center and then you lock the door and [13:46.910 --> 13:49.630] nobody can go in and fix the issue. [13:50.970 --> 13:55.070] So then we actually looked at how many of those devices can be found [13:55.070 --> 13:58.670] online. And this is data from last year, so this we did last year. [13:59.030 --> 14:03.250] And we saw around 23,000 devices of the [14:03.250 --> 14:07.250] ones, the same models that we were looking at in our [14:07.250 --> 14:11.450] research. And we saw that around 40% of those, almost 40% [14:11.450 --> 14:15.410] of those were vulnerable to the remote code execution [14:15.410 --> 14:19.630] the buffer overflow and the remote code execution that we found. [14:19.630 --> 14:23.410] So that means that there are more than the 9,000 [14:23.410 --> 14:27.290] devices available on the internet that's from Shodan that [14:27.290 --> 14:31.770] could be completely owned from the outside. [14:33.330 --> 14:35.330] So then we saw, okay, [14:35.330 --> 14:39.470] we have problems with the protocols, we have problems with [14:39.470 --> 14:43.110] the devices in the building automation side, right, [14:43.110 --> 14:47.410] in the older stuff, let's say. And we have a lot of those available [14:48.250 --> 14:51.430] online, but what we have, what we really can [14:51.430 --> 14:55.790] easily find online are IoT devices and consumer-grade IoT devices [14:55.790 --> 14:59.390] and smart cameras, for instance, and [15:00.590 --> 15:02.810] other such kind of devices. So [15:03.510 --> 15:07.350] we wanted to look at these IoT devices and what are the [15:07.350 --> 15:11.310] impacts that they have on smart buildings. So in this attack that I [15:11.310 --> 15:15.750] described now, we used the IP camera, for instance, as an entry point, [15:15.750 --> 15:19.290] but what else could we do with the IP camera, right, [15:19.290 --> 15:22.650] or with the lighting system and all the other systems that I described. [15:22.650 --> 15:27.270] So the next three scenarios are about the IoT in smart buildings. So our goal [15:27.270 --> 15:31.990] was to investigate the IoT protocols and devices used in a smart building. [15:32.090 --> 15:35.330] So some of the examples of, sorry, the protocols and [15:35.330 --> 15:38.810] devices that I'll be talking about in the next scenarios are [15:39.090 --> 15:43.290] RTP and RTSP for video surveillance, the Philips Hue smart light [15:43.290 --> 15:47.930] for the lighting system, and MQTT for the IoT system. [15:48.450 --> 15:51.170] And we divided our findings there in [15:51.170 --> 15:55.010] three categories. So things that we found on the field, so basically by [15:55.010 --> 15:59.130] talking to customers and partners and by looking at the networks [15:59.130 --> 16:03.350] of these customers. Things that we found on [16:03.350 --> 16:07.610] the web, mostly on Shodan, and things that we found on our lab. [16:07.610 --> 16:11.150] So the setup of the lab is, this is just a simplified version of the [16:11.770 --> 16:15.090] same figure that we had in the beginning. [16:15.350 --> 16:20.050] So we have the video surveillance system, the IoT system, and the smart lighting system. [16:21.830 --> 16:23.290] So let's talk about the [16:23.290 --> 16:27.550] findings on the field. So when we look at smart building networks [16:27.550 --> 16:30.390] with consumer-grade IoT devices, [16:30.390 --> 16:34.810] how are these networks configured in practice? [16:35.210 --> 16:38.430] First thing we realized is that many times these internal [16:38.430 --> 16:42.330] networks are not well segmented. So you do have one switch that [16:42.330 --> 16:46.570] has IP cameras and IT devices and [16:46.570 --> 16:50.290] OT and building automation and everything talking to each other [16:50.290 --> 16:54.430] not well segmented at all. So you have unwanted communication [16:54.430 --> 16:58.470] links between all these categories, right? IT, OT, [16:58.470 --> 17:01.770] IoT caused by, yeah, misconfigurations. [17:02.370 --> 17:06.250] There are many unwanted services and insecure protocols enabled [17:06.250 --> 17:10.510] so it's easy to find Telnet, FTP, UPnP, and [17:10.510 --> 17:14.350] many times the facility managers [17:14.350 --> 17:18.630] or the people who are managing those networks are not even aware that those things are [17:18.630 --> 17:21.410] activated because they come activated by default. [17:21.970 --> 17:26.970] The insecure protocols come activated by default and that's it. [17:26.970 --> 17:31.010] There are many times weak passwords to access devices. [17:31.110 --> 17:35.110] There are devices with known vulnerabilities and there's a lot of use [17:35.110 --> 17:38.950] of unencrypted traffic. So I already mentioned RTP and RTSP for [17:38.950 --> 17:43.190] the video streams and I'll talk about this in details. And you also have for instance [17:43.190 --> 17:47.070] HTTP and MQTT in clear text for IoT [17:47.070 --> 17:50.770] devices. So then what do we find on the web? [17:50.770 --> 17:55.070] So we were talking about the unencrypted protocols, right? So if we look at devices with clear text [17:55.070 --> 17:59.210] or RTSP on the web, we find more than [17:59.210 --> 18:02.590] 4.5 million devices and those are mostly IP cameras [18:02.590 --> 18:07.070] but there are also other devices that use this kind of protocol. If we look [18:07.070 --> 18:10.530] specifically for the Philips Hue, for instance, for the smart lighting system [18:10.880 --> 18:15.190] we found almost 10,000 devices online and if you look at [18:15.190 --> 18:18.930] clear text MQTT which is used for general IoT [18:18.930 --> 18:22.970] you have more than 75,000 devices. And these data are from [18:22.970 --> 18:26.950] this year actually, just from last month because this is one of the [18:26.950 --> 18:30.190] latest things that we have been looking at. [18:30.890 --> 18:35.050] So let's go in details in these three next attack scenarios, right? [18:36.890 --> 18:39.110] Just in general, what are the findings [18:39.110 --> 18:43.090] of the labs? So again, this is the lab [18:43.090 --> 18:47.090] that we had before. Now we have an internal attacker and [18:47.090 --> 18:50.590] what we want to achieve there is for the video surveillance we want to do [18:50.590 --> 18:54.810] footage replace or Hollywood style, you know, heist movie [18:54.810 --> 18:58.690] kind of scenario where you are showing one thing [18:58.690 --> 19:02.510] to the security operator but actually the camera is [19:02.510 --> 19:06.510] streaming something else so you can steal something from [19:06.510 --> 19:10.570] the bank. In the smart lighting system you can just [19:10.570 --> 19:14.350] basically cause a denial of service to [19:14.350 --> 19:18.550] make the lights go out or go on or [19:18.550 --> 19:22.090] on and off continuously. [19:22.870 --> 19:26.430] You can also use in the case of the Philips Hue or something that's interesting [19:26.430 --> 19:30.590] you can just reconfigure the platform to use that as a pivot point inside of the network [19:30.590 --> 19:33.830] and in the case of MQTT and IoT [19:35.050 --> 19:38.370] devices, you can use that for instance information gathering and [19:38.370 --> 19:42.090] denial of service and these are the attacks that we implemented. [19:42.090 --> 19:47.010] So for the attack scenario number three for the video surveillance system [19:47.010 --> 19:50.550] again this is just a simplified version of the other picture [19:50.550 --> 19:54.910] you have the IP cameras that are using RTP and RTSP to [19:54.910 --> 19:58.850] communicate with the network video recorder and the network video recorder is [19:58.850 --> 20:02.250] connected to the network switch and then you have a storage server and then local monitoring [20:02.250 --> 20:05.750] to look at the video being streamed. [20:06.470 --> 20:10.330] So what's the problem with RTSP and RTP? They are [20:10.820 --> 20:14.510] streaming protocols. One is usually over TCP [20:14.510 --> 20:18.490] the other one over UDP. One is to send the data, the other is to [20:18.490 --> 20:22.670] control the session basically. RTSP is very similar to [20:22.670 --> 20:26.150] HTTP and it's used to control the stream [20:26.750 --> 20:30.370] and it's basically mandatory to establish a session before [20:30.370 --> 20:34.570] you start streaming via RTP. And RTP is designed for [20:34.570 --> 20:38.530] real-time transfer of usually audio and video data. [20:38.530 --> 20:42.570] It's unidirectional from a server which is the camera to a client which is a network video [20:42.570 --> 20:46.610] recorder. And there are secure versions and you can [20:46.610 --> 20:50.310] use GLS for instance, but this is rarely [20:50.310 --> 20:54.490] used in practice. So what is the anatomy [20:54.490 --> 20:58.550] of an attack here? So because you are using these unencrypted protocols [20:58.550 --> 21:02.550] and you are internally in the network, you can just establish [21:02.690 --> 21:06.570] a man in the middle. If you drop the traffic and record the video footage, it's [21:06.570 --> 21:10.650] unencrypted, it's clear text. You can replace [21:13.090 --> 21:14.630] a heartbeat RTSP command [21:14.630 --> 21:18.530] usually it's a get param command with a teardown so you stop [21:18.530 --> 21:22.290] the connection between the camera and the NVR. And then you [21:22.290 --> 21:26.590] just basically tell the camera to stream somewhere else and then you start [21:26.590 --> 21:30.370] streaming your pre-recorded footage to the NVR. So you [21:30.370 --> 21:34.350] replay a pre-captured stream to the NVR. So in practice [21:34.350 --> 21:38.850] this is how it looks like. So you have the surveillance [21:38.850 --> 21:42.830] footage and this is what the camera is normally streaming. [21:42.970 --> 21:47.670] And then in the attacker machine you run Ethercap to do a man in the middle. [21:48.730 --> 21:49.990] So you select [21:50.710 --> 21:52.110] the hosts. [22:09.900 --> 22:13.480] And then we have another script which is actually recording [22:13.480 --> 22:17.980] the footage and replaying the pre-recorded footage [22:17.980 --> 22:20.580] when the session is stopped. [22:32.770 --> 22:34.070] Yeah, now basically [22:34.070 --> 22:36.730] the session with the camera has stopped. [22:39.530 --> 22:41.910] And then now we are [22:42.930 --> 22:46.490] replaying something that was captured before. And then on the bigger screen [22:46.490 --> 22:49.870] you can see what is actually going on and on the smaller screen you can see [22:49.870 --> 22:53.950] what the security operator or the surveillance guard would [22:53.950 --> 22:55.670] be looking at. [22:55.670 --> 22:56.530] Right? [22:58.750 --> 23:03.290] So this is another attack scenario, attacking the Philips Hue. [23:03.410 --> 23:07.450] And the Philips Hue is interesting because it's a very common IoT device [23:07.450 --> 23:11.370] which until last year didn't support HTTPS at all. [23:11.370 --> 23:15.610] It was only supporting HTTP. And a lot of people [23:15.610 --> 23:20.450] knew about that and it was very easy to attack a Philips Hue. [23:20.450 --> 23:23.530] And they issued a former [23:23.530 --> 23:27.290] update last year. But basically what is used to [23:28.370 --> 23:31.370] validate your communication with the Hue is [23:33.090 --> 23:35.430] a token, an authorization token [23:35.430 --> 23:39.630] and that can be just sniffed also from the network because it's in clear text. [23:39.630 --> 23:43.990] And then an attacker can just control the camera, right? So you just send a [23:43.990 --> 23:48.610] put request there for the state of the camera so you can do on or [23:48.610 --> 23:51.650] off. And then the... I just saw [23:51.650 --> 23:55.390] that I have like three minutes left so I'll run through the slides. So you can [23:56.270 --> 23:59.930] just switch the lights on or off and then as a result [23:59.930 --> 24:03.370] you can have something like this, right? So it's basically the light is [24:03.370 --> 24:07.630] completely unusable. So the last [24:07.630 --> 24:11.130] attack scenario that you have is MQTT which is a publish [24:12.690 --> 24:15.990] subscribe protocol used for IoT devices [24:15.990 --> 24:19.930] where you have a broker that coordinates [24:19.930 --> 24:23.670] the communication between a set of publishers and subscribers. And that's used to [24:25.730 --> 24:28.430] exchange sensory information, [24:28.430 --> 24:32.690] telemetry information and also to issue commands to some devices. [24:32.770 --> 24:36.010] And again, it's usually used in clear text so you can [24:36.010 --> 24:39.850] just passively sniff the traffic or you can subscribe to some topics [24:39.850 --> 24:43.710] and you can use that for information gathering to understand [24:43.710 --> 24:47.990] the devices that are in the network. You can subscribe to wild card topics [24:47.990 --> 24:52.450] so you can see basically every topic that a broker is handling. [24:53.450 --> 24:56.050] It's very easy to do denial of service also [24:56.050 --> 25:00.050] because you have quality of service that can be increased [25:00.050 --> 25:04.070] so you amplify the attack with the responses that [25:04.070 --> 25:07.930] are required and you can use very heavy payloads. [25:09.310 --> 25:12.070] It's a very common protocol in IoT [25:12.070 --> 25:16.530] but again if used insecurely it's very easy to attack it. [25:17.990 --> 25:20.370] So with all this in mind, [25:20.370 --> 25:23.730] with all these scenarios of attacks, let's very quickly talk about [25:23.730 --> 25:26.830] defending the IoT. So the things that we [25:28.110 --> 25:31.990] should do so that those attacks are mitigated or [25:32.310 --> 25:36.170] cannot happen. So the first thing is that we need network visibility so you need to know [25:36.170 --> 25:38.730] what devices are on the network so that you can [25:40.070 --> 25:44.170] know if they are vulnerable or not or what kinds of protocols they are talking [25:44.910 --> 25:48.410] what devices are communicating to what other devices and so on [25:49.490 --> 25:51.970] which allows you to do proper asset management [25:51.970 --> 25:55.730] so proper configuration and patching of the devices. [25:55.870 --> 25:59.590] Network segmentation is extremely important so you can isolate problems [26:00.170 --> 26:04.110] and reduce the attack surface. Sometimes there are devices that are [26:04.110 --> 26:07.890] difficult to patch so at least they should be segmented. [26:08.770 --> 26:12.510] And as a last point, network monitoring and intrusion detection. [26:12.510 --> 26:16.330] You should basically know what's going on at the network [26:16.330 --> 26:20.090] in real time and be able to spot anomalies and [26:20.090 --> 26:24.590] attacks happening. So more details about [26:24.590 --> 26:27.230] these attacks and about the defenses and all of that are in [26:28.170 --> 26:32.350] four papers that we have over there. The first [26:32.350 --> 26:36.070] the top two papers are actually academic publications [26:36.810 --> 26:39.450] and they deal mostly with the BACnet stuff [26:39.450 --> 26:43.490] and they deal mostly actually with the defensive side [26:43.490 --> 26:47.670] so how to do intrusion detection for BACnet but we also describe [26:47.670 --> 26:51.710] the attacks. And the two white papers in the bottom [26:51.710 --> 26:55.910] are commercial white papers so they describe [26:56.990 --> 26:59.770] most of these attacks and areas that I showed here [26:59.770 --> 27:03.530] and also a little bit about defense. [27:04.950 --> 27:08.050] So what are the key takeaways from this talk? [27:08.050 --> 27:12.270] Abusing the IoT in smart buildings, it's easy, it's cheap [27:12.270 --> 27:15.950] it can have severe consequences like we've seen with [27:15.950 --> 27:16.910] HVAC, with [27:19.870 --> 27:23.190] access control where you can let the [27:24.050 --> 27:26.870] attacker basically do physical intrusions [27:27.790 --> 27:32.110] and defending the IoT in smart buildings is doable and it starts with understanding what's [27:32.110 --> 27:35.970] in the network and monitor. And as a last takeaway [27:35.970 --> 27:38.530] I just want to say that [27:39.690 --> 27:41.090] the building automation [27:43.810 --> 27:48.050] the building automation technology is old but we are [27:48.050 --> 27:51.930] moving to more connected smart cities and [27:51.930 --> 27:55.990] connected everything so we should always keep in mind that more connection means [27:55.990 --> 28:00.070] an increased attack surface and the consequences of these attacks also. [28:00.070 --> 28:03.210] So sorry if I went over time. Thanks. [28:03.210 --> 28:03.830] Applause