WEBVTT

00:00.000 --> 00:03.100
Alright, hello everyone and thanks for coming to our talk today.

00:03.100 --> 00:06.120
We're pretty excited to be speaking in the ICS village for the first time.

00:06.340 --> 00:10.820
We're going to talk about an ODE that we found in an ICS system.

00:10.820 --> 00:20.060
This is actually going to be somewhat of a redo of our talk in track 2 yesterday, but we're going to focus a lot more on challenges we faced specific to ICS systems.

00:20.360 --> 00:24.060
So first of all, who are the two crazy guys standing in front of you?

00:24.060 --> 00:25.480
My name is Doug McKee.

00:25.480 --> 00:28.000
I work for McAfee's Advanced Threat Research Team.

00:28.000 --> 00:32.780
I've got a little over eight years of experience in vulnerability research and pen testing.

00:32.780 --> 00:34.560
And I'm Mark.

00:34.560 --> 00:41.940
I'm also a researcher at McAfee's ATR team and I have a little over eight months of experience in vulnerability research and pen testing.

00:43.020 --> 00:46.740
Alright, so first what are we here to talk about today?

00:46.740 --> 00:49.180
Obviously it's going to be an ICS system.

00:49.480 --> 00:52.920
And for this it's Delta Controls and Telebus Manager.

00:52.960 --> 00:54.720
And this is a building controller.

00:54.720 --> 01:04.540
So what building controllers do is they're installed in commercial and industrial buildings to manage things like HVAC, access control, pressure rooms, and hospitals.

01:04.640 --> 01:08.420
And they do this largely over a networking protocol called BACnet.

01:08.420 --> 01:11.520
And that stands for Building Access Control Network.

01:11.520 --> 01:15.140
And this is not proprietary to this Delta system.

01:15.140 --> 01:17.260
It's actually the same across the industry.

01:17.600 --> 01:23.740
And so when we started looking at this system specifically, we kind of ran into what we like to call the perfect storm.

01:23.740 --> 01:27.320
And that's also why we started looking at it more heavily.

01:27.340 --> 01:30.420
One, it's network connected and these are connected to the Internet.

01:30.500 --> 01:36.040
So we always like to look for vulnerabilities that are network accessible because they tend to have a higher impact.

01:36.040 --> 01:38.880
And they give us a really good place to start from an attack surface.

01:39.180 --> 01:46.280
Also when we started looking at the device, we found that it had an active UART header on the board that did not require any authentication.

01:46.340 --> 01:52.180
And it dropped us right into a root shell, which allowed us easily to extract the firmware and to start debugging.

01:52.180 --> 01:59.640
And when we extract the firmware, we also found that the developers had left symbols in the binaries, which again made things easier for us to move forward.

01:59.640 --> 02:01.600
And I'll reference this throughout the presentation.

02:02.200 --> 02:08.460
And last but definitely not least, as most ICS systems do, that run Linux anyway, they have a busy box installed.

02:08.460 --> 02:15.640
And in this instance of busy box, Netcat was left installed on the box, which became extremely useful when we get to our post-exploitation phase.

02:16.200 --> 02:21.880
So I'm going to give you a really short, high-level understanding of the vulnerability and the exploit.

02:22.340 --> 02:24.660
And then we're going to focus on some of the challenges.

02:24.740 --> 02:26.480
So first, what is the vulnerability?

02:26.480 --> 02:32.400
We found using broadcast packets, BACnet broadcast packets, that we were able to find a buffer overflow.

02:32.400 --> 02:37.980
We were able to turn that buffer overflow into a write-what-where condition and use it to gain control of execution.

02:38.320 --> 02:46.840
So once we gained control of execution, we were able to redirect execution to shellcode, which we were able to put on the heap because of the buffer overflow.

02:47.320 --> 02:50.320
So a little bit more about the vulnerability.

02:50.320 --> 02:53.340
This is what it looks like in code using the IDD compilers.

02:53.340 --> 02:54.760
I've got it condensed here.

02:55.640 --> 02:59.700
The simplest way to look at it is we have a standard buffer size mismatch.

