Would you like an introduction or would you like to introduce yourself? All right. We'll let the experts handle this. Here you go. Thank you very much. I would like to thank you for attending this talk. I would also like to thank the guys from the IoT Village for helping us to publish this research to the media, on Twitter and on motherboard. Thank you so much. Let me first introduce myself and then we'll discuss about what I'm here to present. So, I'm Ben. I'm a PhD student from Ben Guion University. I studied the area of cybersecurity and IoT devices for the last two and a half years. I'm a former Google employee. This research was also done using the help of Moshe Sror, Dr. Asaf Shabtai and Professor Yuval Alovitchi from Ben Guion University. And we also want to thank Fujitsu for funding Fujitsu system integration laboratories for funding this research. Okay. So, I'm about to present to you how attackers can attack smart irrigation system. I will start by introducing smart irrigation system. Then we'll talk about how we reverse engineered smart irrigation systems. And we'll start by introducing smart irrigation system. Then we'll talk about how we reverse engineered smart irrigation systems. I will present you some of the attacks that we did, spoofing attacks and replay attacks against smart irrigation system. I will present you some of the attacks that we did, spoofing attacks and replay attacks against smart irrigation system. And in the end we'll discuss about the damage that can be done using a botnet of smart irrigation system. And in the end we'll discuss about the damage that can be done using a botnet of smart irrigation system. That's it. Okay, so irrigation system, especially smart irrigation system. That's it. Okay, so irrigation system, especially smart irrigation system. That's it. Okay, so irrigation system, especially smart irrigation system. system. However, they first appeared five years ago. Today you can find many vendors that produce multi irrigation systems. They have many connected sensors such as rain sensor and soil moisture sensor for example. They even have GSM editions, not only Wi-Fi editions. And smart irrigation systems instead of its traditional irrigation systems. Okay, so smart irrigation systems are actually referred to advanced irrigation systems that incorporate various sensors and network components for increased efficiency in order to save water and money. Now they are connected to the internet. They provide remote command and control service. They allow automatic adaptation of watering plan based on weather forecast. And they monitor watering plans and water consumption. Okay, now let's talk about the motivation for buying smart irrigation systems. So first of all they are very cheap. Their price starts at about $150. You can buy them on Amazon. They consider us green technology. They design as I said before to save money and also save water. They provide very convenient user interface comparing to the traditional irrigation systems. It's a remote user interface in which you can use smart phones, PCs and even smart assistants to control them. And also they enable sensor connectivity as I mentioned before. And they have wireless connectivity. They provide Wi-Fi, Wi-Fi editions and also GSM editions in which you can buy in order to deploy your garden in your yard. This is the entire ecosystem and the parties in which they are actually interfaced with. So on one hand you have smart irrigation system. It's connected to your homeland. It also connects to sensors that are also connected to your homelands. And they connect it to your water line on the one end and to valves on the other end. And they are also and actually connected to sprinklers so they actually regulate water obtained from water as a well. Now using internet connectivity they interface with CNC devices which can be your smartphone application. Your laptop, your smart assistant. They have dedicated cloud servers in which they are used to I will mention it a few slides from now which are these 일이. and there is Fei, they're used to communicate with their user that can be located anywhere around the world. And they actually also interface with weather forecast services. And this is examples of such. NOAA is one of them. The METNO, which is the Norwegian Meteorological Institute, is another one. Okay, now why we consider them as interesting and why would attackers will want to attack them. So first of all they are connected to critical infrastructure. The urban water service or the national water service considered as critical infrastructure in most of the countries around the world. Another reason to attack them is maybe to cause a financial harm to a party as a result of over consumption of water. There are places around the world where they are being attacked. And there are places around the world where water is very expensive and by over consuming water you can actually cause a financial harm. And these are examples of free smart irrigation system, commercial smart irrigation system that we investigated in this research. We bought the rain machine, the blue spray and the green IQ smart irrigation systems. They all provide WiFi connectivity so you can connect them to your home land using WiFi to your router. They are very cheap. These are their price including the shipment to Israel. They are even cheaper if you buy them here in the US. Also they are considered free of the best 5 I think or maybe 10 top smart irrigation systems according to a few resources. So we decided it would be good to use these cutting edge technology such as this. The entire set of methods that they will present in this research conducted on this set of smart irrigation systems. Now let's talk about how to reverse engineered smart irrigation systems. So we actually combined two techniques. The first technique was extracting the firmware. Now if you will see the green IQ which is the one that is white. Which is the picture with B, the white one. If you take a closer look you will see Raspberry Pi. The guys from GreenIQ did not design their own micro controller. They actually use Raspberry Pi as their controller. And of course the firmware was uploaded to an SD card. So we actually took an SD card reader and extracted the firmware from the software and then we did the entire thing. From there, we didn't even had to, you know, to think a lot and how they actually help us in order to get the firmware out of the control of the product. Regarding the machine we actually downloaded the firmware using the UART connector to use to a USB cable and this is the way that we use in order to extract the firmware of the machine. The machine is the one that you can see that the ASUS PC can pull you up and there it is. So it is a fairly good setup. picture. The picture in the left, in the, on the top left. And we also used some network analysis. We connected them to a router and we captured their network traffic, I would say for three weeks, something like this. And we analyzed their traffic. They're using Wireshark. And we actually connected all three of them. So we have two firmware's of the Rain Machine and the GreenIQ and the entire network behavior of all of them. Okay, the next set of attacks that I will present you called spoofing attacks. We actually changed the inputs that are going to the smart irrigation system and observed what happened because of our change. We actually, the purpose of these attacks is to change the input of smart irrigation system in order to water according to attacker's wishes. And execution of the attacks is by performing many of the middle attacks using session hijacking from a bot. Running on a computer on a compromised, not compromised device that is connected to the same line of the smart irrigation systems. Okay, now the first attack that we, that I'm going to present is actually show how you can spoof smart irrigation system configuration. A dedicated cloud server is used to provide CNC communication between a device, a CNC device, a user from one end and the GreenIQ from the other. On the other hand, ummm, bear in mind that the user can be anywhere around the world and we need to communicate with his own smart irrigation system that's connected to his homeland. And the dedicated cloud server is actually mediates or uses proxy between the user and the smart irrigation system. So a session between the GreenIQ and a smart irrigation system that is working with the and the cloud server is initiate every minute is initiated every minute uh in order to check whether the user sent any updates regarding watering plants and things like this. Um one interesting thing is that the entire protocol the entire interface between the smart irrigation system uh and uh the cloud server is actually based on HTTP protocol which is pretty funny. Okay now let's uh discuss about uh the vulnerability and introduce you to their entire protocol and describe you later and show you demonstrate you later how uh uh the GreenIQ can be attacked. So uh the session between the GreenIQ and the DNA you know what before the session there is a CSN uh CNC device which is operated by the user uh let's say from anywhere around the world not uh not it is not specifically used by the user but it is basically has to be connected to it's home LAN it can be operated via the internet and the GreenIQ from the other end uh is actually initiate a DNS request to a DNS server uh to find uh the GreenIQ dot net address the GreenIQ dot net is actually it's um cloud server and which is followed by DNS resolve that is sent from the DNS server. Now um after the uh the GreenIQ uh received the address of uh it's cloud server it's actually initiated an HTTP request which is called ping to cloud uh the ping to cloud request is followed by uh an HTTP response which is sent from the cloud server and contains a timestamp. The timestamp is the timestamp of the last uh time in which the user uh had updated watering plan uh from anywhere around the world. Um and stages five and six are actually uh uh optional and we'll discuss them in few slides from now. Okay now let's focus on stages three and four. An HTTP request uh is being sent from the GreenIQ to the cloud server. Uh the GreenIQ sends a ping every minute with it's device ID. You can see it uh uh on the left uh side. Uh this is the device ID this was extracted from the payload of the uh of the uh the packet that is being sent from the GreenIQ to the cloud server. Uh which is then followed by the response uh the server sends the timestamp of the last time the watering plan was updated by the user. And you can see the timestamp over here 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 describes the last time that uh watering plan was updated. Okay it is all actually being sent on HTTP protocol. Now this was actually extracted from the firmware of the GreenIQ. Um take a look on the response which is called new config. That is on stage number four. That is being returned to the GreenIQ. Now if the new config is actually graded the timestamp of the new config the 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 data uh an update of watering plan is greater than the one that is stored in the memory of the GreenIQ. Uh stages five and six are actually initiated and launched. Uh and the HTTP is a setting that is ah called config xml the request. It's building uh at the 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 the new configuration that was uh updated by the user. Now let's focus on stages five and six. An HTTP request is being sent from the greenIQ to the cloud server which followed by a response of an XML file. This is the XML file by the way on the right side. You can see that uh it contains uh details such as when to water, for how much time to water, and how much time to water. I uh other things that are important in order to uh um to initiate the watering uh in the time that the user uh defined. And this is it. Okay this is uh a focus on the returned XML file which is the HTTP response. As I said it contains the entire configuration and when to water and when to water and the entire watering plans. Uh it contains the entire configuration uh that the user uh set up. Now as I said earlier uh this is all being done using HTTP uh requests. So uh hijack the entire session is actually pretty easy. Uh you can do you can apply some up spoofing in order to uh hijack the session. And you can um use a fake greenIQ cloud server that will answer instead. That will respond in the same way that it will respond in the instead of the real GreenIQ cloud server. And when a request, an HDP request with the last user update is being initiated, the server will answer, will respond with the current timestamp which is probably bigger than the last time, greater than the last time that is stored in the GreenIQ, uh, memory. And it will then follow by another request to obtain the new, uh, watering plan which can be, uh, followed by a response sent from the GreenIQ, uh, server to the GreenIQ with fake, uh, fake, uh, watering plan as the attacker wishes to and this is, uh, a, and let me show you the demonstration of what will, what would happen if, uh, you actually, uh, do it. Now this is where you see the GreenIQ on the right hand and this is the GreenIQ application there is no watering plan scheduled at all and we apply the attack that I just presented and look what happened to the, uh. you can just initiate watering as you wish. Okay? Okay, let's continue. Okay, so you might ask yourself what will happen if instead of returning the current time, the current timestamp, you will return a response of a timestamp that is actually 10 years from now and then send the fake watering plant that let's say initiate watering all day long for the whole week. So actually if you will see the firmware code on the left side, if you will send a response and you can see it on the arrow in four, a response with let's say future timestamp, it's actually going to cause the green IQ to ignore any legitimate, any legitimate CNC command that will be initiated by the user. Now, combining this with let's say watering all day long will actually, in order to stop the watering plant, it will actually stop the watering plant all day long. The user will not be able to use his application in order to stop watering. So what he actually will have to do is physically disconnect the green IQ from the network in order to stop such an attack. So it's actually a permanent denial of service of the green IQ that will require the user to physically disconnect the smart irrigation system in order to stop, to stop it from watering his yard. Okay. The second spoofing attack that we, that I'm about to present to you is actually, is actually spoof, is actually spoofing water, a weather forecast. Now, a smart irrigation system automatically, such as the one that is presented in here, which is the rain machine, automatically adapts its watering plan according to the weather forecast obtained from weather forecast services it's, was actually designed to save water and you can think about rainy days no water is actually, no watering is actually needed. It's dispatch, it contractors it, it works, is a device and it is not tropical. So, these well-suited things are the types we use in, in, in fact, days. So, they actually, every six hours, the weather forecast request is sent to the weather forecast server and using the weather forecast that is being returned, the smart irrigation system adapts its watering plan automatically. Okay? So, there are several weather forecast services that provide HTTP protocol to them and not HTTP. So, the HTTPS, one of them was the Norwegian Meteorological Institute, which calls METNO. However, six months ago, something like this, they upgraded their, they upgraded their protocol to HTTPS. However, you can find many other weather forecast services that are still using HTTP protocol instead of HTTPS and apply the attack that I'm about to show you. So, the weather forecast service is a request for weather forecast. So, let's focus on the vulnerability. The rain machine actually initiated in this request of weather forecast service that is being configured in their memory, in its memory, which is followed by DNS resolve sent from the DNS server. Afterwards, a request for forecast, for weather forecast is being sent from, is being initiated by the rain machine. It includes latitude and longitude that were defined by the rain machine. So, the request is being sent to the user. The latitude and longitude of the specific location of the smart irrigation system. And they are then followed by response, which is weekly weather forecast and rain machine automatically adapts its watering plan according to the weather forecast in order to save water and to compensate for the lack of water in order to water your garden, your yard. And this is how it looks like. A request is being sent to the user. And it is actually using the rain machine to send, from the rain machine to metno and, which include the GPS coordination of the location of the rain machine. And it's followed by an HTTP response, which is weekly weather forecast and this is how it looks like. It actually contains temperature, wind direction, humidity, wind speed, and other things that are actually important to the smart irrigation system in order to adapt its watering plan. And we can get this is actually is being sent on let's say on hourly resolution. So this is it. Now it's being by the way initiated every six hours. There are four requests, four HTTP requests such as this that are being initiated by the RAIN mission. A day. Now we ask ourselves how we can exploit such a protocol that is based on HTTP protocol and there are two ways in which we found a way to spoof the input to the smart irrigation system. One of them is to spoof the request location which you can think about instead of sending the true location of the smart irrigation system you will send a location that appears as if it if it is the most arid place on earth and this will actually result in a response of weather forecast that with the dry humidity which will require the smart irrigation system to adapt itself to water because of the lack of rain that it is being that it understand from the weather forecast that is being sent. Another way is just to scan the system and see if it's working or not working. So let's spoof the response and just changing the values of the weather forecast that is being sent and let me show you how ah I show you on the earlier um one way is to change the GPS coordination request and the other way is to change the values that are being uh uh received by the smart irrigation system. And I have a demonstration to show you. So let me show you how I do it. So this is my cat by the way. Okay what you're about to see is that ah smart irrigation system is being configured to London ah during winter and you will see that no watering and no water is actually needed in order to ah water your garden. Um take a look on the weather forecast that is being received by the smart irrigation system. It starts from minus one up to six celsius and you see the zero percent. Zero percent are the amount of water that are required in order to water your garden. Since it's a rainy day no water is actually ah required. However after applying uh an hour attack ah you will see ah like ah values that uh don't make any sense in a minute. 📣👨🏻 —— By the way this is how the mine works it is gonna be under constructings used to run the mine. —— irrigation system after we apply the attack you can see values that range from 0 to 50. The smart irrigation system understood that it's considered as very dry weather forecast so it actually adapts it's watering plan as you can see 53% and 100% so the attacker when he will apply such an attack he actually managed to cause the smart irrigation system to obtain water when it actually does not need to obtain it. Okay so this two attacks were spoofing attacks and now I'm about to show you two replay attacks. Also in this case we have a bot running on a compromised device that is connected to the same LAN of the smart irrigation system. The first attack that we found, the first one was a bot running on a compromised device. The bot running ability that we found is actually we found it on the blue spray, blue spray is the one that is actually on the left, the picture on the left. It provides HMI communication using a dedicated web interface that is based on HTTP protocol and it provides it to devices that are connected to it's LAN. Now it allows the user to schedule watering plans however no encryption or authentication are applied. So this is even easier than before. Um this is by the way the GSM format of the of how scheduling watering request is being uh initiated. You can see the start date and how much time do you want uh to uh to water and other things so it's it's actually very easy even to understand uh how to attack it and how to schedule uh unnecessary watering plan. And let me show you the demo of applying such an attack. Okay so what you're seeing in here this is the original watering plan that uh was configured. There are no watering plans at all. And wrote uh simple Python code that uh actually initiates using HTTP request uh watering and this is uh where the uh we actually apply it. So this is how it works. So this is the result. Now let me show you the result of uh applying this code of uh executing this code. This is the exact web interface in which I talked of. Now when you look on the uh watering plans that are actually all day long for the entire week so this was only initiated using simple HTTP request. Another interesting attack that we thought of are uh let me uh present to you the vulnerability. We actually extracted a code from the GreenAQ. As we mentioned earlier they actually used uh a Raspberry Pi so we extracted uh the firmware very easily. And we analyzed their code and found um the following code lines. Uh you can see the code path. What it did was it can see the set GPIO function and it's actually it's execution that operate the master valve actually opens the valve so water will actually flow outside and this is the in line 428 you can see the execution of set GPIO and the specific valve that is being used for the specific valve that is being operated and we actually ask ourselves how we can use it in order to initiate watering. So by assuming one of the following either the SSH password is too weak or it has been leaked or either the smart irrigation system itself is compromised then you can apply such an attack you can open a secure shell terminal and just open the valve using the code that I just presented you the code that was in line 428 and this is the demo that shows you. Okay take a look at the following video. You can see the green IQ and how we are playing with the opening the valve and closing the valve every ten seconds. This is the green IQ and this is the green IQ. This is where it stops for ten seconds and afterwards it is being again initiated. Now you can see the watering is actually starts again. And we actually use we applied it using SSH communication that was applied from another compromised device that was connected to the same local area network of the green IQ. Okay so after you know how to actually initiate watering as you wish and in the times that you wish to water 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 Um, so, you know, botnets today are being, uh, you can rent them on the, uh, the dark web. So, they're pretty easy to, they're fine in the wild. You can find them on the internet. Uh, you do not have to actually, uh, infect smart irrigation system. You can rent a botnet and check, uh, whether a smart irrigation system is connected to, uh, the LAN of the compromised device where the bot is running. And you can think about what, uh, using a CNC model, uh, a botnet of smart irrigation system, and initiate watering from many smart irrigation systems simultaneously and we ask ourself what would have happened if, uh, an attacker has managed to control a botnet of smart irrigation system using a CNC server. Um, we analyze the damage and the typical, uh, you know, the, uh, the botnet is sprinkler's water flow, this is actually the Falcon, taken from the Falcon's specs, is between 0.66 and 4.93 cubic meters per hour. So let's say on average it's 2.795 cubic meters on average per hour. What is the damage incurred when the attack is performed using a botnet of smart irrigation systems that are triggered to water simultaneously? Now this is actually pretty interesting. You need a botnet of 1,300 sprinklers and you need to operate them for a single hour in order to empty a typical water tower capacity, which is around 387 cubic meters. And if you're thinking about how you can empty a flood water reservoir, you can do that by using this. So this is where you need a bigger botnet, let's say about 23,000, and you need to operate them for six hours during night in order to empty a flood water reservoir, which is, its capacity is around 404,000 cubic meters. So this is where you need a bigger botnet. So this is where you need a bigger botnet or just a larger botnet and a bigger transformer. So in order to differentнуюg to run it with a big botnet. So it's actually, let's say a pretty dangerous attack if the attacker can actually harm an entire city and even a nation if he will manage to infect many smart irrigation systems. And this is pretty interesting, because this generation of IoT devices is actually being used by consumers to regulate resource such as water that are obtained from critical infrastructure, and this is why we need this kind of technology to be structure. Now traditional attacks against critical infrastructure require the attackers to somehow infect the critical infrastructure itself. They mostly use supply chain attacks. They either use some let's say insiders to infect their system, to infect critical infrastructure systems. This kind of attack is actually an indirect attack. And it's much easier to deploy. And the reason it is much easier to deploy is when you consider critical infrastructure, they actually use IDS and IPS, intrusion detection systems and prevention systems to prevent from attackers to attack their systems. However, as you can see, this attack is actually indirect. It is much easier to attack the weakest link in the interface between the IOT device to the critical infrastructure instead of attacking the critical infrastructure itself. So the problem is the attack itself. So this was actually the entire idea behind this attack. How you can manage to attack a critical infrastructure indirectly. One last thing regarding ethics. We actually provided full ethical disclosure to each one of the smart irrigation systems. The manufacturers that I showed you. GreenIQ actually thanked us and they decided to apply gtps communication so I think that you will not be able to apply our attacks and they are now well aware to the vulnerabilities. They also decided to close SSH port in the firmware so they actually prevent from attack from running Python code to initiate watering. RainRation and BlueSpray engineers contact us and we actually provide them the entire necessary information in order to patch the firmware's. However they did not tell us whether they patched their vulnerabilities so I'm not sure whether you can apply gtps communication. So I hope that you understand our attacks or no. I think that you from my experience with this kind of manufacturers you probably they did not patch their products yet. They probably have some better things to do. This is it. Any questions? Okay. Thank you very much. Thank you.