1 00:00:00,000 --> 00:00:07,480 hello hello everyone thank you thank you for coming here thank you to the 2 00:00:07,480 --> 00:00:13,060 organizers of the DEF CON for selecting my paper and not scheduling it at the 3 00:00:13,060 --> 00:00:20,460 same time as the DNS paper because otherwise the audience will be empty I 4 00:00:20,460 --> 00:00:34,060 think before starting the talk I would like to talk about definitions before 5 00:00:35,700 --> 00:00:39,820 studying any discussion you should settle on some definitions otherwise 6 00:00:39,820 --> 00:00:46,580 it'll be pretty pointless you wouldn't know what you are arguing about so 7 00:00:46,580 --> 00:00:50,260 yesterday when I've got my badge from DEF CON 8 00:00:50,260 --> 00:01:01,600 and I started hacking it I went to the website that was created by Kingpin that 9 00:01:01,600 --> 00:01:06,740 describes the badge and all the details about it and I stumbled on a very 10 00:01:06,740 --> 00:01:14,100 interesting definition on that page and that's the definition given by Kingpin 11 00:01:14,100 --> 00:01:19,100 and it defines a hacker to me a hacker can simply be defined as somebody 12 00:01:19,100 --> 00:01:20,240 involved in the exploration of the data and it defines a hacker to me a hacker 13 00:01:20,240 --> 00:01:22,460 can simply be defined as somebody involved in the exploration of technology somebody who 14 00:01:22,460 --> 00:01:26,160 wants to learn about technology and make it do things that never have been 15 00:01:26,160 --> 00:01:32,120 done before it's about creativity education experimentation and having fun 16 00:01:33,040 --> 00:01:37,320 and the hack in the technology would usually define a new and novel creation 17 00:01:37,320 --> 00:01:44,440 or method of solving a problem typically in an unorthodox fashion I think it's a 18 00:01:44,440 --> 00:01:50,200 great definition and I'm pretty sure by this definition me and a lot of 19 00:01:50,240 --> 00:01:55,960 my colleagues at McAfee would be hackers and as a matter of fact they 20 00:01:55,960 --> 00:02:04,420 started my sort of hacking career back in 1986 when I wrote a bunch of assembler 21 00:02:04,420 --> 00:02:13,040 programs that were hooking into dos version 1.0 and providing keyboard 22 00:02:13,040 --> 00:02:20,120 support for Russian language and screen output in Russian and I was fascinated by 23 00:02:20,240 --> 00:02:29,200 the computing technology since then and cracked a couple of games studied 24 00:02:29,200 --> 00:02:37,360 hacking into computer viruses and that sort of activity became my hobby and in 25 00:02:37,360 --> 00:02:44,860 1994 there was security company that suddenly wanted to hire me and they 26 00:02:44,860 --> 00:02:50,600 offered to convert my hobby into a job which sounded just great so I jumped on 27 00:02:50,600 --> 00:02:58,380 it and since then I was involved in professional security I really really 28 00:02:59,040 --> 00:03:08,560 love what DEF CON is doing because I'm seeing that DEF CON provides a hell of a 29 00:03:08,560 --> 00:03:14,800 lot of great spirit and diversity and some of colleagues of 30 00:03:14,800 --> 00:03:19,980 mine come here every year no matter whether the company would pay for that or 31 00:03:19,980 --> 00:03:28,280 not they're just regulars so they loved DEF CON just that much and let me tell 32 00:03:28,280 --> 00:03:38,080 you I love you too and now that you have that message in your mailbox open it it 33 00:03:38,080 --> 00:03:42,920 just could be a virus I'm hoping it's a good one so let's 34 00:03:42,920 --> 00:03:43,560 define the virus 35 00:03:43,560 --> 00:03:51,100 a virus as opposed to a Trojan or other piece of malware is something that 36 00:03:51,100 --> 00:03:59,060 replicates that creates recursively copies of itself so we will be talking 37 00:03:59,060 --> 00:04:03,360 about good viruses something that replicates not Trojans not just malware 38 00:04:03,360 --> 00:04:10,520 that hacks into your computer starts sending stuff out for instance just 39 00:04:10,520 --> 00:04:21,660 viruses stuff that replicates the idea of good virus appeared long long ago in 40 00:04:21,660 --> 00:04:28,220 fact Fred Cohen in his first mathematical definition of a computer 41 00:04:28,220 --> 00:04:37,880 virus has a chapter describing how to create a good virus why is that why good 42 00:04:37,880 --> 00:04:40,340 or bad because viruses are created by 43 00:04:40,340 --> 00:04:40,500 humans and not by humans and not by humans and not by humans and not by humans 44 00:04:40,500 --> 00:04:45,880 people and people have intentions they can write something that does bad things 45 00:04:45,880 --> 00:04:50,200 they can write something that does good things and the argument where the 46 00:04:50,200 --> 00:04:55,980 viruses can be good or bad was going on since then every now and then somebody 47 00:04:55,980 --> 00:05:03,720 talks about good virus that compresses files and creates more disk space for 48 00:05:03,720 --> 00:05:10,420 you or does some other maintenance jobs rolls out patches for you that sort of 49 00:05:10,420 --> 00:05:16,580 stuff but when I was looking at this as a matter of fact there were several 50 00:05:16,580 --> 00:05:21,720 papers written about good viruses back in the 90s but since then there were a 51 00:05:21,720 --> 00:05:27,900 lot of developments in the security field so I thought it would be worth 52 00:05:27,900 --> 00:05:38,300 looking at that again and the first question that I had about good and bad 53 00:05:38,300 --> 00:05:40,400 viruses is why are we talking about good and bad viruses and why are we talking about 54 00:05:40,400 --> 00:05:51,380 technology and viruses are just a way of expressing technology in software why 55 00:05:51,380 --> 00:05:55,260 are we talking about technology being bad or good can't be bad or good 56 00:05:55,260 --> 00:06:02,980 technology isn't just that it's something that can be dangerous sometimes 57 00:06:02,980 --> 00:06:10,340 for example take a nuclear reaction if it's an atomic bomb it'll explode the 58 00:06:10,340 --> 00:06:15,460 nuclear reactor and it'll kill a lot of people that's pretty bad then if the 59 00:06:15,460 --> 00:06:23,380 same nuclear reaction is running under control in a power plant at the nuclear 60 00:06:23,380 --> 00:06:31,660 power plant it creates electricity that's good for everybody if the atom is 61 00:06:31,660 --> 00:06:36,360 split in the laboratory it's research it's great 62 00:06:40,840 --> 00:06:45,600 Technology, bad or good, dangerous or not dangerous. 63 00:06:46,200 --> 00:06:49,580 When atom bomb explodes, it's pretty dangerous. 64 00:06:50,800 --> 00:06:51,160 Why? 65 00:06:51,640 --> 00:06:56,880 Why is it different from the controlled chain reaction in a power plant? 66 00:06:57,140 --> 00:06:58,940 Because of the lack of control. 67 00:06:59,180 --> 00:07:02,800 When something goes out of control, it becomes dangerous. 68 00:07:03,580 --> 00:07:05,540 Pretty similar situation is with viruses. 69 00:07:07,220 --> 00:07:14,540 And during my talk, I'll try to answer a couple of questions that don't really seem obvious. 70 00:07:15,020 --> 00:07:16,780 Can a virus be written accidentally? 71 00:07:17,760 --> 00:07:24,300 I mean, is it possible to try to write a program which isn't a virus intentionally, 72 00:07:24,540 --> 00:07:27,960 and you would end up with something that replicates? 73 00:07:28,680 --> 00:07:29,620 Do you think it's possible? 74 00:07:32,540 --> 00:07:33,380 It is. 75 00:07:35,540 --> 00:07:37,120 Can the virus get out of control? 76 00:07:37,780 --> 00:07:41,880 And you write it, you put controls in place, and it does something else. 77 00:07:42,620 --> 00:07:43,500 Is it possible? 78 00:07:44,200 --> 00:07:45,100 Very much so. 79 00:07:45,560 --> 00:07:50,140 So, in my talk, I'll tell you three stories. 80 00:07:50,640 --> 00:07:55,880 The first is the story of already 71, a tool, and the virus. 81 00:07:57,520 --> 00:07:58,900 It was written as a tool. 82 00:07:59,420 --> 00:08:01,820 It happened to be a replicating worm. 83 00:08:02,780 --> 00:08:05,360 We'll go through a disassembly and operation of it. 84 00:08:06,440 --> 00:08:14,060 Then we'll have a look at the second story, a corrupted blood incident in World of Warcraft. 85 00:08:14,260 --> 00:08:17,740 And watch a video, how it went out of control. 86 00:08:18,540 --> 00:08:26,700 And the third story, an example of W32 NACHI, a worm that exploited a vulnerability to patch it. 87 00:08:27,340 --> 00:08:28,420 And what happened? 88 00:08:30,100 --> 00:08:35,060 We'll discuss how patching vulnerability using worms can be. 89 00:08:35,660 --> 00:08:41,500 We'll also discuss how patching vulnerability can be used, and make some conclusions. 90 00:08:43,840 --> 00:08:47,040 So, before we go to the next slide, let me ask you a question. 91 00:08:47,720 --> 00:08:56,100 If we do a Google search on good virus and bad virus, what do you think will come up more frequently? 92 00:08:56,380 --> 00:09:00,440 So, who thinks good virus would come up more frequently? 93 00:09:00,700 --> 00:09:02,240 Please, raise your hand. 94 00:09:04,180 --> 00:09:05,840 I see just two hands. 95 00:09:07,080 --> 00:09:11,740 Who thinks that bad virus would come up more frequently? 96 00:09:12,380 --> 00:09:14,260 That's a hell of a lot more people. 97 00:09:15,140 --> 00:09:17,260 Now, the results of the Google search. 98 00:09:20,820 --> 00:09:28,360 As you can see, good virus comes up approximately 50% more frequently in the Internet search. 99 00:09:41,040 --> 00:09:47,420 But other searches, like, for example... 100 00:09:47,420 --> 00:09:48,440 ... 101 00:09:56,860 --> 00:10:00,640 ...beneficial virus, beneficial worm, bad worm, horrible, awful. 102 00:10:00,900 --> 00:10:01,360 ... 103 00:10:01,360 --> 00:10:02,160 ... 104 00:10:02,160 --> 00:10:02,220 ... 105 00:10:02,220 --> 00:10:17,460 the results. So in the end, overall, the total count of bad stuff is 127, and the total count 106 00:10:17,460 --> 00:10:28,860 of good stuff is just 108. The difference is only due to, well, mainly due to horrible 107 00:10:28,860 --> 00:10:36,140 and awful virus searches, which is when people got really, really annoyed or pissed off by 108 00:10:36,140 --> 00:10:42,540 a virus that hit their machine, I guess. Good virus is probably coming from people who discuss 109 00:10:42,540 --> 00:10:51,560 it in academic circles, in conferences, and give talks about that. I'm hoping this presentation 110 00:10:51,560 --> 00:10:58,160 wouldn't change these results seriously, but I'm sure it will. So the results would look 111 00:10:58,160 --> 00:10:58,840 even better. 112 00:10:58,860 --> 00:11:02,160 More positive for good virus. 113 00:11:04,200 --> 00:11:19,640 So let's start our first story about already.com, a tool and a worm. This tool was written in 114 00:11:19,640 --> 00:11:28,180 1991 and published in a magazine called PC Magazine. It's a very simple tool. It's a 115 00:11:28,180 --> 00:11:28,840 program of... 116 00:11:28,860 --> 00:11:36,740 Just 71 bytes long, so we'll be able to disassemble it in full. And the usage of that already.com 117 00:11:36,740 --> 00:11:48,520 is on the screen. Initially, if you start a batch file and then execute already.com, 118 00:11:49,520 --> 00:11:55,600 it will return you an error level. If it's one, that means this program has been executed 119 00:11:55,600 --> 00:11:58,560 today. And then you can skip some stuff. 120 00:11:58,860 --> 00:12:03,920 Now, it might be with a lot of errors, 121 00:12:03,920 --> 00:12:04,040 or a lot of mistakes. 122 00:12:04,240 --> 00:12:04,940 Some errors, though, were really hard to remove. 123 00:12:07,180 --> 00:12:10,400 I POW together those errors. 124 00:12:10,400 --> 00:12:19,320 And, in an extra bay we had a test that changed two milliseconds. 125 00:12:19,320 --> 00:12:19,460 That allowed us to get 40 seconds. 126 00:12:19,460 --> 00:12:22,880 In some cases you can even substantively deduct these errors in Java. So red!!! 127 00:12:28,100 --> 00:12:28,450 Sorry. 128 00:12:28,450 --> 00:12:37,370 that. Here is the disassembly. I'm sure people at the back cannot see it, so I'll zoom it. 129 00:12:37,830 --> 00:12:46,390 And the program consists basically of three simple blocks. The beginning of the program 130 00:12:46,390 --> 00:13:02,830 is retrieving the current date from the operating system. That's right here. Then it compares 131 00:13:02,830 --> 00:13:11,390 the result with the current date and year that are recorded in the body of the program. 132 00:13:14,070 --> 00:13:16,030 And the date and year. 133 00:13:16,390 --> 00:13:26,790 That are recorded right here at the end of the program body. That portion. 134 00:13:28,870 --> 00:13:41,190 So if the comparison between the two is successful, the program just exits with the error level 135 00:13:41,190 --> 00:13:45,010 one, which means it has already been executed today. 136 00:13:45,970 --> 00:13:55,590 If the comparison finds a mismatch, then the program does the following. 137 00:13:58,910 --> 00:14:00,830 That's the most interesting part. 138 00:14:01,030 --> 00:14:12,190 It creates a file called already.com in the current folder, and writes itself into it 139 00:14:12,190 --> 00:14:14,990 after updating the values of the operating system. 140 00:14:15,010 --> 00:14:20,930 date and time that were obtained from the operating system that means it's a 141 00:14:20,930 --> 00:14:28,790 self-modifying program that creates an exact copy of itself overwriting the 142 00:14:28,790 --> 00:14:36,730 body of itself on the disk when it overwrites itself normally just four 143 00:14:36,730 --> 00:14:44,890 bytes will be modified two for a year two for the date and in that case it 144 00:14:44,890 --> 00:14:51,530 doesn't return the error level one it returns error level zero the name of the 145 00:14:51,530 --> 00:14:55,690 program that it writes to the disk already dot-com is embedded in the body 146 00:14:55,690 --> 00:15:10,750 of the program it's at the very end why that tool happened to be a virus that 147 00:15:10,750 --> 00:15:14,050 was due to the complexity of the environment where it was operating 148 00:15:14,050 --> 00:15:14,590 you 149 00:15:14,890 --> 00:15:22,850 windows is a concept of current folder so if a program is executed from a 150 00:15:22,850 --> 00:15:29,350 folder which is different from where it is saved it will write the copy in the 151 00:15:29,350 --> 00:15:36,210 current folder thus creating a new quarter of itself if you go to some other 152 00:15:36,210 --> 00:15:41,430 place executed again here then other copy will be created and if you do it 153 00:15:41,430 --> 00:15:44,870 regularly the whole of your hard drive eventually will be sprinkled with 154 00:15:44,890 --> 00:15:55,890 with copy of already.com all over it so let's have a look at how it happens in 155 00:15:55,890 --> 00:16:06,510 reality here we have a folder called C tools and there is one file already 156 00:16:06,510 --> 00:16:08,790 dot-com in it 71 bytes long 157 00:16:23,070 --> 00:16:25,970 that's the current folder that's the current file 158 00:16:32,270 --> 00:16:35,010 now we go in another folder called C 159 00:16:35,010 --> 00:16:35,350 C 160 00:16:35,970 --> 00:16:36,490 C 161 00:16:38,410 --> 00:16:43,930 backslash test do a dir on it and it's 162 00:16:43,930 --> 00:16:52,550 empty zero bytes now we run our already 163 00:16:52,550 --> 00:16:57,110 dot-com which is in C tools and it 164 00:16:57,110 --> 00:16:59,950 executes it from the folder called C 165 00:16:59,950 --> 00:17:01,550 tools naturally 166 00:17:03,570 --> 00:17:04,130 and 167 00:17:10,950 --> 00:17:15,350 And at that point, the program creates a copy of itself. 168 00:17:21,750 --> 00:17:23,150 So an empty folder. 169 00:17:31,210 --> 00:17:33,390 See test, had zero bytes. 170 00:17:36,510 --> 00:17:41,850 Got a copy of already.com, 71 bytes, after the execution of the program. 171 00:17:42,490 --> 00:17:43,870 That's how it replicates. 172 00:17:44,250 --> 00:17:52,450 And still, of course, even though being a replicating worm, it's pretty innocent. 173 00:17:52,570 --> 00:17:57,830 It does what it says and does it well. 174 00:17:58,870 --> 00:18:06,350 The point is that when you don't take into account, 175 00:18:06,510 --> 00:18:09,210 the complexity of the environment where you write the program, 176 00:18:10,190 --> 00:18:15,230 you might end up with something that exhibits additional properties. 177 00:18:15,750 --> 00:18:21,570 And if you use techniques that are generally not recommended, 178 00:18:21,910 --> 00:18:28,270 self-modifying code, programs that modify other programs on disk or in memory, 179 00:18:28,410 --> 00:18:34,810 do injection, or use exploits, something unexpected might happen. 180 00:18:35,290 --> 00:18:36,490 And the more complex... 181 00:18:36,510 --> 00:18:43,570 The more complex is the environment, the more likelihood is that that thing occurs. 182 00:18:44,850 --> 00:18:48,390 And insecure environments are unexpectedly common. 183 00:18:48,650 --> 00:18:53,390 Just about any piece of software has its insecurities, as we all very well know. 184 00:18:56,450 --> 00:19:02,290 So let's have a look at the second story, the incident in World of Warcraft. 185 00:19:06,510 --> 00:19:08,790 How many of you play World of Warcraft? 186 00:19:08,970 --> 00:19:10,290 Could you please raise your hands? 187 00:19:13,090 --> 00:19:16,290 Not really that many, but there are some people. 188 00:19:20,150 --> 00:19:21,630 Oh, I forgot to ask. 189 00:19:21,690 --> 00:19:25,830 Maybe there are people who used to play World of Warcraft and now are playing something else? 190 00:19:26,990 --> 00:19:28,130 Could you raise your hands? 191 00:19:29,190 --> 00:19:30,290 Oh, that's a lot more. 192 00:19:32,730 --> 00:19:33,170 Wow. 193 00:19:34,010 --> 00:19:34,730 Wow sucks. 194 00:19:37,830 --> 00:19:41,510 So that incident happened in September 2005. 195 00:19:41,890 --> 00:19:45,430 Did anybody play World of Warcraft in September 2005? 196 00:19:50,690 --> 00:19:53,070 Actually, there are like five or six people. 197 00:19:53,170 --> 00:19:54,150 That's cool. 198 00:19:56,610 --> 00:19:59,790 You might have experienced that corrupted blood incident. 199 00:20:00,070 --> 00:20:03,510 I would really be interested in hearing your first-hand experiences. 200 00:20:03,710 --> 00:20:05,130 So if you can find me... 201 00:20:05,650 --> 00:20:06,490 After the... 202 00:20:06,490 --> 00:20:09,410 After the talk in room 106, I'd just appreciate that. 203 00:20:10,210 --> 00:20:17,450 Anyway, that incident happened in September 2005 when Blizzard, the company that produces World of Warcraft, 204 00:20:17,690 --> 00:20:22,210 rolled out a new release of the game. 205 00:20:22,490 --> 00:20:25,190 It was World of Warcraft 1.7. 206 00:20:26,810 --> 00:20:32,870 And they added a new so-called instance dungeon called Zul'Gurub. 207 00:20:32,970 --> 00:20:34,250 That looks very nice. 208 00:20:34,350 --> 00:20:35,550 That's a picture of it. 209 00:20:37,170 --> 00:20:38,890 Let me magnify it. 210 00:20:41,530 --> 00:20:43,010 So that's a nice place. 211 00:20:45,010 --> 00:20:49,710 Unfortunately, inside of that place lives a very unpleasant monster. 212 00:20:52,850 --> 00:20:57,530 And the name of that monster was Hakka, the Soul Flayer. 213 00:20:57,650 --> 00:20:59,870 It was the god of blood. 214 00:21:00,490 --> 00:21:06,110 And when the developers were thinking of how to implement that monster, 215 00:21:06,490 --> 00:21:08,250 they came up with a very cute idea. 216 00:21:08,590 --> 00:21:19,890 If it's the god of blood, why wouldn't it infect all the players that attack it with a disease, with a virus? 217 00:21:20,950 --> 00:21:25,990 And they implemented a virtual virus in World of Warcraft. 218 00:21:26,410 --> 00:21:29,150 And it was called Corrupted Blood. 219 00:21:29,330 --> 00:21:30,630 It was done on purpose. 220 00:21:31,210 --> 00:21:33,990 It was programmed in the software. 221 00:21:34,250 --> 00:21:36,470 And the way it works is that... 222 00:21:36,490 --> 00:21:42,410 If this monster infects a player, that player can infect somebody else. 223 00:21:43,410 --> 00:21:45,750 And that thing was so infectious. 224 00:21:45,870 --> 00:21:55,870 There is no human virus or a bacteria that spreads with as much certainty as Corrupted Blood. 225 00:21:56,130 --> 00:22:01,810 This infects you with 100% if you are just standing in the vicinity of other victim. 226 00:22:02,690 --> 00:22:03,810 It's just deadly. 227 00:22:05,250 --> 00:22:06,050 What happened? 228 00:22:09,010 --> 00:22:10,910 That wasn't supposed to happen. 229 00:22:11,130 --> 00:22:12,010 But it did. 230 00:22:12,710 --> 00:22:15,030 An epidemic started in World of Warcraft. 231 00:22:15,970 --> 00:22:17,970 What exactly went wrong? 232 00:22:18,270 --> 00:22:21,410 The timeline of that event is such. 233 00:22:21,670 --> 00:22:27,830 World of Warcraft 1.7, that included that change, went out on the 13th of September 2005. 234 00:22:29,190 --> 00:22:31,490 The epidemic started on several servers. 235 00:22:31,710 --> 00:22:35,930 World of Warcraft is organized in several not-related servers. 236 00:22:36,490 --> 00:22:45,010 Some players play on one server, some players on another, and the epidemic started on several of them, at almost the same time, on the 15th of September. 237 00:22:45,530 --> 00:22:54,330 So it took players a couple of days to get to that new place and progress enough to face that horrible monster. 238 00:22:55,690 --> 00:23:05,130 And eventually it was clear that the source of that epidemic on all the servers was that Hakkar, the Soul Flayer that lives in Zul'Gurub dungeon. 239 00:23:07,770 --> 00:23:16,910 So, what made this viral infection, which was programmed, so deadly? 240 00:23:18,290 --> 00:23:20,550 The parameters of that spell are such. 241 00:23:21,010 --> 00:23:25,110 It hits any player with a damage of 200 health points. 242 00:23:25,610 --> 00:23:32,530 And players who can only get into this dungeon are really high-level players. 243 00:23:32,750 --> 00:23:36,390 They have a lot of health points, 4,000 or 5,000 or some such. 244 00:23:36,490 --> 00:23:40,970 So each hit of corrupted blood doesn't hit them for too much. 245 00:23:42,210 --> 00:23:47,970 The spell affects them for 10 seconds, and it gives them 5 hits every 2 seconds. 246 00:23:48,390 --> 00:23:56,910 So in total, it will subtract about 2,000 health points from an average player that goes into the dungeon. 247 00:23:57,330 --> 00:24:01,910 The radius of the infection is about 100 yards. 248 00:24:02,250 --> 00:24:06,470 Which means pretty much everybody who joined the raid against that dungeon is 100 yards away. 249 00:24:06,490 --> 00:24:13,290 And that monster would get affected 100%, as I said, more deadly than Ebola. 250 00:24:16,130 --> 00:24:23,510 By design, that infection should be very limited in time and space, because it lasts for 10 seconds, and then it's over. 251 00:24:23,590 --> 00:24:25,590 You either die, or you survive. 252 00:24:28,650 --> 00:24:32,470 The problem was that that's a viral infection. It spreads. 253 00:24:33,110 --> 00:24:36,250 And there was a security oversight in World of Warcraft. 254 00:24:36,250 --> 00:24:43,150 it spread not just from player to player it spread to also non-player characters 255 00:24:43,150 --> 00:24:50,870 it spread to the pets and pets it's something that you can summon in a game 256 00:24:50,870 --> 00:25:04,050 like a dog or unicorn something like that and it would get infected and then 257 00:25:04,050 --> 00:25:08,830 because you are the master of that that you can hide it you can unsummon it and 258 00:25:09,310 --> 00:25:18,630 when that happens the infection is conserved it's frozen so the time it 10 259 00:25:18,630 --> 00:25:25,850 second timer isn't ticking anymore so you go out of that dungeon you walk into 260 00:25:25,850 --> 00:25:33,450 a big city which is full of low level players and you summon your pet guess 261 00:25:33,450 --> 00:25:33,990 what happened 262 00:25:34,050 --> 00:25:48,410 next that's a screenshot from a place called iron forge and you can see some 263 00:25:50,430 --> 00:26:01,710 bones everywhere that's dead characters you can see some like clouds of red 264 00:26:01,710 --> 00:26:04,030 stuff that's corrupted bones 265 00:26:04,050 --> 00:26:04,590 blood infection 266 00:26:11,290 --> 00:26:12,550 and now let's watch a video 267 00:26:33,190 --> 00:26:34,030 and now let's watch a video 268 00:26:39,790 --> 00:26:45,730 if you have a look at the log in the right top in the right bottom corner it 269 00:26:45,730 --> 00:26:57,870 says corrupted blood affected you this character died that many HP points were 270 00:26:57,870 --> 00:27:03,930 absorbed you can see people running around with red waves all around crying 271 00:27:13,490 --> 00:27:20,310 the character that made the recording is very high level so although his health points suffer he doesn't die 272 00:27:20,310 --> 00:27:21,870 but others do 273 00:27:51,910 --> 00:27:53,350 go to the 274 00:27:53,350 --> 00:28:02,310 basically what was happening is that for several days world of warcraft was not playable by any low level characters 275 00:28:02,310 --> 00:28:03,910 so basically what was happening is that for several days world of warcraft was not playable by any low level characters 276 00:28:03,910 --> 00:28:05,510 if that's not a bad virus 277 00:28:05,510 --> 00:28:06,970 i don't know what is 278 00:28:09,050 --> 00:28:09,830 i mean 279 00:28:09,830 --> 00:28:11,830 come on several days 280 00:28:12,790 --> 00:28:14,250 you log into a game 281 00:28:14,250 --> 00:28:16,490 your character dies immediately 282 00:28:17,410 --> 00:28:20,870 fortunately, In world of warcraft, death isn't actually terminal 283 00:28:23,590 --> 00:28:26,170 the way to revive your character is 284 00:28:26,170 --> 00:28:30,370 to walk from a graveyard as a ghost and re-populate your body 285 00:28:31,210 --> 00:28:33,350 but it's pointless because you die again 286 00:28:33,350 --> 00:28:45,050 game. And as a result, many players couldn't play the game for several days until Blizzard 287 00:28:45,350 --> 00:28:54,650 rolled out a patch. And I like the official reaction of Blizzard while they were preparing 288 00:28:54,650 --> 00:29:03,230 a patch. I'll read it out and zoom it. It was actually a very cool reply. It appears 289 00:29:03,230 --> 00:29:08,850 that the hotfix remedy concocted to combat the recent Azerothian outbreak has not yielded 290 00:29:08,850 --> 00:29:15,130 desired results. They made several patches. They tried to isolate characters in certain 291 00:29:15,130 --> 00:29:22,490 areas, sort of to quarantine them. That didn't work. At this time, our medical staff is continuing 292 00:29:22,490 --> 00:29:24,470 to develop an effective cure. 293 00:29:24,650 --> 00:29:30,170 And they look forward to ensuring the health and vitality of the citizens of Azeroth in 294 00:29:30,170 --> 00:29:39,270 the near future. Well, it actually makes sense. They converted that software bug into some 295 00:29:39,270 --> 00:29:47,090 sort of in-game event, which is cool. And many players were actually quite excited about 296 00:29:47,090 --> 00:29:54,630 that. They said it's the first proper world event. I guess those higher-level characters 297 00:29:54,630 --> 00:30:01,470 were probably more excited than lower-level characters. And the fix eventually went out 298 00:30:01,470 --> 00:30:08,570 in World of Warcraft 1.8, which was released on the 10th of October. That's actually about 299 00:30:08,570 --> 00:30:13,950 two weeks after. But unofficially, that fix was actually available earlier than that. 300 00:30:14,970 --> 00:30:23,370 And the log that software released was that fixed a bug that would allow Hakkar's Corrupted 301 00:30:23,370 --> 00:30:24,610 Blood to work. And now we can use that to really increase the risk of health and vitality 302 00:30:24,610 --> 00:30:31,190 target pets because at that time it was pretty much clear how the infection was 303 00:30:31,190 --> 00:30:41,750 transported from an isolated dungeon to a populated place there are several 304 00:30:41,750 --> 00:30:48,010 discussions of that incident in world of Warcraft after the event and several 305 00:30:48,010 --> 00:30:55,810 security papers written about that and even medical institutions were 306 00:30:55,810 --> 00:31:02,550 interested in the logs to sort of analyze the simulated virtual 307 00:31:02,550 --> 00:31:07,750 environment how the infection spread and all that is there anybody from 308 00:31:07,750 --> 00:31:17,550 Blizzard in the audience I wonder anyone anybody knows anyone from Blizzard Wow 309 00:31:17,550 --> 00:31:17,990 you 310 00:31:18,730 --> 00:31:23,450 that's surprising somebody says that through a chain of six people you can 311 00:31:23,450 --> 00:31:29,310 reach pretty much everybody on the planet and we can't find anybody from 312 00:31:29,310 --> 00:31:35,610 Blizzard they are hiding well I guess there are lots of annoyed players around 313 00:31:36,630 --> 00:31:43,570 anyway what was interesting is not so much what happened in September or 314 00:31:43,570 --> 00:31:47,830 October which was pretty cool anyway but what happened later they 315 00:31:47,830 --> 00:31:56,030 silently fixed something else in nine in 193 release three months later in 316 00:31:56,030 --> 00:32:03,930 February 2006 they again changed how that spell behaves corrupted blood now 317 00:32:03,930 --> 00:32:09,590 deals direct damage with the following damage over time and no longer spreads 318 00:32:09,590 --> 00:32:17,470 to others in the raid they removed the viral property from that spell completely so before 319 00:32:17,470 --> 00:32:22,930 it couldn't only infect pets it was actually spreading within the raid group 320 00:32:22,930 --> 00:32:27,150 that attacked the monster three months later I guess they went through some 321 00:32:27,150 --> 00:32:35,170 nightmare scenarios and realized that something really really bad might still 322 00:32:35,170 --> 00:32:47,330 happen I have a theory wild theory we have one infection we have infection that 323 00:32:47,330 --> 00:32:53,230 moved slightly to the right then it moved again then it moves again if you 324 00:32:53,230 --> 00:32:57,250 have a chain of people long enough and they all keep running in the right 325 00:32:57,250 --> 00:33:02,110 direction you can still transport corrupted blood from a dungeon into a 326 00:33:02,110 --> 00:33:08,110 city I think that's why they did that fix they completely removed the 327 00:33:08,110 --> 00:33:17,310 replication property from the spell so what did we learn from 328 00:33:17,310 --> 00:33:23,610 that event replication went completely out of control in an environment that 329 00:33:23,610 --> 00:33:29,410 was actually created by these same software guys at Blizzard and that's 330 00:33:29,410 --> 00:33:34,230 pretty much what happened at Chernobyl the guys had a nuclear plant they 331 00:33:34,230 --> 00:33:39,710 started experimenting with it a little bit sort of trying to understand how long 332 00:33:39,710 --> 00:33:46,550 it will generate power when it was being cooled down and not understanding the 333 00:33:46,550 --> 00:33:47,290 full complexity of the system and the way it works and the way it works in the 334 00:33:47,310 --> 00:33:54,230 city of the environment they made a mistake and it blew up in both cases well 335 00:33:54,920 --> 00:34:02,130 to some extent similar situation happened with already 71 unexpected 336 00:34:02,130 --> 00:34:08,370 environment so the replication appeared same thing happened to the infamous 337 00:34:08,370 --> 00:34:14,510 Morris worm the very first internet worm which overloaded internet at the time 338 00:34:14,510 --> 00:34:16,590 it was really really small and 339 00:34:16,590 --> 00:34:28,610 and contemporary internet is so much complex so much more complex than at the 340 00:34:28,610 --> 00:34:40,870 time of the Morris worm that it's not funny so let's have a look how that how 341 00:34:40,870 --> 00:34:45,470 that problem demonstrated itself in the real internet environment 342 00:34:46,590 --> 00:35:16,570 story number three w32 nachi another name for it is velchia it's a worm which was created to be good to patch a vulnerability and naturally it went out of control so the history was such there was a very very bad outbreak on the 11th of August 2003 with w32 ms blaster so the history was such there was a very very bad outbreak on the 11th of August 2003 with w32 ms blaster so the history was such there was a very very bad outbreak on the 11th of August 2003 with w32 ms blaster so the history was such there was a very very bad outbreak on the 11th of August 2003 with w32 ms blaster so the history was such there was a very very bad outbreak on the 11th of August 2003 with w32 ms blaster so the history was such there was a very very bad outbreak on the 11th of August 2003 with w32 ms blaster so the history was such there was a very very bad outbreak on the 11th of August 2003 with w32 ms blaster so the history 343 00:35:16,570 --> 00:35:18,170 Another name for it is LoveSan. 344 00:35:20,150 --> 00:35:25,450 I'm sure there are network administrators in that audience who suffered from that outbreak, 345 00:35:26,210 --> 00:35:27,410 because it was pretty bad. 346 00:35:28,570 --> 00:35:35,930 So just seven days later, after the outbreak of MS Blaster, W32 Nachi was released, 347 00:35:36,990 --> 00:35:39,550 which was supposed to fix the problem. 348 00:35:39,550 --> 00:35:44,330 It does actually contain a code that downloads from Microsoft's site, 349 00:35:44,870 --> 00:35:50,630 official patch for MSO3-26, that was RPC Decom Vulnerability. 350 00:35:52,110 --> 00:36:01,910 It downloads the patch, it installs it, and plugs the security hole that let MS Blaster spread. 351 00:36:02,790 --> 00:36:09,010 The problem was that Nachi itself, being a worm, spreads as well through the same vulnerability. 352 00:36:10,330 --> 00:36:16,430 That overloaded many networks, especially because two worms were now competing for the same vulnerability. 353 00:36:17,470 --> 00:36:23,310 But to give the credit to the author, he didn't just put one control in place, 354 00:36:23,430 --> 00:36:28,450 one control being that once the vulnerability is patched, no spreading anymore to that host. 355 00:36:28,930 --> 00:36:30,890 He put another control in place. 356 00:36:31,760 --> 00:36:33,070 The worm was time-limited. 357 00:36:33,170 --> 00:36:36,750 It was supposed to self-destruct in 2004. 358 00:36:37,660 --> 00:36:39,170 So it was checking the date. 359 00:36:39,550 --> 00:36:42,350 And in 2004, it'll just remove itself. 360 00:36:44,090 --> 00:36:48,810 The interesting thing is that some computers don't have correct clocks. 361 00:36:52,110 --> 00:37:02,090 And on the 1st of January 2004, there were still at least 30,000 machines in the Internet infected with W32 Nachi. 362 00:37:03,470 --> 00:37:05,230 It was still spreading happily. 363 00:37:05,610 --> 00:37:08,090 It was still knocking on all the doors. 364 00:37:08,210 --> 00:37:09,370 And consuming. 365 00:37:09,550 --> 00:37:10,330 And using the network bandwidth. 366 00:37:14,270 --> 00:37:16,670 So what went wrong with this thing? 367 00:37:18,330 --> 00:37:28,070 Any software, be it a program, online game, batch tool, worm, it will contain bugs. 368 00:37:28,430 --> 00:37:30,070 All software contains bugs. 369 00:37:30,390 --> 00:37:32,550 Well, unless it's Hello World. 370 00:37:34,490 --> 00:37:36,430 All software contains bugs. 371 00:37:36,770 --> 00:37:37,490 All software contains bugs. 372 00:37:37,490 --> 00:37:39,530 And W32 Nachi will not be able to do that. 373 00:37:39,530 --> 00:37:41,990 It will neglect control in two places. 374 00:37:42,830 --> 00:37:45,730 The network load, it wasn't throttling itself. 375 00:37:46,010 --> 00:37:49,010 If it had been throttling itself properly, it would be fine. 376 00:37:50,130 --> 00:37:52,730 And it didn't die properly, as expected. 377 00:37:52,970 --> 00:37:56,930 Instead of checking the date, it should have consulted an NTP server. 378 00:37:57,210 --> 00:37:59,470 Found the proper date. 379 00:38:00,050 --> 00:38:03,770 Then it might have been better. 380 00:38:04,730 --> 00:38:07,530 The point is, Internet is a very complex environment. 381 00:38:07,830 --> 00:38:08,930 When you do something in it, 382 00:38:08,930 --> 00:38:16,270 stuff just happens that you don't know about so there is an idea of pitching 383 00:38:16,270 --> 00:38:24,290 using worms which w32 nachi was sort of trying to implement but I was talking to 384 00:38:24,290 --> 00:38:31,230 Microsoft guys about pitching using replication using worms that travel in a 385 00:38:31,230 --> 00:38:37,990 controlled fashion from one computer to another so exploiting sort of peer to 386 00:38:37,990 --> 00:38:43,650 peer propagation mechanism they are naturally very interested in that 387 00:38:43,650 --> 00:38:49,670 because if there is a widespread vulnerability in the windows product 388 00:38:49,670 --> 00:38:56,150 somewhere and if it's actually exposed to the Internet the worm can travel 389 00:38:56,150 --> 00:39:01,590 really really quickly to fix the vulnerability before we eats more targets 390 00:39:01,590 --> 00:39:07,210 you have to spread quicker than the worm to spread quicker 391 00:39:07,210 --> 00:39:07,890 you either 392 00:39:07,890 --> 00:39:15,750 have to have some complex mechanisms for propagating updates which normally ask 393 00:39:15,750 --> 00:39:21,790 the user do you want to install an update but that's too long if you ask a 394 00:39:21,790 --> 00:39:26,810 user that takes time the user may be sleeping computer may be running you 395 00:39:26,810 --> 00:39:37,110 need to patch it so the question is there is a vulnerability there is a 396 00:39:37,110 --> 00:39:42,570 worm spreading in the field Microsoft would naturally know what the 397 00:39:42,570 --> 00:39:46,870 vulnerability is and how to patch it should they release a worm which would 398 00:39:46,870 --> 00:39:54,770 go and patch it well I'm happy to say that only research folks and Microsoft 399 00:39:54,770 --> 00:39:59,750 are really thinking about it I don't believe they would ever implement 400 00:39:59,750 --> 00:40:05,730 anything like that for several reasons because if they need to release a worm 401 00:40:05,730 --> 00:40:06,050 and 402 00:40:07,690 --> 00:40:14,210 that does the patching they would not have time for QA and if they don't have 403 00:40:14,210 --> 00:40:20,890 time for QA it might not work as expected it might create more damage 404 00:40:20,890 --> 00:40:30,230 than solve problems so it's technically very very risky and it's a very very deep 405 00:40:30,230 --> 00:40:35,990 legal minefield because user consent is not collected at the time of 406 00:40:36,050 --> 00:40:40,230 the installation it really might do something to the machines that it not 407 00:40:40,230 --> 00:40:50,590 supposed to touch so I can better create of beer that Microsoft would never do 408 00:40:50,590 --> 00:41:03,430 that come to me if I lose and the conclusions replicative property is a 409 00:41:03,430 --> 00:41:04,490 rather dangerous technology 410 00:41:06,050 --> 00:41:13,250 and the reasons for it being dangerous is because it's available to just 411 00:41:13,250 --> 00:41:19,670 everybody and it's very hard to control as we have seen in the examples you 412 00:41:19,670 --> 00:41:26,910 can't really that easily control software it's just frequently buggy just 413 00:41:26,910 --> 00:41:31,750 imagine the situation if nuclear technology would be available to 414 00:41:31,750 --> 00:41:33,450 everybody in their garage 415 00:41:33,450 --> 00:41:34,230 . . 416 00:41:35,250 --> 00:41:36,030 . . 417 00:41:36,030 --> 00:41:44,890 probably wouldn't have existed today so even though experimenting with splitting 418 00:41:44,890 --> 00:41:52,610 the atom in the laboratory is fine that same technology being available to 419 00:41:52,610 --> 00:42:04,350 anybody with an ability to build a bomb in a garage would be bad that's why I'm 420 00:42:04,350 --> 00:42:10,390 saying that replication is dangerous and probably more than we expect it 421 00:42:10,390 --> 00:42:19,090 tends to go wrong and if you want to mess with viral properties you have to 422 00:42:19,090 --> 00:42:27,390 be very very careful because things just tend to misbehave but can useful virus 423 00:42:27,390 --> 00:42:34,010 be created yeah of course it's possible with enough controls in place with the 424 00:42:34,010 --> 00:42:34,330 properо 425 00:42:38,110 --> 00:42:44,310 software QA you can create something that will be useful that will propagate 426 00:42:44,310 --> 00:42:51,330 do something good but if you put so many controls in place most people wouldn't 427 00:42:51,330 --> 00:42:58,490 even call it a virus it'll be some sort of propagating software there would be 428 00:42:58,490 --> 00:43:08,150 some other name for it I guess that's actually the end of my presentation if 429 00:43:08,150 --> 00:43:12,250 you are interested there are some references in the proceedings on the 430 00:43:12,250 --> 00:43:18,570 DEF CON CD-ROM with a bit more discussion about bad viruses and good 431 00:43:18,570 --> 00:43:27,150 viruses in particular with points from both sides of the fence and if you have 432 00:43:27,150 --> 00:43:27,590 questions 433 00:43:27,590 --> 00:43:33,890 please fire away I'll be only too happy to try to answer them if you have more 434 00:43:33,890 --> 00:43:40,730 questions send them to my email MIG at McAfee.com just MIG not 435 00:43:40,730 --> 00:43:49,210 mig-29 like an aircraft so please questions 436 00:43:55,710 --> 00:43:56,390 anyone 437 00:43:57,590 --> 00:43:58,070 you