02:59.700 --> 03:08.040
So in the top diagram, you've got a buffer that I've labeled source, and it's being set to 1732 bytes, and it's being read directly from the wire.

03:08.040 --> 03:14.100
A little bit later down in the code, we have a second buffer being allocated to 1476 bytes.

03:14.100 --> 03:16.100
As you can tell, those sizes are not the same.

03:16.100 --> 03:20.140
It's eventually used for a mem copy, and therefore we have a buffer overflow.

03:20.760 --> 03:29.160
And in order to get that and to use to gain control of execution, we used the write-what-where condition to do something called a GOT overwrite.

03:29.160 --> 03:34.160
So if you're not familiar in Linux, the GOT stands for global offset table.

03:34.160 --> 03:42.680
This is a table which is populated at runtime, therefore it's generally writable, and it basically is a match between function name and address.

03:42.800 --> 03:51.260
So in our case, one of the functions in memory was scdcodebacknet UDP, and this function was very close to where we found the vuln.

03:51.260 --> 03:58.900
And so therefore, by overwriting the address for that function, we were able to redirect that function pointer to shellcode, which was stored in memory.

03:59.180 --> 04:12.860
So the shellcode, as I said, we controlled a very small amount of memory on the heap, which made shellcode slightly difficult, but we were able to do a little bit of hopscotch in memory to jump around and actually get our shellcode to work in memory.

04:12.860 --> 04:20.000
We did a classic return-to-lib C attack and leveraged the netcat that was already installed on the system to gain a reverse shell.

04:20.080 --> 04:28.240
And with that reverse shell is kind of the basis of where everything starts, and from there we're able to further infect and exploit the system.

04:30.080 --> 04:37.840
So I said, one of the things we want to focus on in here is the challenges we face during our process for ICS specific systems.

04:37.940 --> 04:45.480
And so like most people, static analysis is great, but we would really rather use dynamic analysis as much as possible in the exploitation process.

04:45.480 --> 04:47.040
It's just simply easier.

04:47.280 --> 04:53.680
So in order to do that, we compiled GDB server for the appropriate architecture, and we dropped it on the system.

04:53.940 --> 05:00.700
Now as soon as we started using GDB, we were instantly messed with a bunch of error messages, and then the system rebooted.

05:01.020 --> 05:10.820
Now the error messages have been redacted here at the request of the vendor, but the gist of the error messages were that there was a watchdog timer that failed, kicked the system, and therefore the system reboots.

05:10.820 --> 05:22.920
For those not familiar, in ICS systems, watchdog timers are typically used in order to ensure that if the system hangs for any period of time, an action is taken to stop it, to get it back going again.

05:22.920 --> 05:25.040
And in this case, the action is rebooting.

05:25.040 --> 05:39.120
Well that's obviously going to be not not good for dynamic debugging, but because we had symbols and because we were able to use those error messages, it's actually pretty simple for us to find in software where this is taking place.

05:39.140 --> 05:47.280
Here you can see that there's three areas where a counter is being decremented by five, and and when the counter hits zero, it reboots the device.

05:47.380 --> 05:51.760
Well from a software research perspective, this is actually not a hard problem to solve.

05:51.760 --> 05:57.680
All we have to do is a technique called binary patching, and we only need to patch one single byte in the entire binary.

05:57.760 --> 06:05.100
So what we did is we changed that five to a zero, and by changing that five to a zero, the code still executed, but it effectively didn't do anything.

06:05.100 --> 06:12.040
In fact, you can see up here on the screen on the right-hand side that IDA doesn't even recognize that that line exists anymore, because it's completely ineffective.

06:12.380 --> 06:17.880
So we did this and started debugging again, and we were successful for an entirely total of three minutes.

06:17.880 --> 06:21.280
And then the system rebooted again, and the watchdog got its revenge.

06:21.640 --> 06:24.660
And Mark and I are trying to figure out, we just washed the watchdog.

06:24.660 --> 06:26.220
Why is the system rebooting?

06:26.420 --> 06:37.660
Well again, something specific to ICS systems is there wasn't just a software watchdog, but there was a hardware watchdog, which is very common in ICS systems, and we had forgotten to handle the hardware watchdog.

