Hello. Hello, DEF CON. So, yeah, this is Fair Uncertainty in a Digital Armageddon. I hope everyone here can see the humor in that without that having to be explained. So, yeah, yeah, I know. Let me just get the pointer in the right place. So, yeah, my name's Morgan, and I'm a security guy. I am, ooh, hold on a second. Which slide am I actually on here? Ah. Sorry, guys, slight wardrobe malfunction. There we go. So I'm a security guy. I hack SCADA networks, critical infrastructure. I work for a firm called securityassessment.com from New Zealand. So I'm going to go over what SCADA is, why it's really hip right now, and then talk a bit about hacking it. I'm not going to talk about low-level protocols like Modbus, but if you guys were like Mark Bristow's talk before, then you would have got a pretty in-depth run over that anyway. Sorry. Better? All right. So there's a tendency by the media to refer to, like, all industrial control systems as SCADA. What I'm primarily concerned with is power, water, critical infrastructure, mass manufacturing, that sort of thing. Now, the risk in these environments is largely defined by the threat, right? Like, we're talking power blackouts, dams opening, all that sort of bad stuff. Probably not global thermonuclear war. But, you know, we have had some, you know, stuff like this, big explosions and whatnot. These are from an accident that actually happened in Bellingham, Washington. Now, this was 237,000 gallons of gasoline that caught fire on a creek, killed a couple of people, and caused a lot of property damage. This was actually an accident, but it was a really big firewall you could see from Canada. So it wasn't a small explosion. The largest actually a result of a SCADA accident or sabotage, depending on who you believe, that apparently happened in Russia. This was the largest gas pipeline explosion ever. There's been a bunch of SCADA incidents which have been reasonably well publicized over the years. Russian hackers taking over gas pipelines. A guy called Videk Bodin in Australia dumping sewerage into drinking water, a real jerk there. There's been a lot of press recently about maybe al Qaeda's going to perform SCADA attacks, Chinese hackers are getting all up in those. The SCADA, you know, everyone's having a go. Now, I think we're more worried about this than we used to be just because hacking's a lot easier than it used to be. Hacking used to be about quite skilled dudes performing quite trivial attacks and kind of coming up with it themselves. Now, because of the rise of, like, exploitation platforms and Oday packs and that sort of thing, you can get other people to do all the work for you and offset time and skill with money. So you can just buy yourself a Russian Oday pack and, you know, you're off to be a bad guy. Now, the digital Armageddon obviously hasn't happened yet, but without hype, there's no story, right? So it does behoove the media to, you know, juice it up a bit and get people worked up. I mean, despite this, like, you know, the blaster didn't cause the East Coast power outage, everyone knows stories of teenage hackers that get pretty overblown, and Chinese hackers get blamed for everything these days, like kicking your dog, taking your girlfriend, you know. A lot of the dire predictions so far also have been quite incorrect. IDC named 2003 a year of cyberterrorism, said the internet would crumble, obviously didn't happen, you know. So before we progress, I'm going to explain a little bit about what a SCADA system actually is, and then we'll get to the good stuff, the pop shots, the owning, and so forth. So SCADA system is basically, generally, a spread-out, geographically remote set of systems that are controlled by a central computer. At the edges you've got remote terminal units of the older programmable logic controllers, and they do the grunt work of a SCADA network, control mechanical devices, pumps, switches, valves, that sort of thing, monitor levels. This is an example from a water treatment plant. So you've got, you know, the PLCs here, and they measure flow according to set points, which are set by a human. At the other end, this is, you know, I've got quite a collection of SCADA porn if people want to look at it with me afterwards. So there's a master station, and that takes information from PLCs and RTUs and converts it into a more human-readable format for use in an HMI, which is something like that. Generally a point-and-click your way to controlling a SCADA network. As you can see here, this is for industrial food tech. You can control heat, pressure, all sorts of good stuff. The communications layer, of a SCADA network is traditionally a mix of radio and direct serial connections protocol called RS-485, which is multi-point serial, used to transfer Modbus and other low-level SCADA protocols. These days, we are actually moving to a brave new interconnected world, where we want everything to run over IP, from toasters to fridges, and so we've got standards like open Modbus, DNP-3, these all run over IP networks, and there's an open architecture, which allows people to use multiple vendors' products. So historically, we could describe SCADA networks as quite primitive, and they ran off proprietary hardware, and you need closed-source manuals, and so as such, true or false, they were considered to be immune to outside threats. These days, in our brave new interconnected world, everything is connected to the corporate land for reasons of monitoring, alerting, producing those graphs that managers know and love so much, and unfortunately, modern stuff is susceptible to relatively modern, or not-so-modern threats. So you've got old-school, but still new-school for SCADA network types of attacks, which basically work. So the core guys have been beating pretty savagely on SCADA recently, and Wonderware, which is a vendor we'll see a bit later as well, they're a really big, big vendor, and core found sending a malform packet to a random TCP port caused a crash in the software. I mean, this is pretty old-school stuff. What's interesting, if you read the notes, is that they sent the vendor proof-of-concept code in Python, Wonderware asks for compiler tools to run Python, core says go to python.org. This is, while companies like Microsoft and Cisco and so forth are used to doing the vulnerability dance, big SCADA vendors still aren't, and still don't really have that sort of relationship with the security community. This is another one found by core. Again, it's like canonical stack overflow, improper length checking, long buffer. I said, you know, sort of same bug, different app. It's, you know, there's a lot of research being published on it at the moment. These are some of the favorite talks that I've read recently. It's a hot topic, because the possible ramifications of a SCADA compromise could be pretty big, as we've seen, and in the media, I think, there's a lot I think in the public mind, cyber-terrorism is like the new chemical warfare, or like chemical warfare was in the 80s. We're really, really afraid of it, and a lot of people don't understand it. That and SCADA, SCADA is changing from, as I said, proprietary, obscure, isolated, and theoretically immune to attack, towards standard, documented, and connected systems. So what that basically means is that you can test or hack SCADA systems with a lot of the knowledge, you already have. I mean, you saw Mark Bristow before, wrote a custom tool mod scan. There's a Sully Fuzzer out there. It's sweet if you know low-level protocols like those guys, but you don't actually need to. If you've got good knowledge of wireless, good common systems knowledge, VoIP, so on and so forth, you can get quite a long way, and if you're prepared to be intelligent about your intel-gathering techniques, and go a bit old-school, then you can actually find this quite easy. Old-school is good school. I'm gonna talk about some stuff that I imagine everyone here knows. If you don't know much about radio scanning, there is a wealth of knowledge online. Radio geeks really like writing stuff down. There's a protocol called POCSAG, which is used for pager messages. Now, a lot of SCADA alerts are sent via pager over radio link. This is because sending really critical messages over IP networks. IP networks isn't a great idea. One carrier has a problem, you don't get your message for a couple of hours, if at all, blah, blah, blah. So pager network is dependable, reliable. Unfortunately, it goes over a clear text link. So that means anyone with really cheap gear can read it. Now, this is a really cheap and nasty scanner. I've got a better one, but this was 250 NZD at an electronic store across the road from my house. So what do I actually get from cheap and nasty scanners? What do I actually get from nasty gear like this? Well, in this particular slide, we can see what the state of the system is, we can see they've got some issues here. There's a strong smell of open sewer, Modbus is offline. We keep going through the conversation, and rather nicely, it tells us what sort of software they're using. They're using a software called SCADAlarm, which is another Wonderware product. Rather usefully, again, now I've scrubbed these, because I've got a check before the talk, and these numbers are still good. But rather usefully, they provide you with dial-in numbers and a legitimate fault ID. So what does that give us? Now, you Google for SCADAlarm, and here's the pimping. It's an alarm event notification software, blah, blah, blah. Users can listen to and acknowledge alarms and, ah, operate equipment via telephone from remote locations, saving valuable time and money and effort for your lazy hands. Hacker. So, I mean, huh, breaks down like this. It's an IVR control system for a SCADA network. You dial in, you provide the ID, and then you can punch button your way through SCADA control. Now, authentication, now, it says on the Wonderware site, Wonderware is all up on the security. Unfortunately, that means auth is done via caller ID, and that's actually disabled by default. But modern VoIP.com. I don't think techniques make ID spoofing reasonably trivial to bypass this. So what else can we find by that? So if you're war dialing, and I'm presuming everyone should be really well up on that, there's a bunch of free tools to do this. That's IWAR. This is high to IVR, which is better. It provides paralyzed VoIP war dialing. So you can chop through really big number blocks that used to take you three, four days and a couple of hours. Listen to the records later. And, yeah, unauthed access to heat computers and so forth. All right. All right. People really don't audit their phone lines properly. So thinking a bit about starter hacking for the practical security consultant, we had a job a little while ago. A lot of companies have a really tight net presence these days, right? So you look at their website, their mail, all that sort of stuff, which is traditional. And it was pretty tight. But we tried to walk on site, and they were all like, oh. ID badge this. Please leave that, which didn't work very well. We looked at their wireless, WPA2. That was quite good. Sort of getting a bit disheartened and thought, well, this is a starter network, right? These guys are geographically spread out across the whole country. They got a lot of sites. Let's start driving around and have a look at it. So we drove out into the middle of nowhere. And we found a remote site, which had big-ass electric fence, security guard, looked quite intimidating. And we were wondering what we could do. So we had a look at the wireless. Now, we managed to crack the wireless. We managed to get onto the corporate network, which was chewy and soft on the inside and had very poor architecture. The starter network was actually plugged directly into it. So after we'd owned the domain controller, we were able to own the starter network. Now, these guys looked really good from the outside. It was basically the fact that they had so many sites that it was really difficult for them to make sure that everything was adhered to corporate policy, patch, new tech, and so on and so forth. Now, you've been looking at this picture of the bushes for 30 seconds now. And you guys probably haven't seen the pertinent fact, which is down here. And what that is is there's a dude in the bushes with a big-ass parabolic dish, right? And so, I mean, that's the thing, is they had security guards and electric fences and so forth. But it availed them little to a long-haired hippie with Linux and, you know, ownage. So as I said, it's a slightly different ballgame when you're trying to hack a starter network. These guys also were hackable via dial-in lines. They've actually still had default passwords on their starter software. So the conclusions we can draw from this is that there's actually numerous connections to starter networks. It used to be believed that they're isolated. But you've got dial-in networks, radio, wireless, LAN connections, et cetera, et cetera. Now, the real problem with this is that these networks are insecure by design because they're anonymous. They don't have users on them. So passwords are simple, default. Never changed. All the protocols are clear text. Normal corporate policies regarding user management, password rotation, et cetera, don't apply. So even if the corporates care about security and have policy guys that write big docs, chances are they're not being applied to. Starter systems are rarely patched. Most vendors have an SLA to provide one patch a year, if that. So this leads to a really large phone window. Generally, what you do is you install your starter system and walk away. And just replace it when it's out of date. So as you can see, like a really different model to traditional IT networks. The lifetime of the gear is a lot longer, rarely patched, et cetera, et cetera. There's some good things happening in starter security. New standards, excellent practical guides, et cetera, et cetera. But you really need to conduct physical site surveys, stuff like that, because the guy in the bushes. Lock picking is actually pretty trivial. And as I said, starter networks, they're really spread out. So as Mike Bristow said, you gain access to the wire. You can use this tool to pretty much run anything. Lock picking is pretty easy, especially when it comes to asset owners, because they have lots of stuff to secure, so they buy really shitty locks. You can shim padlocks really easily. If you don't believe me, go to the lockpick village. I saw Devian Olam shim a padlock with a piece of paper. I mean, yeah. I've seen starter vendors use wireless security. They've got 3D cameras throughout there, which is really stupid, because it's pretty easy to dole wireless. Here's a site where they had a big-ass electric fence, but it was protected by a lock that was that shitty. I mean, it doesn't matter if you spent like $20,000 on your massive electric fence if you're using a $5 lock. And it just leads to long hairs up in your SCADA. Yeah, not a good plan. So basically, a lot of SCADA stuff these days, it does have more security features than it used to, where all the SCADA systems had none. But as is common, a lot of this stuff is turned off by default. So it's a good idea to audit all that sort of stuff, make sure it's implemented. Now, surfing SCADA message boards, where asset owners get together to bitch about SCADA security, I thought this was the best thing I've seen, where this guy's like, yes, the threat from red teams, foreign governments, et cetera, is real. But seriously, I can't deal with it. It's not my problem. I can't deal with, I don't have government-style security software, I don't have guards with submachine guns and flak jackets, and I pay taxes. And I'm actually worried about providing water sanitation services or whatever. So true, you guys. But you know, it's fair enough. So here's another job I did, actually, where we basically, it's a difficult problem securing SCADA networks, because people frequently. Admin security gear from the corporate side of the network. And so basically, it means that if you compromise the business side of the network, then you will own SCADA, without particularly sophisticated attacks. Largely because if you own the side of the network that admins the firewalls, you can just change them. So we were at a customer site, and they took a really long time to actually get to us, and we were sitting in their lobby. So we got pissed off. We noticed there was a jack there, plugged into the wall, and found that it was live, which gave us access to the corporate internal. Now, we managed to own the internet server, because they had insecure file upload dialogs. Password reuse gave us the domain controller, and that gave us arbitrary desktops. Now, what we actually owned was not an IT file server. It was just a dude's share who had two gig of documentation. Now, we'd been banging our heads against this firewall for quite a long time, because it was guarding the SCADA network. These guys actually had pretty good architecture, and it was pretty annoying we couldn't get to the SCADA. However, two gig of documentation meant that we actually had their firewall configs and their passwords in clear text. And so what that meant was we now owned the firewall and all their switches and routers, which meant, well, we own the corporate network, we own the firewall, so let's just change the firewall rules, and booyah, we own the SCADA network. Now, because users are stupid and reuse passwords, anyone whose password is password one is probably gonna read the we use it on the other side too. Passwords are the same on the SCADA domain controller, and we own that, and there we go, right? So, you know, just for extra bonus points, we also realized that they were being stupid with their VoIP and using the same phone system on both sides of the network too. So, I think I'm running out of time, so in summation, it's a really good idea not to rely on your SCADA networks being secure because you think they're difficult or esoteric or strange. It's not gonna work. Basically, we need to lean on SCADA vendors to be more open about the nature of the backdoors they have to admin systems and demand that they provide systems that can be secured. Now, I've been thinking a bit about who's gonna make money out of this, all the fear, uncertainty, and doubt going around, and it's not the pen testers. It's not even the SCADA vendors. It's actually the usual security players, right? Like, you've got people like Check Point, FortiGate, et cetera who are gonna start selling magic bullet solutions and already have, so sort of beware snake oil and that sort of thing that's gonna start going around. So, while I think that a lot of the fear-mongering these days is pretty crazy, this is an issue that really needs attention. And we need to look at it with sort of skeptical, critical, but reasonably open eyes and realize it's something that SCADA asset owners can't do on their own. We can't just yell at them to be more secure. There needs to be pressure put on guys like Wonderwear who don't understand the security dance at all to actually sort of step up. So, that's me. Thanks a lot. Thank you.