1 00:00:00,000 --> 00:00:07,520 Hello. Hello, DEF CON. So, yeah, this is Fair Uncertainty in a Digital Armageddon. I hope 2 00:00:07,520 --> 00:00:15,080 everyone here can see the humor in that without that having to be explained. So, yeah, yeah, 3 00:00:15,140 --> 00:00:23,880 I know. Let me just get the pointer in the right place. So, yeah, my name's Morgan, and 4 00:00:23,880 --> 00:00:33,180 I'm a security guy. I am, ooh, hold on a second. Which slide am I actually on here? 5 00:00:38,600 --> 00:00:42,080 Ah. Sorry, guys, slight wardrobe malfunction. 6 00:00:56,180 --> 00:01:02,800 There we go. So I'm a security guy. I hack SCADA networks, critical infrastructure. I 7 00:01:02,800 --> 00:01:09,880 work for a firm called securityassessment.com from New Zealand. So I'm going to go over 8 00:01:11,080 --> 00:01:15,420 what SCADA is, why it's really hip right now, and then talk a bit about hacking it. I'm 9 00:01:15,420 --> 00:01:18,960 not going to talk about low-level protocols like Modbus, but if you guys were like Mark 10 00:01:18,960 --> 00:01:22,020 Bristow's talk before, then you would have got a pretty in-depth run over that anyway. 11 00:01:24,300 --> 00:01:32,780 Sorry. Better? All right. So there's a tendency by the media to refer to, like, all industrial 12 00:01:32,780 --> 00:01:39,980 control systems as SCADA. What I'm primarily concerned with is power, water, critical 13 00:01:39,980 --> 00:01:44,540 infrastructure, mass manufacturing, that sort of thing. Now, the risk in these environments 14 00:01:44,540 --> 00:01:49,520 is largely defined by the threat, right? Like, we're talking power blackouts, dams opening, 15 00:01:49,840 --> 00:01:53,860 all that sort of bad stuff. Probably not global thermonuclear war. 16 00:01:53,880 --> 00:01:58,620 But, you know, we have had some, you know, stuff like this, big explosions and whatnot. 17 00:01:59,320 --> 00:02:04,640 These are from an accident that actually happened in Bellingham, Washington. Now, this was 18 00:02:06,460 --> 00:02:11,280 237,000 gallons of gasoline that caught fire on a creek, killed a couple of people, and 19 00:02:11,280 --> 00:02:15,960 caused a lot of property damage. This was actually an accident, but it was a really 20 00:02:15,960 --> 00:02:21,400 big firewall you could see from Canada. So it wasn't a small explosion. The largest 21 00:02:23,880 --> 00:02:29,040 actually a result of a SCADA accident or sabotage, depending on who you believe, that 22 00:02:29,040 --> 00:02:32,220 apparently happened in Russia. This was the largest gas pipeline explosion ever. 23 00:02:33,520 --> 00:02:37,540 There's been a bunch of SCADA incidents which have been reasonably well publicized over 24 00:02:37,540 --> 00:02:44,120 the years. Russian hackers taking over gas pipelines. A guy called Videk Bodin in Australia 25 00:02:44,120 --> 00:02:49,600 dumping sewerage into drinking water, a real jerk there. There's been a lot of press recently 26 00:02:49,600 --> 00:02:53,860 about maybe al Qaeda's going to perform SCADA attacks, Chinese hackers are getting all up in those. 27 00:02:53,880 --> 00:02:55,180 The SCADA, you know, everyone's having a go. 28 00:02:57,340 --> 00:03:00,060 Now, I think we're more worried about this than we used to be 29 00:03:00,060 --> 00:03:02,780 just because hacking's a lot easier than it used to be. 30 00:03:03,560 --> 00:03:05,900 Hacking used to be about quite skilled dudes 31 00:03:05,900 --> 00:03:08,160 performing quite trivial attacks 32 00:03:08,160 --> 00:03:09,420 and kind of coming up with it themselves. 33 00:03:10,040 --> 00:03:12,520 Now, because of the rise of, like, exploitation platforms 34 00:03:12,520 --> 00:03:14,260 and Oday packs and that sort of thing, 35 00:03:14,320 --> 00:03:16,260 you can get other people to do all the work for you 36 00:03:16,260 --> 00:03:18,680 and offset time and skill with money. 37 00:03:18,940 --> 00:03:20,980 So you can just buy yourself a Russian Oday pack 38 00:03:20,980 --> 00:03:22,620 and, you know, you're off to be a bad guy. 39 00:03:24,240 --> 00:03:27,840 Now, the digital Armageddon obviously hasn't happened yet, 40 00:03:28,450 --> 00:03:31,560 but without hype, there's no story, right? 41 00:03:31,680 --> 00:03:35,660 So it does behoove the media to, you know, juice it up a bit 42 00:03:35,660 --> 00:03:37,220 and get people worked up. 43 00:03:37,420 --> 00:03:39,020 I mean, despite this, like, you know, 44 00:03:39,020 --> 00:03:41,340 the blaster didn't cause the East Coast power outage, 45 00:03:41,970 --> 00:03:43,660 everyone knows stories of teenage hackers 46 00:03:43,660 --> 00:03:44,760 that get pretty overblown, 47 00:03:45,270 --> 00:03:48,020 and Chinese hackers get blamed for everything these days, 48 00:03:48,060 --> 00:03:50,120 like kicking your dog, taking your girlfriend, you know. 49 00:03:52,060 --> 00:03:53,540 A lot of the dire predictions 50 00:03:53,540 --> 00:03:55,520 so far also have been quite incorrect. 51 00:03:56,560 --> 00:04:00,440 IDC named 2003 a year of cyberterrorism, 52 00:04:00,560 --> 00:04:02,040 said the internet would crumble, 53 00:04:02,640 --> 00:04:04,360 obviously didn't happen, you know. 54 00:04:05,780 --> 00:04:07,080 So before we progress, 55 00:04:07,240 --> 00:04:08,620 I'm going to explain a little bit 56 00:04:08,620 --> 00:04:10,780 about what a SCADA system actually is, 57 00:04:10,880 --> 00:04:11,920 and then we'll get to the good stuff, 58 00:04:12,040 --> 00:04:13,480 the pop shots, the owning, and so forth. 59 00:04:18,000 --> 00:04:21,420 So SCADA system is basically, generally, 60 00:04:21,560 --> 00:04:22,920 a spread-out, geographically remote 61 00:04:22,920 --> 00:04:26,920 set of systems that are controlled by a central computer. 62 00:04:27,780 --> 00:04:30,360 At the edges you've got remote terminal units 63 00:04:30,360 --> 00:04:31,900 of the older programmable logic controllers, 64 00:04:32,480 --> 00:04:34,340 and they do the grunt work of a SCADA network, 65 00:04:34,560 --> 00:04:37,540 control mechanical devices, pumps, switches, valves, 66 00:04:37,760 --> 00:04:39,500 that sort of thing, monitor levels. 67 00:04:40,940 --> 00:04:43,160 This is an example from a water treatment plant. 68 00:04:43,540 --> 00:04:46,020 So you've got, you know, the PLCs here, 69 00:04:46,180 --> 00:04:48,540 and they measure flow according to set points, 70 00:04:48,540 --> 00:04:49,440 which are set by a human. 71 00:04:50,120 --> 00:04:52,900 At the other end, this is, you know, 72 00:04:52,900 --> 00:04:54,540 I've got quite a collection of SCADA porn 73 00:04:54,540 --> 00:04:55,780 if people want to look at it with me afterwards. 74 00:04:58,020 --> 00:04:59,380 So there's a master station, 75 00:04:59,620 --> 00:05:02,120 and that takes information from PLCs and RTUs 76 00:05:02,120 --> 00:05:04,600 and converts it into a more human-readable format 77 00:05:05,700 --> 00:05:07,260 for use in an HMI, 78 00:05:08,380 --> 00:05:09,500 which is something like that. 79 00:05:09,720 --> 00:05:11,100 Generally a point-and-click your way 80 00:05:11,100 --> 00:05:12,220 to controlling a SCADA network. 81 00:05:13,040 --> 00:05:16,620 As you can see here, this is for industrial food tech. 82 00:05:16,700 --> 00:05:18,880 You can control heat, pressure, all sorts of good stuff. 83 00:05:21,400 --> 00:05:22,780 The communications layer, 84 00:05:22,780 --> 00:05:26,820 of a SCADA network is traditionally a mix of radio 85 00:05:26,820 --> 00:05:31,720 and direct serial connections protocol called RS-485, 86 00:05:31,860 --> 00:05:34,980 which is multi-point serial, used to transfer Modbus 87 00:05:34,980 --> 00:05:36,940 and other low-level SCADA protocols. 88 00:05:39,880 --> 00:05:42,880 These days, we are actually moving 89 00:05:42,880 --> 00:05:46,580 to a brave new interconnected world, where we want everything 90 00:05:46,580 --> 00:05:52,280 to run over IP, from toasters to fridges, and so we've got standards 91 00:05:52,280 --> 00:05:57,320 like open Modbus, DNP-3, these all run over IP networks, 92 00:05:57,660 --> 00:06:00,380 and there's an open architecture, which allows people 93 00:06:00,380 --> 00:06:02,500 to use multiple vendors' products. 94 00:06:05,380 --> 00:06:08,000 So historically, we could describe SCADA networks 95 00:06:08,000 --> 00:06:11,280 as quite primitive, and they ran off proprietary hardware, 96 00:06:11,440 --> 00:06:15,300 and you need closed-source manuals, and so as such, 97 00:06:15,480 --> 00:06:17,620 true or false, they were considered to be immune 98 00:06:17,620 --> 00:06:18,520 to outside threats. 99 00:06:18,880 --> 00:06:21,220 These days, in our brave new interconnected world, 100 00:06:21,220 --> 00:06:23,460 everything is connected to the corporate land 101 00:06:23,460 --> 00:06:26,700 for reasons of monitoring, alerting, producing those graphs 102 00:06:26,700 --> 00:06:29,900 that managers know and love so much, and unfortunately, 103 00:06:30,160 --> 00:06:33,940 modern stuff is susceptible to relatively modern, 104 00:06:34,000 --> 00:06:35,160 or not-so-modern threats. 105 00:06:35,420 --> 00:06:39,380 So you've got old-school, but still new-school 106 00:06:39,380 --> 00:06:42,780 for SCADA network types of attacks, which basically work. 107 00:06:43,020 --> 00:06:45,460 So the core guys have been beating pretty savagely 108 00:06:45,460 --> 00:06:48,700 on SCADA recently, and Wonderware, which is a vendor 109 00:06:48,700 --> 00:06:51,100 we'll see a bit later as well, they're a really big, 110 00:06:51,220 --> 00:06:54,100 big vendor, and core found sending a malform packet 111 00:06:54,100 --> 00:06:56,840 to a random TCP port caused a crash in the software. 112 00:06:57,200 --> 00:06:59,360 I mean, this is pretty old-school stuff. 113 00:07:00,100 --> 00:07:01,940 What's interesting, if you read the notes, 114 00:07:02,060 --> 00:07:05,860 is that they sent the vendor proof-of-concept code 115 00:07:05,860 --> 00:07:08,900 in Python, Wonderware asks for compiler tools to run Python, 116 00:07:09,060 --> 00:07:10,660 core says go to python.org. 117 00:07:11,740 --> 00:07:15,080 This is, while companies like Microsoft and Cisco 118 00:07:15,080 --> 00:07:17,140 and so forth are used to doing the vulnerability dance, 119 00:07:17,280 --> 00:07:20,800 big SCADA vendors still aren't, and still don't really have 120 00:07:20,800 --> 00:07:22,480 that sort of relationship with the security community. 121 00:07:23,600 --> 00:07:25,320 This is another one found by core. 122 00:07:26,300 --> 00:07:28,620 Again, it's like canonical stack overflow, 123 00:07:29,900 --> 00:07:31,900 improper length checking, long buffer. 124 00:07:32,220 --> 00:07:34,320 I said, you know, sort of same bug, different app. 125 00:07:34,800 --> 00:07:37,340 It's, you know, there's a lot of research 126 00:07:37,340 --> 00:07:38,580 being published on it at the moment. 127 00:07:38,700 --> 00:07:40,520 These are some of the favorite talks that I've read recently. 128 00:07:41,320 --> 00:07:44,360 It's a hot topic, because the possible ramifications 129 00:07:44,360 --> 00:07:48,120 of a SCADA compromise could be pretty big, as we've seen, 130 00:07:49,140 --> 00:07:50,780 and in the media, I think, there's a lot 131 00:07:50,800 --> 00:07:53,160 I think in the public mind, cyber-terrorism 132 00:07:53,160 --> 00:07:54,880 is like the new chemical warfare, 133 00:07:55,060 --> 00:07:56,860 or like chemical warfare was in the 80s. 134 00:07:56,880 --> 00:07:58,540 We're really, really afraid of it, 135 00:07:58,580 --> 00:07:59,960 and a lot of people don't understand it. 136 00:08:01,640 --> 00:08:05,160 That and SCADA, SCADA is changing from, as I said, 137 00:08:05,180 --> 00:08:07,620 proprietary, obscure, isolated, and theoretically immune 138 00:08:07,620 --> 00:08:10,980 to attack, towards standard, documented, 139 00:08:11,160 --> 00:08:12,220 and connected systems. 140 00:08:14,140 --> 00:08:18,000 So what that basically means is that you can test 141 00:08:18,000 --> 00:08:20,660 or hack SCADA systems with a lot of the knowledge, 142 00:08:20,800 --> 00:08:21,440 you already have. 143 00:08:21,780 --> 00:08:23,780 I mean, you saw Mark Bristow before, 144 00:08:24,020 --> 00:08:25,740 wrote a custom tool mod scan. 145 00:08:26,080 --> 00:08:27,580 There's a Sully Fuzzer out there. 146 00:08:27,960 --> 00:08:31,500 It's sweet if you know low-level protocols like those guys, 147 00:08:31,680 --> 00:08:33,180 but you don't actually need to. 148 00:08:33,880 --> 00:08:35,760 If you've got good knowledge of wireless, 149 00:08:35,880 --> 00:08:38,860 good common systems knowledge, VoIP, so on and so forth, 150 00:08:39,540 --> 00:08:41,980 you can get quite a long way, and if you're prepared 151 00:08:41,980 --> 00:08:44,660 to be intelligent about your intel-gathering techniques, 152 00:08:44,980 --> 00:08:47,540 and go a bit old-school, then you can actually 153 00:08:47,540 --> 00:08:48,480 find this quite easy. 154 00:08:50,800 --> 00:08:52,000 Old-school is good school. 155 00:08:52,160 --> 00:08:53,740 I'm gonna talk about some stuff that I imagine 156 00:08:53,740 --> 00:08:54,540 everyone here knows. 157 00:08:55,900 --> 00:08:57,980 If you don't know much about radio scanning, 158 00:08:58,200 --> 00:08:59,780 there is a wealth of knowledge online. 159 00:09:00,020 --> 00:09:02,040 Radio geeks really like writing stuff down. 160 00:09:04,760 --> 00:09:08,120 There's a protocol called POCSAG, 161 00:09:09,800 --> 00:09:11,440 which is used for pager messages. 162 00:09:12,220 --> 00:09:15,220 Now, a lot of SCADA alerts are sent 163 00:09:15,220 --> 00:09:16,640 via pager over radio link. 164 00:09:16,860 --> 00:09:19,340 This is because sending really critical messages 165 00:09:19,340 --> 00:09:20,340 over IP networks. 166 00:09:20,340 --> 00:09:21,580 IP networks isn't a great idea. 167 00:09:22,040 --> 00:09:24,380 One carrier has a problem, you don't get your message 168 00:09:24,380 --> 00:09:26,220 for a couple of hours, if at all, blah, blah, blah. 169 00:09:27,540 --> 00:09:29,720 So pager network is dependable, reliable. 170 00:09:30,340 --> 00:09:32,260 Unfortunately, it goes over a clear text link. 171 00:09:32,580 --> 00:09:38,020 So that means anyone with really cheap gear can read it. 172 00:09:38,060 --> 00:09:39,740 Now, this is a really cheap and nasty scanner. 173 00:09:39,920 --> 00:09:42,680 I've got a better one, but this was 250 NZD 174 00:09:42,680 --> 00:09:45,020 at an electronic store across the road from my house. 175 00:09:46,720 --> 00:09:50,320 So what do I actually get from cheap and nasty scanners? 176 00:09:50,320 --> 00:09:51,040 What do I actually get from nasty gear like this? 177 00:09:54,940 --> 00:09:59,040 Well, in this particular slide, we can see what the state 178 00:09:59,040 --> 00:10:01,180 of the system is, we can see they've got some issues here. 179 00:10:01,640 --> 00:10:05,140 There's a strong smell of open sewer, Modbus is offline. 180 00:10:05,780 --> 00:10:07,600 We keep going through the conversation, 181 00:10:08,240 --> 00:10:11,420 and rather nicely, it tells us what sort of software 182 00:10:11,420 --> 00:10:12,040 they're using. 183 00:10:12,340 --> 00:10:14,420 They're using a software called SCADAlarm, 184 00:10:14,480 --> 00:10:16,180 which is another Wonderware product. 185 00:10:17,320 --> 00:10:20,140 Rather usefully, again, now I've scrubbed these, because I've 186 00:10:20,140 --> 00:10:22,220 got a check before the talk, and these numbers are still good. 187 00:10:22,660 --> 00:10:26,640 But rather usefully, they provide you with dial-in numbers 188 00:10:26,640 --> 00:10:28,360 and a legitimate fault ID. 189 00:10:29,100 --> 00:10:32,100 So what does that give us? 190 00:10:32,640 --> 00:10:35,540 Now, you Google for SCADAlarm, and here's the pimping. 191 00:10:36,280 --> 00:10:39,300 It's an alarm event notification software, blah, blah, blah. 192 00:10:40,170 --> 00:10:43,020 Users can listen to and acknowledge alarms and, ah, 193 00:10:43,280 --> 00:10:46,420 operate equipment via telephone from remote locations, 194 00:10:46,800 --> 00:10:50,120 saving valuable time and money and effort for your lazy hands. 195 00:10:50,140 --> 00:10:50,320 Hacker. 196 00:10:52,000 --> 00:10:55,940 So, I mean, huh, breaks down like this. 197 00:10:56,140 --> 00:10:58,740 It's an IVR control system for a SCADA network. 198 00:10:59,060 --> 00:11:02,240 You dial in, you provide the ID, and then you 199 00:11:02,240 --> 00:11:04,260 can punch button your way through SCADA control. 200 00:11:04,580 --> 00:11:07,720 Now, authentication, now, it says on the Wonderware site, 201 00:11:07,840 --> 00:11:09,460 Wonderware is all up on the security. 202 00:11:10,900 --> 00:11:14,900 Unfortunately, that means auth is done via caller ID, 203 00:11:15,060 --> 00:11:16,740 and that's actually disabled by default. 204 00:11:17,200 --> 00:11:20,120 But modern VoIP.com. 205 00:11:20,140 --> 00:11:22,360 I don't think techniques make ID spoofing reasonably 206 00:11:22,360 --> 00:11:23,480 trivial to bypass this. 207 00:11:24,460 --> 00:11:26,400 So what else can we find by that? 208 00:11:27,120 --> 00:11:28,900 So if you're war dialing, and I'm 209 00:11:28,900 --> 00:11:30,780 presuming everyone should be really well up on that, 210 00:11:31,400 --> 00:11:33,100 there's a bunch of free tools to do this. 211 00:11:33,340 --> 00:11:34,280 That's IWAR. 212 00:11:34,440 --> 00:11:35,980 This is high to IVR, which is better. 213 00:11:36,080 --> 00:11:37,740 It provides paralyzed VoIP war dialing. 214 00:11:37,780 --> 00:11:39,860 So you can chop through really big number blocks 215 00:11:39,860 --> 00:11:42,240 that used to take you three, four days and a couple of hours. 216 00:11:42,420 --> 00:11:43,660 Listen to the records later. 217 00:11:45,320 --> 00:11:48,520 And, yeah, unauthed access to heat computers and so forth. 218 00:11:49,180 --> 00:11:49,720 All right. 219 00:11:49,740 --> 00:11:50,120 All right. 220 00:11:50,140 --> 00:11:51,920 People really don't audit their phone lines properly. 221 00:11:53,980 --> 00:11:55,920 So thinking a bit about starter hacking 222 00:11:55,920 --> 00:11:57,560 for the practical security consultant, 223 00:11:57,880 --> 00:11:59,560 we had a job a little while ago. 224 00:12:00,000 --> 00:12:02,160 A lot of companies have a really tight net presence 225 00:12:02,160 --> 00:12:02,940 these days, right? 226 00:12:03,060 --> 00:12:04,500 So you look at their website, their mail, 227 00:12:04,640 --> 00:12:06,000 all that sort of stuff, which is traditional. 228 00:12:06,400 --> 00:12:10,040 And it was pretty tight. 229 00:12:13,100 --> 00:12:20,120 But we tried to walk on site, and they were all like, oh. 230 00:12:20,140 --> 00:12:20,840 ID badge this. 231 00:12:20,920 --> 00:12:23,300 Please leave that, which didn't work very well. 232 00:12:23,500 --> 00:12:25,520 We looked at their wireless, WPA2. 233 00:12:25,620 --> 00:12:26,440 That was quite good. 234 00:12:26,740 --> 00:12:28,480 Sort of getting a bit disheartened and thought, 235 00:12:28,620 --> 00:12:30,000 well, this is a starter network, right? 236 00:12:30,060 --> 00:12:31,620 These guys are geographically spread out 237 00:12:31,620 --> 00:12:32,620 across the whole country. 238 00:12:32,760 --> 00:12:33,880 They got a lot of sites. 239 00:12:34,080 --> 00:12:36,200 Let's start driving around and have a look at it. 240 00:12:36,600 --> 00:12:38,480 So we drove out into the middle of nowhere. 241 00:12:39,900 --> 00:12:43,060 And we found a remote site, which 242 00:12:43,060 --> 00:12:45,500 had big-ass electric fence, security guard, 243 00:12:45,580 --> 00:12:46,300 looked quite intimidating. 244 00:12:46,920 --> 00:12:48,620 And we were wondering what we could do. 245 00:12:48,740 --> 00:12:49,980 So we had a look at the wireless. 246 00:12:50,800 --> 00:12:52,880 Now, we managed to crack the wireless. 247 00:12:53,200 --> 00:12:55,480 We managed to get onto the corporate network, which 248 00:12:55,480 --> 00:12:59,880 was chewy and soft on the inside and had very poor architecture. 249 00:13:00,160 --> 00:13:02,360 The starter network was actually plugged directly into it. 250 00:13:02,500 --> 00:13:04,040 So after we'd owned the domain controller, 251 00:13:04,220 --> 00:13:05,540 we were able to own the starter network. 252 00:13:06,000 --> 00:13:10,120 Now, these guys looked really good from the outside. 253 00:13:10,360 --> 00:13:12,480 It was basically the fact that they had so many sites 254 00:13:13,100 --> 00:13:14,880 that it was really difficult for them 255 00:13:14,880 --> 00:13:17,380 to make sure that everything was adhered to corporate policy, 256 00:13:17,520 --> 00:13:19,240 patch, new tech, and so on and so forth. 257 00:13:19,240 --> 00:13:20,900 Now, you've been looking at this picture 258 00:13:20,900 --> 00:13:23,160 of the bushes for 30 seconds now. 259 00:13:23,240 --> 00:13:25,720 And you guys probably haven't seen the pertinent fact, which 260 00:13:25,720 --> 00:13:26,340 is down here. 261 00:13:26,560 --> 00:13:28,560 And what that is is there's a dude in the bushes 262 00:13:28,560 --> 00:13:30,360 with a big-ass parabolic dish, right? 263 00:13:30,620 --> 00:13:32,960 And so, I mean, that's the thing, 264 00:13:32,960 --> 00:13:36,060 is they had security guards and electric fences and so forth. 265 00:13:36,160 --> 00:13:38,980 But it availed them little to a long-haired hippie with Linux 266 00:13:38,980 --> 00:13:41,880 and, you know, ownage. 267 00:13:42,700 --> 00:13:47,860 So as I said, it's a slightly different ballgame 268 00:13:47,860 --> 00:13:49,180 when you're trying to hack a starter network. 269 00:13:49,240 --> 00:13:53,200 These guys also were hackable via dial-in lines. 270 00:13:53,320 --> 00:13:54,840 They've actually still had default passwords 271 00:13:55,500 --> 00:13:56,840 on their starter software. 272 00:13:57,980 --> 00:14:00,420 So the conclusions we can draw from this 273 00:14:00,820 --> 00:14:04,360 is that there's actually numerous connections 274 00:14:04,360 --> 00:14:05,220 to starter networks. 275 00:14:05,500 --> 00:14:06,840 It used to be believed that they're isolated. 276 00:14:07,100 --> 00:14:10,040 But you've got dial-in networks, radio, wireless, LAN 277 00:14:10,040 --> 00:14:11,520 connections, et cetera, et cetera. 278 00:14:11,880 --> 00:14:13,280 Now, the real problem with this is 279 00:14:13,280 --> 00:14:14,980 that these networks are insecure by design 280 00:14:14,980 --> 00:14:15,920 because they're anonymous. 281 00:14:16,080 --> 00:14:17,060 They don't have users on them. 282 00:14:17,140 --> 00:14:18,700 So passwords are simple, default. 283 00:14:18,700 --> 00:14:19,300 Never changed. 284 00:14:19,700 --> 00:14:21,120 All the protocols are clear text. 285 00:14:23,040 --> 00:14:26,720 Normal corporate policies regarding user management, 286 00:14:26,900 --> 00:14:29,000 password rotation, et cetera, don't apply. 287 00:14:29,300 --> 00:14:31,900 So even if the corporates care about security 288 00:14:32,300 --> 00:14:34,220 and have policy guys that write big docs, 289 00:14:34,440 --> 00:14:36,180 chances are they're not being applied to. 290 00:14:37,360 --> 00:14:39,140 Starter systems are rarely patched. 291 00:14:39,140 --> 00:14:41,860 Most vendors have an SLA to provide one patch a year, 292 00:14:41,940 --> 00:14:42,440 if that. 293 00:14:42,680 --> 00:14:44,620 So this leads to a really large phone window. 294 00:14:44,760 --> 00:14:47,200 Generally, what you do is you install your starter system 295 00:14:47,200 --> 00:14:48,240 and walk away. 296 00:14:48,240 --> 00:14:50,980 And just replace it when it's out of date. 297 00:14:51,120 --> 00:14:53,480 So as you can see, like a really different model 298 00:14:53,480 --> 00:14:54,640 to traditional IT networks. 299 00:14:56,240 --> 00:15:00,220 The lifetime of the gear is a lot longer, rarely patched, 300 00:15:00,660 --> 00:15:01,400 et cetera, et cetera. 301 00:15:01,720 --> 00:15:03,640 There's some good things happening in starter security. 302 00:15:03,900 --> 00:15:05,820 New standards, excellent practical guides, 303 00:15:06,160 --> 00:15:06,840 et cetera, et cetera. 304 00:15:07,060 --> 00:15:10,220 But you really need to conduct physical site surveys, stuff 305 00:15:10,220 --> 00:15:11,900 like that, because the guy in the bushes. 306 00:15:12,860 --> 00:15:14,980 Lock picking is actually pretty trivial. 307 00:15:15,700 --> 00:15:18,220 And as I said, starter networks, 308 00:15:18,220 --> 00:15:19,200 they're really spread out. 309 00:15:19,400 --> 00:15:21,920 So as Mike Bristow said, you gain access to the wire. 310 00:15:22,020 --> 00:15:23,520 You can use this tool to pretty much run anything. 311 00:15:25,380 --> 00:15:27,900 Lock picking is pretty easy, especially 312 00:15:27,900 --> 00:15:31,320 when it comes to asset owners, because they 313 00:15:31,320 --> 00:15:33,740 have lots of stuff to secure, so they buy really shitty locks. 314 00:15:34,120 --> 00:15:35,840 You can shim padlocks really easily. 315 00:15:35,940 --> 00:15:37,800 If you don't believe me, go to the lockpick village. 316 00:15:37,960 --> 00:15:40,600 I saw Devian Olam shim a padlock with a piece of paper. 317 00:15:41,160 --> 00:15:42,260 I mean, yeah. 318 00:15:42,660 --> 00:15:48,080 I've seen starter vendors use wireless security. 319 00:15:48,220 --> 00:15:49,560 They've got 3D cameras throughout there, 320 00:15:49,600 --> 00:15:52,100 which is really stupid, because it's pretty easy to dole 321 00:15:52,100 --> 00:15:52,420 wireless. 322 00:15:55,120 --> 00:15:58,380 Here's a site where they had a big-ass electric fence, 323 00:15:58,620 --> 00:16:01,180 but it was protected by a lock that was that shitty. 324 00:16:01,560 --> 00:16:04,200 I mean, it doesn't matter if you spent like $20,000 325 00:16:04,200 --> 00:16:07,620 on your massive electric fence if you're using a $5 lock. 326 00:16:07,980 --> 00:16:10,340 And it just leads to long hairs up in your SCADA. 327 00:16:10,940 --> 00:16:12,500 Yeah, not a good plan. 328 00:16:14,660 --> 00:16:17,800 So basically, a lot of SCADA stuff these days, 329 00:16:17,800 --> 00:16:21,260 it does have more security features than it used to, 330 00:16:21,850 --> 00:16:24,760 where all the SCADA systems had none. 331 00:16:25,360 --> 00:16:29,180 But as is common, a lot of this stuff is turned off by default. 332 00:16:29,700 --> 00:16:32,040 So it's a good idea to audit all that sort of stuff, 333 00:16:32,160 --> 00:16:33,040 make sure it's implemented. 334 00:16:33,680 --> 00:16:37,060 Now, surfing SCADA message boards, 335 00:16:37,260 --> 00:16:40,220 where asset owners get together to bitch about SCADA security, 336 00:16:40,420 --> 00:16:43,000 I thought this was the best thing I've seen, where this guy's 337 00:16:43,000 --> 00:16:45,540 like, yes, the threat from red teams, foreign governments, 338 00:16:45,640 --> 00:16:46,400 et cetera, is real. 339 00:16:46,400 --> 00:16:49,020 But seriously, I can't deal with it. 340 00:16:49,060 --> 00:16:49,880 It's not my problem. 341 00:16:50,080 --> 00:16:55,000 I can't deal with, I don't have government-style security 342 00:16:55,000 --> 00:16:57,560 software, I don't have guards with submachine guns 343 00:16:57,560 --> 00:16:59,060 and flak jackets, and I pay taxes. 344 00:16:59,260 --> 00:17:01,500 And I'm actually worried about providing water sanitation 345 00:17:01,500 --> 00:17:02,640 services or whatever. 346 00:17:02,800 --> 00:17:03,940 So true, you guys. 347 00:17:04,180 --> 00:17:05,700 But you know, it's fair enough. 348 00:17:07,340 --> 00:17:10,540 So here's another job I did, actually, where we basically, 349 00:17:11,420 --> 00:17:13,920 it's a difficult problem securing SCADA networks, 350 00:17:14,160 --> 00:17:16,080 because people frequently. 351 00:17:16,080 --> 00:17:20,220 Admin security gear from the corporate side of the network. 352 00:17:20,580 --> 00:17:25,520 And so basically, it means that if you compromise the business 353 00:17:25,520 --> 00:17:27,960 side of the network, then you will own SCADA, 354 00:17:28,080 --> 00:17:30,260 without particularly sophisticated attacks. 355 00:17:30,960 --> 00:17:34,420 Largely because if you own the side of the network that 356 00:17:34,420 --> 00:17:36,240 admins the firewalls, you can just change them. 357 00:17:36,600 --> 00:17:42,000 So we were at a customer site, and they took a really long 358 00:17:42,000 --> 00:17:44,740 time to actually get to us, and we were sitting in their lobby. 359 00:17:44,800 --> 00:17:45,640 So we got pissed off. 360 00:17:45,640 --> 00:17:48,440 We noticed there was a jack there, plugged into the wall, 361 00:17:48,520 --> 00:17:50,640 and found that it was live, which gave us access to the 362 00:17:50,640 --> 00:17:51,140 corporate internal. 363 00:17:51,500 --> 00:17:53,420 Now, we managed to own the internet server, because they 364 00:17:53,420 --> 00:17:55,240 had insecure file upload dialogs. 365 00:17:56,860 --> 00:17:59,780 Password reuse gave us the domain controller, and that 366 00:17:59,780 --> 00:18:01,160 gave us arbitrary desktops. 367 00:18:01,400 --> 00:18:04,800 Now, what we actually owned was not an IT file server. 368 00:18:04,980 --> 00:18:07,940 It was just a dude's share who had two gig of documentation. 369 00:18:08,620 --> 00:18:11,340 Now, we'd been banging our heads against this firewall 370 00:18:11,340 --> 00:18:13,780 for quite a long time, because it was guarding the SCADA 371 00:18:13,780 --> 00:18:14,060 network. 372 00:18:14,240 --> 00:18:15,280 These guys actually had pretty good 373 00:18:15,640 --> 00:18:17,540 architecture, and it was pretty annoying we couldn't get to 374 00:18:17,540 --> 00:18:17,840 the SCADA. 375 00:18:18,040 --> 00:18:22,000 However, two gig of documentation meant that we actually had 376 00:18:22,000 --> 00:18:24,600 their firewall configs and their passwords in clear text. 377 00:18:24,980 --> 00:18:28,640 And so what that meant was we now owned the firewall and 378 00:18:28,640 --> 00:18:31,600 all their switches and routers, which meant, well, we own 379 00:18:31,600 --> 00:18:34,420 the corporate network, we own the firewall, so let's just 380 00:18:34,420 --> 00:18:38,760 change the firewall rules, and booyah, we own the SCADA 381 00:18:38,760 --> 00:18:39,040 network. 382 00:18:39,380 --> 00:18:42,680 Now, because users are stupid and reuse passwords, anyone 383 00:18:42,680 --> 00:18:45,620 whose password is password one is probably gonna read the 384 00:18:45,620 --> 00:18:46,740 we use it on the other side too. 385 00:18:47,240 --> 00:18:49,280 Passwords are the same on the SCADA domain controller, 386 00:18:49,480 --> 00:18:51,420 and we own that, and there we go, right? 387 00:18:52,740 --> 00:18:55,080 So, you know, just for extra bonus points, 388 00:18:55,200 --> 00:18:56,660 we also realized that they were being stupid 389 00:18:56,660 --> 00:18:58,660 with their VoIP and using the same phone system 390 00:18:58,660 --> 00:18:59,940 on both sides of the network too. 391 00:19:01,440 --> 00:19:03,700 So, I think I'm running out of time, so in summation, 392 00:19:03,980 --> 00:19:05,800 it's a really good idea not to rely 393 00:19:05,800 --> 00:19:07,380 on your SCADA networks being secure 394 00:19:07,380 --> 00:19:10,120 because you think they're difficult or esoteric or strange. 395 00:19:11,120 --> 00:19:12,180 It's not gonna work. 396 00:19:12,520 --> 00:19:14,940 Basically, we need to lean on SCADA vendors 397 00:19:14,940 --> 00:19:17,560 to be more open about the nature of the backdoors 398 00:19:17,560 --> 00:19:19,340 they have to admin systems and demand 399 00:19:19,340 --> 00:19:21,160 that they provide systems that can be secured. 400 00:19:22,240 --> 00:19:23,680 Now, I've been thinking a bit about 401 00:19:23,680 --> 00:19:25,040 who's gonna make money out of this, 402 00:19:25,140 --> 00:19:27,000 all the fear, uncertainty, and doubt going around, 403 00:19:27,120 --> 00:19:29,820 and it's not the pen testers. 404 00:19:30,180 --> 00:19:31,880 It's not even the SCADA vendors. 405 00:19:32,160 --> 00:19:34,120 It's actually the usual security players, right? 406 00:19:34,220 --> 00:19:36,440 Like, you've got people like Check Point, FortiGate, et cetera 407 00:19:36,440 --> 00:19:38,600 who are gonna start selling magic bullet solutions 408 00:19:38,600 --> 00:19:41,040 and already have, so sort of beware snake oil 409 00:19:41,040 --> 00:19:42,680 and that sort of thing that's gonna start going around. 410 00:19:43,780 --> 00:19:44,920 So, while I think 411 00:19:44,920 --> 00:19:48,320 that a lot of the fear-mongering these days is pretty crazy, 412 00:19:49,820 --> 00:19:51,860 this is an issue that really needs attention. 413 00:19:52,340 --> 00:19:55,200 And we need to look at it with sort of skeptical, critical, 414 00:19:55,340 --> 00:19:57,900 but reasonably open eyes and realize it's something 415 00:19:57,900 --> 00:20:00,040 that SCADA asset owners can't do on their own. 416 00:20:00,100 --> 00:20:01,620 We can't just yell at them to be more secure. 417 00:20:01,920 --> 00:20:05,200 There needs to be pressure put on guys like Wonderwear 418 00:20:05,200 --> 00:20:07,220 who don't understand the security dance at all 419 00:20:07,220 --> 00:20:09,080 to actually sort of step up. 420 00:20:09,300 --> 00:20:10,460 So, that's me. 421 00:20:10,540 --> 00:20:10,980 Thanks a lot. 422 00:20:15,240 --> 00:20:15,300 Thank you.