06:37.760 --> 06:46.920
And so you can see that here on the UART screen, that the hardware watchdog is being set every 180, for up to 480 seconds every time on boot, and otherwise three minutes.

06:47.220 --> 06:54.860
So the important thing about hardware watchdogs is that if we have to deal with them as security researchers, the developers also have to deal with them.

06:54.860 --> 07:00.160
Which means if the developers have to deal with them, there's already code on the device to handle this problem.

07:00.160 --> 07:02.500
You just have to find a way to get access to it.

07:02.520 --> 07:14.800
Well in our instance, the developers had exported all of their functions to all of their SOs, meaning that all we had to do was write a very small C program, import their libraries, and call their functions, and have that boot up on start.

07:14.800 --> 07:20.580
And now we were able to kick the watchdog in the exact same manners that the developers did to prevent the device from rebooting.

07:20.780 --> 07:30.100
So by employing both of these two methods to handle the software and the hardware watchdog, we were able to debug the system dynamically, which was extremely helpful for the rest of our research.

07:30.200 --> 07:35.000
So we faced a couple more challenges, and to explain these I'm going to hand this over to my co-worker Mark.

07:36.240 --> 07:37.300
Thanks Doug.

07:38.500 --> 07:43.760
So yeah, the next challenge we encountered is that we wanted to get this exploit to work remotely.

07:43.760 --> 07:56.760
Up until this point, we had been conducting the attack on the same network the device lives on using broadcast traffic, which was nice because we didn't need to know the IP address of the device, but ultimately we wanted to expand the impact to be worldwide.

07:57.400 --> 08:00.640
Okay, so how would we go about doing this?

08:00.640 --> 08:06.480
As you may or may not know, the attack as it stands uses broadcast traffic, which normally does not travel over the internet.

08:06.480 --> 08:09.780
Well thankfully, a certain BACnet technology came to save the day.

08:10.640 --> 08:28.480
And that BACnet technology was BBMD, or Broadcast IP, or sorry, BACnet IP Broadcast Management Device, which is sort of a mouthful, but suffice it to say, it allows for the communication of BACnet broadcast traffic, the exact kind we're using, to travel over the internet.

08:28.880 --> 08:35.520
And so in the diagram on the right, you see two such BACnet networks connected over the internet, and each of them have a BBMD system.

08:35.660 --> 08:42.160
So the way this works is that traffic intended for a foreign network is first sent to the source network's BBMD.

08:42.340 --> 08:49.320
It uses unicast traffic to send it to the destination network's BBMD, whose job is then to rebroadcast that traffic.

08:49.320 --> 08:51.780
That's all well and good, but how does this help us?

08:51.840 --> 08:58.720
Well, ultimately, by using this technology, we discovered, through testing, that this actually gets our exploit to work entirely over the internet.

08:58.800 --> 09:07.320
I want to reiterate, at the time of this writing, any EBMGR device connected to the internet with its default network settings could be pwned 100% remotely using this exploit.

09:08.460 --> 09:16.620
Now, this is not the end of our challenges, not by a long shot, because after all, up until this point, all we have is a root shell to the device and persistence.

09:16.620 --> 09:23.300
This is very nice, but ultimately we're more interested, from an impact perspective, from controlling the hardware on the other end of this device.

09:23.300 --> 09:31.920
Whether this be HVAC systems in a data center, access control in a government building, or pressure rooms in a hospital, that's where the real impact lies.

09:31.920 --> 09:33.640
We need to gain control of those.

09:33.920 --> 09:40.280
So our initial hypothesis was to use the programming already on the device and see if we can get that code to work for us.

09:40.500 --> 09:48.760
The first approach we used was to try and look at the database files located on the device's file system, and these contain some information about the state of the I.O.

09:48.760 --> 09:49.460
hardware.

09:49.680 --> 09:54.920
The first thing that jumped out at us when we looked at these database files is that I had no idea what the hell I was looking at.

09:55.120 --> 09:57.780
This was too complicated, so we decided to keep looking.

09:58.620 --> 10:01.360
The next thing we tried to look at is controlling the I.O.

10:01.360 --> 10:04.220
state directly from the touchscreen as you would in normal operation.

