1 00:00:00,000 --> 00:00:09,640 So for those of you who don't recognize me, my name is Grifter. I've spoken 2 00:00:09,640 --> 00:00:16,140 several times at DEFCON before. I didn't steal the shirt, I'm a goon, and run 3 00:00:16,140 --> 00:00:23,740 several of the contests here at DEFCON. And you are? And my name is Tierra for 4 00:00:24,760 --> 00:00:30,120 maybe a number of you know me from the scavenger hunt. That's been running that 5 00:00:30,120 --> 00:00:31,940 for the past three years here at DEFCON. 6 00:00:35,260 --> 00:00:40,600 Alright, I guess we'll get started. Basically, I know the thing in the 7 00:00:40,600 --> 00:00:48,180 program is kind of vague. Project Prometheus is the tentative name for a 8 00:00:48,180 --> 00:00:53,580 tool that we started working on a couple months ago and then we're now 9 00:00:53,580 --> 00:00:58,660 absolutely flooded with things to do for this con among other cons and things 10 00:00:58,660 --> 00:01:05,960 like that. So we decided that we couldn't get the work done to release the tool at 11 00:01:05,960 --> 00:01:09,700 DEFCON so we would do a talk on it at DEFCON and see if there was any 12 00:01:09,700 --> 00:01:13,820 community interest, if we were wasting our time, or if people thought it was 13 00:01:13,820 --> 00:01:22,180 kind of cool. So I guess I will start with how many people know what alternate 14 00:01:22,180 --> 00:01:23,120 data streams are? 15 00:01:24,360 --> 00:01:31,020 Alright, cool. That will help. There is a large number of you. For those that don't know, 16 00:01:32,840 --> 00:01:41,120 NTFS, the file system for the Windows server-like operating systems, 2000XP, NT, 17 00:01:41,300 --> 00:01:51,220 yadadadada, have support for the HFS or hierarchical blahblah. How do you say that? 18 00:01:51,580 --> 00:01:53,500 Yeah, you got me on that one too. 19 00:01:55,380 --> 00:02:02,240 HFS. There you go. Which is to support the Apple file format. It's always had 20 00:02:02,240 --> 00:02:09,480 support for this format and basically it's because Apple doesn't have a 3-dot extension 21 00:02:09,480 --> 00:02:15,340 on its files, it just keeps that information in a stream or a fork. There are two forks, 22 00:02:15,340 --> 00:02:23,520 the data fork and resource fork. And it just knows that if the file is inexecutable, it 23 00:02:23,580 --> 00:02:26,500 just takes the text file, things like that, and associates it with the proper program. 24 00:02:30,180 --> 00:02:37,060 So Windows, or Microsoft I should say, decided that it would be a good idea to have support 25 00:02:37,060 --> 00:02:43,700 for this file system and in doing so made it possible to create alternate data streams. 26 00:02:44,160 --> 00:02:50,840 An alternate data stream is basically just somewhere to hold little bits of information 27 00:02:50,840 --> 00:02:51,840 about the file. 28 00:02:53,580 --> 00:02:56,800 comments or summary information is stored. 29 00:02:58,800 --> 00:03:01,400 The thing that is fun about 30 00:03:01,400 --> 00:03:05,220 alternate data streams or makes them fun to nerds like us 31 00:03:05,220 --> 00:03:09,380 is that the file size 32 00:03:09,380 --> 00:03:13,240 does not change in the file that hosts that stream. 33 00:03:13,540 --> 00:03:17,340 So if you take a 1K or even 34 00:03:17,340 --> 00:03:20,420 7 byte file and 35 00:03:20,420 --> 00:03:23,480 decide to chuck 100, 200 36 00:03:24,300 --> 00:03:28,320 gigs worth of files into a stream on 37 00:03:28,320 --> 00:03:32,140 that file, it always looks like it's that 7 byte 38 00:03:32,140 --> 00:03:36,240 or 1K file or whatever. I guess the whole 39 00:03:36,240 --> 00:03:38,740 idea behind that was just for the fact that 40 00:03:39,720 --> 00:03:44,060 just having support between HFS and NTFS 41 00:03:44,060 --> 00:03:47,480 so that you could transfer all that file information from 42 00:03:48,800 --> 00:03:51,340 Macintosh computers and still keep it when you 43 00:03:51,340 --> 00:03:55,160 transfer it back so that Macintosh knows what that file is 44 00:03:55,160 --> 00:03:59,400 and how to open it. That's just such small amounts 45 00:03:59,400 --> 00:04:02,980 of information that I guess they didn't want to add in the support 46 00:04:02,980 --> 00:04:05,240 to show those file sizes. 47 00:04:07,080 --> 00:04:08,800 Those crazy Mac whores. 48 00:04:11,420 --> 00:04:15,580 I guess I will do a short demonstration 49 00:04:15,580 --> 00:04:18,960 on what it takes currently to create alternate data streams 50 00:04:19,460 --> 00:04:23,040 by attaching them to files and other good stuff. 51 00:04:25,400 --> 00:04:27,140 Yeah, look at him for a minute. 52 00:04:32,340 --> 00:04:34,540 Pay no attention to the porn directory. 53 00:04:40,380 --> 00:04:43,060 Okay, I'm going to set down the microphone for a second. 54 00:04:43,160 --> 00:04:45,400 Do you think you could kind of narrate what I'm doing? 55 00:04:46,500 --> 00:04:48,120 Or I can just go like this. 56 00:04:49,160 --> 00:04:49,720 Hello? 57 00:04:52,060 --> 00:04:57,120 I actually haven't seen this demo in progress, so I'm going to just watch him 58 00:04:57,120 --> 00:04:58,100 as he does it. 59 00:04:59,380 --> 00:05:00,500 Alright, now 60 00:05:05,140 --> 00:05:09,400 the odd part about alternate data streams is you may know that 61 00:05:09,400 --> 00:05:13,400 you can attach them to files, but you can also 62 00:05:13,400 --> 00:05:16,720 attach alternate data streams to individual folders 63 00:05:17,110 --> 00:05:21,240 and also the root hard drive directory. 64 00:05:22,940 --> 00:05:25,500 If you attach alternate data streams 65 00:05:25,500 --> 00:05:29,000 to, say, the root computer directory 66 00:05:29,000 --> 00:05:33,420 just straight to the C, you're not going to be able 67 00:05:33,420 --> 00:05:37,100 to delete them. You can clear them out, but they cannot be deleted. 68 00:05:38,800 --> 00:05:40,900 So for anyone who 69 00:05:40,900 --> 00:05:43,520 wasn't looking at him and was actually watching the screen, 70 00:05:44,200 --> 00:05:48,400 because you like to watch people type, I just created 71 00:05:48,760 --> 00:05:52,380 the host file. So basically just the text file, and then as you can see 72 00:05:52,380 --> 00:05:55,160 listing the directory, it shows that the file is 25 bytes, so 73 00:05:55,920 --> 00:05:57,100 I shall continue. 74 00:06:11,780 --> 00:06:14,540 Now for those of you that don't know the kind of syntax 75 00:06:14,540 --> 00:06:16,320 that alternate data streams use, 76 00:06:18,400 --> 00:06:22,340 you've just got the file name, a colon, and then the stream name. 77 00:06:23,160 --> 00:06:25,380 And this is only going to work in NTFS, 78 00:06:26,480 --> 00:06:28,420 obviously not in FAT32. 79 00:06:32,800 --> 00:06:34,600 So as you can see, I added something 80 00:06:34,600 --> 00:06:38,700 into a stream. It still says it's 25 bytes, and just to show you 81 00:06:38,700 --> 00:06:42,700 that there is indeed data in that stream, 82 00:06:42,940 --> 00:06:46,160 we will pull up Notepad, 83 00:06:47,100 --> 00:06:50,320 and you will be wowed and amazed 84 00:06:50,320 --> 00:06:54,320 by the fabulous world of alternate data streams. Ta-da! 85 00:06:55,300 --> 00:06:55,720 What's that? 86 00:06:57,600 --> 00:07:00,820 Oh, it's probably not a good idea. 87 00:07:01,380 --> 00:07:06,200 So anyway, there is the stream. So obviously it's not 88 00:07:06,200 --> 00:07:10,280 very nefarious to just put text into a file. 89 00:07:10,960 --> 00:07:14,120 I guess if you're writing your 90 00:07:14,760 --> 00:07:18,220 memoirs or something, and you don't want other people to read them, 91 00:07:18,280 --> 00:07:21,680 you could type them into Notepad and hide them in an alternate data stream, 92 00:07:21,840 --> 00:07:26,060 and no one would know they're there. What makes 93 00:07:26,560 --> 00:07:29,160 alternate data streams a little fun is this. 94 00:07:36,200 --> 00:07:39,800 I'll just full screen it. Oh, there you go. 95 00:07:39,840 --> 00:07:40,700 That didn't help much. 96 00:07:43,720 --> 00:07:44,320 Let's see. 97 00:07:47,020 --> 00:07:52,020 Thanks, dude. 98 00:07:54,960 --> 00:07:55,820 We'll do that. 99 00:07:56,760 --> 00:07:59,300 What will that do for you guys? 100 00:08:03,480 --> 00:08:04,000 Better? 101 00:08:05,180 --> 00:08:05,700 Wee! 102 00:08:06,200 --> 00:08:06,780 Alright! 103 00:08:08,040 --> 00:08:10,160 Look at me master window! 104 00:08:12,700 --> 00:08:13,540 Thank you! 105 00:08:16,400 --> 00:08:17,380 That's the talk. 106 00:08:25,300 --> 00:08:28,120 So if you can't tell, it's really currently 107 00:08:28,120 --> 00:08:31,780 just a big pain in the ass to create and use 108 00:08:31,780 --> 00:08:35,280 alternate data streams as he's just sitting here in a 109 00:08:36,200 --> 00:08:37,480 command line interface. 110 00:08:37,880 --> 00:08:39,000 It really does suck. 111 00:08:40,100 --> 00:08:41,400 So you can see that 112 00:08:42,010 --> 00:08:44,200 the calc program is 113 00:08:44,200 --> 00:08:46,240 you know, 114k 114 00:08:46,240 --> 00:08:47,100 or something 115 00:08:47,910 --> 00:08:48,300 thereabouts. 116 00:08:49,740 --> 00:08:51,300 Now, again, 117 00:08:51,460 --> 00:08:52,700 I set the mic down. 118 00:09:03,870 --> 00:09:06,080 Now currently this is actually 119 00:09:06,200 --> 00:09:07,540 the only way to 120 00:09:08,940 --> 00:09:10,020 copy files 121 00:09:10,020 --> 00:09:12,020 back and forth between alternate 122 00:09:12,020 --> 00:09:13,540 data streams and actual files. 123 00:09:15,500 --> 00:09:16,180 Now, 124 00:09:16,240 --> 00:09:18,120 the goal of Project Prometheus is 125 00:09:18,120 --> 00:09:20,240 to eventually be able to do 126 00:09:20,240 --> 00:09:21,040 all that from a 127 00:09:23,060 --> 00:09:24,180 graphical user 128 00:09:24,180 --> 00:09:26,160 interface, make it easier 129 00:09:26,160 --> 00:09:28,000 to do all this 130 00:09:28,000 --> 00:09:30,300 without the command line. 131 00:09:31,500 --> 00:09:32,180 So, 132 00:09:32,180 --> 00:09:32,880 there you go. 133 00:09:33,440 --> 00:09:36,120 I just inserted the calc program 134 00:09:36,200 --> 00:09:38,220 into the host.txt 135 00:09:38,220 --> 00:09:40,000 and as you can see 136 00:09:40,000 --> 00:09:41,960 it still says that it is 25 bytes. 137 00:09:42,120 --> 00:09:43,780 Now, you can see in the 138 00:09:44,680 --> 00:09:46,020 where it shows how much 139 00:09:46,020 --> 00:09:47,940 space is free. That does change. 140 00:09:48,820 --> 00:09:49,720 Only after 141 00:09:49,720 --> 00:09:51,440 Windows XP Service Pack 1 142 00:09:51,440 --> 00:09:53,920 did they start recognizing 143 00:09:53,920 --> 00:09:56,100 the fact that they were not showing 144 00:09:56,100 --> 00:09:57,960 that data inside of streams 145 00:09:57,960 --> 00:10:00,060 was taking up space on the hard drive. 146 00:10:00,200 --> 00:10:02,160 So if you use something like 147 00:10:02,160 --> 00:10:03,420 Windows 2000 and you 148 00:10:04,320 --> 00:10:06,100 let's say you have a 100 gig hard drive 149 00:10:06,200 --> 00:10:08,140 and you put, you have 2 gigs 150 00:10:08,140 --> 00:10:10,040 of data on there but you put 98 gigs 151 00:10:10,040 --> 00:10:12,020 worth of stuff into an alternate 152 00:10:12,020 --> 00:10:14,260 data stream, it would just tell you 153 00:10:14,260 --> 00:10:15,060 that your drive is full. 154 00:10:15,820 --> 00:10:17,860 You'd look at it and it would say it has 2 gigs 155 00:10:17,860 --> 00:10:20,160 but your drive is full. So you can imagine 156 00:10:20,160 --> 00:10:22,040 what a pain in the ass 157 00:10:22,040 --> 00:10:23,660 that would be as an administrator wondering 158 00:10:23,660 --> 00:10:25,840 why the drive is full and it's because 159 00:10:25,840 --> 00:10:27,500 someone has all 160 00:10:28,160 --> 00:10:29,880 kinds of files stored in streams 161 00:10:29,880 --> 00:10:31,160 that you can't see or 162 00:10:31,820 --> 00:10:33,640 if you wanted to be more 163 00:10:34,820 --> 00:10:36,000 malicious, store a 164 00:10:36,760 --> 00:10:38,060 virus or something 165 00:10:38,060 --> 00:10:40,080 that just ate up space on the hard drive 166 00:10:40,080 --> 00:10:40,820 until it was full. 167 00:10:50,380 --> 00:10:52,220 Now what is shown here 168 00:10:52,220 --> 00:10:53,760 is that you can actually 169 00:10:53,760 --> 00:10:55,880 execute files straight from 170 00:10:55,880 --> 00:10:57,040 alternate data streams 171 00:10:57,940 --> 00:10:59,420 using the start command. 172 00:11:02,760 --> 00:11:03,980 And he's just run 173 00:11:03,980 --> 00:11:06,120 calculator straight from the alternate data stream. 174 00:11:06,200 --> 00:11:06,560 Amazing. 175 00:11:08,520 --> 00:11:09,920 So you can see 176 00:11:09,920 --> 00:11:10,340 that 177 00:11:11,760 --> 00:11:14,020 these are fun. I mean you can put all kinds 178 00:11:14,020 --> 00:11:15,760 of things in there. You can 179 00:11:16,840 --> 00:11:17,320 also 180 00:11:18,680 --> 00:11:19,680 run these from 181 00:11:20,200 --> 00:11:21,900 the run key in the 182 00:11:21,900 --> 00:11:23,420 HKEY Vocal Machine Hive. 183 00:11:23,560 --> 00:11:25,720 So if you wanted to have something 184 00:11:25,720 --> 00:11:27,840 pop up on startup you can 185 00:11:30,420 --> 00:11:31,860 go nuts with that. 186 00:11:34,520 --> 00:11:35,000 Again, 187 00:11:36,200 --> 00:11:38,140 if you think on the black hat 188 00:11:38,140 --> 00:11:39,520 side of things, then 189 00:11:40,700 --> 00:11:42,040 you can do some 190 00:11:43,000 --> 00:11:44,080 seriously damaging 191 00:11:44,080 --> 00:11:46,040 things, if not fun things 192 00:11:46,800 --> 00:11:48,180 with alternate data streams. 193 00:11:49,320 --> 00:11:50,180 If I'm 194 00:11:50,180 --> 00:11:52,100 not mistaken, correct me if I'm 195 00:11:52,100 --> 00:11:53,700 wrong, I believe there were only two 196 00:11:54,500 --> 00:11:56,160 viruses that used 197 00:11:56,160 --> 00:11:58,060 VirusWarrior. Are they interchangeable now? 198 00:11:58,340 --> 00:12:00,000 Yeah, I've only heard of 199 00:12:00,000 --> 00:12:02,060 two viruses that actually use alternate 200 00:12:02,060 --> 00:12:04,120 data streams, which is why I was 201 00:12:04,120 --> 00:12:06,180 so surprised that so many of you have heard about them. 202 00:12:06,200 --> 00:12:07,060 Alternate data streams. 203 00:12:08,720 --> 00:12:10,200 The only one I can think 204 00:12:10,200 --> 00:12:11,060 about off the top of my head is 205 00:12:13,720 --> 00:12:14,680 w2k.stream. 206 00:12:17,320 --> 00:12:19,740 I believe 29A was the 207 00:12:19,740 --> 00:12:21,940 creator of that virus. For those 208 00:12:21,940 --> 00:12:24,140 who don't know who 29A 209 00:12:24,140 --> 00:12:25,740 is, they are 210 00:12:25,740 --> 00:12:28,200 the leading virus writers in the world. 211 00:12:28,860 --> 00:12:29,740 I guess if 212 00:12:31,140 --> 00:12:31,800 that's like 213 00:12:31,800 --> 00:12:32,440 your thing. 214 00:12:34,520 --> 00:12:35,340 So there you go. 215 00:12:36,200 --> 00:12:37,980 You can see what a pain 216 00:12:37,980 --> 00:12:39,660 in the ass that was to do, 217 00:12:39,780 --> 00:12:41,920 to insert a file into 218 00:12:41,920 --> 00:12:43,940 a text file, 219 00:12:44,000 --> 00:12:45,860 things like that, but it does 220 00:12:45,860 --> 00:12:48,040 have some data hiding potential 221 00:12:48,040 --> 00:12:49,040 being that 222 00:12:49,840 --> 00:12:52,120 currently Windows itself does not have 223 00:12:52,120 --> 00:12:53,220 support to detect 224 00:12:53,860 --> 00:12:56,040 alternate data streams within its 225 00:12:56,040 --> 00:12:57,980 own file system that they 226 00:12:57,980 --> 00:12:59,980 created and 227 00:12:59,980 --> 00:13:02,020 put the support there for 228 00:13:02,020 --> 00:13:04,080 alternate data streams and 229 00:13:04,080 --> 00:13:05,960 then didn't allow you to find them. 230 00:13:06,400 --> 00:13:06,760 So, 231 00:13:08,460 --> 00:13:10,300 that's part of what we're trying to take care of 232 00:13:10,300 --> 00:13:11,960 as well. There are tools out 233 00:13:11,960 --> 00:13:14,200 there. Go ahead and 234 00:13:14,200 --> 00:13:14,780 tell them what they are. 235 00:13:15,300 --> 00:13:16,100 Do I want to pull up 236 00:13:16,100 --> 00:13:19,940 the screen? Oh, am I pulling up slides 237 00:13:19,940 --> 00:13:21,560 now? Awesome. 238 00:13:23,280 --> 00:13:26,200 Oh, actually, I wanted to do another thing. 239 00:13:27,120 --> 00:13:27,760 Here, let me 240 00:13:28,480 --> 00:13:28,960 bust the... 241 00:13:33,840 --> 00:13:34,740 See right here? 242 00:13:36,200 --> 00:13:38,000 No, it's showing that it's running 243 00:13:38,000 --> 00:13:39,960 in a stream. Again, before 244 00:13:39,960 --> 00:13:42,400 Windows XP Service Pack 1, that does not show up. 245 00:13:42,420 --> 00:13:43,980 It would just show that... For those that 246 00:13:43,980 --> 00:13:46,260 can't read that, it's showing a process 247 00:13:46,260 --> 00:13:48,200 as host.txt 248 00:13:49,400 --> 00:13:49,840 colon 249 00:13:51,340 --> 00:13:52,220 hidden calc 250 00:13:52,220 --> 00:13:53,120 or calc... 251 00:13:53,120 --> 00:13:55,940 Yeah, what's up? 252 00:13:57,500 --> 00:13:58,000 What's that? 253 00:14:01,700 --> 00:14:02,580 Did they? 254 00:14:07,340 --> 00:14:07,860 Right. 255 00:14:07,940 --> 00:14:10,060 Right. I think they did 256 00:14:10,060 --> 00:14:11,620 fix that in Windows 2K. 257 00:14:11,940 --> 00:14:13,700 Yeah, but again, 258 00:14:13,920 --> 00:14:15,820 being a patch, how many... 259 00:14:15,820 --> 00:14:17,900 We all know about patch management, so 260 00:14:17,900 --> 00:14:20,160 how many systems do you think actually took care 261 00:14:20,160 --> 00:14:21,980 of that? Probably all of yours, but 262 00:14:21,980 --> 00:14:23,860 not many people across the street. 263 00:14:24,440 --> 00:14:26,140 So, oh yeah, by the 264 00:14:26,140 --> 00:14:28,020 way, if you have a question, seriously, just 265 00:14:28,020 --> 00:14:30,260 yell out, because the whole point 266 00:14:30,260 --> 00:14:32,200 of this is to kind of get feedback 267 00:14:32,200 --> 00:14:32,700 from you guys. 268 00:14:33,280 --> 00:14:35,900 If you have ideas on what features 269 00:14:36,200 --> 00:14:38,100 you think should be in there, or if we're 270 00:14:38,100 --> 00:14:40,260 completely and utterly talking out of our asses, 271 00:14:40,260 --> 00:14:40,700 let us know. 272 00:14:57,640 --> 00:14:59,540 Yeah, and that's exactly 273 00:14:59,540 --> 00:15:00,980 the only... 274 00:15:00,980 --> 00:15:03,200 I don't think everybody heard him. 275 00:15:04,140 --> 00:15:05,660 He was just saying how 276 00:15:06,360 --> 00:15:06,800 IIS 277 00:15:08,760 --> 00:15:10,060 had, like, been 278 00:15:10,060 --> 00:15:11,980 the only time, the only one to support 279 00:15:13,200 --> 00:15:13,960 writing to 280 00:15:13,960 --> 00:15:15,020 alternate data streams, 281 00:15:15,900 --> 00:15:18,000 and actually made use of alternate data 282 00:15:18,000 --> 00:15:19,760 streams, I think was what you were getting at. 283 00:15:20,020 --> 00:15:22,000 Yeah, you've got two concurrent websites 284 00:15:22,000 --> 00:15:23,560 and you have to give one domain name, 285 00:15:23,660 --> 00:15:25,840 and you have the normal, the visible 286 00:15:25,840 --> 00:15:28,060 files, but if the person enters in a different 287 00:15:28,060 --> 00:15:29,920 URL and specifies the file to enter 288 00:15:29,920 --> 00:15:32,020 with the stream, it has to be included 289 00:15:32,020 --> 00:15:34,440 that they actually have a different HTML page 290 00:15:34,440 --> 00:15:36,000 presented with the same file. 291 00:15:36,200 --> 00:15:36,640 ... 292 00:15:37,960 --> 00:15:38,380 ... 293 00:15:39,800 --> 00:15:40,640 ... 294 00:15:42,520 --> 00:15:43,360 ... 295 00:15:43,360 --> 00:15:45,640 Okay, he's saying that IIS 296 00:15:45,640 --> 00:15:47,300 actually had support 297 00:15:48,200 --> 00:15:48,840 for... 298 00:15:48,840 --> 00:15:49,840 ... 299 00:15:49,840 --> 00:15:53,660 Yeah, unintentional support. 300 00:15:53,980 --> 00:15:54,120 ... 301 00:15:56,000 --> 00:15:57,900 Unintentional support for actually 302 00:15:57,900 --> 00:15:59,980 you'd have 303 00:15:59,980 --> 00:16:00,860 your regular website, 304 00:16:00,980 --> 00:16:03,920 and then if you attach the alternate 305 00:16:03,920 --> 00:16:05,460 data stream to your URL, 306 00:16:06,200 --> 00:16:08,080 you had a separate website that 307 00:16:08,080 --> 00:16:09,620 kind of a hidden website. 308 00:16:11,180 --> 00:16:12,220 And IIS 309 00:16:12,220 --> 00:16:14,120 was actually, I was going to get around to 310 00:16:14,120 --> 00:16:15,620 that too, because it's the first, 311 00:16:15,820 --> 00:16:18,140 or it's the only actual 312 00:16:18,140 --> 00:16:19,740 Windows program that I've heard of that 313 00:16:19,740 --> 00:16:22,060 actually makes use of alternate data streams. 314 00:16:22,460 --> 00:16:22,980 ... 315 00:16:22,980 --> 00:16:26,060 And it was one of the few things that a lot of tool makers 316 00:16:26,060 --> 00:16:27,240 had issues with, 317 00:16:27,440 --> 00:16:29,700 because there's a lot of scanning tools 318 00:16:30,360 --> 00:16:32,160 that have to go through there 319 00:16:32,160 --> 00:16:33,480 and look for alternate 320 00:16:33,960 --> 00:16:35,960 data streams for viruses and 321 00:16:36,200 --> 00:16:37,200 whatnot, and 322 00:16:37,200 --> 00:16:39,540 they had to skip over the IIS 323 00:16:40,540 --> 00:16:42,160 stuff if you had it on 324 00:16:42,160 --> 00:16:42,320 there. 325 00:16:44,200 --> 00:16:45,520 Let's go ahead and back there. 326 00:16:45,960 --> 00:16:46,440 ... 327 00:16:47,300 --> 00:16:47,780 ... 328 00:16:49,800 --> 00:16:51,960 No, there isn't, actually. 329 00:16:52,580 --> 00:16:53,060 ... 330 00:16:53,940 --> 00:16:54,420 There's... 331 00:16:56,020 --> 00:16:58,040 How does Windows do their 332 00:16:58,040 --> 00:16:58,480 summary? 333 00:17:00,500 --> 00:17:01,860 They have file 334 00:17:02,740 --> 00:17:03,980 statistics, I guess 335 00:17:03,980 --> 00:17:05,980 if you right-click and you go to the properties 336 00:17:06,200 --> 00:17:07,980 of a file in Windows 337 00:17:07,980 --> 00:17:09,980 2K and Windows XP, 338 00:17:10,160 --> 00:17:11,840 you have different 339 00:17:11,840 --> 00:17:11,940 ... 340 00:17:13,500 --> 00:17:15,620 different values to describe the 341 00:17:16,200 --> 00:17:18,060 file in one 342 00:17:18,060 --> 00:17:19,700 of the tabs, and that actually attaches 343 00:17:19,700 --> 00:17:21,300 to an alternate data stream 344 00:17:22,080 --> 00:17:24,200 under some crazy hashed 345 00:17:24,200 --> 00:17:25,200 name that I 346 00:17:25,960 --> 00:17:27,920 don't think I've ever looked at enough to 347 00:17:27,920 --> 00:17:29,100 figure out how that works. 348 00:17:30,580 --> 00:17:31,260 ... 349 00:17:32,200 --> 00:17:32,580 ... 350 00:17:33,700 --> 00:17:34,380 ... 351 00:17:40,020 --> 00:17:40,720 ... 352 00:17:43,760 --> 00:17:44,460 ... 353 00:17:44,460 --> 00:17:45,380 ... 354 00:17:45,380 --> 00:17:45,480 ... 355 00:17:45,480 --> 00:17:45,840 ... 356 00:17:45,840 --> 00:17:46,740 ... 357 00:17:46,740 --> 00:17:47,800 ... 358 00:17:56,380 --> 00:17:57,940 I don't think 359 00:17:57,940 --> 00:17:59,760 it supports alternate 360 00:17:59,760 --> 00:18:02,060 data streams. There is a lot 361 00:18:02,060 --> 00:18:04,080 of stuff out there that just doesn't touch 362 00:18:04,080 --> 00:18:05,660 alternate data streams out there. 363 00:18:06,200 --> 00:18:06,360 ... 364 00:18:07,620 --> 00:18:10,080 I know there's not a lot of... 365 00:18:10,080 --> 00:18:11,940 Obviously, it doesn't list alternate data 366 00:18:11,940 --> 00:18:12,960 streams in the Explorer. 367 00:18:13,760 --> 00:18:16,100 You're not going to get file size statistics, 368 00:18:16,320 --> 00:18:17,940 and that's also one of the other 369 00:18:17,940 --> 00:18:20,040 goals of Project Prometheus, is to give 370 00:18:20,040 --> 00:18:20,780 you that information. 371 00:18:22,380 --> 00:18:22,920 ... 372 00:18:24,560 --> 00:18:25,100 ... 373 00:18:26,720 --> 00:18:27,260 ... 374 00:18:27,260 --> 00:18:27,760 ... 375 00:18:27,760 --> 00:18:27,920 ... 376 00:18:32,060 --> 00:18:33,900 Are you saying attach to a 377 00:18:33,900 --> 00:18:35,560 file that does not exist? 378 00:18:36,200 --> 00:18:37,280 ... 379 00:18:38,760 --> 00:18:40,160 ... 380 00:18:47,560 --> 00:18:48,960 ... 381 00:18:48,960 --> 00:18:50,860 ... 382 00:18:50,860 --> 00:18:51,000 ... 383 00:18:54,840 --> 00:18:56,240 ... 384 00:18:56,240 --> 00:18:56,940 ... 385 00:18:56,940 --> 00:18:59,620 ... 386 00:18:59,620 --> 00:18:59,800 ... 387 00:18:59,800 --> 00:19:00,560 ... 388 00:19:00,560 --> 00:19:00,580 ... 389 00:19:06,200 --> 00:19:07,160 Yeah, I'm actually... 390 00:19:07,160 --> 00:19:08,140 They don't look like Mac files. 391 00:19:08,280 --> 00:19:10,520 They look like class IDs and class ID numbers instead. 392 00:19:12,540 --> 00:19:13,660 That's like the... 393 00:19:13,660 --> 00:19:15,000 He's saying... 394 00:19:15,500 --> 00:19:16,100 I'm sorry. 395 00:19:16,240 --> 00:19:17,100 You're going to have to repeat it. 396 00:19:17,280 --> 00:19:18,940 They don't look like Mac resource forks. 397 00:19:18,980 --> 00:19:21,200 They look like class IDs and class IDs. 398 00:19:22,620 --> 00:19:26,120 They are resource forks, alternate data streams, 399 00:19:27,020 --> 00:19:29,440 in the same sense that they're used on Macintosh. 400 00:19:29,540 --> 00:19:32,360 They're used the same in Windows. 401 00:19:36,520 --> 00:19:39,060 I'm going to get around to the tools, though, in a minute here, 402 00:19:39,180 --> 00:19:42,440 because I've got a number of tools that I've looked into 403 00:19:43,940 --> 00:19:46,120 for manipulating alternate data streams. 404 00:19:48,020 --> 00:19:51,620 And, I mean, in the sense that we're creating another tool, 405 00:19:51,700 --> 00:19:54,040 I'd like to know what other tools are out there for use, 406 00:19:54,180 --> 00:19:57,600 and I couldn't find anything that does quite what we want to do, 407 00:19:58,080 --> 00:20:00,240 which is why we've started up this project. 408 00:20:03,500 --> 00:20:04,300 There you go. 409 00:20:05,040 --> 00:20:05,780 There's your answer. 410 00:20:06,200 --> 00:20:09,100 So it does, if you create just the stream, 411 00:20:09,180 --> 00:20:13,280 it creates the host file and then gives it a zero byte. 412 00:20:16,180 --> 00:20:16,800 Fabulous. 413 00:20:17,740 --> 00:20:18,880 It's so interactive. 414 00:20:29,200 --> 00:20:30,680 What are you saying? 415 00:20:30,860 --> 00:20:33,100 Are you saying including the alternate data streams? 416 00:20:35,750 --> 00:20:36,060 Oh. 417 00:20:36,200 --> 00:20:37,120 I think I get what you're saying. 418 00:20:38,480 --> 00:20:40,860 It does exactly what we're looking at right here. 419 00:20:41,020 --> 00:20:42,740 So it'll just add up what we've got, 420 00:20:42,800 --> 00:20:45,540 but it does not show you the streams. 421 00:20:45,620 --> 00:20:50,480 Like Explorer, it's the same support that we're looking at. 422 00:20:52,100 --> 00:20:54,400 It's obviously, you know, we have some flaws, 423 00:20:54,500 --> 00:20:57,080 and we're hoping to exploit them to make a pretty cool privacy tool. 424 00:20:58,280 --> 00:21:02,960 So you want to continue on with what we're attempting to do? 425 00:21:03,300 --> 00:21:03,700 Yeah. 426 00:21:05,040 --> 00:21:06,180 Let me get into... 427 00:21:06,200 --> 00:21:06,980 Every slide. 428 00:21:07,240 --> 00:21:09,080 What tools are out there 429 00:21:11,060 --> 00:21:13,920 so that we have an idea of what we're looking at 430 00:21:13,920 --> 00:21:16,260 as far as what's currently out there 431 00:21:16,260 --> 00:21:18,320 for manipulating alternate data streams. 432 00:21:19,500 --> 00:21:22,640 First up, we, of course, have LADS, 433 00:21:23,720 --> 00:21:27,160 which is a simple command line interface, 434 00:21:28,020 --> 00:21:29,720 and we'll do single folder. 435 00:21:29,800 --> 00:21:31,580 You can check on a single folder 436 00:21:31,580 --> 00:21:33,980 to see what kind of alternate data streams are in there. 437 00:21:35,140 --> 00:21:36,180 That was written by... 438 00:21:36,200 --> 00:21:38,040 By Frank Hayden, I believe. 439 00:21:38,860 --> 00:21:42,460 That seems to be the most popular tool out there right now 440 00:21:42,460 --> 00:21:44,900 for scanning for alternate data streams. 441 00:21:45,880 --> 00:21:47,700 Checking again to see if you have 442 00:21:47,700 --> 00:21:51,280 either of those two single viruses out there 443 00:21:51,280 --> 00:21:52,780 that use alternate data streams. 444 00:21:54,840 --> 00:21:56,900 Moving on, you have Crucial ADS. 445 00:21:56,940 --> 00:22:00,420 It's another simple directory scan, 446 00:22:00,660 --> 00:22:02,140 directory and drive scan. 447 00:22:02,260 --> 00:22:05,260 It will scan the entire drive for alternate data streams. 448 00:22:06,300 --> 00:22:09,500 You have SysInternalStreams version 1.5, 449 00:22:09,760 --> 00:22:14,140 and that's another single folder alternate data stream detection 450 00:22:14,140 --> 00:22:18,740 and also has support for deleting alternate data streams. 451 00:22:20,680 --> 00:22:22,320 Which currently you can't do. 452 00:22:22,380 --> 00:22:23,440 Sorry, I was cutting you off. 453 00:22:23,480 --> 00:22:24,300 But you can't do that 454 00:22:24,300 --> 00:22:27,320 without actually copying the file to somewhere else, 455 00:22:28,000 --> 00:22:30,000 deleting the original, and then copying it back. 456 00:22:30,340 --> 00:22:34,340 So that's another pain. 457 00:22:34,520 --> 00:22:35,920 It's like, in order to delete, 458 00:22:35,920 --> 00:22:37,280 something that you put in there, 459 00:22:37,360 --> 00:22:38,600 you have to delete the host file. 460 00:22:38,840 --> 00:22:41,860 And you can put a ridiculous amount of streams 461 00:22:41,860 --> 00:22:43,340 into each host file. 462 00:22:43,580 --> 00:22:46,000 And if you just want to get rid of one, 463 00:22:46,200 --> 00:22:49,160 you would have to get rid of them all. 464 00:22:50,260 --> 00:22:52,900 So you're kind of applying that in move of the file? 465 00:22:53,140 --> 00:22:54,980 Will it teach you all the data streams? 466 00:22:55,920 --> 00:22:58,260 Yes, you actually have to delete the file. 467 00:22:58,540 --> 00:23:00,020 You have to copy the file. 468 00:23:01,600 --> 00:23:03,480 So copy doesn't take you to the move? 469 00:23:04,220 --> 00:23:04,880 No, no. 470 00:23:05,920 --> 00:23:08,420 So if you're moving the file back and forth 471 00:23:08,420 --> 00:23:10,200 between any NTFS system, 472 00:23:10,340 --> 00:23:12,720 even across a network, 473 00:23:12,840 --> 00:23:14,600 if you map a drive or something like that, 474 00:23:14,720 --> 00:23:17,040 and it's NTFS to NTFS, 475 00:23:17,080 --> 00:23:19,820 it will transfer that data stream across. 476 00:23:20,100 --> 00:23:22,300 So the only way to delete any of the streams 477 00:23:22,300 --> 00:23:23,060 that you have in there 478 00:23:23,060 --> 00:23:24,860 is to copy it over. 479 00:23:24,960 --> 00:23:26,220 You could copy, if it was small enough, 480 00:23:26,260 --> 00:23:27,480 you could put it on a floppy disk 481 00:23:27,480 --> 00:23:29,600 because they're usually fat formatted. 482 00:23:30,580 --> 00:23:32,000 That's another way to delete the streams 483 00:23:32,000 --> 00:23:33,740 if you copy it over to a fat drive. 484 00:23:33,860 --> 00:23:35,580 But that is a little bit ridiculous. 485 00:23:35,920 --> 00:23:37,300 To have to go through that just... 486 00:23:37,300 --> 00:23:39,500 And again, losing... 487 00:23:39,500 --> 00:23:43,360 If you use a file to put multiple streams in 488 00:23:43,360 --> 00:23:45,040 and you just want to get rid of one, 489 00:23:45,240 --> 00:23:48,280 obviously it's not the hottest thing to use 490 00:23:48,280 --> 00:23:49,680 for any kind of file management. 491 00:23:50,240 --> 00:23:52,140 So, going on. 492 00:23:52,380 --> 00:23:53,040 Moving on. 493 00:23:53,600 --> 00:23:56,300 I've heard of a program called File Scavenger, 494 00:23:56,360 --> 00:23:59,320 which is a restoration tool, 495 00:23:59,340 --> 00:24:00,520 file restoration tool. 496 00:24:01,520 --> 00:24:03,060 Restore all of your deleted files. 497 00:24:03,520 --> 00:24:05,500 That claims that they can 498 00:24:05,500 --> 00:24:07,820 and even restore information 499 00:24:07,820 --> 00:24:09,300 in alternate data streams. 500 00:24:09,540 --> 00:24:11,840 I haven't looked into that one, so... 501 00:24:12,860 --> 00:24:16,760 Has anyone played with streams enough 502 00:24:16,760 --> 00:24:17,880 to have checked out some of these? 503 00:24:18,100 --> 00:24:18,700 All right. 504 00:24:20,160 --> 00:24:22,240 You also have ScanADS, 505 00:24:22,840 --> 00:24:25,560 as implied, it scans for alternate data streams. 506 00:24:26,240 --> 00:24:29,080 You have NT Objectives Forensic Toolkit, 507 00:24:30,300 --> 00:24:32,040 and that is, again, 508 00:24:32,100 --> 00:24:35,180 yet another alternate data stream scanner. 509 00:24:35,500 --> 00:24:37,220 And then you have Tripwire, 510 00:24:39,000 --> 00:24:40,200 another ADS scanner. 511 00:24:40,500 --> 00:24:43,240 So, basically, all the tools out there right now 512 00:24:43,240 --> 00:24:45,680 are just tools for scanning and finding 513 00:24:45,680 --> 00:24:47,100 alternate data streams. 514 00:24:47,440 --> 00:24:50,940 I couldn't find anything for creating your own data streams, 515 00:24:51,080 --> 00:24:52,840 for manipulating them in any way, 516 00:24:55,160 --> 00:24:57,320 for just about doing anything with them. 517 00:24:57,380 --> 00:24:59,100 The only thing out there is just for scanning 518 00:24:59,100 --> 00:25:00,200 alternate data streams. 519 00:25:00,500 --> 00:25:02,620 So, everybody's willing to get rid of them, 520 00:25:02,680 --> 00:25:04,340 but what if you wanted to create them? 521 00:25:04,380 --> 00:25:05,480 Then you have to go through... 522 00:25:05,500 --> 00:25:09,700 You know, the ridiculous task of, you know, 523 00:25:09,700 --> 00:25:11,680 doing it manually for each one, 524 00:25:11,780 --> 00:25:13,500 and it's a little tedious. 525 00:25:13,920 --> 00:25:16,540 So, going on. 526 00:25:18,620 --> 00:25:21,880 So, what we're attempting to do here 527 00:25:21,880 --> 00:25:23,660 with Project Prometheus 528 00:25:23,660 --> 00:25:25,700 is create a program 529 00:25:25,700 --> 00:25:28,520 just for doing what we want to do here now, 530 00:25:28,620 --> 00:25:30,540 is actually manipulating the streams, 531 00:25:30,660 --> 00:25:32,320 using them for our advantage, 532 00:25:32,440 --> 00:25:33,800 using them for data hiding. 533 00:25:35,560 --> 00:25:39,380 I mean, even with Service Pack 1 in Windows XP, 534 00:25:40,820 --> 00:25:42,060 it might actually... 535 00:25:42,060 --> 00:25:48,380 It reports the full drive free space correctly, 536 00:25:48,620 --> 00:25:52,280 and it also shows in the task manager 537 00:25:52,280 --> 00:25:54,080 any executable ADS streams. 538 00:25:54,180 --> 00:25:56,120 It does show them what they are. 539 00:25:57,160 --> 00:26:00,720 But even at that, individual files, 540 00:26:00,900 --> 00:26:04,080 if you know that there's ADS on the drive, 541 00:26:04,340 --> 00:26:05,480 you still don't know. 542 00:26:05,480 --> 00:26:06,820 You don't know what file they're attached to, 543 00:26:07,600 --> 00:26:10,500 even with XP Service Pack 1. 544 00:26:11,300 --> 00:26:15,020 So, there's a lot of opportunity in there 545 00:26:15,020 --> 00:26:16,620 to take advantage of that. 546 00:26:18,140 --> 00:26:19,680 And so, what we want to do 547 00:26:19,680 --> 00:26:21,820 is create a tool that makes it easy for you 548 00:26:21,820 --> 00:26:24,060 to drag and drop files 549 00:26:24,680 --> 00:26:26,200 into alternate data streams 550 00:26:26,200 --> 00:26:27,440 on a single host file, 551 00:26:28,700 --> 00:26:30,740 not just, like, one or two files. 552 00:26:31,380 --> 00:26:34,380 In this case, with even doing it manually, 553 00:26:34,500 --> 00:26:35,460 you're only going to be... 554 00:26:35,460 --> 00:26:37,380 You're only going to be able to throw one file 555 00:26:37,380 --> 00:26:38,820 in an alternate data stream, 556 00:26:38,940 --> 00:26:40,680 and you've got to do it manually every time. 557 00:26:41,140 --> 00:26:43,280 Yeah, and so, basically, 558 00:26:43,440 --> 00:26:46,380 when we started doing this in... 559 00:26:46,380 --> 00:26:47,120 Was it February? 560 00:26:47,860 --> 00:26:49,880 We have a little bit of code, 561 00:26:49,980 --> 00:26:52,380 but, again, right now, 562 00:26:52,380 --> 00:26:53,960 we do the DEF CON movie channel, 563 00:26:54,120 --> 00:26:54,880 the scavenger hunt. 564 00:26:56,060 --> 00:26:58,140 Some of the guys also from the area 565 00:26:58,140 --> 00:26:59,360 are other goons. 566 00:27:00,340 --> 00:27:02,400 We're doing Delete Us Link, this con, 567 00:27:02,680 --> 00:27:04,720 and all other kinds of good stuff. 568 00:27:04,780 --> 00:27:05,440 And, you know, 569 00:27:05,460 --> 00:27:07,760 so it was busy leading up to this. 570 00:27:08,400 --> 00:27:10,560 But we're looking... 571 00:27:11,880 --> 00:27:13,340 We called it ADS Explorer 572 00:27:13,340 --> 00:27:18,740 and then decided that that name was lame, 573 00:27:18,940 --> 00:27:21,280 and so Project Prometheus is its development name. 574 00:27:21,520 --> 00:27:23,260 I wish Russ was here 575 00:27:23,260 --> 00:27:26,060 because he does some work 576 00:27:26,060 --> 00:27:27,400 with different covert channels 577 00:27:27,400 --> 00:27:28,560 and stuff like that, 578 00:27:28,600 --> 00:27:31,460 and he thinks that he has discovered a way 579 00:27:31,460 --> 00:27:35,200 to manipulate the data in such a way 580 00:27:35,200 --> 00:27:35,440 that it's not going to be able to do it. 581 00:27:35,460 --> 00:27:36,000 Because right now, 582 00:27:36,000 --> 00:27:37,480 you can't transfer alternate data streams 583 00:27:37,480 --> 00:27:39,500 over FTP or anything like that, 584 00:27:39,560 --> 00:27:41,080 but he thinks he has figured out a way 585 00:27:41,080 --> 00:27:44,200 to make the data encapsulate 586 00:27:44,200 --> 00:27:46,100 in such a way that we can pass them 587 00:27:46,100 --> 00:27:47,180 wherever the hell we want 588 00:27:47,180 --> 00:27:48,620 as long as they eventually end up 589 00:27:48,620 --> 00:27:49,740 on an NTFS system. 590 00:27:51,320 --> 00:27:52,340 So that could be fun. 591 00:27:54,880 --> 00:27:57,300 And I'd also like to apologize right now 592 00:27:57,300 --> 00:27:59,580 for us being so monotone and ridiculous 593 00:27:59,580 --> 00:28:01,760 because he got heat stroke yesterday 594 00:28:01,760 --> 00:28:03,300 and I almost got hypothermia. 595 00:28:03,420 --> 00:28:05,360 So it's like two sides 596 00:28:05,460 --> 00:28:05,960 of the spectrum. 597 00:28:06,140 --> 00:28:07,440 I was in a dunk tank 598 00:28:07,440 --> 00:28:09,580 and they poured 60 pounds of ice in there 599 00:28:11,040 --> 00:28:12,960 for anybody who saw me shivering 600 00:28:14,460 --> 00:28:16,140 in 102 degree weather. 601 00:28:19,220 --> 00:28:20,580 So, next slide. 602 00:28:21,140 --> 00:28:21,680 Yeah. 603 00:28:22,920 --> 00:28:24,160 Okay, so, yeah. 604 00:28:25,520 --> 00:28:28,020 So, we have some basic requirements 605 00:28:28,020 --> 00:28:28,720 for the tool, 606 00:28:28,840 --> 00:28:30,220 and that includes reading, writing, 607 00:28:30,320 --> 00:28:32,960 being able to throw more than one file 608 00:28:32,960 --> 00:28:35,240 into a single host, 609 00:28:35,460 --> 00:28:39,320 and the idea behind that 610 00:28:39,320 --> 00:28:40,580 is actually going to be 611 00:28:40,580 --> 00:28:43,500 where we have one single file 612 00:28:43,500 --> 00:28:45,320 goes into one single ADS stream, 613 00:28:46,120 --> 00:28:47,500 and then there's going to be 614 00:28:47,500 --> 00:28:49,340 one main alternate data stream 615 00:28:49,340 --> 00:28:52,100 that has all the file information 616 00:28:52,100 --> 00:28:53,940 that our program will read 617 00:28:53,940 --> 00:28:55,200 and be able to tell you 618 00:28:55,200 --> 00:28:56,940 what's in those alternate data streams. 619 00:28:57,220 --> 00:28:59,080 So what you see here is 620 00:29:00,100 --> 00:29:01,920 you see a host file. 621 00:29:02,640 --> 00:29:05,180 In this case, I called it DLL, 622 00:29:05,180 --> 00:29:07,080 for the reasons that I wanted to point out, 623 00:29:07,440 --> 00:29:09,100 that alternate data streams 624 00:29:09,440 --> 00:29:12,260 can be attached to system files, 625 00:29:13,560 --> 00:29:15,720 and the Windows are, 626 00:29:15,940 --> 00:29:19,500 what is it that Windows has protection 627 00:29:19,820 --> 00:29:21,400 to watch the system files 628 00:29:21,400 --> 00:29:22,280 so they're not changed? 629 00:29:24,000 --> 00:29:25,340 Yeah, Windows file protection, 630 00:29:25,540 --> 00:29:27,720 thanks to whoever was back there. 631 00:29:28,860 --> 00:29:31,800 But that actually does not watch 632 00:29:31,800 --> 00:29:32,820 alternate data streams. 633 00:29:33,300 --> 00:29:35,160 If you attach an alternate data stream, 634 00:29:35,160 --> 00:29:35,980 to a system file, 635 00:29:36,060 --> 00:29:36,920 it's not going to change 636 00:29:36,920 --> 00:29:38,500 how that system file works, 637 00:29:38,560 --> 00:29:41,020 and it doesn't pose any threat, 638 00:29:41,120 --> 00:29:42,160 so Windows file protection 639 00:29:44,460 --> 00:29:46,160 doesn't warn against that. 640 00:29:46,520 --> 00:29:47,660 But the thing is, 641 00:29:47,680 --> 00:29:49,600 is those files cannot be deleted 642 00:29:49,600 --> 00:29:50,280 by the user, 643 00:29:50,780 --> 00:29:52,300 thus your alternate data streams 644 00:29:52,300 --> 00:29:53,180 attached to it 645 00:29:53,180 --> 00:29:54,620 are usually pretty safe 646 00:29:54,620 --> 00:29:55,320 where they're sitting. 647 00:30:02,180 --> 00:30:03,180 That's another thing, 648 00:30:03,240 --> 00:30:04,660 is your alternate data streams, 649 00:30:05,160 --> 00:30:07,840 only have as much access 650 00:30:07,840 --> 00:30:09,080 as you do to the file, 651 00:30:09,180 --> 00:30:10,360 so it'd have to be an administrator 652 00:30:10,360 --> 00:30:12,660 to attach to those system files. 653 00:30:13,000 --> 00:30:16,420 Right, it inherits whatever permissions 654 00:30:16,420 --> 00:30:17,460 the host file has. 655 00:30:19,900 --> 00:30:20,380 Next. 656 00:30:22,320 --> 00:30:22,800 Yeah. 657 00:30:28,460 --> 00:30:32,100 Also, one of the other things 658 00:30:32,100 --> 00:30:34,740 that we want our tool to go over, 659 00:30:34,740 --> 00:30:36,220 is being able to delete 660 00:30:36,220 --> 00:30:37,280 alternate data streams, 661 00:30:37,540 --> 00:30:40,020 because it's obviously a pain 662 00:30:40,020 --> 00:30:41,000 to move the file, 663 00:30:42,400 --> 00:30:43,740 and then move it back, 664 00:30:43,840 --> 00:30:45,000 or copy the file, 665 00:30:45,120 --> 00:30:46,160 delete the original, 666 00:30:46,340 --> 00:30:47,280 and move it back, 667 00:30:47,360 --> 00:30:48,540 and making it just, 668 00:30:49,980 --> 00:30:51,800 it's really hard to do that 669 00:30:51,800 --> 00:30:53,680 with a multiple file system, 670 00:30:53,820 --> 00:30:55,680 where we're attaching multiple streams, 671 00:30:55,840 --> 00:30:57,920 and we can't delete single streams. 672 00:30:58,960 --> 00:31:01,200 The tool will also take care of 673 00:31:01,200 --> 00:31:03,380 making sure that the right streams 674 00:31:03,380 --> 00:31:04,400 that you want to keep 675 00:31:04,400 --> 00:31:05,420 will stay in there, 676 00:31:08,000 --> 00:31:09,820 and that will just save you 677 00:31:09,820 --> 00:31:11,360 a lot of time overall. 678 00:31:14,020 --> 00:31:17,700 Basically, if you're a 16-year-old kid 679 00:31:17,700 --> 00:31:18,420 sitting in the audience, 680 00:31:18,480 --> 00:31:19,500 living at your mom's house, 681 00:31:19,540 --> 00:31:20,440 using your mom's computer, 682 00:31:20,560 --> 00:31:21,920 and you have all kinds of porn, 683 00:31:22,000 --> 00:31:23,100 and you want to hide it somewhere, 684 00:31:23,360 --> 00:31:24,420 an alternate data stream 685 00:31:24,420 --> 00:31:25,520 is a good place to do it. 686 00:31:25,620 --> 00:31:27,580 It's just really, really hard right now. 687 00:31:28,120 --> 00:31:30,460 We're doing this for the kids. 688 00:31:38,000 --> 00:31:39,640 All right, so obviously, 689 00:31:39,800 --> 00:31:41,680 some of the features of the program 690 00:31:41,680 --> 00:31:42,280 has got to be, 691 00:31:42,320 --> 00:31:44,520 it's got to be a hidden kind of program. 692 00:31:45,180 --> 00:31:46,980 If you know where the program is, 693 00:31:47,060 --> 00:31:48,380 and it's installed on the computer, 694 00:31:49,580 --> 00:31:51,240 anybody and everybody can find that 695 00:31:51,240 --> 00:31:52,600 and realize that you're probably 696 00:31:52,600 --> 00:31:54,460 hiding stuff in alternate data streams. 697 00:31:56,840 --> 00:31:58,900 So one of the goals is to keep it 698 00:31:58,900 --> 00:32:00,140 a semi-hidden interface, 699 00:32:00,260 --> 00:32:02,520 maybe explore shell extensions, 700 00:32:04,640 --> 00:32:07,340 but that's all hypothetical from here. 701 00:32:07,420 --> 00:32:08,540 We still haven't worked out 702 00:32:08,540 --> 00:32:09,660 implementation on that. 703 00:32:09,900 --> 00:32:11,240 Yeah, basically the reason we're here 704 00:32:11,240 --> 00:32:13,200 is we want your brains. 705 00:32:17,400 --> 00:32:19,400 We've been coming to DEF CON for a few years, 706 00:32:19,420 --> 00:32:21,040 and regardless of what the media says, 707 00:32:21,220 --> 00:32:23,760 there's some unbelievably intelligent people 708 00:32:23,760 --> 00:32:24,720 in these audiences, 709 00:32:24,800 --> 00:32:27,360 so we'll exploit you. 710 00:32:29,840 --> 00:32:32,040 So if you have further ideas to add on 711 00:32:32,040 --> 00:32:33,700 to how you might think the, 712 00:32:34,400 --> 00:32:35,480 we should work this program, 713 00:32:35,680 --> 00:32:36,660 go ahead and speak up. 714 00:32:37,880 --> 00:32:39,300 We, oh, go ahead. 715 00:32:41,900 --> 00:32:42,920 You can attach, 716 00:32:43,960 --> 00:32:44,860 can you create, 717 00:32:44,980 --> 00:32:46,080 are you saying create a directory 718 00:32:46,080 --> 00:32:47,580 or attach streams to a directory? 719 00:32:49,520 --> 00:32:51,000 So throw a whole directory 720 00:32:51,000 --> 00:32:52,260 in an alternate data stream? 721 00:32:53,000 --> 00:32:54,140 No, you can't, 722 00:32:54,140 --> 00:32:55,920 and that's actually what our tool 723 00:32:55,920 --> 00:32:57,100 is going to be able to do, 724 00:32:57,160 --> 00:32:59,260 is with the sense that 725 00:32:59,260 --> 00:33:00,780 you can throw in multiple files, 726 00:33:01,360 --> 00:33:02,600 and we'll have that single 727 00:33:03,200 --> 00:33:04,380 alternate data stream, 728 00:33:04,400 --> 00:33:05,940 that says all the file information. 729 00:33:06,160 --> 00:33:08,120 It will also hold folder information, 730 00:33:08,520 --> 00:33:10,060 and I'll get to that in a minute here. 731 00:33:10,460 --> 00:33:12,260 But with the tool, 732 00:33:12,340 --> 00:33:14,800 you will be able to throw entire folders 733 00:33:14,800 --> 00:33:16,060 into alternate data streams. 734 00:33:24,380 --> 00:33:27,080 That was the gentleman back there 735 00:33:27,080 --> 00:33:27,820 asked that question, 736 00:33:27,880 --> 00:33:29,340 and again, it will, 737 00:33:29,620 --> 00:33:33,060 the files that you attach in the streams will, 738 00:33:34,400 --> 00:33:36,020 will have the same attributes 739 00:33:36,020 --> 00:33:37,440 that the host file has. 740 00:33:37,580 --> 00:33:39,460 So you set the permissions on the host file 741 00:33:39,460 --> 00:33:40,720 for whatever files are, 742 00:33:40,760 --> 00:33:41,560 are within it. 743 00:33:42,000 --> 00:33:42,440 So, 744 00:33:43,160 --> 00:33:43,600 hopefully, 745 00:33:45,580 --> 00:33:46,920 this thing will be pretty cool 746 00:33:46,920 --> 00:33:47,680 when we're done with it. 747 00:33:47,760 --> 00:33:49,480 We're, we're pretty excited about it, 748 00:33:49,480 --> 00:33:50,260 and we figure, you know, 749 00:33:51,400 --> 00:33:53,300 Microsoft likes to call their bugs features. 750 00:33:53,420 --> 00:33:54,480 We'll actually make one more. 751 00:33:57,940 --> 00:33:59,820 Some other ideas that we had 752 00:33:59,820 --> 00:34:01,160 jumping into the program, 753 00:34:01,280 --> 00:34:01,800 and this is, 754 00:34:01,800 --> 00:34:03,880 this is far from implementation. 755 00:34:04,400 --> 00:34:08,280 I mean, this is one other idea that we had 756 00:34:08,280 --> 00:34:10,100 that the tool had the possibility of 757 00:34:10,100 --> 00:34:11,800 is if we're hiding the data, 758 00:34:13,000 --> 00:34:15,280 why not add in more tools for hiding, 759 00:34:15,340 --> 00:34:16,600 and we can build in 760 00:34:17,460 --> 00:34:20,100 possible combinations of stenography. 761 00:34:21,520 --> 00:34:22,080 Steganography. 762 00:34:22,540 --> 00:34:23,100 Steganography. 763 00:34:23,100 --> 00:34:23,820 We're not in a courtroom here. 764 00:34:26,020 --> 00:34:29,720 And also possibly some cryptography. 765 00:34:31,000 --> 00:34:33,800 Possibly some integration with Windows privacy tools. 766 00:34:35,980 --> 00:34:38,460 Automatic encryption upon throwing into 767 00:34:38,460 --> 00:34:39,680 an alternate data stream. 768 00:34:40,140 --> 00:34:42,960 We were also discussing that, 769 00:34:43,000 --> 00:34:44,220 like, the settings on the program 770 00:34:44,220 --> 00:34:46,300 would have paranoia levels, 771 00:34:46,440 --> 00:34:47,420 where at, you know, 772 00:34:47,420 --> 00:34:50,040 at one level you could have password authentication, 773 00:34:50,440 --> 00:34:51,680 the next level would be encryption. 774 00:34:52,300 --> 00:34:54,220 You know, another level that, 775 00:34:54,220 --> 00:34:56,300 that we were talking about was, 776 00:34:57,140 --> 00:35:00,880 which I guess we'll probably touch on a little more, 777 00:35:00,960 --> 00:35:01,720 is taking a, 778 00:35:02,740 --> 00:35:03,720 taking a, 779 00:35:03,720 --> 00:35:07,140 a file and then splitting it into multiple streams 780 00:35:07,140 --> 00:35:08,420 on multiple host files. 781 00:35:08,780 --> 00:35:11,060 I don't know if anybody is familiar with 782 00:35:11,060 --> 00:35:12,720 PAR2, the, the, 783 00:35:12,880 --> 00:35:15,180 you know, for anyone familiar with that. 784 00:35:17,140 --> 00:35:19,480 Not that I do anything with where's, 785 00:35:19,480 --> 00:35:20,260 but in the where scene, 786 00:35:21,200 --> 00:35:23,120 or like movies and things like that, 787 00:35:23,160 --> 00:35:25,180 pirate movies that usually will include 788 00:35:25,180 --> 00:35:26,360 PAR2 files, 789 00:35:26,480 --> 00:35:30,220 and then if any file has had any kind of corruption, 790 00:35:30,300 --> 00:35:30,780 or anything like that, 791 00:35:30,880 --> 00:35:33,400 if there can be a significant chunk of a file 792 00:35:33,400 --> 00:35:33,640 missing, 793 00:35:34,300 --> 00:35:35,940 but using the PAR2 files, 794 00:35:36,020 --> 00:35:37,100 you can correct those files, 795 00:35:37,160 --> 00:35:37,500 and then, 796 00:35:37,520 --> 00:35:38,760 and move on. 797 00:35:38,860 --> 00:35:39,380 So we're hoping, 798 00:35:39,600 --> 00:35:43,040 I was talking with Dan Kaminsky about this, 799 00:35:43,100 --> 00:35:44,520 if anybody's familiar with Dan's work, 800 00:35:45,080 --> 00:35:45,840 and he, 801 00:35:46,740 --> 00:35:48,160 he said that there's another, 802 00:35:48,860 --> 00:35:50,500 like, algorithm out there that, 803 00:35:50,520 --> 00:35:53,280 that someone is working on that's better than PAR2, 804 00:35:53,400 --> 00:35:59,980 and can actually reclaim up to 10% of any corrupted data. 805 00:36:00,200 --> 00:36:00,720 So, 806 00:36:01,960 --> 00:36:03,160 we'll be talking, 807 00:36:03,160 --> 00:36:05,120 we'll be talking with Dan more in the future about that, 808 00:36:05,200 --> 00:36:05,360 and, 809 00:36:05,440 --> 00:36:07,580 and different aspects of the project, 810 00:36:07,700 --> 00:36:07,860 but, 811 00:36:09,080 --> 00:36:10,140 because he's smart. 812 00:36:11,220 --> 00:36:11,580 And, 813 00:36:13,100 --> 00:36:13,460 so, 814 00:36:13,660 --> 00:36:13,920 it, 815 00:36:14,000 --> 00:36:15,160 let's say you split it up into, 816 00:36:15,260 --> 00:36:17,160 you have something that's very important to you, 817 00:36:17,260 --> 00:36:18,300 you don't want people to find it, 818 00:36:18,380 --> 00:36:19,320 it gets encrypted, 819 00:36:19,640 --> 00:36:20,520 there's also a password, 820 00:36:20,720 --> 00:36:22,460 and then you split it up into 20 different files, 821 00:36:22,520 --> 00:36:23,640 and one of those files gets deleted, 822 00:36:24,560 --> 00:36:24,920 you, 823 00:36:25,020 --> 00:36:26,500 and one of the host files is deleted somewhere, 824 00:36:26,620 --> 00:36:27,620 you don't have to worry about, 825 00:36:27,740 --> 00:36:28,160 you know, 826 00:36:28,200 --> 00:36:29,160 losing that, 827 00:36:29,680 --> 00:36:32,580 if the file's so important that you've done all of these things to it, 828 00:36:32,580 --> 00:36:33,580 and having it, 829 00:36:33,600 --> 00:36:34,820 and then your host file gets deleted, 830 00:36:34,980 --> 00:36:35,620 that would suck. 831 00:36:35,880 --> 00:36:38,860 In the same sense that you're hiding it in alternate data streams, 832 00:36:38,960 --> 00:36:40,000 and nobody knows it's there, 833 00:36:40,100 --> 00:36:42,760 there's the possibility that somebody might delete the file, 834 00:36:42,840 --> 00:36:45,040 not knowing that you've got other stuff in it. 835 00:36:45,240 --> 00:36:45,380 Right, 836 00:36:45,460 --> 00:36:49,080 which is where attaching it to a system file or something like that would, 837 00:36:49,160 --> 00:36:49,800 you know, 838 00:36:49,800 --> 00:36:50,260 be good. 839 00:36:50,420 --> 00:36:50,860 Yeah, 840 00:36:50,860 --> 00:36:51,060 go ahead. 841 00:36:52,060 --> 00:36:52,500 Yeah. 842 00:36:53,860 --> 00:36:53,900 Yeah. 843 00:37:09,340 --> 00:37:10,620 All right, 844 00:37:10,640 --> 00:37:12,240 he's talking about, 845 00:37:12,840 --> 00:37:17,780 he's read up on possible DOSing by attaching, 846 00:37:18,660 --> 00:37:19,320 what was it, 847 00:37:19,340 --> 00:37:20,080 6,000, 848 00:37:21,480 --> 00:37:25,900 in excess of 6,000 alternate data streams attached to a single system file 849 00:37:25,900 --> 00:37:27,260 can lock up the system. 850 00:37:29,160 --> 00:37:29,800 Yeah, 851 00:37:29,800 --> 00:37:31,700 I haven't read anything like that. 852 00:37:31,720 --> 00:37:32,360 Other than this one. 853 00:37:32,360 --> 00:37:33,720 We'll do it and see what happens. 854 00:37:36,060 --> 00:37:36,460 Also, 855 00:37:36,580 --> 00:37:40,080 I know in my own personal experience that not necessarily, 856 00:37:41,140 --> 00:37:42,200 and I don't even know, 857 00:37:42,340 --> 00:37:42,540 like, 858 00:37:42,540 --> 00:37:42,660 you know, 859 00:37:42,700 --> 00:37:43,620 I just did it on, 860 00:37:44,100 --> 00:37:44,660 you know, 861 00:37:45,200 --> 00:37:46,400 two or three different machines, 862 00:37:46,480 --> 00:37:48,340 and maybe I just set up my systems different, 863 00:37:48,400 --> 00:37:52,680 but after so many gigs of data, 864 00:37:53,420 --> 00:37:56,380 it gets really hard to work with them as well. 865 00:37:56,500 --> 00:38:00,780 So using multiple host files is, 866 00:38:00,820 --> 00:38:01,200 you know, 867 00:38:01,200 --> 00:38:01,300 the, 868 00:38:01,400 --> 00:38:02,280 a really good, 869 00:38:02,360 --> 00:38:02,820 good way to do it. 870 00:38:02,900 --> 00:38:02,980 I mean, 871 00:38:03,000 --> 00:38:04,880 it's gigs and gigs of data, 872 00:38:04,940 --> 00:38:05,500 nothing like, 873 00:38:05,560 --> 00:38:05,760 you know, 874 00:38:05,800 --> 00:38:07,240 if you're using a couple hundred megs, 875 00:38:08,380 --> 00:38:10,220 then you don't really have to worry about it, 876 00:38:10,300 --> 00:38:15,060 but when you get into the ridiculous file sizes 877 00:38:15,060 --> 00:38:16,420 and ridiculous sizes of streams, 878 00:38:16,640 --> 00:38:19,340 then there are some lag issues. 879 00:38:19,700 --> 00:38:19,960 So, 880 00:38:20,500 --> 00:38:20,860 again, 881 00:38:21,020 --> 00:38:23,360 we'll be doing a lot of testing with that 882 00:38:23,360 --> 00:38:24,980 and seeing what we can break. 883 00:38:26,600 --> 00:38:26,960 Yeah, 884 00:38:27,020 --> 00:38:28,520 is there something else to add to that one? 885 00:38:31,980 --> 00:38:32,340 Yeah. 886 00:38:35,800 --> 00:38:36,680 Mm-hmm. 887 00:38:37,200 --> 00:38:37,640 So, 888 00:38:39,120 --> 00:38:39,560 yeah, 889 00:38:39,680 --> 00:38:40,100 there you go. 890 00:38:40,780 --> 00:38:41,740 Very good point. 891 00:38:41,880 --> 00:38:42,020 Well, 892 00:38:42,080 --> 00:38:42,840 we'll leave, 893 00:38:42,920 --> 00:38:45,960 he's saying maybe the solution is just to attach it 894 00:38:45,960 --> 00:38:47,420 straight to the root volume directory 895 00:38:47,900 --> 00:38:49,860 because you cannot delete them. 896 00:38:50,880 --> 00:38:53,180 We'll leave the option open for the user 897 00:38:53,180 --> 00:38:55,040 to decide to throw it there or not. 898 00:38:55,260 --> 00:38:57,300 You can put it anywhere you want. 899 00:38:57,320 --> 00:38:57,700 Yeah, 900 00:38:57,720 --> 00:38:58,840 you can put it wherever you want. 901 00:38:59,800 --> 00:39:00,860 In the red shirt. 902 00:39:16,600 --> 00:39:19,660 I don't think that zip recognizes alternate data stream, 903 00:39:19,800 --> 00:39:20,420 so it just, 904 00:39:20,540 --> 00:39:21,600 I think it just trashes them. 905 00:39:24,400 --> 00:39:26,320 I don't think it looks for them. 906 00:39:26,320 --> 00:39:26,520 Again, 907 00:39:26,520 --> 00:39:28,260 going back to the fact that there are 908 00:39:28,780 --> 00:39:30,720 not a lot of programs out there, 909 00:39:30,860 --> 00:39:34,140 that support doing anything with alternate data streams, 910 00:39:34,320 --> 00:39:35,540 you just end up losing them. 911 00:39:35,700 --> 00:39:37,280 People pretty much ignore them, 912 00:39:37,360 --> 00:39:39,540 and they're really kind of cool to play with. 913 00:39:39,680 --> 00:39:39,860 I mean, 914 00:39:39,860 --> 00:39:41,560 you can do some really cool things 915 00:39:41,560 --> 00:39:43,520 that we hope by creating this tool. 916 00:39:45,260 --> 00:39:45,700 Continue. 917 00:39:47,540 --> 00:39:49,640 I think I coughed up some lung there or something. 918 00:39:49,820 --> 00:39:51,060 Too much smoke in Vegas. 919 00:39:51,340 --> 00:39:53,380 I'll let him think about what he's thinking there 920 00:39:53,380 --> 00:39:53,880 for a minute, 921 00:39:53,920 --> 00:39:54,860 and we'll take another question. 922 00:39:55,620 --> 00:39:58,180 Are there any tools that legitimately at all 923 00:39:58,180 --> 00:40:00,560 you'd like to say you would provide? 924 00:40:00,860 --> 00:40:02,760 Are there any files that you'd like us to use? 925 00:40:03,300 --> 00:40:03,900 Again, 926 00:40:04,100 --> 00:40:06,560 the only programs I've seen that use them, 927 00:40:06,580 --> 00:40:07,660 aside from Mac, 928 00:40:07,800 --> 00:40:09,040 using them for file information, 929 00:40:10,160 --> 00:40:11,360 is IIS, 930 00:40:12,020 --> 00:40:14,060 using it to thumbnail images 931 00:40:15,380 --> 00:40:16,580 for web space. 932 00:40:16,960 --> 00:40:18,640 And that's the only other time 933 00:40:18,640 --> 00:40:20,960 I've seen it actually legitimately used, 934 00:40:21,160 --> 00:40:22,580 aside from the two viruses. 935 00:40:24,100 --> 00:40:24,780 What's that? 936 00:40:28,100 --> 00:40:30,520 Are they using more image thumbnail images? 937 00:40:30,520 --> 00:40:30,840 Are they using more image thumbnail images? 938 00:40:42,700 --> 00:40:44,840 Okay, he's saying Office 2000. 939 00:40:50,940 --> 00:40:53,080 He's saying with Office 2003, 940 00:40:53,260 --> 00:40:57,040 uses alternate data streams for session saving, 941 00:40:58,440 --> 00:41:00,840 just to be able to back up your data streams. 942 00:41:00,860 --> 00:41:02,480 Back up your data? 943 00:41:06,360 --> 00:41:07,560 Back up your data? 944 00:41:09,480 --> 00:41:11,480 We should send it where we're at at that time. 945 00:41:16,740 --> 00:41:22,140 Alright, alright. 946 00:41:23,980 --> 00:41:24,580 Alright. 947 00:41:24,580 --> 00:41:24,660 Alright. 948 00:41:25,260 --> 00:41:25,280 Alright. 949 00:41:25,540 --> 00:41:26,140 Regardless— 950 00:41:26,140 --> 00:41:26,600 Okay. 951 00:41:28,080 --> 00:41:28,680 Sorry. 952 00:41:29,020 --> 00:41:29,320 I'm sorry. 953 00:41:29,320 --> 00:41:29,340 I'm sorry. 954 00:41:29,560 --> 00:41:29,880 Thank you. 955 00:41:39,820 --> 00:41:42,580 And that's when you download what kind of stuff? 956 00:41:45,220 --> 00:41:48,520 Is that just EXEs that you, 957 00:41:48,660 --> 00:41:51,620 like he was saying that in Service Pack 2 for Windows XP, 958 00:41:52,410 --> 00:41:55,880 when you use Internet Explorer and download EXEs 959 00:41:55,880 --> 00:41:58,740 that it stores in the alternate data stream 960 00:41:58,740 --> 00:42:00,240 what zone you downloaded from. 961 00:42:00,240 --> 00:42:05,060 Is that all EXEs from anywhere while using Internet Explorer 962 00:42:05,060 --> 00:42:06,020 or is that only from Microsoft? 963 00:42:15,580 --> 00:42:17,300 Using Internet Explorer. 964 00:42:23,400 --> 00:42:24,360 All right. 965 00:42:26,260 --> 00:42:28,560 Something to touch on that point, 966 00:42:28,640 --> 00:42:30,020 I'm liking the fact 967 00:42:30,020 --> 00:42:32,140 that Microsoft tends to use these more. 968 00:42:32,240 --> 00:42:35,040 I think that they've realized 969 00:42:35,040 --> 00:42:36,880 that they put something in there 970 00:42:36,880 --> 00:42:39,820 that not many people are aware is there 971 00:42:39,820 --> 00:42:41,120 and they're using it more and more 972 00:42:41,720 --> 00:42:43,840 because when we were discussing doing this, 973 00:42:43,980 --> 00:42:44,640 we were like, 974 00:42:44,720 --> 00:42:46,960 well, what happens when Longhorn comes along 975 00:42:46,960 --> 00:42:49,460 and then if they don't have support 976 00:42:49,460 --> 00:42:50,860 for alternate data streams or anything, 977 00:42:50,920 --> 00:42:53,180 but they seem to be using it in their products 978 00:42:53,180 --> 00:42:53,840 and things like that. 979 00:42:54,000 --> 00:42:57,520 So it'll be there and we'll be happy. 980 00:42:59,320 --> 00:42:59,960 Very good. 981 00:43:01,960 --> 00:43:05,780 Yes, you can attach alternate data streams 982 00:43:05,780 --> 00:43:08,240 to a directory in the back there. 983 00:43:21,180 --> 00:43:23,020 I'm not aware of that. 984 00:43:23,420 --> 00:43:24,320 I don't know. 985 00:43:24,480 --> 00:43:25,360 Let's find out. 986 00:43:33,840 --> 00:43:34,840 That's up to the tool 987 00:43:34,840 --> 00:43:36,080 that you're using for encryption. 988 00:43:36,340 --> 00:43:38,020 Again, his question was, 989 00:43:38,080 --> 00:43:38,640 what about encryption? 990 00:43:38,680 --> 00:43:39,780 If you encrypt the file, 991 00:43:39,980 --> 00:43:44,020 does it encrypt the stream as well? 992 00:43:44,240 --> 00:43:45,800 And if the tool doesn't recognize 993 00:43:45,800 --> 00:43:46,680 that the stream is there, 994 00:43:46,840 --> 00:43:49,260 then I don't believe that it would, 995 00:43:49,340 --> 00:43:50,540 which is why we're hoping 996 00:43:50,540 --> 00:43:51,720 that we can just drag files 997 00:43:51,720 --> 00:43:52,620 and drop them on 998 00:43:52,620 --> 00:43:54,280 and then we'll encrypt on the fly 999 00:43:54,280 --> 00:43:56,040 and then you'll be sure 1000 00:43:56,040 --> 00:43:59,360 that your information is safe. 1001 00:44:00,100 --> 00:44:01,740 From the prying eyes of your mom. 1002 00:44:04,580 --> 00:44:05,540 Or wife. 1003 00:44:07,980 --> 00:44:08,940 Good one. 1004 00:44:10,700 --> 00:44:12,080 So, all right, over here. 1005 00:44:12,420 --> 00:44:14,800 Have you isolated the parts of code 1006 00:44:14,800 --> 00:44:16,480 that are necessary to make the program 1007 00:44:16,480 --> 00:44:17,620 recognize it? 1008 00:44:17,760 --> 00:44:19,180 Because one of the things I tried 1009 00:44:19,180 --> 00:44:21,100 along that line that I'm talking about 1010 00:44:21,100 --> 00:44:23,300 was a program called Eparam, 1011 00:44:23,360 --> 00:44:25,860 which is a hard disk simulator, basically, 1012 00:44:26,060 --> 00:44:27,480 to try to attach that file 1013 00:44:27,480 --> 00:44:30,000 as the alternate data stream. 1014 00:44:30,020 --> 00:44:32,400 But it couldn't get Eparam 1015 00:44:32,400 --> 00:44:33,880 to recognize its existence. 1016 00:44:34,340 --> 00:44:36,160 Was there a source of the thing 1017 00:44:36,160 --> 00:44:38,960 that was that we know what we need 1018 00:44:38,960 --> 00:44:40,060 to do to modify that 1019 00:44:40,060 --> 00:44:42,180 to make it as aware 1020 00:44:42,180 --> 00:44:44,600 of the program? 1021 00:44:45,680 --> 00:44:47,320 No, I haven't played with that, 1022 00:44:47,340 --> 00:44:48,020 so I don't know. 1023 00:44:49,200 --> 00:44:51,120 Yeah, we'll talk with you after this, too. 1024 00:44:51,200 --> 00:44:51,680 You're that guy 1025 00:44:51,680 --> 00:44:53,120 and that guy back there. 1026 00:44:53,740 --> 00:44:54,660 Yeah, go ahead. 1027 00:45:08,780 --> 00:45:11,080 They're saying that .NET access 1028 00:45:11,080 --> 00:45:12,820 supports it. 1029 00:45:16,200 --> 00:45:22,140 Oh, how you access streams in your code. 1030 00:45:23,040 --> 00:45:26,140 You use the same file syntax, actually. 1031 00:45:26,280 --> 00:45:29,040 Microsoft has a technical paper on... 1032 00:45:30,020 --> 00:45:31,840 on how to write up your code 1033 00:45:31,840 --> 00:45:33,680 to access alternate data streams. 1034 00:45:35,240 --> 00:45:37,040 I don't have a link on me right now, 1035 00:45:37,140 --> 00:45:40,640 but we'll be showing some contact information afterwards, 1036 00:45:40,760 --> 00:45:42,820 and you can go ahead and email me, 1037 00:45:42,920 --> 00:45:44,620 and I'll give you the link to that. 1038 00:45:47,540 --> 00:45:48,620 Yeah, moving on. 1039 00:45:52,500 --> 00:45:53,380 You jerk. 1040 00:45:53,460 --> 00:45:54,040 How do I get back? 1041 00:45:54,560 --> 00:45:55,380 Backspace, I think. 1042 00:45:56,660 --> 00:45:57,100 Okay. 1043 00:45:58,340 --> 00:45:59,180 Moving on. 1044 00:46:00,020 --> 00:46:00,740 We've got... 1045 00:46:01,820 --> 00:46:04,080 For the implementation of this program, 1046 00:46:05,800 --> 00:46:07,080 we decided, well, 1047 00:46:07,120 --> 00:46:09,020 we've got to have this single... 1048 00:46:09,580 --> 00:46:11,600 You've got to have the single ADS stream 1049 00:46:11,600 --> 00:46:13,060 with information on the file. 1050 00:46:13,740 --> 00:46:15,780 If we're going to be able to support 1051 00:46:15,780 --> 00:46:17,020 multiple files, 1052 00:46:19,600 --> 00:46:21,700 you've got to know where those files are, 1053 00:46:21,800 --> 00:46:23,080 what streams they're on, 1054 00:46:24,580 --> 00:46:25,660 and this... 1055 00:46:26,680 --> 00:46:29,840 So basically how the idea for doing this, 1056 00:46:30,020 --> 00:46:33,120 is we've got a single XML structure 1057 00:46:33,120 --> 00:46:36,920 in one given name alternate data stream, 1058 00:46:37,100 --> 00:46:37,800 such... 1059 00:46:39,240 --> 00:46:42,100 And it will look something like this, 1060 00:46:42,200 --> 00:46:45,000 where you've got the file system, 1061 00:46:45,710 --> 00:46:48,380 the type, whether it's a single file, host file, 1062 00:46:48,580 --> 00:46:51,840 or whether it's multiple host files, 1063 00:46:53,540 --> 00:46:56,360 which is going back to the idea 1064 00:46:56,360 --> 00:47:00,000 of the multiple host files for a data stream. 1065 00:47:00,000 --> 00:47:00,800 And then you've got the recovery stuff, 1066 00:47:01,020 --> 00:47:03,460 in case one of your files gets deleted. 1067 00:47:04,620 --> 00:47:06,200 We'll have to go more into that 1068 00:47:06,200 --> 00:47:07,600 when we get down to it. 1069 00:47:09,600 --> 00:47:11,660 Basically, and then you have the folder tag. 1070 00:47:11,940 --> 00:47:15,320 Again, being able to support multiple files in there 1071 00:47:15,320 --> 00:47:17,080 along with the folder information. 1072 00:47:17,480 --> 00:47:19,520 So when you extract it out of there, 1073 00:47:19,640 --> 00:47:21,460 you can extract whole folders, 1074 00:47:21,560 --> 00:47:24,920 or you can put multiple folders in there, 1075 00:47:26,200 --> 00:47:28,060 basically all in one host file. 1076 00:47:28,260 --> 00:47:28,440 Okay. 1077 00:47:29,100 --> 00:47:29,620 Now, 1078 00:47:30,000 --> 00:47:32,220 what it's going to do when you put those files in there 1079 00:47:34,080 --> 00:47:36,940 is it's going to go through the program. 1080 00:47:37,080 --> 00:47:37,940 Program's going to say, 1081 00:47:38,040 --> 00:47:39,760 here's the folder and file information. 1082 00:47:40,360 --> 00:47:43,200 It's going to hash together some sort of hash number 1083 00:47:44,440 --> 00:47:49,000 to determine a alternate data stream to assign it to. 1084 00:47:50,320 --> 00:47:52,340 In the same sense that we're hiding files, 1085 00:47:52,580 --> 00:47:55,280 if you've got tools to scan those alternate data streams 1086 00:47:55,280 --> 00:47:57,160 and it comes up with names 1087 00:47:59,080 --> 00:47:59,840 that's basically, 1088 00:48:00,000 --> 00:48:01,140 it's really going to hide the file name 1089 00:48:01,140 --> 00:48:03,720 because you're just going to get a data stream that says, 1090 00:48:04,140 --> 00:48:06,340 you know, you have this data stream attached 1091 00:48:07,200 --> 00:48:11,620 that's called A942BC23F3, 1092 00:48:11,780 --> 00:48:13,800 which isn't going to give anybody any idea. 1093 00:48:18,000 --> 00:48:18,560 Okay. 1094 00:48:21,440 --> 00:48:24,640 Here's the XML for the multiple host file. 1095 00:48:24,880 --> 00:48:27,640 I just wrote this up like an hour ago. 1096 00:48:27,740 --> 00:48:27,980 So, 1097 00:48:28,880 --> 00:48:29,980 this is all, 1098 00:48:30,980 --> 00:48:33,620 just ideas floating around. 1099 00:48:35,460 --> 00:48:38,740 And this just shows how we might go about 1100 00:48:38,740 --> 00:48:42,560 being able to span multiple host files 1101 00:48:42,560 --> 00:48:44,760 for specific, 1102 00:48:46,940 --> 00:48:50,400 for specific attached alternate data stream files. 1103 00:48:51,880 --> 00:48:54,660 And it's going to pretty much be 1104 00:48:54,660 --> 00:48:57,800 the program decides which data streams 1105 00:48:57,800 --> 00:48:59,360 to assign it to. 1106 00:48:59,440 --> 00:48:59,960 Okay. 1107 00:48:59,960 --> 00:49:03,040 And what files and every file that has them 1108 00:49:03,340 --> 00:49:06,440 is going to keep the information on what other host files 1109 00:49:07,280 --> 00:49:10,000 might contain other folders and file information. 1110 00:49:10,320 --> 00:49:14,360 And every one of the host files will contain the same XML 1111 00:49:14,360 --> 00:49:16,620 that says here's our host files. 1112 00:49:20,500 --> 00:49:22,900 Here's the contact information and. 1113 00:49:25,200 --> 00:49:26,460 Yeah, we're almost out of time. 1114 00:49:26,520 --> 00:49:28,240 Is there any other questions real quick? 1115 00:49:28,280 --> 00:49:29,620 And then if anybody is interested, 1116 00:49:29,620 --> 00:49:31,000 in helping out with this, 1117 00:49:31,040 --> 00:49:32,340 you can get a hold of us. 1118 00:49:32,540 --> 00:49:33,580 There's our information, 1119 00:49:33,960 --> 00:49:35,540 grifter at root compromise.org. 1120 00:49:35,600 --> 00:49:37,400 And here at it's nuke, 1121 00:49:37,400 --> 00:49:38,020 not gannuck, 1122 00:49:39,160 --> 00:49:40,060 nuke.net. 1123 00:49:40,260 --> 00:49:44,940 And then dc801.org doesn't have anything up on it right now. 1124 00:49:45,000 --> 00:49:47,140 The project will be going up on there shortly. 1125 00:49:47,280 --> 00:49:50,000 And if you would like to talk to us real time, 1126 00:49:50,620 --> 00:49:51,580 we are always, 1127 00:49:52,220 --> 00:49:57,040 and I mean always in IRC and pound UT 2600 on F net. 1128 00:49:58,880 --> 00:49:59,360 So, 1129 00:49:59,420 --> 00:49:59,600 yeah, 1130 00:49:59,880 --> 00:50:00,240 thank you.