Okay, everyone. I guess we're ready to start now. We got everything worked out. This is my presentation called Exploiting SCADA Systems. And just a brief background. Well, my name is Jeremy Brown, and I'm a vulnerability research engineer at Tenable. And I like to play with SCADA software, so the presentation is focused on vulnerabilities in SCADA software. So let's get started. So a lot of SCADA software runs on AIX, OS2, Linux, but most of the modern software runs on Windows. So the framework that I'll be demoing later will show exploiting the SCADA software on Windows. So SCADA software runs on Windows, and it's a very, very simple software. You can use it on workstations, you can use it on remote. There are even mobile apps to control remote aspects of SCADA. And that's what the iPhone app shows. So tag vectors via software vulnerabilities. With SCADA software, they're used in the same programming language as all the other applications, C, C++, so they share the same vulnerabilities as the application itself. And they're very those are very common. And you can any other application. So whether that be client side attacks from the web browsers, click on a malicious link, anything like that, whether it's not patched, e-mail or even malicious servers attacking clients, SCADA clients and things like that. Also server side attacks from the Internet if SCADA software is connected to the Internet, it's vulnerable, it's just anything else. Or the internal network if it's fire walled or not accessible by the Internet. I'm just going to skip through some of the brief introductions. Click jacking, I thought that would be funny. You never know, maybe it's vulnerable to click jacking. So what's wrong? What's the problem with SCADA software? Security has been implemented as an add-on instead of being built around the product from the ground up, especially for a lot of the older versions of software. In SCADA plants and things, the security is kind of a hindrance. So it wasn't really built. Everything back then was kind of built just to be easy for the operators. So security wasn't really a priority until people figured out people were hacking into SCADA systems. And then systems typically are installed for long term and software upgrades may require new hardware. So when SCADA systems are installed, you're going to see any kind of temporary backups, they are put there for maybe a decade, five years, decade, two decades, something like that for a long term. So when they put everything together, they're not looking to make upgrades for a long time. So if vulnerabilities come out or patches or new versions, they may require new hardware just to upgrade. And then just a thing that I noticed that may be typical for a lot of SCADA systems, when they go into an audit or something, it's not something like that. A lot of administrators are saying this isn't connected to the Internet or they can't access this from this network because it's separated or on a different network or on a different subnet, something like that. But still, something somewhere is connected to something that may be connected to the Internet. The whole process of communication means you can communicate with things anywhere. You have to be able to communicate with, excuse me, to control it. So unless it's strictly physical access, something has to be connected to something. A lot of times it's also connected to a system that's connected to the Internet. So the attacker gets control of a system that has access to the Internet. You got access through the Internet and got access to the internal network. So even though the system wasn't connected to the Internet, it is now vulnerable to attack from the attacker. So. And then vendors. Vendors can take their time with updates and managers can take their time updating. Since they're going to be in place for a long term, a lot of the patches, a lot of the upgrades may not occur for a long time. So this, even if you find bugs in the SCADA software that is, it could be five, ten years old or even the latest software, you still have a chance to attack something on the network because chances are they haven't upgraded for so long that it's still going to be vulnerable. So. And through my research, I found that there are a ton of vulnerabilities in SCADA software. It's just, I don't know if they're not, I guess a lot of the old programming practices have to do with this, too. And it's just, they're not, the code is not secure. Plainly saying, it's not. They should really do some in-house testing because you could simply, I mean, some of the vulnerabilities are not going to be fixed. So, I've opened up a hex editor of the file format that happened to be used in the SCADA software, looked at an interesting place and put a bunch of characters, a long string in there, closed it, saved it, closed it, ran it in the software, crashed. It's just, it's not stable in the security aspect. So, just kind of, who may find the bugs? I mean, you never know who may be looking. But, it's just, it's not steady. You never know who may come across them by accident or anything else like any other software. So, could be employees and I just had a couple pictures here. That guy looks kind of curious what he's doing. Hackers, the ones up to no good, which, according to how you look at it, black hat, white hat, gray hat, whatever. But, it's kind of the typical evil looking, cartoonish evil hacker. I don't know. Kind of looks kind of cool to me. But, I don't know. I don't know. I don't know. Security researchers, security professionals, according to how you interpret it. We know everyone here has at least six or seven monitors in their work station. So, it's got the clean representation of all of us here. And then, really, I found out, you don't even have to have a lot of experience with dealing with security vulnerabilities. You can come over, you know, you can find them by accident. A lot of people do. But, anyone that cares to look could find vulnerabilities in the security software. It's insane. So, I guess I kind of moved a little quick here. But, this is kind of the middle of my presentation. I want to do splitware. Splitware is, well, I started out, I was finding all these vulnerabilities in SCADA software. And I was like, well, what am I going to do here? I kind of, you know, I thought about writing Metasploit modules for them, you know, to deal with the exploitation part. Which is great. You can interchange payloads. You can, you know, host, you know, you guys are familiar with Metasploit, you know what it can do. But, I was like, well, kind of bored, so maybe I want to start a project here. And never really wrote a framework before, not in this sense, not a penetration testing framework. So, I was like, well, I had some code I could reuse and start on a new project. And I was like, well, I want to learn some stuff, too. So, I just basically in my spare time created splitware. And splitware is just a framework designed to specifically penetration test SCADA systems. More specifically the software side of SCADA systems. And I've used it in my, I haven't used it, you know, of course, in any protection systems. I just used it in my lab with my test systems. But I found you can get reliable exploitation just by, I mean, even reusing payloads and things like that. I just, I mean, it was pretty easy to design the framework. And I just kind of put some things, I guess, similar to the concept of Metasploit. I just kind of put some things, I guess, similar to the concept of Metasploit. And, you know, I wouldn't dare say it's anything close to Metasploit or Canvas, but that was my original idea when I wrote it. Something that I could use to check SCADA systems for vulnerabilities. So, it was pretty nice to do. It can check the systems for the potentially vulnerable software. You know, I've written some local checks. It can test remotely. You know, if there's any version strings that come up or it can detect the headers in the requests. And, you know, I've done a lot of things with it. It can, exploitation is optional but readily available, like I said. The point of the framework is not just exploitation. That's what kind of Metasploit was, I mean, Metasploit can check with them, too. But it's kind of just, you know, if you go into a pen test and say, hey, we've got some SCADA systems running here. We've got some software running as well on them, of course. What can we find out that's vulnerable? And what can we see, you know, what can we exploit, too? So, it has checks. It's also kind of added in an auto-pwn feature, which I love. It's pretty necessary for any explanation framework. It's pretty cool to do. You can just hit the dash A and it will go through and check for all the vulnerabilities it has in the database. And if it finds any, it will exploit them. But the payload, it just has one payload right now, which I haven't really done much development on it recently. But it just adds like a user, like exploit, password, where, something like that. You can use anything. You don't have to just exploit for some of them, but anyways. But, like I said, the point of it is not just for exploitation. The point of it is to, you know, it has local checks, remote checks. It can, just a brief way you can check the SCADA environment for anything that may be vulnerable. But the exploits are zero-day. And I haven't worked with any of the vendors yet, but I plan to in the future. But for this, they're just kind of let you know, kind of the pre-audit would be, you know, before they shipped it out. I kind of do like the post-audit, you know, like the vulnerability research with them and see what exactly is vulnerable. And everybody loves zero-day. And the methods I use for identifying the vulnerabilities. I went from manual testing, like I said, you know, some of them actually when I first started looking at them, I just wanted to look at the file format briefly, you know, through a hex editor or something before I dug into it deeper. So I just opened that hex editor and I was like, well, I wonder what happened if I, you know, curiosity gets a bit out of me. And I was like, well, what if I happened to enter a long string here or changed, you know, this value to an FF or, you know, just simple auditing. And I found that after I saved it and ran it with a program, it would crash. I was like, wow. And then, you know, you do crash analysis after that. And some of them are actually vulnerabilities, like buffer overflows, like easy, direct EIP overwrite, easy. Some of them were memory corruption. Some of them were kind of harder to exploit, different kinds of memory corruption, maybe pointer corruption or something like that. But, you know, that's the thing. It was really easy. That was manual testing. And fuzzing, of course, any file format fuzzer can, you know, set it up to run the application, log the crashes, things like that. So I didn't actually use much fuzzing for the exploits in exploitware. It was just too easy. Like I didn't even need to. Like I found, you know, a number of vulnerabilities just by manual testing, just playing with it. That's how easy it was to exploit. And then some was reverse engineering. I don't know if you guys have seen this, but I just kind of dropped my zero day a few months ago. I was reverse engineering the EDS file format. And I just kind of went through a brief example. It actually gave me the error messages. I didn't even have to reverse it. It would actually give me the error messages to properly format the file. And then I went into, you know, after I seen that, I was like, you know, I don't think it's giving me everything. So I want to reverse it and see what other options were available. So I went through and done that. And I found a bunch of, you know, the same buffer was vulnerable, excuse me, two or three. It was, I think, a Unicode buffer overflow. So I just went through, found it, and then I didn't really post any details yet because I had not contacted the vendor or anything. And I just kind of wanted to do an example of, you know, kind of black box testing and then going into reverse engineering. And then somebody apparently, I guess it was my fault too, they found, they knew what the EDS file format was. They knew what programs used it in SCADA. So they, Sukuna I guess somebody, excuse me, contacted Sukuna and told them about it and they dropped my zero day and stuff. But it happens. Excuse me. Okay. So that was the method. I mean, it was really, I didn't use that much reverse engineering because just because it wasn't necessary. I mean, I like to reverse engineer just to do research sometimes. But these, most of the vulnerabilities came from manual testing, like manually changing variables in the web parameters or, you know, changing file formats or just, you know, running, connecting to the server and sending a long stream. Like the exploit I'll be demoing today, actually the vulnerability is, I guess on receive, it just receives, it doesn't even file, it doesn't even format the buffer. It just, the vulnerability is in receiving all the data into the input buffer. So I didn't need anything. I basically just connected to the software or excuse me, server and sent the long stream and crashed. And then I ran it in, you know, WinDB or, you know, I can't remember what debugger I was using then. But install, you know, I was overriding some other variables, too. And I kind of backed off on my payload a little bit and then found out I could get, you know, EIP override. Easy. So all these bugs were really not challenging and a lot of fun. Some of them, like the integer bugs, were kind of, I don't know, I don't know if you've ever seen them. They were harder to analyze and find, I guess, because you can just, you know, manually send negative one, negative whatever, or a logic value 65536 or whatever, 65535 whatever, and find them. But it's just really easy. And the reverse, or research and development findings I found, I probably went through the process over, I don't know, three or four months just on and off. I don't know how long it took me to look at them. I was looking at different SCADA software and finding vulnerabilities. And the findings ranged from, you know, some of them were remote code execution. Or if you look at file formats, it would be local. But, you know, if you share the file or something, it turns into remote. Or if you can access through a web browser, it turns into be remote anyways. And then to denial of service, you know, there was tons of denial of service bugs. Wasn't really that big a deal. Well, I guess it is in SCADA software. But as a security researcher, you really don't look at denial of service bugs. You don't look at denial of service of being high profile. Unless it's something that takes down like the entire network. But in a SCADA environment, if you, you know, crash the server, that's sort of a big deal. And then integrity lost. There was even some, you know, everybody thinks ActiveX bugs were dead. I even found some ActiveX vulnerabilities related to integrity loss, you know, like overriding files or changing files, deleting files, something like that. So they were interesting, the findings were. But most of them, you know, they weren't really well, yeah, half or at least most were led, the vulnerabilities led to remote code execution. So it's pretty interesting. And so I've talked through to the demo. And I'm going to, I've kind of used a lesser version of splitware. I didn't, I only included like, it was a slew of vulnerabilities, but I only included one. And kind of like removed some information. So I will demo that now in a virtual machine. If I can, hopefully I won't mess up the screen like we had earlier. Let's see. And the application, or the presentation won't crash out of that happening earlier. But so far so good. You guys can see that. So this is just a Windows XP service pack 3 box. And just, I think this is pretty much default configuration. It may be different in other environments, but this is just the, excuse me, the default. And I think this is pretty much the default version. And it's got all the patches, all the updates and everything current to maybe a week ago when I made this virtual machine. So splitware folder, I've kind of dimmed it, kind of dimmed down it, dumbed it down a little bit. But basically in the folder, see I'll open up the folder and show you guys real quick. So it's just the splitware program. And just the compiled, then you got pack, the pack folder which contains all the exploits in case you want to exploit. So and there's only one in there, you guys are probably not interested in that anyways, but I'll show you the exploitware. It's got the cool little header on it and then you got dash target for the target and I'm sure you guys can read, but you can get information about the exploit, run the check, you can run a certain check and I call them SPIDs, which had a different name before I named it exploitware, but still. Excuse me? I don't know how to do that, I'm sorry. What is it? Okay, properties? I'm sorry, my Windows skills are not, font? Yeah, makes sense. Okay. I'm getting less in here myself. Is that going to be appropriate? So glad to have you guys here, you guys are awesome. Okay. You see that good? Thank you. I'm just, let's, you guys really want me to change the green on black? At least my presentation is going to go maybe to the time slot, so that's cool. We can do this. Yellow, I click yellow, right? That's not going to be good. Yellow, I click yellow, right? That's not going to be good. Okay. Black feathers, black feathers. There you go. Yellow, yellow tags. I'm going to go with green. Are you serious? Yeah. I like the green because it looks cool. But you guys, alright. Yellow, I guess yellow is better on the internet. readings. Okay, so, exploitware. So I'll just do a couple functions of it. I'll include one exploit, there's many more than that. I didn't want anybody to steal my ODAY. So let's do this. So it just all kept in a database and hopefully I NA'd all the stuff I didn't want anybody to know. I think so. But I just put it in a flat file database right now and it just prints out status. That's not the real vendor name and product title, but I changed that. And then you've got vulnerability description. Just like a brief thing with it and the revision. If I added something on to it, .1 and all that. Made it universal. I think I used a DLL out of the box. I think that's what it's called. I don't know what it's called. But DLL. I think it's a dictionary that was included. Easy stuff. But and it's pretty much 100%. I guess I can say 100% reliable. Something messes up. So and then I guess I can shit. Excuse me. I forgot how to use the up button. And then you just run the check and exploit it. But I've already got the vulnerable daemon running. And then you open the We are just going to show the auto-pwn feature. Which is awesome to me. I think every exploitation thing or penetration should have auto-pwn just for people. People seem to love that. It's odd. It's cool. I'll do the check first because I said it's not really for exploitation. I mean it is, but it's optional. So I'll do the check first. Shit, cannot talk. Check. So you can check for a specific one, but I'm just going to check for the first one. So it just goes through, runs a simple Windows, checks the registry for it or whatever. It says deployware demo is installed. Checking if it's a remote service, it can check the local host. It's running on the local host. I haven't done anything really cool with that, like version checking that much either. But this one really doesn't. This is the one where I just sent the long character string and it, you know, I got a ‑‑ I owned it, so it doesn't really have that many information stuff anyways. So my server is listening. So that's the check you can go through. And then we can exploit it. I'll just use auto-pwn. Local host. You can do this on any host. But the local host ‑‑ if you run it as local host, it will do do the local check too. It's got a little if whatever. But if you don't, it won't execute the local check. So it won't kind of ‑‑ that's common sense. But anyways. Hopefully autopun will work here. So I'll briefly show you the ‑‑ crap. The payload is going to add a user account and there should be no split account here. Great. So you just see the user and the ASP machine account and the guest. So hopefully that will change very soon. So we're going to autopun and it just ‑‑ basically just runs a Perl script with exploit. I named it .SP because I thought that was cool. But I don't know if it is. And then payload sent. And where it's an egg hunter, it may take a few seconds for it to go. So we'll wait a couple seconds. But it just sends the payload. And then you got a nice little screen that says ‑‑ in the real thing it says, you know, the title of the vendor and the product and everything. But in this, you know, it changed everything. So. And it's been a couple seconds. So let's check. Hopefully we should see ‑‑ okay. And we executed the code on the user account. And we have a nice little exploit account with the password where. So yeah, that's the demo of the zero day I had in the server. Should have done some dramatic music maybe that would have helped. I don't know. Everybody's like, should we clap or should we just ‑‑ it's zero day. I don't have it. So. Okay. But yeah, so. You can put in any questions that you have. I know I did not have that. whatever payload you have, I don't currently support more than one right now. Like I said, it's just a proof of concept framework. And I really haven't done that much dev on it for probably two or three months, except for getting this presentation ready. I had to change all the stuff. But yeah, I thought it was pretty cool to have my own framework to do that. So it's rock control, right? I don't think I have a rock control on this keyboard. Let's use this. Oh, that'll work. Okay. We'll leave it pwned for now. I'll restore it later. Okay. Everybody leaves after the demo. That's cool. So demo and I just had to put a few recommendations here. Vendors really think you should try to break it before you ship it because or it will get broken after you ship it. It's kind of, I don't know. And for the clients, I mean, I think it would be fair to say to do a security evaluation before you make a purchase because lots of the websites have free trials and demos for the SCADA software. You'd be surprised how many you could find out there just by, you know, I guess you could call them and tell them you want to request or something. But I guess you'd probably have to be in a company to do that unless you just wanted to do it. Yeah. Yeah. Yeah. Yeah. Yeah. Yeah. Yeah. I would like to. But a lot of it's just free downloads. Some SCADA software is just free. It's probably not that good. But yeah, a lot of it has got free trials like I'll be showing you in a second. So I just wanted to say SCADA software can be just as vulnerable as your typical download.com application. And everybody knows when you want to own something you'll go to download.com, download some mom and pop app and own it, which is if you're bored or if you can pwn something that's, you know, worth it, but whatever. And I just wanted to show you a like a page off the proficiency. You can get a free trial of the DVD program. You can get the free evaluations. You can check the software out before you buy it for the clients or check it out and find bugs in it and do presentations or something like that. So thank you. Thank you.