10:04.460 --> 10:12.460
And then this actually generates loopback traffic, and we decided that if we could investigate how these packets are structured and maybe replay them, we could get it to work for us.

10:12.680 --> 10:20.600
And those paying close attention might notice that the packet structure is actually very similar to the database files and that I still have no idea what I'm looking at.

10:20.980 --> 10:22.880
So we tried something else again.

10:23.560 --> 10:29.460
And what we ended up, what ended up working for us is actually hooking to the functions that control I.O.

10:29.500 --> 10:30.140
natively.

10:30.340 --> 10:34.200
And you see one of these functions in front of you from GDB output.

10:34.640 --> 10:39.700
And once again, symbols being left in proved invaluable here since names like can I.O.

10:39.700 --> 10:46.860
write output proved to be a huge, you know, indicator this is a good place to start since we knew that all the I.O.

10:46.860 --> 10:48.840
modules are handled through the CAN bus.

10:50.120 --> 10:52.540
Now through some further reversing of these I.O.

10:52.540 --> 10:57.780
control functions, we discover there's actually different functions for handling all the different categories of I.O.

10:57.960 --> 11:01.220
And there are six such categories for the EBMGR.

11:01.260 --> 11:07.580
You have inputs, outputs, variables, and any of these can be either analog or binary.

11:08.260 --> 11:13.500
Now the idea would be to alter the parameters going to these functions in order to get the code to work for us.

11:13.500 --> 11:16.740
But the question is which parameters do we alter and how do we do it?

11:16.860 --> 11:23.620
Well for that, we did find one key commonality between all these various functions and that's the first parameter being sent.

11:23.620 --> 11:28.980
The first parameter, as we discovered, is actually a data structure that describes the hardware being altered.

11:29.000 --> 11:35.740
In particular, this data structure for the first four bytes are the ID or the fingerprint of the device and this is unique to each one.

11:36.060 --> 11:41.760
At a 12 byte offset, we also discovered the holds the current state of the device, which is the most crucial component.

11:42.020 --> 11:50.280
But additionally, at a varying offset, you could also find a descriptive string of that device, which is how we know this one is responsible for monitoring room temperature.

11:50.680 --> 11:58.980
So using this information is actually pretty straightforward to alter these data structures coming into these functions and thus get control of I.O., at least in theory.

11:59.600 --> 12:09.920
So using this information, we were able to craft malware that took advantage of this hooking method in order to control the I.O., but ultimately we had another challenge in front of us.

12:09.920 --> 12:19.500
And that challenge was that, unlike the watchdog kicking code, which we could just throw some C code onto the device and have it run, execute some functions that exist in memory, the handles to the I.O.

12:19.500 --> 12:23.380
hardware were trapped inside the program space of the existing programming.

12:23.380 --> 12:27.040
It could not be accessed normally from an external program.

12:27.120 --> 12:31.860
Somehow our malware had to be inserted into the memory space of the existing programming to do its job.

12:32.100 --> 12:33.340
How would we do it?

12:33.460 --> 12:36.640
Well, the solution ended up being something called LD preload.

12:36.680 --> 12:39.920
And for those that don't know, LD preload is a Linux environment variable.

12:40.280 --> 12:45.700
And the shared objects it points to are loaded first by a dynamic linker when a binary is executed.

12:46.080 --> 12:48.340
Now this is not a new or novel concept.

12:48.340 --> 12:49.240
We've not come up with this.

12:49.240 --> 12:56.460
It's actually a pretty common strategy in this field for inserting code into the existing program's memory space, which is exactly what we wanted to do.

12:56.760 --> 13:06.340
So in our case, we used persistence on the device in order to set this variable to point to our malware and thus we could insert it into the device's programming.

13:06.340 --> 13:09.640
But then the next challenge was, where do we put it?

13:09.740 --> 13:11.600
Well, here are our options.

13:11.740 --> 13:16.220
So this is a rough overview of the programming startup routine.

13:16.460 --> 13:23.560
And through some further reversing, we decided that the best place to put it would be this function called canioinit, highlighted in yellow.

13:23.760 --> 13:28.700
The reason being is, as Doug mentioned previously, this is a vastly multi-threaded application.

