1 00:00:00,000 --> 00:00:03,300 Would you like an introduction or would you like to introduce yourself? 2 00:00:04,720 --> 00:00:08,580 All right. We'll let the experts handle this. Here you go. 3 00:00:15,700 --> 00:00:19,340 Thank you very much. I would like to thank you for attending this talk. 4 00:00:19,580 --> 00:00:25,900 I would also like to thank the guys from the IoT Village for helping us to publish this research 5 00:00:25,900 --> 00:00:30,860 to the media, on Twitter and on motherboard. Thank you so much. 6 00:00:32,220 --> 00:00:36,640 Let me first introduce myself and then we'll discuss about what I'm here to present. 7 00:00:37,660 --> 00:00:47,860 So, I'm Ben. I'm a PhD student from Ben Guion University. I studied the area of cybersecurity and IoT devices 8 00:00:47,860 --> 00:00:55,720 for the last two and a half years. I'm a former Google employee. This research was also done 9 00:00:55,900 --> 00:01:01,280 using the help of Moshe Sror, Dr. Asaf Shabtai and Professor Yuval Alovitchi from Ben Guion University. 10 00:01:01,760 --> 00:01:07,660 And we also want to thank Fujitsu for funding Fujitsu system integration laboratories for funding this research. 11 00:01:10,980 --> 00:01:17,600 Okay. So, I'm about to present to you how attackers can attack smart irrigation system. 12 00:01:18,020 --> 00:01:24,700 I will start by introducing smart irrigation system. Then we'll talk about how we reverse engineered smart irrigation systems. 13 00:01:24,700 --> 00:01:25,880 And we'll start by introducing smart irrigation system. Then we'll talk about how we reverse engineered smart irrigation systems. 14 00:01:25,900 --> 00:01:32,260 I will present you some of the attacks that we did, spoofing attacks and replay attacks against smart irrigation system. 15 00:01:32,520 --> 00:01:32,780 I will present you some of the attacks that we did, spoofing attacks and replay attacks against smart irrigation system. 16 00:01:32,780 --> 00:01:38,920 And in the end we'll discuss about the damage that can be done using a botnet of smart irrigation system. 17 00:01:40,120 --> 00:01:40,660 And in the end we'll discuss about the damage that can be done using a botnet of smart irrigation system. 18 00:01:40,660 --> 00:01:46,880 That's it. Okay, so irrigation system, especially smart irrigation system. 19 00:01:47,080 --> 00:01:51,580 That's it. Okay, so irrigation system, especially smart irrigation system. 20 00:01:51,880 --> 00:01:55,020 That's it. Okay, so irrigation system, especially smart irrigation system. 21 00:01:55,020 --> 00:02:03,340 system. However, they first appeared five years ago. Today you can find many vendors that 22 00:02:03,340 --> 00:02:11,460 produce multi irrigation systems. They have many connected sensors such as rain sensor and 23 00:02:11,460 --> 00:02:25,000 soil moisture sensor for example. They even have GSM editions, not only Wi-Fi editions. And 24 00:02:25,000 --> 00:02:31,780 smart irrigation systems instead of its traditional irrigation systems. Okay, so smart 25 00:02:31,780 --> 00:02:37,480 irrigation systems are actually referred to advanced irrigation systems that incorporate 26 00:02:37,480 --> 00:02:44,040 various sensors and network components for increased efficiency in order to save water and 27 00:02:44,040 --> 00:02:49,740 money. Now they are connected to the internet. They provide remote command and control 28 00:02:49,740 --> 00:02:54,700 service. They allow automatic adaptation of watering plan based on weather forecast. 29 00:02:55,000 --> 00:03:03,440 And they monitor watering plans and water consumption. Okay, now let's talk about the 30 00:03:03,440 --> 00:03:07,780 motivation for buying smart irrigation systems. So first of all they are very cheap. Their 31 00:03:07,780 --> 00:03:16,600 price starts at about $150. You can buy them on Amazon. They consider us green technology. They 32 00:03:16,600 --> 00:03:24,880 design as I said before to save money and also save water. They provide very convenient user 33 00:03:25,000 --> 00:03:31,980 interface comparing to the traditional irrigation systems. It's a remote user interface in 34 00:03:31,980 --> 00:03:41,860 which you can use smart phones, PCs and even smart assistants to control them. And also they 35 00:03:41,860 --> 00:03:47,700 enable sensor connectivity as I mentioned before. And they have wireless connectivity. They 36 00:03:47,700 --> 00:03:54,980 provide Wi-Fi, Wi-Fi editions and also GSM editions in which you can buy in order to deploy your 37 00:03:55,000 --> 00:04:01,960 garden in your yard. This is the entire ecosystem and the parties in which they are actually 38 00:04:01,960 --> 00:04:08,440 interfaced with. So on one hand you have smart irrigation system. It's connected to your 39 00:04:08,440 --> 00:04:16,300 homeland. It also connects to sensors that are also connected to your homelands. And they 40 00:04:17,020 --> 00:04:24,980 connect it to your water line on the one end and to valves on the other end. And they are also 41 00:04:25,000 --> 00:04:31,840 and actually connected to sprinklers so they actually regulate water obtained from water as a 42 00:04:31,840 --> 00:04:41,320 well. Now using internet connectivity they interface with CNC devices which can be your smartphone 43 00:04:41,320 --> 00:04:50,620 application. Your laptop, your smart assistant. They have dedicated cloud servers in which they 44 00:04:50,620 --> 00:04:54,980 are used to I will mention it a few slides from now which are these 일이. and there is Fei, 45 00:04:54,980 --> 00:05:03,160 they're used to communicate with their user that can be located anywhere around the world. And they 46 00:05:03,160 --> 00:05:12,120 actually also interface with weather forecast services. And this is examples of such. NOAA is one 47 00:05:12,120 --> 00:05:22,940 of them. The METNO, which is the Norwegian Meteorological Institute, is another one. Okay, now 48 00:05:22,940 --> 00:05:31,760 why we consider them as interesting and why would attackers will want to attack them. So first of all 49 00:05:31,760 --> 00:05:36,500 they are connected to critical infrastructure. The urban water service or the national water 50 00:05:36,500 --> 00:05:44,760 service considered as critical infrastructure in most of the countries around the world. Another 51 00:05:44,760 --> 00:05:50,600 reason to attack them is maybe to cause a financial harm to a party as a result of over 52 00:05:50,600 --> 00:05:52,920 consumption of water. There are places around the world where they are being attacked. And 53 00:05:52,920 --> 00:05:58,200 there are places around the world where water is very expensive and by over consuming water you 54 00:05:58,200 --> 00:06:10,980 can actually cause a financial harm. And these are examples of free smart irrigation system, 55 00:06:11,120 --> 00:06:16,440 commercial smart irrigation system that we investigated in this research. We bought the rain 56 00:06:16,440 --> 00:06:22,460 machine, the blue spray and the green IQ smart irrigation systems. They all provide 57 00:06:22,460 --> 00:06:29,840 WiFi connectivity so you can connect them to your home land using WiFi to your router. They are 58 00:06:29,840 --> 00:06:37,560 very cheap. These are their price including the shipment to Israel. They are even cheaper if you 59 00:06:37,560 --> 00:06:47,240 buy them here in the US. Also they are considered free of the best 5 I think or maybe 10 top smart 60 00:06:47,240 --> 00:06:52,440 irrigation systems according to a few resources. So we decided it would be good to use these 61 00:06:52,460 --> 00:06:59,500 cutting edge technology such as this. The entire set of methods that they will present in this 62 00:06:59,500 --> 00:07:08,820 research conducted on this set of smart irrigation systems. Now let's talk about how to reverse 63 00:07:09,480 --> 00:07:14,580 engineered smart irrigation systems. So we actually combined two techniques. The first 64 00:07:14,580 --> 00:07:22,440 technique was extracting the firmware. Now if you will see the green IQ which is the one that is 65 00:07:22,460 --> 00:07:31,000 white. Which is the picture with B, the white one. If you take a closer look you will see 66 00:07:31,000 --> 00:07:37,800 Raspberry Pi. The guys from GreenIQ did not design their own micro controller. They actually 67 00:07:37,800 --> 00:07:45,720 use Raspberry Pi as their controller. And of course the firmware was uploaded to an SD card. 68 00:07:46,000 --> 00:07:52,440 So we actually took an SD card reader and extracted the firmware from the software and then we 69 00:07:52,460 --> 00:07:58,920 did the entire thing. From there, we didn't even had to, you know, to think a lot and how they 70 00:07:58,920 --> 00:08:06,940 actually help us in order to get the firmware out of the control of the product. Regarding the 71 00:08:06,940 --> 00:08:13,880 machine we actually downloaded the firmware using the UART connector to use to a USB cable and 72 00:08:13,880 --> 00:08:20,740 this is the way that we use in order to extract the firmware of the machine. The machine is the one 73 00:08:20,740 --> 00:08:22,440 that you can see that the ASUS PC can pull you up and there it is. So it is a fairly good setup. 74 00:08:22,460 --> 00:08:34,180 picture. The picture in the left, in the, on the top left. And we also used some network 75 00:08:34,180 --> 00:08:40,540 analysis. We connected them to a router and we captured their network traffic, I would say 76 00:08:40,540 --> 00:08:48,280 for three weeks, something like this. And we analyzed their traffic. They're using Wireshark. 77 00:08:48,280 --> 00:08:57,540 And we actually connected all three of them. So we have two firmware's of the Rain Machine and 78 00:08:57,540 --> 00:09:08,620 the GreenIQ and the entire network behavior of all of them. Okay, the next set of attacks that 79 00:09:08,620 --> 00:09:17,520 I will present you called spoofing attacks. We actually changed the inputs that are going to the 80 00:09:18,800 --> 00:09:29,120 smart irrigation system and observed what happened because of our change. We actually, the 81 00:09:29,120 --> 00:09:34,700 purpose of these attacks is to change the input of smart irrigation system in order to water 82 00:09:35,500 --> 00:09:40,000 according to attacker's wishes. And execution of the attacks is by performing many of the 83 00:09:40,000 --> 00:09:47,260 middle attacks using session hijacking from a bot. Running on a computer on a compromised, not 84 00:09:48,280 --> 00:09:57,340 compromised device that is connected to the same line of the smart irrigation systems. Okay, 85 00:09:57,460 --> 00:10:04,420 now the first attack that we, that I'm going to present is actually show how you can spoof smart 86 00:10:04,420 --> 00:10:10,700 irrigation system configuration. A dedicated cloud server is used to provide CNC 87 00:10:10,700 --> 00:10:18,260 communication between a device, a CNC device, a user from one end and the GreenIQ from the other. 88 00:10:18,280 --> 00:10:26,920 On the other hand, ummm, bear in mind that the user can be anywhere around the world and we need to 89 00:10:26,920 --> 00:10:35,240 communicate with his own smart irrigation system that's connected to his homeland. And the 90 00:10:36,780 --> 00:10:45,360 dedicated cloud server is actually mediates or uses proxy between the user and the smart irrigation 91 00:10:45,360 --> 00:10:48,260 system. So a session between the GreenIQ and a smart irrigation system that is working with the 92 00:10:48,260 --> 00:10:54,200 and the cloud server is initiate every minute is initiated every minute uh in order to check 93 00:10:54,200 --> 00:11:03,520 whether the user sent any updates regarding watering plants and things like this. Um one 94 00:11:03,520 --> 00:11:08,740 interesting thing is that the entire protocol the entire interface between the smart 95 00:11:08,740 --> 00:11:15,640 irrigation system uh and uh the cloud server is actually based on HTTP protocol which is 96 00:11:15,640 --> 00:11:23,780 pretty funny. Okay now let's uh discuss about uh the vulnerability and introduce you to their 97 00:11:23,780 --> 00:11:29,240 entire protocol and describe you later and show you demonstrate you later how uh uh the 98 00:11:29,240 --> 00:11:35,080 GreenIQ can be attacked. So uh the session between the GreenIQ and the DNA you know what 99 00:11:35,080 --> 00:11:42,000 before the session there is a CSN uh CNC device which is operated by the user uh let's say from 100 00:11:42,000 --> 00:11:45,620 anywhere around the world not uh not it is not specifically used by the user but it is 101 00:11:45,640 --> 00:11:51,380 basically has to be connected to it's home LAN it can be operated via the internet and the 102 00:11:51,380 --> 00:11:59,040 GreenIQ from the other end uh is actually initiate a DNS request to a DNS server uh to find uh 103 00:11:59,040 --> 00:12:07,840 the GreenIQ dot net address the GreenIQ dot net is actually it's um cloud server and which is 104 00:12:07,840 --> 00:12:15,560 followed by DNS resolve that is sent from the DNS server. Now um after the uh the GreenIQ 105 00:12:15,640 --> 00:12:23,260 uh received the address of uh it's cloud server it's actually initiated an HTTP request which is 106 00:12:23,260 --> 00:12:30,420 called ping to cloud uh the ping to cloud request is followed by uh an HTTP response which is 107 00:12:30,420 --> 00:12:36,300 sent from the cloud server and contains a timestamp. The timestamp is the timestamp of the 108 00:12:36,300 --> 00:12:44,280 last uh time in which the user uh had updated watering plan uh from anywhere around the world. 109 00:12:45,640 --> 00:12:54,480 Um and stages five and six are actually uh uh optional and we'll discuss them in few slides 110 00:12:54,480 --> 00:13:05,040 from now. Okay now let's focus on stages three and four. An HTTP request uh is being sent from 111 00:13:05,040 --> 00:13:12,680 the GreenIQ to the cloud server. Uh the GreenIQ sends a ping every minute with it's device ID. 112 00:13:12,680 --> 00:13:18,620 You can see it uh uh on the left uh side. Uh this is the device ID this was extracted from the 113 00:13:18,620 --> 00:13:23,440 payload of the uh of the uh the packet that is being sent from the GreenIQ to the cloud 114 00:13:23,440 --> 00:13:29,560 server. Uh which is then followed by the response uh the server sends the timestamp of the 115 00:13:29,560 --> 00:13:35,380 last time the watering plan was updated by the user. And you can see the timestamp over here 116 00:13:36,020 --> 00:13:42,280 um on the right side. Uh it's basically a number which uh uh you can see it's uh uh uh uh uh uh 117 00:13:42,680 --> 00:13:50,520 describes the last time that uh watering plan was updated. Okay it is all actually being sent 118 00:13:51,600 --> 00:13:59,940 on HTTP protocol. Now this was actually extracted from the firmware of the GreenIQ. Um take a 119 00:13:59,940 --> 00:14:05,360 look on the response which is called new config. That is on stage number four. That is being 120 00:14:05,360 --> 00:14:11,440 returned to the GreenIQ. Now if the new config is actually graded the timestamp of the new config the 121 00:14:11,440 --> 00:14:12,660 last time that the user uh had updated the uh uh uh uh uh uh uh uh uh uh uh uh uh uh uh uh uh uh uh uh uh uh uh 122 00:14:12,660 --> 00:14:20,280 data uh an update of watering plan is greater than the one that is stored in the memory of 123 00:14:20,280 --> 00:14:27,520 the GreenIQ. Uh stages five and six are actually initiated and launched. Uh and 124 00:14:27,520 --> 00:14:37,260 the HTTP is a setting that is ah called config xml the request. It's building uh at the 125 00:14:37,260 --> 00:14:42,640 cloud server to uh the new uh water prints of an uh uh a protocol for uh uh um uh uh uh uh uh uh uh 126 00:14:42,660 --> 00:14:50,640 the new configuration that was uh updated by the user. Now let's focus on stages five and six. 127 00:14:50,800 --> 00:14:58,040 An HTTP request is being sent from the greenIQ to the cloud server which followed by a 128 00:14:58,040 --> 00:15:04,840 response of an XML file. This is the XML file by the way on the right side. You can see that uh 129 00:15:04,840 --> 00:15:12,640 it contains uh details such as when to water, for how much time to water, and how much time to 130 00:15:12,640 --> 00:15:20,300 water. I uh other things that are important in order to uh um to initiate the watering uh in 131 00:15:20,300 --> 00:15:34,440 the time that the user uh defined. And this is it. Okay this is uh a focus on the returned XML 132 00:15:34,440 --> 00:15:40,000 file which is the HTTP response. As I said it contains the entire configuration and when to 133 00:15:40,000 --> 00:15:42,620 water and when to water and the entire watering plans. Uh it contains the entire configuration 134 00:15:42,640 --> 00:15:52,360 uh that the user uh set up. Now as I said earlier uh this is all being done using HTTP uh 135 00:15:52,360 --> 00:16:00,200 requests. So uh hijack the entire session is actually pretty easy. Uh you can do you can apply 136 00:16:00,200 --> 00:16:09,220 some up spoofing in order to uh hijack the session. And you can um use a fake greenIQ cloud 137 00:16:09,220 --> 00:16:12,620 server that will answer instead. That will respond in the same way that it will respond in the 138 00:16:12,620 --> 00:16:22,480 instead of the real GreenIQ cloud server. And when a request, an HDP request with the last 139 00:16:22,480 --> 00:16:28,960 user update is being initiated, the server will answer, will respond with the current 140 00:16:28,960 --> 00:16:35,800 timestamp which is probably bigger than the last time, greater than the last time that is 141 00:16:35,800 --> 00:16:44,520 stored in the GreenIQ, uh, memory. And it will then follow by another request to obtain the new, 142 00:16:44,580 --> 00:16:53,480 uh, watering plan which can be, uh, followed by a response sent from the GreenIQ, uh, server to 143 00:16:53,480 --> 00:17:03,560 the GreenIQ with fake, uh, fake, uh, watering plan as the attacker wishes to and this is, uh, 144 00:17:03,560 --> 00:17:09,840 a, and let me show you the demonstration of what will, what would happen if, uh, you actually, 145 00:17:09,940 --> 00:17:24,840 uh, do it. Now this is where you see the GreenIQ on the right hand and this is the GreenIQ 146 00:17:24,840 --> 00:17:29,840 application there is no watering plan scheduled at all and we apply the attack that I just 147 00:17:29,840 --> 00:17:32,600 presented and look what happened to the, uh. 148 00:17:33,560 --> 00:18:01,320 you can just initiate watering as you wish. Okay? Okay, let's continue. Okay, so you might 149 00:18:01,320 --> 00:18:06,260 ask yourself what will happen if instead of returning the current time, the current timestamp, 150 00:18:06,680 --> 00:18:15,120 you will return a response of a timestamp that is actually 10 years from now and then send the 151 00:18:15,120 --> 00:18:22,660 fake watering plant that let's say initiate watering all day long for the whole week. So 152 00:18:22,660 --> 00:18:31,060 actually if you will see the firmware code on the left side, if you will send a response 153 00:18:31,320 --> 00:18:40,920 and you can see it on the arrow in four, a response with let's say future timestamp, it's 154 00:18:40,920 --> 00:18:51,800 actually going to cause the green IQ to ignore any legitimate, any legitimate CNC command 155 00:18:51,800 --> 00:18:59,280 that will be initiated by the user. Now, combining this with let's say watering all day long 156 00:18:59,600 --> 00:19:01,300 will actually, in order to stop the watering plant, it will actually stop the watering plant 157 00:19:01,320 --> 00:19:10,160 all day long. The user will not be able to use his application in order to stop watering. So 158 00:19:10,160 --> 00:19:16,860 what he actually will have to do is physically disconnect the green IQ from the network in 159 00:19:16,860 --> 00:19:22,000 order to stop such an attack. So it's actually a permanent denial of service of the green IQ 160 00:19:22,400 --> 00:19:30,580 that will require the user to physically disconnect the smart irrigation system in order to 161 00:19:30,580 --> 00:19:43,860 stop, to stop it from watering his yard. Okay. The second spoofing attack that we, that I'm 162 00:19:43,860 --> 00:19:49,980 about to present to you is actually, is actually spoof, is actually spoofing water, a 163 00:19:49,980 --> 00:19:54,920 weather forecast. Now, a smart irrigation system automatically, such as the one that is 164 00:19:54,920 --> 00:20:00,400 presented in here, which is the rain machine, automatically adapts its watering plan according to the 165 00:20:00,580 --> 00:20:06,440 weather forecast obtained from weather forecast services it's, was actually designed to save 166 00:20:06,440 --> 00:20:13,400 water and you can think about rainy days no water is actually, no watering is actually needed. 167 00:20:14,120 --> 00:20:20,160 It's dispatch, it contractors it, it works, is a device and it is not tropical. So, these 168 00:20:20,160 --> 00:20:26,400 well-suited things are the types we use in, in, in fact, 169 00:20:30,580 --> 00:20:36,440 days. So, they actually, every six hours, the weather forecast request is sent to the 170 00:20:36,440 --> 00:20:42,980 weather forecast server and using the weather forecast that is being returned, the smart 171 00:20:42,980 --> 00:20:50,410 irrigation system adapts its watering plan automatically. Okay? So, there are several 172 00:20:52,370 --> 00:21:00,560 weather forecast services that provide HTTP protocol to them and not HTTP. So, the 173 00:21:00,580 --> 00:21:08,060 HTTPS, one of them was the Norwegian Meteorological Institute, which calls METNO. However, 174 00:21:08,280 --> 00:21:15,740 six months ago, something like this, they upgraded their, they upgraded their protocol to 175 00:21:15,740 --> 00:21:24,500 HTTPS. However, you can find many other weather forecast services that are still using HTTP 176 00:21:24,500 --> 00:21:30,560 protocol instead of HTTPS and apply the attack that I'm about to show you. So, the weather 177 00:21:31,680 --> 00:21:34,740 forecast service is a request for weather forecast. So, let's focus on the vulnerability. The 178 00:21:34,740 --> 00:21:40,600 rain machine actually initiated in this request of weather forecast service that is being 179 00:21:40,600 --> 00:21:46,520 configured in their memory, in its memory, which is followed by DNS resolve sent from the DNS 180 00:21:46,520 --> 00:21:55,340 server. Afterwards, a request for forecast, for weather forecast is being sent from, is being 181 00:21:55,340 --> 00:22:00,560 initiated by the rain machine. It includes latitude and longitude that were defined by the rain 182 00:22:00,580 --> 00:22:04,160 machine. So, the request is being sent to the user. The latitude and longitude of the specific 183 00:22:04,160 --> 00:22:11,260 location of the smart irrigation system. And they are then followed by response, which is weekly 184 00:22:11,260 --> 00:22:16,160 weather forecast and rain machine automatically adapts its watering plan according to the 185 00:22:16,160 --> 00:22:22,100 weather forecast in order to save water and to compensate for the lack of water in order to 186 00:22:22,100 --> 00:22:30,560 water your garden, your yard. And this is how it looks like. A request is being sent to the user. 187 00:22:30,580 --> 00:22:34,660 And it is actually using the rain machine to send, from the rain machine to metno and, which 188 00:22:34,660 --> 00:22:42,660 include the GPS coordination of the location of the rain machine. And it's followed by an HTTP 189 00:22:42,660 --> 00:22:47,820 response, which is weekly weather forecast and this is how it looks like. It actually contains 190 00:22:47,820 --> 00:22:53,380 temperature, wind direction, humidity, wind speed, and other things that are actually 191 00:22:53,380 --> 00:23:00,560 important to the smart irrigation system in order to adapt its watering plan. And we can get 192 00:23:00,580 --> 00:23:10,900 this is actually is being sent on let's say on hourly resolution. So this is it. Now it's 193 00:23:10,900 --> 00:23:17,300 being by the way initiated every six hours. There are four requests, four HTTP requests 194 00:23:17,300 --> 00:23:26,060 such as this that are being initiated by the RAIN mission. A day. Now we ask ourselves how we 195 00:23:26,060 --> 00:23:34,240 can exploit such a protocol that is based on HTTP protocol and there are two ways in which we 196 00:23:34,240 --> 00:23:41,480 found a way to spoof the input to the smart irrigation system. One of them is to spoof the 197 00:23:41,480 --> 00:23:51,000 request location which you can think about instead of sending the true location of the smart 198 00:23:51,000 --> 00:23:55,960 irrigation system you will send a location that appears as if it if it 199 00:23:56,060 --> 00:24:03,740 is the most arid place on earth and this will actually result in a response of weather forecast 200 00:24:03,740 --> 00:24:12,160 that with the dry humidity which will require the smart irrigation system to adapt itself to water 201 00:24:12,810 --> 00:24:23,240 because of the lack of rain that it is being that it understand from the weather forecast that is 202 00:24:23,240 --> 00:24:26,040 being sent. Another way is just to scan the system and see if it's working or not working. So 203 00:24:26,060 --> 00:24:31,440 let's spoof the response and just changing the values of the weather forecast that is being 204 00:24:31,440 --> 00:24:40,600 sent and let me show you how ah I show you on the earlier um one way is to change the GPS 205 00:24:40,600 --> 00:24:47,300 coordination request and the other way is to change the values that are being uh uh received by 206 00:24:47,300 --> 00:24:56,040 the smart irrigation system. And I have a demonstration to show you. So let me show you how I 207 00:24:56,060 --> 00:25:19,740 do it. So this is my cat by the way. Okay what you're about to see is that ah smart irrigation 208 00:25:19,740 --> 00:25:25,780 system is being configured to London ah during winter and you will see that no watering and no water is 209 00:25:25,780 --> 00:25:34,060 actually needed in order to ah water your garden. Um take a look on the weather forecast that is 210 00:25:34,060 --> 00:25:44,400 being received by the smart irrigation system. It starts from minus one up to six celsius and you 211 00:25:44,400 --> 00:25:48,400 see the zero percent. Zero percent are the amount of water that are required in order to water 212 00:25:48,400 --> 00:25:55,760 your garden. Since it's a rainy day no water is actually ah required. However after applying uh 213 00:25:55,780 --> 00:26:05,500 an hour attack ah you will see ah like ah values that uh don't make any sense in a minute. 214 00:26:07,560 --> 00:26:08,300 📣👨🏻 —— 215 00:26:12,180 --> 00:26:25,760 By the way this is how the mine works it is gonna be under constructings used to run the mine.down 216 00:26:25,760 --> 00:26:32,020 irrigation system after we apply the attack you can see values that range from 0 to 50. The 217 00:26:32,020 --> 00:26:40,660 smart irrigation system understood that it's considered as very dry weather forecast so it 218 00:26:40,660 --> 00:26:49,660 actually adapts it's watering plan as you can see 53% and 100% so the attacker when he will 219 00:26:49,660 --> 00:26:54,380 apply such an attack he actually managed to cause the smart irrigation system to obtain 220 00:26:54,380 --> 00:27:16,880 water when it actually does not need to obtain it. Okay so this two attacks were spoofing 221 00:27:16,880 --> 00:27:24,360 attacks and now I'm about to show you two replay attacks. Also in this case we have a 222 00:27:43,020 --> 00:27:48,660 bot running on a compromised device that is connected to the same LAN of the smart irrigation 223 00:27:48,660 --> 00:27:54,360 system. The first attack that we found, the first one was a bot running on a compromised device. 224 00:27:54,380 --> 00:27:59,140 The bot running ability that we found is actually we found it on the blue spray, blue spray is 225 00:27:59,140 --> 00:28:06,340 the one that is actually on the left, the picture on the left. It provides HMI communication using 226 00:28:06,340 --> 00:28:14,560 a dedicated web interface that is based on HTTP protocol and it provides it to devices that are 227 00:28:14,560 --> 00:28:22,900 connected to it's LAN. Now it allows the user to schedule watering plans however no encryption or 228 00:28:22,900 --> 00:28:30,240 authentication are applied. So this is even easier than before. Um this is by the way the 229 00:28:30,240 --> 00:28:37,520 GSM format of the of how scheduling watering request is being uh initiated. You can see the 230 00:28:37,520 --> 00:28:42,860 start date and how much time do you want uh to uh to water and other things so it's it's actually 231 00:28:42,860 --> 00:28:50,740 very easy even to understand uh how to attack it and how to schedule uh unnecessary watering plan. 232 00:28:50,740 --> 00:29:18,980 And let me show you the demo of applying such an attack. Okay so what you're seeing in here 233 00:29:18,980 --> 00:29:24,380 this is the original watering plan that uh was configured. There are no watering plans at all. 234 00:29:24,520 --> 00:29:32,660 And wrote uh simple Python code that uh actually initiates using HTTP request uh watering and 235 00:29:33,410 --> 00:29:48,100 this is uh where the uh we actually apply it. So this is how it works. So this is the 236 00:29:52,800 --> 00:29:57,520 result. Now let me show you the result of uh applying this code of uh executing this code. 237 00:29:59,300 --> 00:30:08,040 This is the exact web interface in which I talked of. Now when you look on the uh watering plans 238 00:30:08,040 --> 00:30:14,700 that are actually all day long for the entire week so this was only initiated using simple HTTP 239 00:30:14,700 --> 00:30:15,260 request. 240 00:30:26,580 --> 00:30:31,300 Another interesting attack that we thought of are uh let me uh present to you the 241 00:30:31,300 --> 00:30:36,600 vulnerability. We actually extracted a code from the GreenAQ. As we mentioned earlier they 242 00:30:36,600 --> 00:30:44,680 actually used uh a Raspberry Pi so we extracted uh the firmware very easily. And we analyzed 243 00:30:44,680 --> 00:30:48,960 their code and found um the following code lines. Uh you can see the code path. What it did was it 244 00:30:48,960 --> 00:30:58,680 can see the set GPIO function and it's actually it's execution that operate the master valve 245 00:30:58,680 --> 00:31:10,460 actually opens the valve so water will actually flow outside and this is the in line 428 you 246 00:31:10,460 --> 00:31:18,940 can see the execution of set GPIO and the specific valve that is being used for the 247 00:31:20,200 --> 00:31:29,100 specific valve that is being operated and we actually ask ourselves how we can use it in 248 00:31:29,100 --> 00:31:39,860 order to initiate watering. So by assuming one of the following either the SSH password is too 249 00:31:39,860 --> 00:31:48,220 weak or it has been leaked or either the smart irrigation system itself is compromised then you 250 00:31:48,220 --> 00:31:48,480 can 251 00:31:48,960 --> 00:31:58,040 apply such an attack you can open a secure shell terminal and just open the valve using the code 252 00:31:58,040 --> 00:32:05,140 that I just presented you the code that was in line 428 and this is the demo that shows you. 253 00:32:16,240 --> 00:32:26,660 Okay take a look at the following video. You can see the green IQ and how we are playing with 254 00:32:26,660 --> 00:32:35,120 the opening the valve and closing the valve every ten seconds. This is the green IQ and this is the 255 00:32:35,140 --> 00:32:41,140 green IQ. This is where it stops for ten seconds and afterwards it is being again initiated. 256 00:32:43,820 --> 00:32:51,200 Now you can see the watering is actually starts again. And we actually use we applied it using SSH 257 00:32:51,200 --> 00:33:01,360 communication that was applied from another compromised device that was connected to the same local area 258 00:33:01,360 --> 00:33:03,280 network of the green IQ. 259 00:33:13,360 --> 00:33:25,100 Okay so after you know how to actually initiate watering as you wish and in the times that you wish to water 260 00:33:25,100 --> 00:33:34,360 them you can also imagine what would have happened. What would happen if an attacker has managed to use a botnet of smart irrigation system 261 00:33:35,140 --> 00:33:44,700 Um, so, you know, botnets today are being, uh, you can rent them on the, uh, the dark 262 00:33:44,700 --> 00:33:50,700 web. So, they're pretty easy to, they're fine in the wild. You can find them on the 263 00:33:50,700 --> 00:33:56,620 internet. Uh, you do not have to actually, uh, infect smart irrigation system. You can 264 00:33:56,620 --> 00:34:03,760 rent a botnet and check, uh, whether a smart irrigation system is connected to, uh, the 265 00:34:03,760 --> 00:34:09,820 LAN of the compromised device where the bot is running. And you can think about what, uh, 266 00:34:09,920 --> 00:34:15,200 using a CNC model, uh, a botnet of smart irrigation system, and initiate watering from 267 00:34:15,200 --> 00:34:21,720 many smart irrigation systems simultaneously and we ask ourself what would have happened if, 268 00:34:21,740 --> 00:34:27,420 uh, an attacker has managed to control a botnet of smart irrigation system using a CNC 269 00:34:27,420 --> 00:34:33,740 server. Um, we analyze the damage and the typical, uh, you know, the, uh, the botnet is 270 00:34:34,640 --> 00:34:41,320 sprinkler's water flow, this is actually the Falcon, taken from the Falcon's specs, is between 271 00:34:41,320 --> 00:34:51,840 0.66 and 4.93 cubic meters per hour. So let's say on average it's 2.795 cubic meters on average 272 00:34:51,840 --> 00:34:59,220 per hour. What is the damage incurred when the attack is performed using a botnet of smart 273 00:34:59,220 --> 00:35:04,860 irrigation systems that are triggered to water simultaneously? Now this is actually pretty 274 00:35:04,860 --> 00:35:14,020 interesting. You need a botnet of 1,300 sprinklers and you need to operate them for a single 275 00:35:14,020 --> 00:35:24,480 hour in order to empty a typical water tower capacity, which is around 387 cubic meters. And 276 00:35:24,480 --> 00:35:29,200 if you're thinking about how you can empty a flood water reservoir, you can do that by 277 00:35:29,220 --> 00:35:40,940 using this. So this is where you need a bigger botnet, let's say about 23,000, and you need to 278 00:35:40,940 --> 00:35:50,860 operate them for six hours during night in order to empty a flood water reservoir, which is, its 279 00:35:50,860 --> 00:35:59,200 capacity is around 404,000 cubic meters. So this is where you need a bigger botnet. So this is 280 00:35:59,220 --> 00:35:59,480 where you need a bigger botnet or just a larger botnet and a bigger transformer. So in order to 281 00:35:59,480 --> 00:36:01,980 differentнуюg to run it with a big botnet. So it's actually, let's say a pretty dangerous 282 00:36:01,980 --> 00:36:09,520 attack if the attacker can actually harm an entire city and even a nation if he will manage to 283 00:36:09,520 --> 00:36:19,880 infect many smart irrigation systems. And this is pretty interesting, because this generation of 284 00:36:19,880 --> 00:36:27,640 IoT devices is actually being used by consumers to regulate resource such as water that are 285 00:36:27,640 --> 00:36:29,200 obtained from critical infrastructure, and this is why we need this kind of technology to be 286 00:36:29,200 --> 00:36:34,980 structure. Now traditional attacks against critical infrastructure require the attackers to 287 00:36:34,980 --> 00:36:42,840 somehow infect the critical infrastructure itself. They mostly use supply chain attacks. They 288 00:36:42,840 --> 00:36:50,340 either use some let's say insiders to infect their system, to infect critical infrastructure 289 00:36:50,340 --> 00:36:58,160 systems. This kind of attack is actually an indirect attack. And it's much easier to deploy. 290 00:36:58,160 --> 00:37:05,100 And the reason it is much easier to deploy is when you consider critical infrastructure, they 291 00:37:05,100 --> 00:37:10,260 actually use IDS and IPS, intrusion detection systems and prevention systems to prevent from 292 00:37:10,260 --> 00:37:16,500 attackers to attack their systems. However, as you can see, this attack is actually indirect. It 293 00:37:16,500 --> 00:37:23,520 is much easier to attack the weakest link in the interface between the IOT device to the 294 00:37:23,520 --> 00:37:28,140 critical infrastructure instead of attacking the critical infrastructure itself. So the 295 00:37:28,140 --> 00:37:36,300 problem is the attack itself. So this was actually the entire idea behind this attack. How you 296 00:37:36,300 --> 00:37:49,080 can manage to attack a critical infrastructure indirectly. One last thing regarding ethics. We 297 00:37:49,080 --> 00:37:58,120 actually provided full ethical disclosure to each one of the smart irrigation systems. The 298 00:37:58,140 --> 00:38:05,800 manufacturers that I showed you. GreenIQ actually thanked us and they decided to apply 299 00:38:05,800 --> 00:38:13,060 gtps communication so I think that you will not be able to apply our attacks and they are now 300 00:38:13,460 --> 00:38:22,020 well aware to the vulnerabilities. They also decided to close SSH port in the firmware so they 301 00:38:22,020 --> 00:38:28,260 actually prevent from attack from running Python code to initiate watering. RainRation and 302 00:38:28,260 --> 00:38:34,700 BlueSpray engineers contact us and we actually provide them the entire necessary information in 303 00:38:34,700 --> 00:38:46,860 order to patch the firmware's. However they did not tell us whether they patched their 304 00:38:46,860 --> 00:38:52,000 vulnerabilities so I'm not sure whether you can apply gtps communication. So I hope that you 305 00:38:52,020 --> 00:39:01,020 understand our attacks or no. I think that you from my experience with this kind of manufacturers 306 00:39:01,020 --> 00:39:08,700 you probably they did not patch their products yet. They probably have some better things to do. 307 00:39:12,300 --> 00:39:18,360 This is it. Any questions? Okay. Thank you very much. 308 00:39:22,020 --> 00:39:22,180 Thank you.