1 00:00:07,220 --> 00:00:15,140 welcome here I'm very glad to see so many people in here and and I'm also glad to see that there's 2 00:00:15,140 --> 00:00:21,140 not a lot of sunglasses on and not a lot of people holding their heads from last night so yeah welcome 3 00:00:21,140 --> 00:00:28,260 okay so what we're talking about today is cyber terrorism and cyber warfare kind of thing a lot 4 00:00:28,260 --> 00:00:33,780 have been said about you know cyber terrorism there's a lot of stuff that that that can be said 5 00:00:33,780 --> 00:00:39,240 about it there's a lot of people that say cyber terrorism is not a reality today and that we don't 6 00:00:39,240 --> 00:00:44,780 really know that it can be effective so so what we're trying to do here today is not answer that 7 00:00:44,780 --> 00:00:52,580 question but rather find out if there's a way to build a little bit of a framework that we can use 8 00:00:52,580 --> 00:00:58,240 to to to make these kind of attacks more effective so let's go on to the next slide 9 00:00:59,200 --> 00:01:05,320 okay um you know people say you know packet can't fly a plane so cyber terrorism isn't really 10 00:01:05,320 --> 00:01:11,640 something that will instill terror in people and and I tend to agree with it you know it's easier 11 00:01:11,640 --> 00:01:19,620 to blow up a building than to to have a nicely coordinated kind of attack typically what we're 12 00:01:19,620 --> 00:01:26,540 seeing today with with when you start reading about cyber terrorism that kind of thing typically what 13 00:01:28,260 --> 00:01:33,940 people talking about denial of service attacks so they're saying yeah you know we can we can DOS the 14 00:01:33,940 --> 00:01:41,720 whole um network of the the internet um and and the other the the other kind of approach that they 15 00:01:41,720 --> 00:01:50,220 have is saying well we can break into let's say a power grid of a of a large energy provider and 16 00:01:50,220 --> 00:01:56,760 thereby disabling the power or we can or we can act in some way and do some stuff there and affect 17 00:01:58,260 --> 00:02:05,840 the infrastructure now now to me okay um now to me that's that's kind of I don't know it's it's not 18 00:02:05,840 --> 00:02:12,260 really um it's not really that effective for for a couple of reasons um first of all there's a lot 19 00:02:12,260 --> 00:02:17,220 of companies and and and manufacturers and and and sectors business sectors that kind of thing 20 00:02:17,220 --> 00:02:24,660 that that doesn't rely that much on the internet being up and running correct I mean if you DOS uh 21 00:02:24,940 --> 00:02:27,880 let's say uh Ford uh um 22 00:02:28,260 --> 00:02:32,780 um a motor car manufacturer they're still going to have cars um coming out of the production line 23 00:02:32,780 --> 00:02:37,240 if they're not connected to the internet they don't need to ping an IP address in order to 24 00:02:37,240 --> 00:02:43,800 generate a car um so so really when you take the network down you're really just only affecting 25 00:02:43,800 --> 00:02:50,780 maybe the fact that they can't send porn anymore around and they can't and they can't chat to their 26 00:02:50,780 --> 00:02:58,120 friends on MSN um you're not really affecting something um internal to that company um so 27 00:02:58,120 --> 00:03:05,020 so so that's a the first thing with um denial of service attacks um whoa dude you're jumping ahead 28 00:03:06,280 --> 00:03:13,820 okay um the the um the the the the second kind of attack that says we can break into a network 29 00:03:13,820 --> 00:03:22,400 and we can disable let's say the power grid for a specific area while I think that is good you're 30 00:03:22,400 --> 00:03:27,920 jumping ahead um um so it's so 31 00:03:31,700 --> 00:03:38,660 um okay so so so the problem with breaching the perimeter I think it's it could maybe be possible 32 00:03:38,660 --> 00:03:45,960 to to breach a a critical kind of infrastructure perimeter and and possibly disable some kind of 33 00:03:45,960 --> 00:03:50,860 power grid somewhere what you need to keep in mind there is that there's a lot of redundancy 34 00:03:50,860 --> 00:03:55,840 in these systems okay um if you look at power providers in America there's you know there's 35 00:03:55,840 --> 00:03:57,940 hundreds of of electrical power supplies 36 00:03:58,120 --> 00:04:05,140 um and they can switch between different kind of um setups quite easily so so the only way that 37 00:04:05,140 --> 00:04:11,800 you're going to make that effective is if you have like um 6 000 hackers and we have 6 000 people here 38 00:04:11,800 --> 00:04:17,220 at DEF CON so that's interesting number um hack into all of these networks at the same time 39 00:04:17,220 --> 00:04:26,220 effectively and and and and coordinated um and I and I don't see that happening quite soon um the 40 00:04:28,340 --> 00:04:36,040 um all right um so so so so so I don't see that happening quite soon and and what you must realize 41 00:04:36,040 --> 00:04:43,280 is in some cases um the control systems of these critical infrastructures is air-gapped from the 42 00:04:43,280 --> 00:04:48,580 the rest of the IP network okay so they don't connect the two together um so so it starts to 43 00:04:48,580 --> 00:04:54,460 become a little bit um difficult to actually coordinate some kind of a strike that will 44 00:04:54,460 --> 00:04:57,900 really have an impact on on the on the country as such 45 00:04:58,120 --> 00:05:05,500 um so if we look at the no go back so if we look at the if we look at the kind of attacks the denial 46 00:05:05,500 --> 00:05:10,680 of service attack on the one end and the breaching of the perimeter and the other end um we see first 47 00:05:10,680 --> 00:05:15,960 of all you know it does not hurt enough if we do a denial of service attack and and if we and if 48 00:05:15,960 --> 00:05:27,840 we breach the perimeter it's it's not going to be that effective so yeah no yeah okay so so what we 49 00:05:28,120 --> 00:05:34,380 need um what we really need is attacks that are that are very kind of focused towards a specific 50 00:05:34,380 --> 00:05:42,340 industry or a specific country really nicely targeted it must be closely coordinated which 51 00:05:42,340 --> 00:05:49,660 means we want to see all of this happening at the same time when you if you blow up a building it 52 00:05:49,660 --> 00:05:54,720 doesn't help if you want to destroy a building it does not help if you take one brick every day and 53 00:05:54,720 --> 00:05:56,440 move it away you know after a while 54 00:06:00,480 --> 00:06:05,280 after a while you know people are going to like find out that you're taking away one brick at a 55 00:06:05,280 --> 00:06:09,280 time and after the couple of few days they're going to say you know you can't take this building 56 00:06:09,280 --> 00:06:14,280 away you have to have it in one go you have to get the thing destroyed in one go and the same with 57 00:06:14,280 --> 00:06:19,440 this kind of thing you need to have something that is that is nicely coordinated and that happens at 58 00:06:19,440 --> 00:06:26,280 the same time you also want it wide enough so it can really cripple a country or have a make a dent 59 00:06:26,280 --> 00:06:27,660 in the economic 60 00:06:28,120 --> 00:06:34,800 kind of infrastructure um in a country um you need it to be effective so it needs to run um very very 61 00:06:34,800 --> 00:06:42,280 kind of targeted very quick um it needs to work all the time um and the and the last part that's 62 00:06:42,280 --> 00:06:50,300 very important for us it needs to be very fast okay we don't want to have people being able to 63 00:06:50,300 --> 00:06:55,740 stop this thing once it started it needs to run real real quick okay and the only way that we're 64 00:06:55,740 --> 00:06:57,820 going to get that working is by doing it 65 00:06:58,120 --> 00:07:05,520 by doing it automated okay so we're saying too too fast for human intervention um we need it 66 00:07:05,520 --> 00:07:09,060 automated so when we when you're looking at something that's automated the first thing that 67 00:07:09,060 --> 00:07:16,760 comes to mind is okay next slide is is a really nasty kind of worm okay so I want to talk about a 68 00:07:16,760 --> 00:07:24,400 worm um quickly um what we find is that external networks parameters are actually quite difficult 69 00:07:24,400 --> 00:07:27,940 to breach right okay there's firewalls in there 70 00:07:28,120 --> 00:07:32,420 you've got ids in there there's all sorts of interesting technology that's available today 71 00:07:32,420 --> 00:07:38,880 that makes it very difficult to break through uh external Network while if you look at the internal 72 00:07:38,880 --> 00:07:44,720 Network um you find that normally the internal Network is like soft and cozy right there's a 73 00:07:44,720 --> 00:07:50,420 whole lot of vulnerabilities around there that we can find and that we can exploit and the reason 74 00:07:50,420 --> 00:07:56,860 for that is that system administrators tend to not patch machines that are internal they say 75 00:07:58,120 --> 00:08:05,300 about the let's say the the RPC vulnerability that was found a couple of weeks ago um but we don't 76 00:08:05,300 --> 00:08:10,600 have anything that's internet facing um so the vulnerability really does not matter to us that 77 00:08:10,600 --> 00:08:17,320 much um and that and that's probably and that's probably true um for for a lot of the the problems 78 00:08:17,320 --> 00:08:24,260 that you see nowadays what you find also is that when there's a vulnerability that that um uh affects 79 00:08:24,260 --> 00:08:27,340 a kind of a package that is internet-facing system 80 00:08:28,120 --> 00:08:32,900 users tend to patch only the stuff that is internet-facing and the internal machines never 81 00:08:32,900 --> 00:08:37,660 get patched a second reason for this is is that people add new machines okay so they add a whole 82 00:08:37,660 --> 00:08:43,960 lot of machines to the network um those machines never go through a proper QA process and and so 83 00:08:43,960 --> 00:08:48,260 we're sitting with a whole lot of machines internal um that are quite that are quite weak 84 00:08:48,260 --> 00:08:53,960 um the other thing to realize that's very very important is that an internal Network is highly 85 00:08:53,960 --> 00:08:58,080 uh as likely not to be segmented 86 00:08:58,120 --> 00:09:03,640 okay so internal Network on a network level is flat there's no Firewalls in in the internal 87 00:09:03,640 --> 00:09:09,540 Network um and later on we will see why that is really helping us a lot so so what you're really 88 00:09:09,540 --> 00:09:15,660 looking for is that what what I'm really saying is that a worm that can carry a couple of different 89 00:09:15,660 --> 00:09:20,720 um payloads in terms of exports will really make a kind of a killing on an internal net 90 00:09:21,500 --> 00:09:24,240 so so let's have a look and see what what we have 91 00:09:26,340 --> 00:09:27,040 thanks Charles 92 00:09:28,120 --> 00:09:35,260 um okay so so we're looking at something like uh and these are really kind of low-hanging fruit 93 00:09:35,260 --> 00:09:40,840 um exploits and problems you're looking at something like your good old Unico double-D code 94 00:09:40,840 --> 00:09:49,060 um MDAC you're looking at dot printer dot ADI web dev um and then and then some stupid stuff like 95 00:09:49,060 --> 00:09:54,220 it's it's not even a a a problem it's not a vulnerability in the software but it's really 96 00:09:54,220 --> 00:09:58,100 a configuration problem okay so um SQL's um um and then and then you can just you know you can just 97 00:09:58,120 --> 00:10:07,200 Microsoft SQL running with a blank SA password, local administrators that has a blank password 98 00:10:07,200 --> 00:10:09,680 and sharing C dollar out there. 99 00:10:10,500 --> 00:10:15,640 We think of things like Slammer, which was the SQL locator service problem in that. 100 00:10:16,740 --> 00:10:19,980 You've got the Apache chunk encoding stuff, OpenSSL. 101 00:10:20,220 --> 00:10:24,460 There's a whole lot of different exploits and a whole lot of different problems out there 102 00:10:24,460 --> 00:10:25,320 that we really know. 103 00:10:25,440 --> 00:10:26,640 We know how to code them. 104 00:10:26,640 --> 00:10:27,980 We know what they are. 105 00:10:28,160 --> 00:10:29,620 We know how they sit together. 106 00:10:31,060 --> 00:10:39,000 But these problems have been, to a large extent, been solved on the Internet and on the perimeters. 107 00:10:39,240 --> 00:10:45,280 But in the internal networks, these kind of problems are quite big and large, and we know that they are there. 108 00:10:45,440 --> 00:10:53,400 And anyone here that's an administrator that's got a large network will know that these are problems in your internal network. 109 00:10:54,620 --> 00:10:55,140 Okay? 110 00:10:56,640 --> 00:11:03,240 Okay, so one of the things when you're writing a worm to look at is actually finding more food, what we call it, 111 00:11:04,000 --> 00:11:07,460 saying that we want to be able to find new machines to attack. 112 00:11:08,800 --> 00:11:15,520 And so when you're looking at an internal network, it's quite another story to get IP addresses there 113 00:11:16,160 --> 00:11:18,160 than to get IP addresses on the Internet. 114 00:11:18,380 --> 00:11:21,780 And it's quite easier to find IP addresses on an internal network. 115 00:11:21,940 --> 00:11:26,380 So we're quickly going to have a look and see what there is available. 116 00:11:26,640 --> 00:11:29,800 We're quickly going to have a look and see what there is available to find more food. 117 00:11:30,900 --> 00:11:37,240 First of all, the easiest thing that you can do is you can simply look at your IP address and then look at the netmask. 118 00:11:37,320 --> 00:11:43,480 If you see your IP address being 10.15.17.2 and your netmask 2.5.5.0.0.0, 119 00:11:43,560 --> 00:11:48,360 you know that you've got a whole class A network there that's just about all nice and flat, 120 00:11:48,520 --> 00:11:52,120 and you've immediately got a whole lot of targets that you can look at. 121 00:11:52,560 --> 00:11:55,440 The second thing that we can do is we can start looking at... 122 00:11:56,640 --> 00:11:58,120 We can start looking at SNMP, 123 00:11:58,960 --> 00:12:03,240 and we can basically go through the ranges that we now found in the first instance, 124 00:12:04,040 --> 00:12:07,480 send SNMP queries to all of those machines, see who respond. 125 00:12:08,160 --> 00:12:13,720 We try it with a community name of, let's say, Public and Cisco and the company name, whatever. 126 00:12:14,560 --> 00:12:20,640 And we extract the routes, or as you call it, the routes, of these machines, 127 00:12:20,820 --> 00:12:25,000 and we easily find all the other networks that's sitting on that internal network. 128 00:12:25,000 --> 00:12:29,020 The third thing we can do, and as we progress in here, 129 00:12:29,120 --> 00:12:35,140 kind of the effectiveness of these methods is really kind of going down a bit. 130 00:12:35,720 --> 00:12:37,860 We can do a trace route to the internet. 131 00:12:38,420 --> 00:12:43,740 We can record the routes and see what kind of hops we find there 132 00:12:43,740 --> 00:12:48,360 to find out networks that are surrounding the net where we are at the moment. 133 00:12:48,720 --> 00:12:53,420 And that is given that the IP address where we're executing from 134 00:12:53,420 --> 00:12:54,980 is really internal to the network. 135 00:12:55,000 --> 00:12:58,860 So just now we're going to see how we're going to get this thing internal to the network. 136 00:12:59,040 --> 00:13:01,280 I know it's annoying when this thing goes on and off. 137 00:13:01,380 --> 00:13:02,320 It's annoying to me as well. 138 00:13:04,280 --> 00:13:08,900 Okay, the fourth thing that we can do is we can start just basically doing ping sweeps 139 00:13:08,900 --> 00:13:11,160 around the network and find out what's available. 140 00:13:11,380 --> 00:13:14,420 So we go one class C higher, one class C lower. 141 00:13:14,620 --> 00:13:15,700 We do a ping sweep. 142 00:13:15,820 --> 00:13:17,420 We look at the response times coming back. 143 00:13:18,140 --> 00:13:20,840 And from the response times, we can have a good indication 144 00:13:20,840 --> 00:13:23,100 if that machine is sitting on a local network or not. 145 00:13:23,780 --> 00:13:24,920 And then last of all, 146 00:13:25,000 --> 00:13:28,940 if we're really getting desperate, 147 00:13:29,140 --> 00:13:30,960 then we can start doing a brute force 148 00:13:30,960 --> 00:13:35,420 and actually try to just run through a couple of IP numbers, 149 00:13:35,540 --> 00:13:37,260 ping them, and see what would come up. 150 00:13:37,400 --> 00:13:38,280 That's not really effective, 151 00:13:38,500 --> 00:13:41,280 but I thought it would be nice if I put that in there. 152 00:13:43,180 --> 00:13:46,500 Okay, so let's look at the next thing. 153 00:13:46,600 --> 00:13:50,560 I don't know if you can see there on the screen quite nicely. 154 00:13:53,120 --> 00:13:54,780 The one thing that's interesting, 155 00:13:54,780 --> 00:13:55,840 the first thing for internal networks, 156 00:13:56,100 --> 00:13:58,800 is when you look at denial of service attacks, 157 00:13:59,140 --> 00:14:02,700 the types of denial of service attacks that you can find 158 00:14:02,700 --> 00:14:08,040 on internal networks are very much more sophisticated. 159 00:14:08,740 --> 00:14:11,100 And there's a couple of more choices that you can have 160 00:14:11,100 --> 00:14:13,400 when you're doing denial of service on internal networks 161 00:14:13,400 --> 00:14:15,140 than on external networks. 162 00:14:15,720 --> 00:14:17,540 Okay, so if I think about it real quick, 163 00:14:17,820 --> 00:14:24,640 you must realize that worms that you have on internal networks propagate at wire speeds. 164 00:14:25,460 --> 00:14:30,600 So you've seen what Slammer, for instance, does to your Cisco boxes, right? 165 00:14:30,860 --> 00:14:36,640 Slammer didn't have a dedicated denial of service payload, 166 00:14:37,800 --> 00:14:39,820 but because it propagated that quick, 167 00:14:39,960 --> 00:14:41,660 and because it was sitting on an internal network, 168 00:14:41,880 --> 00:14:45,720 it was flooding your network to the extent that some of the routers went down. 169 00:14:45,840 --> 00:14:50,920 So when we're starting to build really denial of service attack tools 170 00:14:50,920 --> 00:14:54,040 that are dedicated to propagated wire speeds, 171 00:14:54,200 --> 00:14:54,760 and we're starting to build really denial of service attack tools that are dedicated to propagated wire speeds, 172 00:14:54,760 --> 00:14:57,700 and really dedicated to do flooding on wire speeds, 173 00:14:57,840 --> 00:15:02,320 I think we can get some more interesting kind of numbers out there 174 00:15:02,320 --> 00:15:07,120 than with something that didn't have a dedicated denial of service payload. 175 00:15:08,920 --> 00:15:12,760 Something else that we can do on internal networks that we can't do on external networks 176 00:15:12,760 --> 00:15:15,040 is ICMP route redirection. 177 00:15:15,520 --> 00:15:20,860 We can start playing with the op tables of machines internal, 178 00:15:21,360 --> 00:15:23,420 something you can't do on the internet, 179 00:15:23,420 --> 00:15:25,220 because you're not local to the network. 180 00:15:25,420 --> 00:15:28,520 You can start doing some trickery on the MAC addresses, 181 00:15:28,680 --> 00:15:31,320 like assign every IP address to your MAC address. 182 00:15:32,460 --> 00:15:34,180 There's a couple of things we can do there. 183 00:15:34,280 --> 00:15:38,160 We can do DHCP leased exhaustion attacks, 184 00:15:38,440 --> 00:15:43,880 whereby we basically emulate the DHCP server until all the leases have expired. 185 00:15:44,640 --> 00:15:49,440 And there's a couple of things that we can do on the internal network that's really bad. 186 00:15:50,340 --> 00:15:53,320 You know what happens when you choose your IP address, 187 00:15:53,320 --> 00:15:54,620 it has to be the same as your firewall. 188 00:15:55,520 --> 00:15:58,480 You know, the whole damn subnet goes down. 189 00:15:59,540 --> 00:16:02,380 We can even do something on a network where we can, 190 00:16:02,440 --> 00:16:03,820 if we can sniff the traffic, 191 00:16:03,920 --> 00:16:06,380 that we can do hijacking of TCP connections. 192 00:16:07,000 --> 00:16:08,100 That's not that effective, 193 00:16:08,280 --> 00:16:09,880 but in an unswitched kind of network, 194 00:16:10,320 --> 00:16:11,480 it could do wonders. 195 00:16:12,920 --> 00:16:14,120 And while we're there, 196 00:16:14,240 --> 00:16:15,560 while we're sitting on the machine itself, 197 00:16:16,120 --> 00:16:18,940 we can somehow start and delete files. 198 00:16:19,500 --> 00:16:21,760 So we can corrupt all the doc files on the machine, 199 00:16:21,800 --> 00:16:22,820 all the XLS files, 200 00:16:22,820 --> 00:16:24,980 we can look for zip files, 201 00:16:25,120 --> 00:16:26,860 insert some bytes into the zip file, 202 00:16:27,000 --> 00:16:28,040 thereby corrupting it. 203 00:16:28,340 --> 00:16:32,260 We can see if we can flash the BIOS of the machine 204 00:16:33,220 --> 00:16:35,480 so that when someone reboots the machine, 205 00:16:35,620 --> 00:16:37,000 all the BIOS settings are lost. 206 00:16:38,140 --> 00:16:41,180 We can do pop-up messages all around 207 00:16:41,180 --> 00:16:43,060 on all the machines that's been affected, 208 00:16:43,200 --> 00:16:43,480 thereby, 209 00:16:45,040 --> 00:16:47,480 let's say with a pop-up message of something like, 210 00:16:47,640 --> 00:16:49,640 your machine has been infected, 211 00:16:49,920 --> 00:16:52,220 please contact your system administrator, 212 00:16:52,220 --> 00:16:54,920 and read the following 25 characters 213 00:16:54,920 --> 00:16:56,400 to your system administrators. 214 00:16:56,740 --> 00:17:00,240 And then you put in the A, 0, $, 2, 5, whatever. 215 00:17:00,540 --> 00:17:02,520 The reason for that is that it's basically 216 00:17:02,520 --> 00:17:04,920 going to disable the help desk 217 00:17:04,920 --> 00:17:07,460 to the extent that the PABX will be flooded, 218 00:17:07,620 --> 00:17:09,720 and you're really going to keep your administrators 219 00:17:09,720 --> 00:17:10,380 quite busy. 220 00:17:12,980 --> 00:17:14,700 Something else that we can do is, 221 00:17:14,840 --> 00:17:17,820 we can look at the routers that's surrounding the network, 222 00:17:18,820 --> 00:17:21,700 and we can have a module 223 00:17:21,700 --> 00:17:24,480 that will try to log into the routers 224 00:17:24,480 --> 00:17:28,400 and thereby disable all the interfaces 225 00:17:28,400 --> 00:17:29,400 on the machine itself. 226 00:17:31,060 --> 00:17:33,800 I know there's no default password for Cisco boxes, 227 00:17:33,940 --> 00:17:35,700 but some of the other 3Com switches, 228 00:17:36,400 --> 00:17:39,080 some of that stuff has got default passwords. 229 00:17:39,380 --> 00:17:41,700 You can kind of guess passwords 230 00:17:41,700 --> 00:17:44,040 and see if you can actually get into the machine 231 00:17:44,470 --> 00:17:46,100 and disable the interfaces. 232 00:17:46,680 --> 00:17:48,460 What will happen then is that your administrator 233 00:17:48,460 --> 00:17:51,680 won't be able to get to the affected machines at all. 234 00:17:51,700 --> 00:17:54,860 And they need to physically go to the router 235 00:17:54,860 --> 00:17:57,220 and plug a cable in there. 236 00:17:57,620 --> 00:17:59,440 Now imagine, it doesn't sound that bad, 237 00:17:59,540 --> 00:18:00,620 but if you think about a network 238 00:18:00,620 --> 00:18:02,880 with like 50,000 machines on there, 239 00:18:03,680 --> 00:18:07,140 and let's say 1,000, 2,000 different routers, 240 00:18:07,300 --> 00:18:09,400 it starts to become a little bit of a nightmare. 241 00:18:12,420 --> 00:18:15,080 I know you can't see a lot there 242 00:18:15,080 --> 00:18:16,700 because it's a little bit too light in here, 243 00:18:16,840 --> 00:18:18,840 but that's typically what a design 244 00:18:18,840 --> 00:18:21,600 of such an internal worm 245 00:18:21,600 --> 00:18:22,360 would look like. 246 00:18:22,540 --> 00:18:24,200 We've got basically three modules. 247 00:18:25,040 --> 00:18:27,240 The first module does the reconnaissance. 248 00:18:28,560 --> 00:18:32,500 The second module does the actual exploitation. 249 00:18:32,900 --> 00:18:34,780 And the third module in there 250 00:18:34,780 --> 00:18:36,460 does the denial of service. 251 00:18:37,060 --> 00:18:40,020 Now, of course, the one thing to keep in mind here 252 00:18:40,020 --> 00:18:41,500 is that denial of service attacks 253 00:18:41,500 --> 00:18:44,400 and a kind of biological agent 254 00:18:44,400 --> 00:18:45,680 that propagates through the network 255 00:18:45,680 --> 00:18:47,400 does not match very well. 256 00:18:47,660 --> 00:18:51,520 So if you have an instance of this worm starting off, 257 00:18:51,600 --> 00:18:53,660 doing denial of service attack straight away, 258 00:18:54,240 --> 00:18:56,040 you might disable the whole of the network, 259 00:18:56,200 --> 00:18:57,380 and it means you're not going to propagate 260 00:18:57,380 --> 00:18:58,900 into all the machines that you need to. 261 00:18:59,000 --> 00:19:00,120 You can understand what I'm saying. 262 00:19:00,340 --> 00:19:02,680 On the one end, you have someone that's killing everyone. 263 00:19:02,900 --> 00:19:04,620 At the other end, you want to infect everyone. 264 00:19:04,900 --> 00:19:07,460 Those two things, they don't work together quite well. 265 00:19:07,740 --> 00:19:09,220 So we worked out a kind of a model 266 00:19:11,160 --> 00:19:12,480 to get that right, 267 00:19:15,320 --> 00:19:18,540 whereby we define a machine as a neighbor. 268 00:19:18,640 --> 00:19:20,400 Now remember what I said, the network is flat. 269 00:19:21,600 --> 00:19:22,760 So if the network is flat, 270 00:19:22,820 --> 00:19:25,260 we can get communications between different instances 271 00:19:25,260 --> 00:19:26,580 of this worm going, 272 00:19:26,800 --> 00:19:28,760 and that makes it very interesting for us. 273 00:19:30,560 --> 00:19:32,320 We'll put something on the website, 274 00:19:33,540 --> 00:19:34,800 on sensepost.com, 275 00:19:34,940 --> 00:19:38,400 that would explain exactly how we're going to do that. 276 00:19:38,500 --> 00:19:40,980 I'm not going to go into too much detail of that now. 277 00:19:41,020 --> 00:19:42,340 It's quite intricate. 278 00:19:43,340 --> 00:19:46,380 If you're interested, you can ask me afterwards. 279 00:19:46,840 --> 00:19:48,380 I'm just watching the time as well. 280 00:19:48,480 --> 00:19:50,040 I've got a lot more that I want to show you. 281 00:19:52,380 --> 00:19:54,820 Okay, so now we talked about this thing, 282 00:19:54,900 --> 00:19:56,740 this uber kind of worm, 283 00:19:56,920 --> 00:19:59,160 and if we run it somewhere, 284 00:19:59,440 --> 00:20:01,440 it's going to take out everything in its way. 285 00:20:01,640 --> 00:20:03,620 But how do we get it into the internal network? 286 00:20:05,380 --> 00:20:09,420 Well, it's actually much, much easier than you think it is. 287 00:20:10,340 --> 00:20:13,220 I'm not going to show you any kind of zero-day silent delivery 288 00:20:13,220 --> 00:20:15,580 in Outlook or any of that. 289 00:20:16,620 --> 00:20:20,680 What you do is you use the correct language. 290 00:20:20,680 --> 00:20:23,880 So if you're attacking a French kind of company, 291 00:20:23,940 --> 00:20:25,360 you write your email in French, 292 00:20:26,220 --> 00:20:29,340 and you mail it from marketing at 293 00:20:29,340 --> 00:20:31,680 and the company name that you have 294 00:20:31,680 --> 00:20:33,460 with a subject that says, 295 00:20:33,600 --> 00:20:35,500 New screen saver for company name. 296 00:20:35,640 --> 00:20:36,340 Click here. 297 00:20:37,460 --> 00:20:44,120 And then you don't really attach the exe to the mail 298 00:20:44,120 --> 00:20:46,840 because your content level filter is going to pick it up 299 00:20:46,840 --> 00:20:47,800 and going to shut it out. 300 00:20:48,120 --> 00:20:50,200 But you send a... 301 00:20:50,860 --> 00:20:54,240 You send a link to the actual exe, 302 00:20:54,340 --> 00:20:57,000 and you make sure that that exe is located on a site 303 00:20:57,000 --> 00:20:58,800 that supports HTTPS, 304 00:20:59,920 --> 00:21:01,060 that's SSL-enabled. 305 00:21:01,560 --> 00:21:03,000 The reason for that is easy. 306 00:21:03,500 --> 00:21:09,140 If we put something on a site that is setting up... 307 00:21:09,140 --> 00:21:10,020 Well, what's going to happen? 308 00:21:10,080 --> 00:21:12,300 Your browser's going to set up an encrypted session 309 00:21:13,420 --> 00:21:14,480 to that web server. 310 00:21:14,820 --> 00:21:16,960 Thereby, all your content level stuff 311 00:21:16,960 --> 00:21:19,060 is not going to pick up what's going past the wire. 312 00:21:19,060 --> 00:21:20,220 You could be surfing porn, 313 00:21:20,360 --> 00:21:23,780 or you could be downloading this nasty exe. 314 00:21:24,820 --> 00:21:27,440 And what we do is we also put a... 315 00:21:27,900 --> 00:21:30,880 We kind of obfuscate the URL. 316 00:21:31,280 --> 00:21:34,540 So we call it intranet.companyxxx.com. 317 00:21:35,020 --> 00:21:37,020 And then we have a little at sign there, 318 00:21:37,160 --> 00:21:38,880 and then we put in hex, 319 00:21:38,980 --> 00:21:43,900 we encode the rest of the URL that's the actual URL. 320 00:21:44,200 --> 00:21:47,900 Obviously, you know that the part in front of the at sign 321 00:21:47,900 --> 00:21:49,880 is actually a username that's being passed on, 322 00:21:50,000 --> 00:21:53,740 and the part behind the at sign is the real site. 323 00:21:53,960 --> 00:21:55,660 Now, you know this, right? 324 00:21:56,480 --> 00:21:59,700 But your marketing department, they do not know this. 325 00:22:00,460 --> 00:22:03,720 And the kind of management department, 326 00:22:04,060 --> 00:22:06,220 management structure, they don't know it either. 327 00:22:06,540 --> 00:22:08,480 And sales, oh shit, they don't know anything. 328 00:22:12,000 --> 00:22:15,960 Okay, so you might say, 329 00:22:16,040 --> 00:22:17,720 well, this is really not that effective. 330 00:22:17,900 --> 00:22:19,700 And I don't see this really working. 331 00:22:20,100 --> 00:22:20,800 Well, I'll ask you this. 332 00:22:21,020 --> 00:22:23,740 All of you get a whole lot of spam messages, you know? 333 00:22:25,940 --> 00:22:27,480 And you delete it, right? 334 00:22:27,540 --> 00:22:29,920 You delete it without even looking at the content, correct? 335 00:22:30,320 --> 00:22:33,160 But if you were to get an email that's coming from marketing 336 00:22:33,160 --> 00:22:34,700 at your company name, 337 00:22:34,880 --> 00:22:37,980 it's got your company name in there, coded perfectly in there, 338 00:22:38,040 --> 00:22:40,900 and it says new screensaver for your company name, 339 00:22:41,020 --> 00:22:42,180 perfectly spelled okay, 340 00:22:42,300 --> 00:22:44,440 and it's in your language that you speak, 341 00:22:44,920 --> 00:22:46,840 then you're probably going to have a look at it, right? 342 00:22:46,840 --> 00:22:48,900 You might not execute this stuff 343 00:22:48,900 --> 00:22:52,460 because you people here are more kind of security aware. 344 00:22:52,800 --> 00:22:55,020 But it's actually a nice way of getting it in there. 345 00:22:55,280 --> 00:22:56,200 So let's look at stats. 346 00:22:57,260 --> 00:23:00,400 So we wanted to do this and see what it would get to. 347 00:23:01,000 --> 00:23:04,700 And we couldn't really find someone that would let us test it. 348 00:23:06,200 --> 00:23:07,900 So at the end of the day, 349 00:23:09,260 --> 00:23:11,180 we got a bank in South Africa 350 00:23:11,180 --> 00:23:14,540 that allowed us to send it to their security team. 351 00:23:14,700 --> 00:23:14,980 Okay? 352 00:23:14,980 --> 00:23:16,840 It's 13 people of the security team. 353 00:23:18,580 --> 00:23:20,020 Now, here's the stats. 354 00:23:20,500 --> 00:23:21,460 Because we... 355 00:23:23,740 --> 00:23:24,720 Because we... 356 00:23:26,340 --> 00:23:29,060 The payload that we sent in this case 357 00:23:29,060 --> 00:23:32,800 was a modified version of the Trojan 358 00:23:32,800 --> 00:23:34,160 that we talked about last year. 359 00:23:34,740 --> 00:23:38,440 And what it basically did is it pulled out the username 360 00:23:38,980 --> 00:23:40,240 of the environment, 361 00:23:40,360 --> 00:23:42,700 and then it reported the username to us. 362 00:23:42,940 --> 00:23:43,140 Okay? 363 00:23:43,140 --> 00:23:46,480 So we can see exactly who was downloading the thing, 364 00:23:46,540 --> 00:23:48,960 and we can exactly see who executed this thing. 365 00:23:49,380 --> 00:23:50,200 So here's the stats. 366 00:23:50,280 --> 00:23:51,340 13 people... 367 00:23:51,340 --> 00:23:52,980 We mailed 13 people in the group. 368 00:23:53,320 --> 00:23:55,260 Eight of them downloaded the exe. 369 00:23:55,320 --> 00:23:57,100 We can see that in our Apache logs, right? 370 00:23:57,140 --> 00:23:57,960 They clicked on the thing. 371 00:23:58,640 --> 00:24:00,540 And five of them executed it. 372 00:24:00,780 --> 00:24:02,820 Now, because we had this specialized payload, 373 00:24:02,960 --> 00:24:04,180 it didn't really do anything. 374 00:24:04,280 --> 00:24:05,420 It was just like, you know, 375 00:24:05,960 --> 00:24:07,940 sending out the username back to us. 376 00:24:08,100 --> 00:24:10,400 So the one guy, like, clicked on it three times. 377 00:24:10,460 --> 00:24:11,940 He really wanted that screen server. 378 00:24:13,400 --> 00:24:13,800 Okay. 379 00:24:13,860 --> 00:24:16,220 Now, I appreciate that when we do this in a large company, 380 00:24:16,320 --> 00:24:19,720 we only need one person to be able to open that mail. 381 00:24:20,080 --> 00:24:22,780 Well, to basically download that thing and open it, correct? 382 00:24:23,400 --> 00:24:26,540 And I know you're going to say, well, you know, 383 00:24:28,900 --> 00:24:31,940 the exe itself was sitting on a site that's SSL-enabled. 384 00:24:32,020 --> 00:24:34,500 The browser's going to complain about this thing. 385 00:24:35,080 --> 00:24:35,660 I know. 386 00:24:35,760 --> 00:24:37,300 But people go like... 387 00:24:37,300 --> 00:24:38,340 You know, the browser goes, 388 00:24:38,980 --> 00:24:41,520 the certificate that's presented to you 389 00:24:41,520 --> 00:24:42,840 was signed by an unknown authority. 390 00:24:43,520 --> 00:24:44,160 Now, okay. 391 00:24:44,920 --> 00:24:46,680 You're going to download the exe now. 392 00:24:46,700 --> 00:24:47,600 Do you really want to run it? 393 00:24:47,900 --> 00:24:48,260 Yes. 394 00:24:50,020 --> 00:24:50,940 That's the way it works. 395 00:24:51,120 --> 00:24:53,760 So you don't need a zero-day to get the stuff in there. 396 00:24:53,840 --> 00:24:55,620 You simply need to sound convincing. 397 00:24:58,200 --> 00:25:01,020 Okay, so now we've got this way of basically... 398 00:25:01,020 --> 00:25:03,100 Okay, I'm going to go through this real quick. 399 00:25:03,420 --> 00:25:07,540 We've got a way to basically find mail people at a company. 400 00:25:07,660 --> 00:25:10,500 How do we find someone at a company name? 401 00:25:10,600 --> 00:25:11,220 You have a friend. 402 00:25:11,320 --> 00:25:12,220 You don't know where they are. 403 00:25:12,220 --> 00:25:13,600 You go to Google, right? 404 00:25:13,740 --> 00:25:15,600 You put in the company name in there, 405 00:25:16,220 --> 00:25:19,520 and you see if you can find if that person ever emailed anything. 406 00:25:21,340 --> 00:25:25,880 So if we do a Google for at companyxxx.com 407 00:25:25,880 --> 00:25:29,840 minus www.companyxxx.com, 408 00:25:29,900 --> 00:25:30,900 and we scrape it, 409 00:25:31,020 --> 00:25:34,000 we basically take all the results coming back 410 00:25:34,000 --> 00:25:35,360 and we extract all the email addresses, 411 00:25:35,620 --> 00:25:36,820 it works really nice. 412 00:25:37,160 --> 00:25:40,640 Now, for example, I use some kind of newspaper, 413 00:25:41,340 --> 00:25:43,840 Haryet newspaper in Turkey, just as an example. 414 00:25:44,120 --> 00:25:48,080 You run it, and you get 83 different email addresses of people. 415 00:25:48,200 --> 00:25:51,260 Now, these are people that typically ever emailed any forum, 416 00:25:51,420 --> 00:25:55,300 ever mailed to a news group or to a mailing list 417 00:25:55,300 --> 00:25:58,860 or signed a guestbook or this. 418 00:25:59,460 --> 00:26:01,060 But those email addresses exist. 419 00:26:01,180 --> 00:26:02,320 They sit there on the Internet. 420 00:26:02,440 --> 00:26:03,280 They can be mined. 421 00:26:03,340 --> 00:26:04,860 This is how you get all your junk mail, 422 00:26:04,960 --> 00:26:07,560 through people that does the same thing and then send you junk mail. 423 00:26:07,660 --> 00:26:10,200 So we're basically just doing a kind of interest in... 424 00:26:10,200 --> 00:26:11,920 interesting spam exercise here. 425 00:26:12,600 --> 00:26:12,660 Okay? 426 00:26:14,300 --> 00:26:17,660 So now we want to make it a little bit more wider. 427 00:26:17,860 --> 00:26:20,720 So we want to look at the whole country, right? 428 00:26:21,340 --> 00:26:21,720 Okay? 429 00:26:22,060 --> 00:26:25,640 So what we do is we said we can extract email addresses from companies. 430 00:26:26,340 --> 00:26:29,300 Now what we need to do is we need to find the companies, correct? 431 00:26:29,540 --> 00:26:31,320 We need to find all these different companies. 432 00:26:31,620 --> 00:26:35,060 And we're going to target the following sectors within a country. 433 00:26:35,280 --> 00:26:37,080 We're going to look at telecom. 434 00:26:37,280 --> 00:26:39,340 We're going to look at all the different energy providers, 435 00:26:39,560 --> 00:26:39,860 hydro. 436 00:26:40,320 --> 00:26:40,720 Oil. 437 00:26:41,700 --> 00:26:42,100 Nuclear. 438 00:26:42,240 --> 00:26:42,840 Fossil fuel. 439 00:26:42,880 --> 00:26:43,400 That kind of thing. 440 00:26:43,560 --> 00:26:46,500 We're going to look at government and military, right? 441 00:26:46,680 --> 00:26:46,980 Okay? 442 00:26:47,960 --> 00:26:49,300 We're going to look at media providers. 443 00:26:49,500 --> 00:26:51,120 Why are we going to look at media providers? 444 00:26:51,660 --> 00:26:54,900 The reason we look at media providers is you all love the press, right? 445 00:26:55,220 --> 00:26:57,940 You do something small, they make it into something big. 446 00:26:59,120 --> 00:27:03,480 So as part of the kind of hysteria that we want to generate with this kind of attack, 447 00:27:03,820 --> 00:27:06,880 we're going to attack the press as well. 448 00:27:07,360 --> 00:27:10,020 And once the press is attacked, they're going to say, 449 00:27:10,020 --> 00:27:12,420 you know, this is the end of the world, right? 450 00:27:12,480 --> 00:27:16,880 We can just, you know, go and hide in our bunkers 451 00:27:16,880 --> 00:27:19,780 because they kind of always make things bigger than it really is. 452 00:27:21,240 --> 00:27:25,680 We're looking at the financial services, banks, insurance companies, that kind of thing. 453 00:27:26,040 --> 00:27:27,600 We look at prominent businesses. 454 00:27:27,780 --> 00:27:30,540 And the reason we look at prominent businesses is that in some countries, 455 00:27:33,060 --> 00:27:39,600 let's say 60 or 70 or 80 percent of the country's GDP is generated by one company. 456 00:27:40,320 --> 00:27:43,180 So we want to find that one company and take it out as well. 457 00:27:43,720 --> 00:27:45,460 And we look at emergency services. 458 00:27:45,600 --> 00:27:49,460 In the online demo that we're showing you just now, we're not looking at emergency services. 459 00:27:49,720 --> 00:27:50,860 And we look at transport. 460 00:27:51,060 --> 00:27:53,540 And for transport, we look at airlines and we look at railway. 461 00:27:56,060 --> 00:28:03,420 Okay, so how do you find companies or departments within these different sectors? 462 00:28:05,100 --> 00:28:08,680 Well, let's split it up in the private sector and the public sector. 463 00:28:08,680 --> 00:28:12,460 The private sector is actually quite difficult to find. 464 00:28:13,020 --> 00:28:17,680 You can't go to Google and say, give me all the top companies, 465 00:28:17,980 --> 00:28:20,720 give me all the telecom companies in this country. 466 00:28:20,900 --> 00:28:23,580 The online directories just doesn't work that well. 467 00:28:24,100 --> 00:28:28,760 So the way to go there is to actually find specialized directories. 468 00:28:28,960 --> 00:28:30,820 So you can go to Google, you type in there, 469 00:28:30,940 --> 00:28:36,240 give me a list of telecom companies in a certain country, 470 00:28:36,320 --> 00:28:38,500 and you will find that there's one list. 471 00:28:38,680 --> 00:28:41,780 That lists all the telecommunications companies in the world. 472 00:28:42,280 --> 00:28:46,900 And there's another list that lists all the airlines in the world. 473 00:28:47,020 --> 00:28:49,740 What we need is, obviously, we need the domain, right? 474 00:28:49,780 --> 00:28:50,380 The DNS domain. 475 00:28:50,620 --> 00:28:52,700 So it would say this airline, that domain. 476 00:28:52,940 --> 00:28:53,820 That kind of thing. 477 00:28:54,400 --> 00:28:56,100 Some you need to do online. 478 00:28:56,600 --> 00:29:01,060 Okay, so you need to query them online because there's not one big page where you can get everything off. 479 00:29:01,680 --> 00:29:05,300 So you basically have to go in, click on the thing, click on that thing, 480 00:29:05,400 --> 00:29:07,960 and at the end of the time, at the end of the day, 481 00:29:07,960 --> 00:29:09,260 you get the result back. 482 00:29:09,460 --> 00:29:13,100 And for that, we need a little pull script that will interrogate the website as we go along. 483 00:29:13,320 --> 00:29:21,080 For some of the others, we can have a nice situation where we have one big page 484 00:29:21,080 --> 00:29:24,180 with all the companies listed in there per country, 485 00:29:24,300 --> 00:29:28,820 and we basically take that and we download it to our site in a little database. 486 00:29:29,420 --> 00:29:29,740 Okay? 487 00:29:30,000 --> 00:29:31,780 There's pros and cons to both of them. 488 00:29:32,120 --> 00:29:37,200 In terms of a static list, your cons, they are that, 489 00:29:37,200 --> 00:29:43,840 that if a new company starts doing business in the telecommunications sector in, let's say, Albania, 490 00:29:43,960 --> 00:29:45,480 you're not going to know about it, right? 491 00:29:45,860 --> 00:29:47,260 Because you have a static list. 492 00:29:47,680 --> 00:29:53,920 On the other end, the kind of more online lists have problems that if that list is down, 493 00:29:54,140 --> 00:29:57,580 then, you know, you can't get the information out there. 494 00:29:58,140 --> 00:30:02,300 And it's basically a single point of failure for that particular sector. 495 00:30:03,620 --> 00:30:06,400 So the challenge is, in some cases, 496 00:30:06,400 --> 00:30:10,360 you will find, let's say, on Business Day or one of these kind of newspapers, 497 00:30:10,700 --> 00:30:15,380 you will find a list of the top 100 companies within a country. 498 00:30:15,820 --> 00:30:16,260 Okay? 499 00:30:17,240 --> 00:30:21,460 But they only give the company name, and you've got to map that to a domain name. 500 00:30:22,360 --> 00:30:24,620 And to do that is quite difficult. 501 00:30:24,760 --> 00:30:27,580 So you have company name, and you have a country name, 502 00:30:27,720 --> 00:30:29,400 and you want to have the domain name. 503 00:30:29,580 --> 00:30:34,400 Now, we basically figured out a way to do that with about, I would say, 75% accuracy. 504 00:30:35,960 --> 00:30:37,300 It's in the paper. 505 00:30:37,900 --> 00:30:39,640 I'm sure the paper is on the CD. 506 00:30:39,880 --> 00:30:41,020 Did anyone have a look? 507 00:30:41,860 --> 00:30:42,300 Okay. 508 00:30:42,380 --> 00:30:42,920 Is it? 509 00:30:43,840 --> 00:30:44,540 Okay, excellent. 510 00:30:44,760 --> 00:30:46,960 Okay, the paper for this is on the CD as well. 511 00:30:47,120 --> 00:30:53,420 And if you want to find out how we actually got to that, let's say, 75%, 90% accuracy, 512 00:30:53,500 --> 00:30:57,300 the algorithm and all of that is right there in the paper. 513 00:30:59,100 --> 00:31:04,020 Okay, when we look at the public sector, we're basically looking at government and military. 514 00:31:04,080 --> 00:31:04,380 Right? 515 00:31:04,400 --> 00:31:07,640 And here's where it starts to become a little bit more interesting. 516 00:31:08,080 --> 00:31:16,420 We all know that most of the countries have, for government, let's say, .gov, .za. 517 00:31:16,980 --> 00:31:17,500 Right? 518 00:31:19,060 --> 00:31:23,600 The problem here is that not all of the countries have actual .gov. 519 00:31:23,940 --> 00:31:26,680 Like France, for instance, have .gouv. 520 00:31:29,700 --> 00:31:32,900 That's their sub-TLD for government. 521 00:31:34,340 --> 00:31:34,780 Okay? 522 00:31:34,940 --> 00:31:36,340 So we can find that out. 523 00:31:36,360 --> 00:31:41,000 It takes a while, but after a while, you kind of find all the different government sub-TLDs 524 00:31:41,460 --> 00:31:42,180 that there are. 525 00:31:42,260 --> 00:31:43,680 Some countries don't have it. 526 00:31:44,100 --> 00:31:48,100 Germany, for instance, I don't think has a .gov, .de as such. 527 00:31:48,380 --> 00:31:51,240 Maybe you can help me out, all the German hackers that's in here. 528 00:31:52,500 --> 00:31:57,780 Okay, so what we can do now, remember we have this Google scraper that will basically go 529 00:31:57,780 --> 00:32:02,880 through the Internet and find out email addresses within a specific domain. 530 00:32:02,880 --> 00:32:14,720 So if we basically scrape gov.za, for instance, okay, we're going to find a whole lot of 531 00:32:14,720 --> 00:32:19,400 different sub-departments sitting within gov.za itself. 532 00:32:19,560 --> 00:32:21,780 And we can then take those sub-departments. 533 00:32:21,820 --> 00:32:23,060 Let's say it says energy. 534 00:32:23,220 --> 00:32:32,720 There's someone mailing from something, something, someone, let's make it Pete, at server1.energy.gov.za. 535 00:32:32,720 --> 00:32:32,860 Okay? 536 00:32:32,860 --> 00:32:34,940 Okay, what do we know about that email address? 537 00:32:35,060 --> 00:32:41,240 First of all, we know that energy is now a department within gov.za, right? 538 00:32:41,560 --> 00:32:47,720 So now we can scrape for energy.gov.za again and find out all the different sub-domains 539 00:32:47,720 --> 00:32:47,960 in there. 540 00:32:48,140 --> 00:32:54,340 And this we can do recursively until we basically found out all the different blocks, all the 541 00:32:54,340 --> 00:33:00,080 different blobs of domain names within a specific TLD, right? 542 00:33:00,140 --> 00:33:02,140 When we do the demo, you'll see how it works. 543 00:33:02,140 --> 00:33:04,100 We can do the same for military as well. 544 00:33:04,220 --> 00:33:10,580 The problem for military, though, is that a lot of the military domains are actually 545 00:33:10,580 --> 00:33:12,300 contained within government domains. 546 00:33:13,060 --> 00:33:23,020 So we can't get, we have to, for instance, you will see a domain called mod.com.my, 547 00:33:23,240 --> 00:33:25,940 which is Ministry of Defense for Malaysia. 548 00:33:26,300 --> 00:33:26,740 Okay? 549 00:33:27,880 --> 00:33:31,520 Now that would be mod.gov.my. 550 00:33:31,620 --> 00:33:31,860 Sorry. 551 00:33:32,140 --> 00:33:32,180 Okay. 552 00:33:32,240 --> 00:33:33,140 mod.gov.my. 553 00:33:33,220 --> 00:33:39,320 And that's basically the whole of the Defense Department in terms of IP space being put into 554 00:33:39,700 --> 00:33:42,920 the government sub-TLD. 555 00:33:44,320 --> 00:33:48,940 So what we've done at the end of this whole thing is we've also done a little bit of our 556 00:33:48,940 --> 00:33:49,800 footprinting algorithms. 557 00:33:50,060 --> 00:33:55,940 Anyone who was at Black Hat Seattle or in Black Hat Amsterdam would know that we've 558 00:33:55,940 --> 00:34:00,240 been doing a whole lot of work on footprinting as well and basically converting these domains 559 00:34:00,240 --> 00:34:01,280 into IP addresses. 560 00:34:01,280 --> 00:34:05,940 If you want to go for an external attack, you know, you would want to have those IP 561 00:34:05,940 --> 00:34:07,040 addresses in there as well. 562 00:34:07,680 --> 00:34:11,800 So as a kind of an afterthought, we also put a little module in there that once you 563 00:34:11,800 --> 00:34:14,940 have the domain, you can do the footprint in terms of the IP address. 564 00:34:16,420 --> 00:34:16,820 Okay? 565 00:34:18,900 --> 00:34:21,400 And we know that people love GUIs. 566 00:34:21,620 --> 00:34:22,020 Okay? 567 00:34:22,060 --> 00:34:24,280 So we got a graphical user interface for this thing. 568 00:34:25,980 --> 00:34:29,840 We actually didn't want to do it. 569 00:34:29,900 --> 00:34:31,260 But then, you know... 570 00:34:31,260 --> 00:34:34,180 At the end of the day, this is the thing that really sells. 571 00:34:35,300 --> 00:34:36,740 So we're not selling this. 572 00:34:37,520 --> 00:34:44,560 So what I want to show you quickly is the graphical user interface for this little thing 573 00:34:44,560 --> 00:34:45,100 that we built. 574 00:34:45,920 --> 00:34:50,380 The first thing you can see there, if you scroll down, is that you have an updated kind 575 00:34:50,380 --> 00:34:51,620 of a sun map of the world. 576 00:34:51,840 --> 00:34:57,680 And the reason for that is simply because if you are attacking a certain country, you 577 00:34:57,680 --> 00:34:59,560 want it to be daylight over there, right? 578 00:34:59,560 --> 00:35:00,200 Why? 579 00:35:00,580 --> 00:35:03,380 Because people tend to read more email during the day. 580 00:35:03,880 --> 00:35:08,240 And now you can see exactly, you know, when the sun is coming up in your country of target, 581 00:35:08,320 --> 00:35:11,940 and you can say, okay, you know, now is a good time to start the attack. 582 00:35:12,580 --> 00:35:18,480 And then at the bottom there, you would see there's a couple of continents that we can 583 00:35:18,480 --> 00:35:19,000 choose from. 584 00:35:19,440 --> 00:35:21,460 So let's just go to North America. 585 00:35:25,300 --> 00:35:25,700 Okay. 586 00:35:25,800 --> 00:35:28,620 And we got our little North American thing in there. 587 00:35:29,140 --> 00:35:29,540 Okay. 588 00:35:29,560 --> 00:35:33,780 I want you to go to, oh, let's go to the United States for now. 589 00:35:35,400 --> 00:35:39,920 And here you have different types of industries that you now can select. 590 00:35:41,480 --> 00:35:48,480 What I want you to do, Shaul, is I want you to go to prominent businesses, select prominent 591 00:35:48,480 --> 00:35:52,920 businesses for me, select government, and select military. 592 00:35:57,740 --> 00:35:58,220 Okay. 593 00:36:15,340 --> 00:36:19,500 Now what it's doing now is it's basically taking the prominent businesses out of the 594 00:36:19,500 --> 00:36:19,900 database. 595 00:36:21,080 --> 00:36:25,780 And in terms of the, and what I want to show you there, Shaul, if you can scroll down 596 00:36:25,780 --> 00:36:28,200 a little bit, is that for some of the companies that we're talking about here, you're going 597 00:36:28,200 --> 00:36:28,300 to see that this is the domain name. 598 00:36:28,300 --> 00:36:30,840 So for some of the companies, we don't know exactly what that domain name is going to 599 00:36:30,840 --> 00:36:31,020 be. 600 00:36:33,900 --> 00:36:41,800 Let's take, for instance, American International, if you go down a bit. 601 00:36:43,860 --> 00:36:47,960 You'll see that it's, there's a couple of domains that it tried to actually resolve 602 00:36:47,960 --> 00:36:48,920 that to. 603 00:36:49,840 --> 00:36:51,700 Some of the stuff is more easier to find. 604 00:36:51,760 --> 00:36:53,680 Some of it is a little bit more difficult to find. 605 00:36:54,280 --> 00:36:54,660 Okay. 606 00:36:54,760 --> 00:36:55,760 If you go down all the way. 607 00:36:56,220 --> 00:36:56,600 Okay. 608 00:36:56,600 --> 00:36:59,140 So those are all the major businesses in America. 609 00:36:59,600 --> 00:37:02,900 And we can select all of them basically with one little click. 610 00:37:03,440 --> 00:37:05,040 And it will, and it will go on. 611 00:37:05,100 --> 00:37:06,380 I'm not going to do that right now. 612 00:37:06,780 --> 00:37:07,640 Just go back. 613 00:37:07,780 --> 00:37:08,320 Just go back. 614 00:37:08,440 --> 00:37:08,620 Okay. 615 00:37:08,680 --> 00:37:12,920 And there we see all the different government departments that we've now, that we now extracted. 616 00:37:13,200 --> 00:37:20,240 So you see there CDC.gov, DST.gov, DOC.gov, DOE.gov. 617 00:37:20,320 --> 00:37:22,280 I don't even know what all those acronyms are. 618 00:37:23,160 --> 00:37:24,640 But we can extract them, right? 619 00:37:25,440 --> 00:37:26,580 We also got the embassy. 620 00:37:26,580 --> 00:37:27,800 We have embassies in there just for fun. 621 00:37:28,180 --> 00:37:31,220 All the American embassies and domains associated with them. 622 00:37:32,340 --> 00:37:38,900 And if we go down to the bottom, you will see there we get to the, we get to the military. 623 00:37:39,080 --> 00:37:42,860 And those are departments that we found in the military space. 624 00:37:43,140 --> 00:37:45,080 So that's the .mil space in there. 625 00:37:45,940 --> 00:37:53,340 So you see AF, which I guess is Air Force, Defense Link, DISA, DLL, whatever, Navy.mil. 626 00:37:53,480 --> 00:37:55,740 And you see that Pentagon.mil as well. 627 00:37:55,740 --> 00:38:00,520 So if you can click on Pentagon for me and click on email. 628 00:38:01,420 --> 00:38:01,940 Okay. 629 00:38:01,980 --> 00:38:06,680 So what it's doing now, it's basically going through Google and extracting email addresses 630 00:38:06,680 --> 00:38:12,000 that's potential targets for people that's got an address at the Pentagon.mil. 631 00:38:13,140 --> 00:38:18,980 We can obviously do it with any of the domains that we want there. 632 00:38:20,580 --> 00:38:22,200 It's taking a while, I see. 633 00:38:22,400 --> 00:38:25,640 I just realized that on the back end, there's a whole lot of different things happening. 634 00:38:25,640 --> 00:38:27,180 Okay, there we go. 635 00:38:27,500 --> 00:38:32,600 So there you see a whole lot of email addresses for people at Pentagon. 636 00:38:32,860 --> 00:38:38,360 What I want to show you there, which is interesting, is that you see there's subdomains within the Pentagon as well. 637 00:38:38,500 --> 00:38:46,140 So you have OSD, you have AF, you have HQDA.army.Pentagon. 638 00:38:48,660 --> 00:38:50,760 There's JS.Pentagon. 639 00:38:50,900 --> 00:38:52,620 Okay, so we can do that recursively. 640 00:38:52,660 --> 00:38:55,560 And now again, zoom in onto that one little subdomain. 641 00:38:55,560 --> 00:38:57,720 And see if we can extract email addresses from that again. 642 00:38:59,040 --> 00:38:59,520 Okay. 643 00:39:01,240 --> 00:39:07,760 So when we select these email addresses and we click on email at the bottom, 644 00:39:07,920 --> 00:39:12,360 it's now basically going to send a customized message to all of these people saying, 645 00:39:12,500 --> 00:39:17,980 you know, here's a little link, click on it and you can install the new Pentagon screensaver. 646 00:39:19,040 --> 00:39:24,940 And you actually just need one of them to click on it and it will basically then crawl within that space over there. 647 00:39:25,560 --> 00:39:27,340 And try to do as much damage as possible. 648 00:39:28,180 --> 00:39:29,780 If you can just click on back. 649 00:39:31,680 --> 00:39:34,040 No, you can just go back. 650 00:39:34,820 --> 00:39:35,780 Go back again. 651 00:39:36,260 --> 00:39:37,120 Go back again. 652 00:39:38,520 --> 00:39:39,480 Go down. 653 00:39:40,780 --> 00:39:42,640 If we can get South America up there. 654 00:39:45,440 --> 00:39:46,640 South America, okay. 655 00:39:47,460 --> 00:39:48,540 Here's South America. 656 00:39:49,660 --> 00:39:51,180 If you can click on Venezuela. 657 00:39:53,700 --> 00:39:54,180 Okay. 658 00:39:54,180 --> 00:39:56,360 We're going to go for telecom providers in Venezuela. 659 00:39:57,920 --> 00:39:58,380 Okay. 660 00:40:00,640 --> 00:40:03,160 We see there's two main telecom providers there. 661 00:40:03,320 --> 00:40:05,360 Digital and something I can't pronounce. 662 00:40:06,500 --> 00:40:09,340 If you go to digital and you click on footprint. 663 00:40:10,620 --> 00:40:11,080 Okay. 664 00:40:11,120 --> 00:40:12,640 What it's going to do now, it's the back end. 665 00:40:12,700 --> 00:40:22,290 It's going to implement a couple of algorithms in there that's now going to try to determine what IP addresses are associated with digital in Venezuela. 666 00:40:22,860 --> 00:40:24,080 Do we have anyone from Venezuela? 667 00:40:24,800 --> 00:40:25,320 No. 668 00:40:26,600 --> 00:40:27,120 Okay. 669 00:40:27,600 --> 00:40:28,120 Cool. 670 00:40:28,580 --> 00:40:35,180 What I want to tell you that's really important is that the stuff is not live. 671 00:40:35,340 --> 00:40:35,540 Okay. 672 00:40:37,340 --> 00:40:38,300 That doesn't work. 673 00:40:39,340 --> 00:40:40,980 Just give it a bit. 674 00:40:41,600 --> 00:40:42,580 Did it time out? 675 00:40:43,440 --> 00:40:43,960 Okay. 676 00:40:44,080 --> 00:40:53,400 It actually timed out on the Mac, which is a pity because otherwise you would see exactly the DNS names. 677 00:40:53,400 --> 00:40:56,880 And the different IP addresses associated with them. 678 00:40:57,240 --> 00:40:57,680 Okay. 679 00:40:58,100 --> 00:40:58,540 Okay. 680 00:40:58,560 --> 00:40:58,820 Now that. 681 00:40:59,340 --> 00:41:00,260 Okay, guys. 682 00:41:00,380 --> 00:41:00,620 Okay. 683 00:41:00,660 --> 00:41:01,600 Stop attacking us. 684 00:41:02,520 --> 00:41:03,280 Oh, there we go. 685 00:41:03,420 --> 00:41:03,800 Okay. 686 00:41:03,880 --> 00:41:04,440 So there we go. 687 00:41:05,580 --> 00:41:06,640 So there you see. 688 00:41:06,700 --> 00:41:09,000 I think that screen is a little bit more clear than this screen. 689 00:41:10,180 --> 00:41:18,660 There you see all the IP addresses associated with this particular organization and the DNS names. 690 00:41:19,220 --> 00:41:19,660 . 691 00:41:19,660 --> 00:41:22,280 So if you click on that IP address over there. 692 00:41:23,620 --> 00:41:24,600 No, the other one. 693 00:41:24,780 --> 00:41:25,360 It's okay. 694 00:41:27,940 --> 00:41:28,900 That 90. 695 00:41:29,740 --> 00:41:30,220 Yeah. 696 00:41:33,020 --> 00:41:33,960 Oh, okay. 697 00:41:34,540 --> 00:41:35,700 That's very interesting. 698 00:41:35,820 --> 00:41:35,960 Okay. 699 00:41:36,020 --> 00:41:39,460 I see Geek Tools has just moved their thing, their little proxy. 700 00:41:39,520 --> 00:41:41,480 Who's proxy in a matter of days? 701 00:41:41,880 --> 00:41:44,180 Yesterday, or two days ago, it was still up. 702 00:41:44,360 --> 00:41:49,640 But with these IP addresses, once you have them, you can actually then see exactly what blocks are there. 703 00:41:49,640 --> 00:41:50,320 What belongs to them. 704 00:41:51,340 --> 00:41:52,860 If we can go back to the slides. 705 00:41:55,980 --> 00:41:56,460 Okay. 706 00:41:56,500 --> 00:42:02,540 So in conclusion, I think focused kind of cyber attacks are quite possible. 707 00:42:03,380 --> 00:42:05,180 I think it can happen. 708 00:42:05,300 --> 00:42:14,540 I'm very scared to call it terrorism because there's a whole lot of words associated with terrorism that I don't think is really what we're going to achieve over here. 709 00:42:14,660 --> 00:42:19,540 But at least the one thing we can say is that focused kind of attacks are seriously possible. 710 00:42:19,540 --> 00:42:26,320 And that once we've implemented something like this, we would highly likely have a negative impact on that network. 711 00:42:26,620 --> 00:42:28,460 How does it compare to real-life attacks? 712 00:42:30,300 --> 00:42:37,620 I don't know if this would instill as much terror as, you know, a kind of conventional attack, which is really horrible. 713 00:42:39,400 --> 00:42:41,280 And what's the chances of this happening? 714 00:42:41,380 --> 00:42:49,520 The one thing I want to really press here is that everything that you've seen here today is not difficult to do. 715 00:42:50,580 --> 00:42:52,240 There's no zero-day, end-day. 716 00:42:52,280 --> 00:42:57,140 There's no kind of super technique in here to get this stuff running. 717 00:42:57,520 --> 00:43:01,080 So all of this is really quite easy to put together. 718 00:43:02,940 --> 00:43:04,140 And should we worry? 719 00:43:04,480 --> 00:43:19,500 Well, I think as networks and as critical systems are becoming more and more connected to the Internet and as control systems are becoming more connected to internal networks, this would be, you know, this becomes a much bigger problem. 720 00:43:19,520 --> 00:43:28,180 Nowadays, we tend to say, well, let's air-gap the critical systems with the Internet, which is cool, right? 721 00:43:28,260 --> 00:43:28,720 We do that. 722 00:43:28,860 --> 00:43:32,960 But we don't air-gap our internal systems with critical systems. 723 00:43:33,600 --> 00:43:45,080 People tend to think about cyberterrorism and cyberattacks more and more along the lines of we have to breach the perimeter and get through the perimeter and then we can do stuff. 724 00:43:45,500 --> 00:43:48,300 And because our perimeters are safe, it's all right. 725 00:43:48,420 --> 00:43:48,600 Right. 726 00:43:49,520 --> 00:43:52,220 Well, the internal networks suffer much. 727 00:43:52,440 --> 00:43:59,320 I think the answer to this kind of problem at the end of the day would be five minutes. 728 00:43:59,680 --> 00:44:00,760 I'm almost done here. 729 00:44:00,980 --> 00:44:07,680 At the end of the day, the answer to this thing would be really to educate your users, right? 730 00:44:08,500 --> 00:44:12,140 If you throw more firewalls at this problem, the problem is not going to go away. 731 00:44:12,340 --> 00:44:15,460 If you throw more technology to this, it's really not going to go away. 732 00:44:15,740 --> 00:44:19,080 But if you educate your users not to click on a little link. 733 00:44:19,700 --> 00:44:22,940 You know, then you're really solving the core of the problem. 734 00:44:24,400 --> 00:44:25,740 I thank you for your time. 735 00:44:26,000 --> 00:44:27,920 And I hope it was interesting. 736 00:44:28,200 --> 00:44:28,660 Thanks. 737 00:44:32,480 --> 00:44:32,940 Okay.