13:28.700 --> 13:30.440
It runs many threads in parallel.

13:30.440 --> 13:38.720
And in order to avoid race conditions or inconsistent behavior, we wanted a function that was called early initialization, called once, and called by a single thread.

13:38.720 --> 13:40.820
And this function met all those criteria.

13:41.220 --> 13:45.040
So what does it look like once our baby malware is inserted here?

13:45.040 --> 13:53.380
Well, once this function is executed, our malware starts up and it runs a thread in the background that listens for commands sent over the network by the attacker.

13:53.560 --> 13:55.500
It listens on a TCP port.

13:55.860 --> 14:08.640
And depending on the content of these commands , the malware will then intercept the corresponding calls to the IL control functions, alter the parameters, as I mentioned previously, thus granting us control of the hardware.

14:09.520 --> 14:15.700
Now, we were getting close to the end here, but we still had one and possibly the most important challenge in front of us.

14:15.700 --> 14:18.320
And that was, I couldn't afford my mortgage.

14:18.800 --> 14:21.400
Now hackers, we got to eat just like anyone else.

14:21.400 --> 14:24.120
So we wanted to see if we can make any money off this thing.

14:24.240 --> 14:28.020
Now obviously on stage, I would not try and sell any kind of malware.

14:28.060 --> 14:35.780
But purely hypothetically, if I was going to, I might mention that it does give you automatic discovery of all the hardware.

14:35.940 --> 14:38.900
You know, sit back and relax, it does all the recon for you.

14:39.300 --> 14:40.540
Hypothetically, of course.

14:41.260 --> 14:46.340
Another thing I might mention is that you get remote control through an interactive TCP session.

14:46.400 --> 14:50.800
A quick aside, how many of you here, show of hands, saw our original talk yesterday?

14:51.900 --> 14:52.840
Okay, that's not many.

14:52.840 --> 14:53.840
I'm going to recycle my jokes.

14:53.840 --> 14:54.440
Good.

14:54.560 --> 15:01.120
All right, so my therapist always told me that two-way communication is key to any healthy relationship.

15:01.120 --> 15:05.140
And so we decided to let you communicate with the malware through an interactive TCP session.

15:05.400 --> 15:08.300
Now am I saying this malware is going to fix your marriage?

15:08.540 --> 15:10.060
Yes, that's exactly what I'm saying.

15:10.320 --> 15:13.680
Okay, next, you can actually see the state of all the hardware in real time.

15:13.680 --> 15:15.960
So you can see exactly how much damage you're causing.

15:16.460 --> 15:24.580
And last but not least, send a single command and you revert the device to its original, unhacked state, wiping out any traces the malware is ever there.

15:25.100 --> 15:35.420
Best of all, if you call in the next 30 minutes, hypothetically, you could get all this and more for 30,000 easy payments of $19.95, shipping and handling not included.

15:36.000 --> 15:42.700
And if you're still not convinced, be sure to walk over 10 feet that way after the talk is over to check out our presentation.

15:42.700 --> 15:44.280
You can see this bad boy in action.

15:44.580 --> 15:50.900
But to show you a quick overview of how this looks in the real world, I'm going to hand it back to Doug.

15:53.100 --> 15:54.140
Thanks, Mark.

15:54.260 --> 16:00.820
And just to be clear, we're having some fun joking around, but we are in no way releasing the exploit code, malware code, or selling anything.

16:01.880 --> 16:04.400
I don't want to get fired and my boss is sitting right here.

16:04.400 --> 16:13.000
So, okay, so now that we've gone through a little bit of the challenges and a really high overview of how this works, what does this really look like?

16:13.040 --> 16:22.360
And one of our missions at McAfee's ATR team is we really want to demonstrate these in some means that it's really easy for everyone to see what the impact is.

16:22.360 --> 16:29.840
And because of that, we actually took the time to build a fully working demo unit, which as Mark said, is literally 10 feet over there afterwards if you want to see it in action.

16:29.840 --> 16:33.360
But I'll show you the demos as videos right now since they won't let us will it over.

16:34.540 --> 16:41.780
So what we built was a fully functional HVAC unit that's cooling a simulated data center.

16:41.780 --> 16:43.180
Because why a data center?

16:43.180 --> 16:46.300
Because this is one of the uses that this exact model is used for.

16:46.300 --> 16:53.980
We actually hired an installer that installs these on a regular basis to build this, and one of the main things they install it in is in data centers.

16:53.980 --> 16:56.780
Again, we're going for as realistic as possible.

16:57.000 --> 17:04.280
So if we take a look at what this unit looks like, excuse me, on the backhand side you see all the components of a normal working HVAC system.

17:04.280 --> 17:15.920
So we've got the valves, we've got fans, we've got pumps, and all this is doing is taking cold water from a cold water bin and using that to send cold air into our simulated data unit.

17:15.920 --> 17:22.860
You might say there's not usually cold water in a real unit, but again my boss was too cheap to buy an actual condenser, so that's what we were working with.

17:22.860 --> 17:27.480
On the other side we have a glassed-in simulated data center.

17:27.480 --> 17:34.540
We've got all this again HVAC equipment that you'd see in a data center, and we even have a raised floor with a server sitting on it generating heat.

17:34.600 --> 17:36.920
For a moment I'll bring your attention to one of the sensors.

17:36.920 --> 17:38.740
It's the independent temperature sensor.

17:38.740 --> 17:47.020
This is the only component not hooked up to the Delta system because it gives us ground truth for what the temperature is regardless of how much we mess the system up.

17:47.620 --> 17:51.880
On the top we have some simple LEDs indicating different states of the equipment.

17:51.880 --> 17:56.860
Again mostly just so it's visually easy to see, but the most important one is the alarm.

17:57.280 --> 18:01.820
And the alarm is an interesting one because in real life the alarm could be done one of two ways.

18:01.820 --> 18:10.980
It could simply be an LED, it could also be a siren, but more frequently the alarm is used for like email notification so that somebody knows this system's in distress.

18:11.260 --> 18:14.720
So anytime we talk about the alarm, that covers all of those.

18:14.720 --> 18:17.140
The attacker would be able to manipulate that as well.

18:17.320 --> 18:24.980
So I'm going to show you what this would actually look like if someone attacks it using our premium malware which will help pay for Mark's mortgage.

18:26.460 --> 18:32.580
On the upper right hand side of the screen you see the attacker running the exploit script that we ran.

18:32.580 --> 18:38.100
On the top right hand side of the screen you see the Delta controller picture-in-picture.

18:38.140 --> 18:49.500
As the attacker launches the exploit, leverages the vulnerability, it downloads our malware and a few other fun images and this reboots the system to leverage that LD preload method that Mark talked about.

18:49.500 --> 18:53.040
Here you can see we've replaced the images just to prove that it's hacked.

18:53.420 --> 18:57.900
No one would ever actually do this in the real world, but we're just going for a visual representation.

18:58.140 --> 19:03.320
Also we're logging in to follow along, but no one actually needs to touch or log in the system.

19:03.940 --> 19:08.260
So what are some of the things the attacker might do once they got to this point on the system?

19:08.280 --> 19:11.040
Well one thing they might do is control the outputs of the system.

19:11.040 --> 19:15.180
The system takes input and based on those inputs have a reaction to the outputs.

19:15.280 --> 19:21.640
So here what you're seeing is the attacker manually override several of the outputs on the screen one at a time.

19:21.640 --> 19:27.780
In the bottom right hand corner of the screen you will also see that the system is reacting accordingly.

19:27.780 --> 19:30.380
So the pump shutting off, the alarms turning off, etc.

19:30.380 --> 19:35.620
On the top right hand of this part of the screen you'll notice that the Delta screen is not reacting.

19:35.620 --> 19:37.720
In fact it's still staying in its previous state.

19:37.720 --> 19:44.200
This is because our premium malware has the ability to adjust or not adjust the screen based on the attacker's will.

19:44.200 --> 19:50.020
And if we start talking about alerting or whether the user is aware, this is a very important feature.

19:50.580 --> 19:54.380
So what you just saw turning stuff on and off, that's binary outputs.

19:54.380 --> 19:58.020
These systems typically have both analog and binary outputs.

19:58.020 --> 20:03.320
And all analog means is they're set to some floating point value instead of just on or off.

20:03.400 --> 20:07.240
So to manipulate those the attacker can do that as well through the same interface.

20:07.240 --> 20:12.840
This time that you will see the Delta screen update because we're going to have the attacker choose to update the screen.

20:12.840 --> 20:19.520
So they're going to change the fan speed in the valve and you can again see the component reacting appropriately in the bottom right hand corner of the screen.

20:19.860 --> 20:28.140
Also what we've done in this malware is provide a reset function which sets everything back to its original programming without removing the malware's presence.

20:28.140 --> 20:32.480
So it kind of gives the attacker a way to put things back and still have persistence on the device.

20:33.520 --> 20:40.620
So controlling outputs are fun but it would be a lot of work for an attacker to have to manipulate all the outputs in order to get the outcome that they wanted.

20:40.680 --> 20:47.180
Remember I mentioned that these systems are designed to take input and based on that input perform some action.

20:47.320 --> 20:55.320
So instead of controlling the outputs if we manipulated the incoming data then the the rest of the system would just function as normally.

20:55.520 --> 21:02.280
So in the world of HVAC if the system thought it was reading 30 and 40 degrees from the data center what would it do?

21:02.280 --> 21:04.060
It would do the same thing your house HVAC would do.

21:04.060 --> 21:06.560
It would turn itself off because it has no need to cool.

21:06.560 --> 21:13.280
That's exactly what we have going on here and you can see our independent temperature sensor in the bottom right hand corner the temperature is rising.

21:13.740 --> 21:17.120
Alarms are not going to trigger because the system doesn't think it's in distress.

21:17.400 --> 21:28.280
You know all the valves or dampers and stuff they're going to close on their own without the attacker doing anything because that's how the system's programmed to react when it thinks it's only 30 or 40 degrees inside the data center.

21:28.280 --> 21:33.080
So this is actually a more impactful scenario controlling the inputs than the outputs.

21:33.900 --> 21:53.960
And a data center again is just one example of how this how these would work in the real world but think about you know a major corporation insert your favorite name cloud provider and if their data center was to lose HVAC for a couple days without their technicians knowing being any of the wiser we could probably impact a pretty large portion of the internet.

21:54.360 --> 22:12.820
But we want to highlight that data centers are not the only thing because this is a building controller and it's not agnostic to one industry these are installed across a very wide range of industries and I'm going to highlight a couple of examples in those industries just so we understand the impact beyond melting down a data center.

22:13.200 --> 22:22.880
So the first one I'm going to talk about is the health care industry and the health care is slightly unique in the fact that building controllers control pressure in individual rooms throughout a hospital.

22:22.900 --> 22:25.420
And what do I mean by controlling pressure?

22:25.520 --> 22:34.180
Well by setting the pressure in different rooms, I'm sorry, by setting the pressure in different rooms to different degrees, it prevents the spread of disease.

22:34.180 --> 22:41.080
So by having a positive pressure in one room and negative pressure in the other room, disease can't travel from one side of the hospital to the other side.

22:41.080 --> 22:45.940
The other unique thing about controlling pressure is it's just a very very small change in pressure.

22:46.000 --> 22:49.500
Unlike temperature you might walk into a room and say hey it's kind of hot in here.

22:49.500 --> 22:53.680
If you walk into a room you're not going to say hey the pressure is kind of low in here.

22:53.720 --> 22:58.520
So the humans not going to notice that change, it's a very small change.

22:58.520 --> 23:14.420
And if an attacker was to get on one of these systems, make it so the hospital pressure was even throughout everything, I'm talking the OR, you know the quarantine room, the rooms where the housing critical diseases or samples, all of a sudden all that stuff would be able to travel airborne throughout the hospital.

23:14.420 --> 23:16.280
And that could actually affect human life.

23:16.380 --> 23:18.440
That's a pretty interesting scenario.

23:19.120 --> 23:33.040
If we talk about the government sector for a moment, I only bring up this one because we did some online open-source intelligence research and found that these systems are actually being used in certain government buildings, state governments, for access control.

23:33.160 --> 23:43.580
Well if you think about that impact, if we were able to access one of these systems in a state government building for access control, I don't think I have to go into too much detail at a hacker conference of what that would provide, right?

23:43.580 --> 23:49.500
We would be able to access maybe sensitive data that we weren't supposed to get to, social our way, engineer our way in.

23:50.400 --> 24:00.540
And last but not least, I'll take a moment just to highlight education just because I think it's a one that people are probably asking yourself, why do I care if you can affect the HVAC system in my kids preschool?

24:00.720 --> 24:11.080
And what I would argue is we often forget that because this system is completely accessible over the internet and remotely exploitable, it's not only about the system itself.

24:11.080 --> 24:26.100
Unfortunately, we find that a lot of times these are not air gaps and there's other systems on the network and being able to control a system that's on the network in a hundred percent capacity will allow us to potentially view video feeds that are going over the network or compromise other systems on the network,

24:26.100 --> 24:29.300
which all of a sudden you might care a little bit more about than just the temperature.

24:30.060 --> 24:37.680
But don't worry, no one would actually connect these systems to the network so we really have nothing to worry about from a network perspective.

24:37.940 --> 24:39.480
Oh, I forgot about that.

24:39.480 --> 24:42.920
Shodan does show us this a little different than the optimal version.

24:42.920 --> 24:54.120
So at the time that we originally did this, the exact model that we exploited that has the vulnerable firmware, there was about 500 of these on the internet at the given time.

24:54.800 --> 25:06.680
And the thing was, where we discovered this vulnerability is pretty low on the stack and it's because it digests the BACnet protocol, it's actually used across multiple Delta Controls devices.

25:06.680 --> 25:08.940
It's not specific to this Delta Control unit.

25:08.960 --> 25:17.480
And if we look at those numbers connected to the internet, all of a sudden we get to about 1,700 connected to the internet that has the potential to be vulnerable to this vulnerability.

25:17.480 --> 25:21.840
Give or take 10% or so for honeypots that we found on the internet as well.

25:22.260 --> 25:29.680
So with that said, I think we've covered just about all of the impact and the details of the vulnerability.

25:29.680 --> 25:32.440
I want to take a moment to highlight the vendor for this.

25:32.580 --> 25:41.840
Per McAfee's responsible disclosure policy, we disclosed to the vendor that we found this bug and everything that we were able to do with it in late 2018.

25:42.080 --> 25:46.200
A CVE number was generated and then we worked very closely with the vendor.

25:46.200 --> 25:49.720
And in June of 2019, the vendor released a patch.

25:50.020 --> 25:54.980
ATR has tested the patch and is happy to confirm the patch fully does mitigate this issue.

25:55.380 --> 26:05.940
And I also want to take a moment just to say that Delta was awesome to work with and they were kind of what I'd like to see as the gold standard going forward for security researchers releasing bugs.

26:06.340 --> 26:13.660
A lot of times, I've been in the industry for almost 10 years and there's a lot of bad blood sometimes between security vendors or security researchers and vendors.

26:14.020 --> 26:17.240
These guys were extremely receptive to the information we provided them with.

26:17.240 --> 26:20.660
They worked with us very closely to make sure the system has been patched.

26:20.660 --> 26:23.640
And this is really what we want to see from all the vendors in the industry.

26:23.640 --> 26:25.200
We're not trying to do anything negative.

26:25.200 --> 26:28.420
We're actually trying to help you and find these bugs before the bad guys do.

26:28.460 --> 26:36.060
And this is really a good example on how effective that can be if you can get a good relationship with the vendor because they're actively patching these systems right now.

26:36.060 --> 26:40.140
We've actually already seen the patch being applied and less of these systems vulnerable on the internet.

26:40.700 --> 26:42.900
So thank you for your time.

26:43.040 --> 26:48.240
Mark and I will be here at the our demo station which is again literally 10 or 20 feet over there.

26:48.240 --> 26:54.320
We're happy to answer any questions you might have further or and I think we're probably we're gonna get off stage here.

26:54.320 --> 26:56.440
So any questions you have please come to our station.

26:56.440 --> 26:57.260
Thank you.

