1 00:00:00,580 --> 00:00:04,660 I'd like to welcome everyone to Track 5 at DEF CON. 2 00:00:05,000 --> 00:00:08,500 I want to remind everyone in consideration of the other attendees, 3 00:00:09,480 --> 00:00:12,040 please turn the ringer on your cell phone off. 4 00:00:12,240 --> 00:00:12,620 Thanks. 5 00:00:13,280 --> 00:00:15,560 Also, there's been one scheduled change. 6 00:00:17,480 --> 00:00:23,400 Track 4, 4 p.m., there's a substitution owning the WAN with ZAN. 7 00:00:27,280 --> 00:00:27,640 Hello. 8 00:00:34,740 --> 00:00:36,120 I'm glad so many of you showed up. 9 00:00:37,320 --> 00:00:38,340 I'm Rafael Marti. 10 00:00:38,420 --> 00:00:40,920 I work for a company called Splunk. 11 00:00:41,080 --> 00:00:43,160 A lot of you probably have seen the shirts around. 12 00:00:43,440 --> 00:00:44,440 I have a few shirts here. 13 00:00:44,980 --> 00:00:47,060 I will hand them out during the workshop. 14 00:00:47,120 --> 00:00:48,760 At some point, I will tell you when I give them out. 15 00:00:50,220 --> 00:00:52,260 You've probably heard of Secqvist.org at this point. 16 00:00:52,320 --> 00:00:52,660 I hope. 17 00:00:53,400 --> 00:00:54,180 Go check it out. 18 00:00:54,300 --> 00:00:56,280 It's a portal I started around security visualization. 19 00:00:57,820 --> 00:01:01,040 I'm also the author of Afterglow, if you've seen that tool before, 20 00:01:01,220 --> 00:01:02,380 to generate link graphs. 21 00:01:02,620 --> 00:01:03,420 I will show that in a little bit. 22 00:01:04,420 --> 00:01:07,580 It happens also that I'm the author of the book you see here, 23 00:01:07,660 --> 00:01:10,580 Applied Security Visualization, which just came out on Tuesday. 24 00:01:11,180 --> 00:01:15,220 The bookstore here had it before I have seen a copy, which was pretty exciting. 25 00:01:17,160 --> 00:01:19,000 I'm presenting here with Jan. 26 00:01:20,000 --> 00:01:21,280 Yes, I'm Jan Munch. 27 00:01:21,900 --> 00:01:22,820 I'm from Switzerland. 28 00:01:23,400 --> 00:01:28,660 I'm a senior security analyst with a well-known Swiss pen testing security review company. 29 00:01:29,760 --> 00:01:31,500 I'm the father of DAVEX. 30 00:01:32,440 --> 00:01:35,400 I initiated the project and engineered the CD. 31 00:01:35,920 --> 00:01:40,260 The thing which you're going to see during the workshop, that's the stuff I did. 32 00:01:43,800 --> 00:01:44,600 All right. 33 00:01:45,140 --> 00:01:48,460 To get the workshop going, you need ISO images. 34 00:01:49,920 --> 00:01:51,560 There's a guy down there. 35 00:01:51,560 --> 00:01:52,420 He's Martin. 36 00:01:52,720 --> 00:01:54,520 He's a colleague at work. 37 00:01:54,840 --> 00:01:58,820 He will distribute 30 CDs among the crowd. 38 00:01:59,060 --> 00:02:04,540 Please copy those ISO images and the manual which is on the disc onto your hard drive 39 00:02:05,140 --> 00:02:10,960 and hand on the CD immediately so that everybody gets a chance to get the image 40 00:02:10,960 --> 00:02:13,460 because maybe there are some guys here. 41 00:02:13,800 --> 00:02:16,380 Who did not get the chance to download the image? 42 00:02:17,780 --> 00:02:18,360 Okay. 43 00:02:18,420 --> 00:02:19,620 There's quite a few. 44 00:02:20,100 --> 00:02:20,760 All right. 45 00:02:20,760 --> 00:02:24,440 So Martin is distributing discs along the aisles. 46 00:02:24,520 --> 00:02:25,380 Just pass it on. 47 00:02:26,900 --> 00:02:31,020 And to set up... 48 00:02:36,920 --> 00:02:38,700 Too much security here. 49 00:02:38,940 --> 00:02:39,160 Yeah. 50 00:02:40,900 --> 00:02:41,640 All right. 51 00:02:41,720 --> 00:02:44,440 The recommended setup is that you use VMware. 52 00:02:44,880 --> 00:02:45,920 Run it in there. 53 00:02:46,360 --> 00:02:50,180 In the manual in chapter 6.1.1 and 6.1.2, 54 00:02:50,180 --> 00:02:54,020 you'll find instructions on how to set up a VM if you don't know how to do it. 55 00:02:55,940 --> 00:02:59,340 Then we suggest that you activate networking 56 00:02:59,340 --> 00:03:03,820 because the manuals of the tools and tutorials, 57 00:03:03,980 --> 00:03:05,260 they're located in the internet. 58 00:03:05,620 --> 00:03:07,760 So they're like links on the CD. 59 00:03:07,960 --> 00:03:09,700 We'll discuss this later on. 60 00:03:10,800 --> 00:03:13,640 And to get to the content, you need internet access. 61 00:03:14,120 --> 00:03:19,880 So suggest that this net your VM to the network or even bridge it. 62 00:03:20,180 --> 00:03:20,260 Whatever you like. 63 00:03:25,220 --> 00:03:25,580 Okay. 64 00:03:25,760 --> 00:03:29,140 So what we're going to do, it's kind of an experiment for us 65 00:03:29,140 --> 00:03:30,200 and I think DEF CON as well. 66 00:03:31,340 --> 00:03:32,200 We want to... 67 00:03:32,200 --> 00:03:35,040 We talk a little bit about visualization about the Davix CD itself. 68 00:03:36,140 --> 00:03:38,440 And then we have the hands-on analysis, 69 00:03:38,560 --> 00:03:40,060 and that's what you need the CDs for 70 00:03:40,060 --> 00:03:43,440 so you can start up the live image and do some analysis yourself. 71 00:03:44,200 --> 00:03:47,820 During the time that you guys are playing with the capture file 72 00:03:47,820 --> 00:03:49,320 we already gave you on the CD, 73 00:03:49,320 --> 00:03:50,260 or you download it, 74 00:03:50,700 --> 00:03:52,060 we'll roam around a little bit 75 00:03:52,060 --> 00:03:53,540 and try to figure out what you guys are up to 76 00:03:53,540 --> 00:03:55,680 and if there are any questions or things we can help with. 77 00:03:55,820 --> 00:03:57,600 And then we'll probably show some things here. 78 00:03:57,900 --> 00:04:01,600 If anyone during the analysis comes up with interesting things they find 79 00:04:01,600 --> 00:04:03,940 in the captures or ways to visualize the data, 80 00:04:04,380 --> 00:04:07,540 we encourage you to come up here and then show everybody what you did. 81 00:04:07,720 --> 00:04:09,380 So while you're doing the analysis, 82 00:04:09,560 --> 00:04:11,020 kind of keep track of what you're doing 83 00:04:11,020 --> 00:04:13,320 and you can come up here and show people. 84 00:04:14,000 --> 00:04:16,580 For people that are going to come up with something 85 00:04:16,580 --> 00:04:18,260 that we're going to be impressed with, 86 00:04:18,260 --> 00:04:20,920 I have four books here that I'm going to give away. 87 00:04:22,100 --> 00:04:25,860 So I encourage you to come up with something interesting. 88 00:04:26,320 --> 00:04:28,100 And why does this go blank here? 89 00:04:28,820 --> 00:04:29,520 Here we go. 90 00:04:31,040 --> 00:04:31,760 All right. 91 00:04:33,520 --> 00:04:36,740 So the goal is that you guys get kind of a feeling 92 00:04:36,740 --> 00:04:38,680 for how do you visualize security data 93 00:04:38,680 --> 00:04:40,740 and how do you operate the data CD itself. 94 00:04:41,960 --> 00:04:43,340 Let me ask a few questions. 95 00:04:44,980 --> 00:04:48,040 Who has done log analysis before? 96 00:04:48,560 --> 00:04:49,280 There's your hand. 97 00:04:50,040 --> 00:04:51,000 Oh, wow. Awesome. 98 00:04:51,280 --> 00:04:54,000 I think I never had so many hands shown when I asked this. 99 00:04:55,980 --> 00:04:58,000 Who visualizes their logs when they analyze them? 100 00:04:59,240 --> 00:05:00,240 Oh, not that many. 101 00:05:00,520 --> 00:05:01,080 Okay, that's good. 102 00:05:01,160 --> 00:05:02,520 I hope after this it's going to be a few more. 103 00:05:02,800 --> 00:05:04,520 Has anyone used Davix before? 104 00:05:06,840 --> 00:05:08,420 A couple. Okay, cool. 105 00:05:09,120 --> 00:05:10,180 Have you heard of Secquiz? 106 00:05:11,360 --> 00:05:12,760 A few. All right. 107 00:05:12,980 --> 00:05:15,660 So everybody that does visualization of log files, 108 00:05:15,760 --> 00:05:16,940 I encourage you to go to Secquiz 109 00:05:16,940 --> 00:05:18,760 and submit some example of yours. 110 00:05:18,900 --> 00:05:20,940 It's a portal where there's a whole gallery 111 00:05:21,520 --> 00:05:22,780 where people submit graphs 112 00:05:22,780 --> 00:05:25,460 and ideas of how to visualize log files, 113 00:05:25,580 --> 00:05:26,580 so you might get inspired. 114 00:05:26,800 --> 00:05:29,300 And if you submit some things, you can inspire other people. 115 00:05:29,880 --> 00:05:32,280 All right, so I'm going to hand over to Jan, 116 00:05:32,380 --> 00:05:33,740 and he's going to talk a little bit about the CD 117 00:05:33,740 --> 00:05:34,640 and how it's organized. 118 00:05:36,000 --> 00:05:40,120 All right, so I give you a short introduction to Davix. 119 00:05:40,340 --> 00:05:42,680 So first question is, what is Davix? 120 00:05:43,580 --> 00:05:46,920 Davix is a live CD which is built on Slack. 121 00:05:48,500 --> 00:05:50,920 Maybe some guys of you know, 122 00:05:51,040 --> 00:05:52,820 Backtrack is also built on Slack, 123 00:05:52,980 --> 00:05:56,280 so we use more or less the same technology 124 00:05:56,920 --> 00:05:58,560 which comes from Slack 6. 125 00:05:59,480 --> 00:06:04,500 A good thing about Slack is it's very modular. 126 00:06:04,900 --> 00:06:07,020 You can have software in packages 127 00:06:07,020 --> 00:06:09,140 and organize them pretty easily. 128 00:06:09,880 --> 00:06:13,460 It's easy to customize the CD, 129 00:06:13,660 --> 00:06:16,140 so if you want to change single files 130 00:06:16,140 --> 00:06:20,200 on the CD or in the live system, 131 00:06:20,400 --> 00:06:21,960 it can be done really easily. 132 00:06:24,360 --> 00:06:27,980 And you cannot just run it from CD and DVD. 133 00:06:28,240 --> 00:06:30,480 You can also run it from USB stick if you like. 134 00:06:30,840 --> 00:06:33,840 There are instructions on the CD manual 135 00:06:34,800 --> 00:06:36,680 where it tells you how to do that. 136 00:06:36,920 --> 00:06:39,820 It's actually really copying files 137 00:06:39,820 --> 00:06:41,720 and running a batch file, and that's it. 138 00:06:43,420 --> 00:06:45,720 And maybe some of you would like to have it 139 00:06:46,140 --> 00:06:47,420 installed on a hard drive. 140 00:06:47,640 --> 00:06:48,600 You can do that as well. 141 00:06:48,700 --> 00:06:50,880 We have included the Backtrack 3 installer. 142 00:06:51,280 --> 00:06:54,120 So you can set up like a VM 143 00:06:54,120 --> 00:06:55,960 and run everything like a normal Linux. 144 00:06:57,900 --> 00:07:01,880 Okay, the CD contains a collection of tools. 145 00:07:03,180 --> 00:07:05,880 These are mostly tools for data processing 146 00:07:05,880 --> 00:07:08,540 like classical things like Grab, Avica, 147 00:07:08,840 --> 00:07:13,780 and Grab, Perl, things like this. 148 00:07:13,780 --> 00:07:17,320 And the most important part are the visualization tools. 149 00:07:17,600 --> 00:07:20,480 So we've included like 25 or 30, 150 00:07:20,560 --> 00:07:21,980 I don't remember the exact number, 151 00:07:22,780 --> 00:07:24,240 of tools on the CD. 152 00:07:25,040 --> 00:07:27,720 This is actually based on the research 153 00:07:27,720 --> 00:07:29,060 Rafi has done for his book. 154 00:07:29,280 --> 00:07:32,540 So the tools are the same ones 155 00:07:32,540 --> 00:07:35,640 which you can also find in the book version. 156 00:07:37,660 --> 00:07:43,680 All right, so the tools are ready to run. 157 00:07:43,680 --> 00:07:45,420 So you don't have to compile anything. 158 00:07:45,680 --> 00:07:47,680 It's really just start it up 159 00:07:47,680 --> 00:07:48,880 and start using the tools. 160 00:07:51,900 --> 00:07:54,520 Then the CD comes with a documentation 161 00:07:54,520 --> 00:07:55,880 as I just mentioned. 162 00:07:56,060 --> 00:07:57,160 There is a quick start guide 163 00:07:57,460 --> 00:07:58,840 on how to get things running 164 00:07:59,760 --> 00:08:03,480 and how to sort of get things visualizing. 165 00:08:03,600 --> 00:08:05,300 There are sort of really basic examples 166 00:08:05,300 --> 00:08:06,140 on how to do that. 167 00:08:08,680 --> 00:08:10,280 All right, next slide. 168 00:08:10,560 --> 00:08:12,580 Why did we build Davix? 169 00:08:12,580 --> 00:08:14,140 Well, first of all, 170 00:08:14,180 --> 00:08:17,300 there is sort of no free out-of-the-box solution 171 00:08:17,300 --> 00:08:18,980 which contains all these tools. 172 00:08:19,300 --> 00:08:20,960 And it's quite cumbersome 173 00:08:20,960 --> 00:08:23,200 to get running lots of these tools. 174 00:08:23,620 --> 00:08:28,000 There are tools which require certain versions of GCC 175 00:08:28,860 --> 00:08:32,660 or libraries which are rarely used. 176 00:08:33,040 --> 00:08:36,100 So getting things to run can be really difficult. 177 00:08:37,680 --> 00:08:40,140 Then there are different runtime environments. 178 00:08:40,440 --> 00:08:41,780 There are tools written in Java, 179 00:08:42,580 --> 00:08:43,820 in Ruby, in Perl. 180 00:08:44,840 --> 00:08:46,860 So you need a huge environment 181 00:08:46,860 --> 00:08:48,680 to get the tools working. 182 00:08:49,280 --> 00:08:50,860 And we've done all that work for you. 183 00:08:51,140 --> 00:08:52,520 So the goals for our project 184 00:08:52,520 --> 00:08:55,400 is to have a running environment 185 00:08:55,400 --> 00:08:56,860 which is really simple to use 186 00:08:56,860 --> 00:08:59,400 so you can start analyzing things 187 00:08:59,400 --> 00:09:03,760 without doing much of compilation work 188 00:09:03,760 --> 00:09:04,720 and installing stuff. 189 00:09:06,300 --> 00:09:08,840 And another thing is you can add stuff easily 190 00:09:09,580 --> 00:09:10,440 thanks to Slacks. 191 00:09:10,440 --> 00:09:13,800 So you don't waste too much time adding new things. 192 00:09:19,000 --> 00:09:22,780 The user interface in Davix is based on KDE. 193 00:09:23,760 --> 00:09:25,860 As you see on the right-hand side, 194 00:09:26,100 --> 00:09:27,880 this is the start menu of KDE. 195 00:09:28,640 --> 00:09:31,280 The top one is sort of the document link. 196 00:09:31,460 --> 00:09:34,180 You go there and you get access to the documentation. 197 00:09:36,120 --> 00:09:38,880 Then you see three categories. 198 00:09:41,040 --> 00:09:44,120 These are called Capture, Process, and Visualize. 199 00:09:44,540 --> 00:09:48,540 And this represents the information visualization process. 200 00:09:49,480 --> 00:09:52,640 So each of those tabs 201 00:09:52,640 --> 00:09:54,880 contain a set of tools 202 00:09:54,880 --> 00:09:59,540 which are related to Capture, Processing, or Visualize. 203 00:10:01,080 --> 00:10:05,420 So it can be that the tool is in different areas 204 00:10:05,420 --> 00:10:07,080 like Afterglow, 205 00:10:07,080 --> 00:10:11,220 which is sort of a collection of scripts 206 00:10:11,220 --> 00:10:13,420 which allow you to sort of take a TCP dump, 207 00:10:13,520 --> 00:10:14,700 make a CVS out of it. 208 00:10:14,840 --> 00:10:16,100 That's the processing part. 209 00:10:16,520 --> 00:10:17,640 And then you have a part 210 00:10:17,640 --> 00:10:20,140 which does the preprocessing 211 00:10:20,140 --> 00:10:24,300 for the visualization tools. 212 00:10:24,560 --> 00:10:26,660 So like generating dot files 213 00:10:27,460 --> 00:10:29,620 for graphics, for example. 214 00:10:32,580 --> 00:10:34,960 Okay, then we have additional services. 215 00:10:35,900 --> 00:10:38,060 MySQL is installed on the CD, 216 00:10:38,220 --> 00:10:40,460 so if you want to do analysis with database, 217 00:10:40,680 --> 00:10:41,240 you can do that. 218 00:10:41,520 --> 00:10:44,880 Although the space is limited to the memory 219 00:10:44,880 --> 00:10:48,160 because everything in DAVX runs within memory, 220 00:10:48,360 --> 00:10:52,600 meaning also the file system runs on memory. 221 00:10:52,820 --> 00:10:57,380 That means the disk is as large as your memory, actually. 222 00:10:58,960 --> 00:11:01,680 And we have Apache on it, 223 00:11:01,800 --> 00:11:04,620 so if you need a web server or something, 224 00:11:04,620 --> 00:11:05,380 it's there. 225 00:11:08,760 --> 00:11:11,000 Let's have a look at the tools which are there. 226 00:11:11,160 --> 00:11:14,500 This is just a small set of tools I put here 227 00:11:14,500 --> 00:11:16,460 so you get an impression what's on there. 228 00:11:16,860 --> 00:11:18,800 First, in the Capture category, 229 00:11:19,100 --> 00:11:21,560 there are things like network tools. 230 00:11:21,920 --> 00:11:23,820 Of course, Wireshark, 231 00:11:23,980 --> 00:11:26,120 most important one, don't miss it. 232 00:11:26,760 --> 00:11:29,080 Argus for NetFlows. 233 00:11:29,760 --> 00:11:32,940 Snort is installed with Bleeding Edge signatures. 234 00:11:34,200 --> 00:11:36,680 Then we have logging things, 235 00:11:36,860 --> 00:11:41,240 so you can actually direct syslog to DAVX, 236 00:11:41,440 --> 00:11:43,560 and these things get written to file 237 00:11:43,560 --> 00:11:45,700 and you can analyze it immediately. 238 00:11:47,680 --> 00:11:49,000 And the third thing, 239 00:11:49,260 --> 00:11:51,340 we have lots of tools which allow you 240 00:11:51,340 --> 00:11:52,900 to grab files from other systems, 241 00:11:53,040 --> 00:11:55,780 so like there is FTP, SCP, 242 00:11:56,100 --> 00:11:57,420 and all that kind of stuff there. 243 00:11:58,480 --> 00:12:00,060 Then we have the processing part. 244 00:12:00,360 --> 00:12:02,340 I already mentioned shell tools. 245 00:12:02,940 --> 00:12:03,740 So I'll skip that one. 246 00:12:04,300 --> 00:12:06,520 Then we have generic processing 247 00:12:07,680 --> 00:12:09,860 for Afterglow and LGL, for example. 248 00:12:10,960 --> 00:12:12,680 And things like data enrichment. 249 00:12:13,100 --> 00:12:17,020 Maybe you would like to have your IP address 250 00:12:17,020 --> 00:12:18,600 looked up into a country. 251 00:12:18,780 --> 00:12:20,360 Maybe that's interesting for your analysis. 252 00:12:20,860 --> 00:12:22,820 So there are tools included on the CD 253 00:12:22,820 --> 00:12:23,900 which allow you to do this. 254 00:12:24,460 --> 00:12:28,420 Or you can have who is queries and whatever. 255 00:12:29,280 --> 00:12:31,580 By the way, who finds the typo gets a T-shirt. 256 00:12:35,380 --> 00:12:36,100 . 257 00:12:46,320 --> 00:12:48,800 All right, good idea, Rafi. 258 00:12:50,520 --> 00:12:54,700 Okay, so let's move on to the visualization thing. 259 00:12:55,020 --> 00:12:58,700 There are tools which are particularly specific 260 00:12:58,700 --> 00:13:00,340 to network traffic analysis, 261 00:13:00,540 --> 00:13:01,520 like EtherApe, 262 00:13:01,520 --> 00:13:03,040 and iNetVis. 263 00:13:03,240 --> 00:13:06,620 And there are tools which are more of generic use, 264 00:13:06,840 --> 00:13:09,260 like Afterglow and our project. 265 00:13:09,520 --> 00:13:10,560 Our project, for example, 266 00:13:10,560 --> 00:13:12,220 is a statistic analysis suite. 267 00:13:12,700 --> 00:13:15,740 There you can analyze any data you like. 268 00:13:20,640 --> 00:13:23,580 Let's have a look at the PDF manual next. 269 00:13:24,020 --> 00:13:26,000 So it contains a quick start guide. 270 00:13:26,920 --> 00:13:29,640 Contains information about setting up the network, 271 00:13:29,720 --> 00:13:30,860 like wireless access. 272 00:13:30,860 --> 00:13:34,120 Then links to external resources. 273 00:13:35,360 --> 00:13:36,960 And probably the most interesting part 274 00:13:36,960 --> 00:13:38,260 is all the customizing things, 275 00:13:38,480 --> 00:13:41,020 like how to create custom ISO images, 276 00:13:41,400 --> 00:13:43,160 creating new modules, 277 00:13:43,420 --> 00:13:46,560 or installing things on USB stick or hard drive. 278 00:13:48,420 --> 00:13:51,220 The manual is organized the following. 279 00:13:52,620 --> 00:13:57,320 You can access it on a global level, 280 00:13:57,420 --> 00:13:58,560 like you say, 281 00:13:58,640 --> 00:13:59,740 I want to see the whole manual. 282 00:13:59,880 --> 00:14:00,780 Or you say, 283 00:14:00,840 --> 00:14:02,220 OK, I just want to have a look 284 00:14:02,220 --> 00:14:04,440 at a certain chapter in the manual. 285 00:14:06,540 --> 00:14:08,520 Or when you look at the tools, 286 00:14:08,600 --> 00:14:09,600 like in the example here, 287 00:14:09,660 --> 00:14:10,620 you see Cytoscape. 288 00:14:10,920 --> 00:14:14,460 When you open up this section, 289 00:14:14,700 --> 00:14:16,440 you see the tool on top of it. 290 00:14:16,860 --> 00:14:18,260 And then on the bottom, 291 00:14:18,280 --> 00:14:20,580 there's a thing called Davix example. 292 00:14:21,160 --> 00:14:23,120 This is sort of the quick start example 293 00:14:23,120 --> 00:14:27,000 to get things visualizing in Cytoscape, 294 00:14:27,040 --> 00:14:27,520 for example. 295 00:14:28,580 --> 00:14:29,800 And on the bottom, 296 00:14:29,800 --> 00:14:31,080 are the external resources 297 00:14:31,080 --> 00:14:34,100 to the tools documentation on the internet. 298 00:14:36,570 --> 00:14:36,940 OK. 299 00:14:37,450 --> 00:14:39,780 We also have a little disclaimer here. 300 00:14:40,160 --> 00:14:43,320 So the manual is not really an introduction 301 00:14:43,320 --> 00:14:46,100 into security visualization methodologies. 302 00:14:46,340 --> 00:14:49,960 So if you're interested in how the process 303 00:14:49,960 --> 00:14:51,800 really works of visualizing things, 304 00:14:52,160 --> 00:14:55,300 then we suggest you have a look at Rafi's book. 305 00:14:56,620 --> 00:14:59,420 In there, there are detailed use cases 306 00:14:59,800 --> 00:15:00,900 about how to do things 307 00:15:00,900 --> 00:15:03,140 and how to work with the tools really hands-on 308 00:15:03,140 --> 00:15:04,660 with script examples and whatever. 309 00:15:05,460 --> 00:15:07,700 So the documentation, the CD, 310 00:15:07,780 --> 00:15:09,840 is really a rough thing to get you going. 311 00:15:10,020 --> 00:15:13,000 It's not about methodologies and stuff like that. 312 00:15:16,940 --> 00:15:17,380 Good. 313 00:15:17,660 --> 00:15:19,080 Just a word on customization. 314 00:15:21,200 --> 00:15:22,620 So you've seen... 315 00:15:24,080 --> 00:15:25,680 So you can see how it works. 316 00:15:26,000 --> 00:15:27,360 So when you look on the DVD, 317 00:15:27,820 --> 00:15:29,140 they're like different... 318 00:15:30,500 --> 00:15:30,980 Folders. 319 00:15:32,300 --> 00:15:34,200 There's a folder, for example, 320 00:15:34,260 --> 00:15:35,680 called Slacks Modules. 321 00:15:35,920 --> 00:15:37,580 In there are all the modules located, 322 00:15:38,520 --> 00:15:40,020 which are on Davix. 323 00:15:40,340 --> 00:15:41,680 So if you create your own model, 324 00:15:41,820 --> 00:15:44,160 you can put that on the ISO in that directory, 325 00:15:44,340 --> 00:15:45,940 and it will automatically load. 326 00:15:47,040 --> 00:15:49,800 And if you would like to overwrite a single file, 327 00:15:49,900 --> 00:15:51,080 maybe there's some config file 328 00:15:51,080 --> 00:15:52,780 which doesn't suit your needs, 329 00:15:53,040 --> 00:15:54,800 you can do that as well. 330 00:15:55,040 --> 00:15:56,460 There's a thing called root copy, 331 00:15:56,740 --> 00:15:58,380 and in there you can add 332 00:15:58,380 --> 00:16:01,480 your files, your individual files 333 00:16:01,480 --> 00:16:02,980 you want to overwrite on the CD. 334 00:16:03,640 --> 00:16:04,680 So actually what... 335 00:16:04,680 --> 00:16:06,680 How Davix works, actually Slacks works, 336 00:16:06,860 --> 00:16:08,900 is it first loads all the modules, 337 00:16:09,080 --> 00:16:10,580 and then it copies all the things 338 00:16:10,580 --> 00:16:11,500 which are in root copy 339 00:16:11,500 --> 00:16:13,640 into the memory file system. 340 00:16:14,760 --> 00:16:17,520 So that's a really nice thing to customize. 341 00:16:21,360 --> 00:16:22,880 So that's it for me. 342 00:16:23,720 --> 00:16:25,700 Raf is there. 343 00:16:27,520 --> 00:16:28,600 Thank you very much. 344 00:16:29,540 --> 00:16:31,820 All right, so I'm quickly going to talk 345 00:16:31,820 --> 00:16:33,520 about very basics of visualizations. 346 00:16:33,540 --> 00:16:35,480 You guys get a little bit of a start 347 00:16:35,480 --> 00:16:37,600 on how to analyze the capture we gave you. 348 00:16:37,920 --> 00:16:39,380 What you see here in this slide 349 00:16:39,380 --> 00:16:41,380 is the information visualization process. 350 00:16:42,040 --> 00:16:43,240 It's fairly simple. 351 00:16:43,380 --> 00:16:45,120 If you start on the left-hand side, 352 00:16:45,760 --> 00:16:47,300 the first thing you want to do 353 00:16:47,300 --> 00:16:49,900 is you want to kind of define the problem you have, right? 354 00:16:49,960 --> 00:16:52,080 You have a certain data set, you have a certain use case, 355 00:16:52,140 --> 00:16:54,000 something you want to do with the data you have. 356 00:16:54,200 --> 00:16:55,560 It's always good to kind of... 357 00:16:55,700 --> 00:16:57,000 to really know what you're after. 358 00:16:57,240 --> 00:17:00,560 So if you have a PCAP or a TCP dump capture or something, 359 00:17:00,800 --> 00:17:02,460 you might want to figure out 360 00:17:02,460 --> 00:17:04,500 what are the communications in there, 361 00:17:04,580 --> 00:17:06,200 who is talking, what are the machines on there, 362 00:17:06,320 --> 00:17:07,240 what are the services running. 363 00:17:08,000 --> 00:17:10,180 Maybe you want to figure out whether there's an attack in there. 364 00:17:10,920 --> 00:17:13,260 The second thing is you might want to figure out 365 00:17:13,260 --> 00:17:15,640 whether you actually have the data for that use case. 366 00:17:15,900 --> 00:17:17,240 So if I want to find attacks, 367 00:17:17,780 --> 00:17:19,540 I probably need the packet captures 368 00:17:19,540 --> 00:17:20,980 or some IDS log files. 369 00:17:21,220 --> 00:17:23,260 If I only have a firewall log file, 370 00:17:23,360 --> 00:17:25,300 I'm very restricted in terms of what attacks 371 00:17:25,700 --> 00:17:25,780 I can find. 372 00:17:26,680 --> 00:17:30,060 The second thing is if you move along with the process, 373 00:17:30,560 --> 00:17:31,960 if you have all that data, 374 00:17:32,060 --> 00:17:34,580 you might have two gigs of packet captures 375 00:17:34,580 --> 00:17:35,940 from your border routers or something. 376 00:17:36,260 --> 00:17:38,100 Well, you probably want to start filtering already. 377 00:17:38,280 --> 00:17:40,160 You want to figure out what is really necessary 378 00:17:40,580 --> 00:17:41,860 to accomplish that use case. 379 00:17:42,220 --> 00:17:44,820 So if I'm looking at the border router 380 00:17:44,820 --> 00:17:47,940 and I want to see the attacks happening internally 381 00:17:47,940 --> 00:17:50,060 in my network, it's probably the wrong data source. 382 00:17:50,340 --> 00:17:53,260 If I want to look at things that happen 383 00:17:53,260 --> 00:17:55,180 from my internal people towards the outside, 384 00:17:55,180 --> 00:17:57,700 I might want to start filtering for just those sessions 385 00:17:57,700 --> 00:17:59,740 and not the things that are coming into the network. 386 00:18:00,000 --> 00:18:03,100 So that's a way of already reducing the amount of data 387 00:18:03,100 --> 00:18:04,020 that you have to look at. 388 00:18:04,820 --> 00:18:08,720 The next step is that you have to start normalizing the data 389 00:18:08,720 --> 00:18:10,760 or you have to extract the information 390 00:18:10,760 --> 00:18:12,980 from the data that you have. 391 00:18:13,760 --> 00:18:15,960 For example, if you have the packet captures 392 00:18:15,960 --> 00:18:17,260 and you want to look at communications, 393 00:18:17,920 --> 00:18:19,680 you want to extract the source IPs 394 00:18:19,680 --> 00:18:20,920 and the destination IPs 395 00:18:20,920 --> 00:18:22,880 or whatever endpoint information you want. 396 00:18:22,920 --> 00:18:24,440 Maybe you want to take the source MAC 397 00:18:24,440 --> 00:18:25,480 and the destination MAC. 398 00:18:26,100 --> 00:18:27,920 So you have to start pulling those out, 399 00:18:28,080 --> 00:18:30,340 and a lot of times what I do 400 00:18:30,340 --> 00:18:33,140 is I just write some Perl script or an awk command 401 00:18:33,140 --> 00:18:34,680 or something to pull those things out. 402 00:18:34,940 --> 00:18:38,480 A lot of times I go and get some parser from somewhere. 403 00:18:38,680 --> 00:18:40,340 There's a few of them on seqviz.org 404 00:18:40,340 --> 00:18:44,100 if you're interested, or in the Afterglow distribution, 405 00:18:44,420 --> 00:18:45,620 there's a few also in there. 406 00:18:46,740 --> 00:18:50,220 So I can very easily extract those individual components 407 00:18:50,220 --> 00:18:51,700 from the log files that I need. 408 00:18:52,160 --> 00:18:53,460 And here, a word of caution. 409 00:18:54,440 --> 00:18:55,560 If you're looking at TCP dump traffic, 410 00:18:55,700 --> 00:18:57,160 and you're probably going to run into this 411 00:18:57,160 --> 00:18:59,500 if you start analyzing the capture we gave you, 412 00:19:00,020 --> 00:19:01,800 be aware of the source-destination confusion, 413 00:19:02,400 --> 00:19:05,100 meaning that if you look at a TCP dump output 414 00:19:05,100 --> 00:19:08,000 and you start doing an awk, for example, 415 00:19:08,060 --> 00:19:09,100 so you get the third column, 416 00:19:09,320 --> 00:19:11,900 it's always the first IP address that you see in the output, 417 00:19:12,560 --> 00:19:15,040 you will end up with communications 418 00:19:15,040 --> 00:19:16,880 going from a client to a server 419 00:19:16,880 --> 00:19:18,220 and from the server going back. 420 00:19:18,420 --> 00:19:20,720 So you will think that those individual nodes 421 00:19:20,720 --> 00:19:23,040 talk to each other because what happens is, 422 00:19:23,040 --> 00:19:25,140 if you look at the TCP dump output, 423 00:19:25,720 --> 00:19:28,200 the soon packet, the session initiation, 424 00:19:28,660 --> 00:19:31,080 will come from the client to the server. 425 00:19:31,560 --> 00:19:33,200 Now the next line is going to say, 426 00:19:33,360 --> 00:19:35,980 now the server talked with the soon act to the client. 427 00:19:36,560 --> 00:19:38,040 Now in the capture it looks like 428 00:19:38,040 --> 00:19:39,360 both of them are source addresses, 429 00:19:39,540 --> 00:19:40,400 but it's really not. 430 00:19:40,580 --> 00:19:42,660 The second packet is inversed. 431 00:19:42,860 --> 00:19:44,840 So you need to make sure that you turn those around 432 00:19:44,840 --> 00:19:47,340 so you're not getting confused who is talking to whom. 433 00:19:48,120 --> 00:19:50,520 And for that reason, I usually use parsers 434 00:19:50,520 --> 00:19:52,280 that already have that logic built in. 435 00:19:52,280 --> 00:19:54,460 There's one in the afterglow distro 436 00:19:54,460 --> 00:19:56,220 that's called dcpdump2csv, 437 00:19:56,340 --> 00:19:58,600 which uses some heuristics to figure out 438 00:19:58,600 --> 00:20:00,380 who is really the server and who is the client 439 00:20:00,380 --> 00:20:01,900 to output the right thing. 440 00:20:03,220 --> 00:20:05,260 Then once you have the information extracted, 441 00:20:06,620 --> 00:20:08,060 you want to visualize it somewhere. 442 00:20:08,160 --> 00:20:09,500 So you want to do a visual transformation 443 00:20:09,500 --> 00:20:10,800 and generate the first graph. 444 00:20:11,340 --> 00:20:13,660 And there you want to think about 445 00:20:14,080 --> 00:20:15,760 how does the output have to look. 446 00:20:16,200 --> 00:20:17,820 And that can be all kinds of things. 447 00:20:17,940 --> 00:20:19,680 It can be that you want to generate a pie chart 448 00:20:19,680 --> 00:20:21,180 or a line chart or bar chart. 449 00:20:22,280 --> 00:20:23,020 You want to generate the link graph 450 00:20:23,020 --> 00:20:25,240 where you actually see nodes and edges connecting it 451 00:20:25,240 --> 00:20:26,480 to see who is communicating. 452 00:20:27,220 --> 00:20:29,300 And then once you generate the first graph, 453 00:20:29,640 --> 00:20:32,740 most of the time, it's going to be not your end product. 454 00:20:33,100 --> 00:20:34,120 You're not going to be satisfied. 455 00:20:34,440 --> 00:20:35,660 There are probably going to be too many nodes, 456 00:20:35,860 --> 00:20:36,480 too many bars. 457 00:20:37,080 --> 00:20:38,980 They might not be scaled the right way. 458 00:20:39,200 --> 00:20:40,440 You want to add some color. 459 00:20:40,880 --> 00:20:43,820 So you want to go through a view transformation 460 00:20:43,820 --> 00:20:45,980 and start adding properties to that graph 461 00:20:45,980 --> 00:20:46,840 or change it up. 462 00:20:47,120 --> 00:20:50,220 And then in the end, you might have certain examples 463 00:20:50,220 --> 00:20:51,720 and you want to start interpreting this thing. 464 00:20:52,280 --> 00:20:52,620 You want to figure out, 465 00:20:52,740 --> 00:20:54,500 is there really an attack in the traffic? 466 00:20:54,740 --> 00:20:56,320 Where did it came from? And so on. 467 00:20:56,460 --> 00:20:58,840 And that might, again, point you 468 00:20:58,840 --> 00:21:00,760 to maybe even restart the whole process 469 00:21:00,760 --> 00:21:03,160 and say, well, I have other things I need to know now. 470 00:21:04,020 --> 00:21:04,620 All right. 471 00:21:05,660 --> 00:21:07,280 Let's talk about data formats quickly 472 00:21:07,280 --> 00:21:09,580 so that you can actually start using 473 00:21:09,580 --> 00:21:11,340 these visualization tools on the CD. 474 00:21:12,780 --> 00:21:16,060 Unfortunately, there's not a standard data format 475 00:21:16,060 --> 00:21:18,040 that all of these visualization tools are using. 476 00:21:18,860 --> 00:21:21,060 Some of them use CSV files, 477 00:21:21,060 --> 00:21:22,320 so comma-separated values, 478 00:21:22,520 --> 00:21:25,240 where you have, like, IPS, comma, port, 479 00:21:25,380 --> 00:21:26,540 comma IP, comma something. 480 00:21:26,660 --> 00:21:28,360 So it's just comma-separated values. 481 00:21:28,680 --> 00:21:30,520 And you have to sometimes transform 482 00:21:30,520 --> 00:21:32,220 your data input into this format. 483 00:21:32,740 --> 00:21:35,280 And there is, again, in the Afterglow distribution, 484 00:21:35,660 --> 00:21:37,480 I have a lot of parsers that take, like, 485 00:21:37,560 --> 00:21:39,340 a snort alert log 486 00:21:39,860 --> 00:21:42,620 and convert it into a CSV file. 487 00:21:44,620 --> 00:21:47,660 Then one tool is using a TM3 format. 488 00:21:47,740 --> 00:21:49,360 This is the tree map tool 489 00:21:49,360 --> 00:21:51,180 from Ben Schneiderman, 490 00:21:52,980 --> 00:21:55,860 which the data format here 491 00:21:55,860 --> 00:21:59,040 is slightly different from a CSV or a TSV file 492 00:21:59,040 --> 00:22:02,700 by adding the name of the field 493 00:22:02,700 --> 00:22:05,800 or the data element and the data type. 494 00:22:06,220 --> 00:22:08,140 So you see the first column gives it a name. 495 00:22:08,240 --> 00:22:09,700 That's an arbitrary name you want to give it. 496 00:22:09,820 --> 00:22:11,220 And the second one is a data type. 497 00:22:11,660 --> 00:22:14,040 The tree map tool needs this 498 00:22:14,040 --> 00:22:16,680 because it treats integers different than strings, 499 00:22:16,900 --> 00:22:18,760 and it treats it different from floats 500 00:22:19,360 --> 00:22:19,980 or timestamps. 501 00:22:20,100 --> 00:22:22,340 So you need to give it the data type also. 502 00:22:22,680 --> 00:22:24,440 A lot of times I just start out 503 00:22:24,440 --> 00:22:25,920 with using either strings for everything 504 00:22:25,920 --> 00:22:27,840 or ports are going to be integers, 505 00:22:28,080 --> 00:22:29,280 but I'm not going to be very specific 506 00:22:29,280 --> 00:22:31,780 about how I categorize those. 507 00:22:32,160 --> 00:22:33,940 So usually strings and integers are enough. 508 00:22:35,180 --> 00:22:37,600 Then there is another interesting format. 509 00:22:37,680 --> 00:22:38,460 It's a dot format, 510 00:22:39,120 --> 00:22:41,940 which is basically a description of link graphs. 511 00:22:42,260 --> 00:22:43,600 So a link graph has nodes 512 00:22:43,600 --> 00:22:45,260 and edges connecting the nodes. 513 00:22:45,680 --> 00:22:47,620 The dot description you see here 514 00:22:47,620 --> 00:22:51,060 is basically defining all the individual nodes. 515 00:22:51,340 --> 00:22:52,920 It says there's a node A, there's a node B. 516 00:22:53,320 --> 00:22:55,200 And you can give it certain properties. 517 00:22:55,320 --> 00:22:57,360 You can say node A is color green 518 00:22:57,360 --> 00:23:00,940 or B has maybe a gradient on it 519 00:23:00,940 --> 00:23:02,280 or maybe another label or something. 520 00:23:02,600 --> 00:23:04,020 And then you define the edges. 521 00:23:04,060 --> 00:23:05,660 You say these are the nodes that are connected. 522 00:23:06,240 --> 00:23:09,980 And that's really what this complicated-looking format here is. 523 00:23:10,200 --> 00:23:11,440 And I will show you in a second 524 00:23:11,440 --> 00:23:12,740 how to generate them automatically. 525 00:23:13,540 --> 00:23:16,460 Then some other tools are using maybe GML. 526 00:23:16,460 --> 00:23:18,140 There's other GraphML. 527 00:23:18,360 --> 00:23:20,700 There's other data formats that some of these tools are using. 528 00:23:20,920 --> 00:23:23,900 And you might end up having to convert one to the other 529 00:23:23,900 --> 00:23:24,760 and to the next one. 530 00:23:24,900 --> 00:23:27,480 So I don't have automatic converters for everything, 531 00:23:27,680 --> 00:23:30,340 but most of the things are fairly simple to do. 532 00:23:32,560 --> 00:23:34,980 Let's look at an actual example here. 533 00:23:35,940 --> 00:23:37,840 So if you're using Afterglow 534 00:23:37,840 --> 00:23:39,080 and you want to generate things 535 00:23:39,080 --> 00:23:40,920 like the one on the right-hand side there. 536 00:23:41,020 --> 00:23:43,760 It's very small, but I think you get the idea 537 00:23:43,760 --> 00:23:44,580 with nodes and edges. 538 00:23:44,580 --> 00:23:47,720 What you do first, you have some data source, 539 00:23:48,000 --> 00:23:49,580 something that generates the data. 540 00:23:49,660 --> 00:23:50,360 Then you parse it, 541 00:23:51,140 --> 00:23:54,480 basically extracting the fields that you want from the data. 542 00:23:54,900 --> 00:23:57,620 And in this case, you generate a CSV file. 543 00:23:58,060 --> 00:24:00,500 Now, if you have your data, for example, in a database, 544 00:24:00,800 --> 00:24:02,260 you can just run a MySQL command 545 00:24:02,260 --> 00:24:03,980 and extract the columns that you want 546 00:24:03,980 --> 00:24:05,220 and generate a CSV output. 547 00:24:05,660 --> 00:24:08,080 So at least you have the input to start with. 548 00:24:08,280 --> 00:24:10,080 Or if you take a TCP dump, 549 00:24:10,300 --> 00:24:12,740 then use something that pulls out the fields you want. 550 00:24:13,060 --> 00:24:14,560 And then you're ready to use Afterglow 551 00:24:14,580 --> 00:24:18,360 and now Afterglow takes those descriptions here. 552 00:24:18,500 --> 00:24:20,300 I have an example here where there's a user name 553 00:24:20,300 --> 00:24:22,940 and then an activity this user executed. 554 00:24:23,100 --> 00:24:25,180 So there's this guy, aatherui, 555 00:24:25,780 --> 00:24:26,700 executed a ping. 556 00:24:26,920 --> 00:24:29,920 Or aana accessed some patents. 557 00:24:30,240 --> 00:24:32,020 So you just have these two column inputs, 558 00:24:32,280 --> 00:24:35,080 and now you can translate them with Afterglow 559 00:24:35,080 --> 00:24:36,040 into a graph description. 560 00:24:36,500 --> 00:24:38,240 And this on the right-hand side here 561 00:24:38,240 --> 00:24:39,720 is this dot description. 562 00:24:40,160 --> 00:24:42,580 So you don't have to write the complicated structure 563 00:24:43,200 --> 00:24:44,500 of the dot file yourself. 564 00:24:44,580 --> 00:24:47,140 And figure out how to actually do it correctly. 565 00:24:47,400 --> 00:24:50,320 But Afterglow is transforming that automatically. 566 00:24:51,200 --> 00:24:52,760 And while doing the transformation, 567 00:24:53,180 --> 00:24:54,920 you can also give it a configuration file 568 00:24:55,780 --> 00:24:58,340 that adds certain properties to the nodes and edges. 569 00:24:58,500 --> 00:25:01,780 So you can say, if the IP address is in this subnet, 570 00:25:01,960 --> 00:25:02,820 then make it green. 571 00:25:03,020 --> 00:25:04,800 If it's in that subnet, make it orange. 572 00:25:05,160 --> 00:25:08,600 If the port number is above 1024, make it dark blue. 573 00:25:08,720 --> 00:25:10,800 If it's below 1024, make it light blue. 574 00:25:10,960 --> 00:25:13,280 So once the graph is generated, 575 00:25:13,280 --> 00:25:16,260 you see right away certain properties in the data. 576 00:25:16,980 --> 00:25:19,280 And then if you run this through GraphVis, 577 00:25:19,820 --> 00:25:21,520 it will generate a graph that looks like this, 578 00:25:21,640 --> 00:25:23,260 where you have the four users 579 00:25:23,260 --> 00:25:25,460 and the four activities associated with them. 580 00:25:25,580 --> 00:25:27,000 It's a fairly boring example here, 581 00:25:27,100 --> 00:25:28,820 but I think it gets the point across. 582 00:25:31,000 --> 00:25:34,320 So let's take a very quick example analysis 583 00:25:34,320 --> 00:25:37,700 of an actual data set that I went through. 584 00:25:40,420 --> 00:25:42,700 In my book, I cover exactly this example. 585 00:25:42,700 --> 00:25:44,700 And when I introduced the section, 586 00:25:44,940 --> 00:25:47,440 I was saying, well, I don't really like to analyze worms 587 00:25:47,440 --> 00:25:50,000 because it's so easy to find worms in your network. 588 00:25:50,160 --> 00:25:52,120 There's so much traffic they generate, it's really boring. 589 00:25:52,580 --> 00:25:54,740 So I tried to mix it up a little bit and said, 590 00:25:54,800 --> 00:25:57,200 well, let's at least look at an interesting data set. 591 00:25:57,720 --> 00:26:02,980 And I had the opportunity to work with a cell phone carrier 592 00:26:03,780 --> 00:26:05,640 where they were interested in finding worms 593 00:26:05,640 --> 00:26:06,500 in the cell phone network. 594 00:26:07,340 --> 00:26:09,400 And what they have are these call detail records 595 00:26:09,400 --> 00:26:11,360 that you see here, and they look really ugly. 596 00:26:11,360 --> 00:26:14,580 And a lot of these entries, I don't even know what they mean. 597 00:26:14,800 --> 00:26:16,200 There's, like, numbers in here. 598 00:26:16,280 --> 00:26:18,500 I have no clue what they are, but I don't need to. 599 00:26:18,540 --> 00:26:21,920 I just want to know who is sending multimedia messages, 600 00:26:21,980 --> 00:26:24,620 pictures, maybe even files, around. 601 00:26:24,800 --> 00:26:28,200 So I might send someone or you an image, an MMS message, 602 00:26:28,360 --> 00:26:31,980 and that generates one of these MMS CDRs. 603 00:26:32,180 --> 00:26:34,180 And I'm just interested in the phone numbers, 604 00:26:34,220 --> 00:26:37,400 and this is the fifth and the sixth column there, 605 00:26:37,460 --> 00:26:38,220 the ones that are bold. 606 00:26:38,380 --> 00:26:40,520 That are the phone numbers that we're communicating 607 00:26:40,520 --> 00:26:41,260 in this instance. 608 00:26:41,360 --> 00:26:44,480 So what I do now is I just look at the CDR records, 609 00:26:44,700 --> 00:26:46,960 and I use awk to extract the fifth 610 00:26:46,960 --> 00:26:49,260 and the sixth element of that data set. 611 00:26:49,600 --> 00:26:50,420 That's all I need. 612 00:26:50,580 --> 00:26:51,420 I need the phone numbers. 613 00:26:52,300 --> 00:26:54,860 What I want to do then is I want to actually generate 614 00:26:54,860 --> 00:26:57,760 a link graph that shows me the caller, 615 00:26:57,980 --> 00:27:00,280 then the message, and then the callee. 616 00:27:00,360 --> 00:27:02,260 So who was sending the message to whom. 617 00:27:02,780 --> 00:27:05,740 And if I do this, you get something like this. 618 00:27:05,900 --> 00:27:09,060 And this is fairly horrible in terms of the quality you get here. 619 00:27:09,520 --> 00:27:10,600 Let me try this. 620 00:27:14,400 --> 00:27:16,580 Never try something you haven't tried before. 621 00:27:18,360 --> 00:27:19,640 The Mac is going to come back. 622 00:27:19,820 --> 00:27:19,940 Here we go. 623 00:27:21,420 --> 00:27:22,620 I'm not sure if this helps. 624 00:27:23,840 --> 00:27:24,520 That does. 625 00:27:25,980 --> 00:27:26,600 Here we go. 626 00:27:27,160 --> 00:27:29,800 So what you see, the quality is really horrible in this picture, 627 00:27:29,860 --> 00:27:31,360 but I think you can see what had happened. 628 00:27:31,600 --> 00:27:32,900 You see all these communications. 629 00:27:33,280 --> 00:27:36,540 So the yellow nodes were sending a message to the white nodes. 630 00:27:36,780 --> 00:27:38,000 And that's what you expect. 631 00:27:38,280 --> 00:27:40,280 I might send an image to someone, 632 00:27:40,280 --> 00:27:42,000 and they might send another one to someone else. 633 00:27:42,160 --> 00:27:44,660 So I'm just one of these yellow ones. 634 00:27:44,880 --> 00:27:46,560 There's some people that communicate a little more 635 00:27:46,560 --> 00:27:47,500 and some a little less. 636 00:27:49,160 --> 00:27:52,140 Now, if you look down here, 637 00:27:52,680 --> 00:27:55,260 there is one of these kind of stars showing up 638 00:27:55,260 --> 00:27:56,560 or these snowflakes or something. 639 00:27:57,040 --> 00:27:59,080 Now, first I was like, oh, this is interesting. 640 00:27:59,220 --> 00:28:00,340 Someone sends a lot of messages. 641 00:28:00,600 --> 00:28:02,620 And this was in a fairly short amount of time. 642 00:28:02,860 --> 00:28:04,540 So like, let's see who this is. 643 00:28:04,820 --> 00:28:06,760 And it turned out those are service numbers. 644 00:28:07,060 --> 00:28:10,260 You can send a text message to some service, 645 00:28:10,260 --> 00:28:12,380 a service number requesting like a background image 646 00:28:12,380 --> 00:28:13,640 or a ringtone or something. 647 00:28:13,920 --> 00:28:15,980 And that's absolutely legitimate traffic. 648 00:28:16,520 --> 00:28:18,240 So we started excluding all those 649 00:28:18,240 --> 00:28:21,500 because we just kind of generated a list 650 00:28:21,500 --> 00:28:22,600 of known service numbers. 651 00:28:23,340 --> 00:28:30,600 And what happened then is I got a graph like this. 652 00:28:30,880 --> 00:28:34,580 I'm going to go back into presentation mode again. 653 00:28:35,400 --> 00:28:38,120 I still ended up with some of the service numbers here, 654 00:28:38,860 --> 00:28:39,420 probably. 655 00:28:40,260 --> 00:28:41,120 You probably want to look what they are. 656 00:28:41,620 --> 00:28:44,540 But I also found this pattern on the top right here 657 00:28:44,540 --> 00:28:47,740 where you find long chains of messages. 658 00:28:48,140 --> 00:28:50,760 So one message traveling from one person to another. 659 00:28:50,960 --> 00:28:52,580 That person sends the same message. 660 00:28:52,800 --> 00:28:55,180 And I know it's the same one because I look at the size 661 00:28:55,180 --> 00:28:56,420 and the content type of them. 662 00:28:56,940 --> 00:28:59,560 So these go to multiple people and then they fan out again 663 00:28:59,560 --> 00:29:02,380 and it generates this huge kind of chain in here. 664 00:29:02,880 --> 00:29:05,820 It is really, really hard to algorithmically find this. 665 00:29:06,000 --> 00:29:06,540 You can do it. 666 00:29:06,620 --> 00:29:09,460 You can generate spanning trees and calculate them 667 00:29:09,460 --> 00:29:12,520 and figure out whether there are any of these long chains in there. 668 00:29:12,720 --> 00:29:15,520 But in the end, you probably have to go back. 669 00:29:15,580 --> 00:29:18,220 If you find one of those chains, figure out what it was exactly 670 00:29:18,220 --> 00:29:20,900 and then regenerate it again and exclude and include. 671 00:29:21,100 --> 00:29:22,760 This way is very, very quick. 672 00:29:23,060 --> 00:29:25,620 It took me a very, very short amount of time 673 00:29:25,620 --> 00:29:26,980 to figure out what's going on in here. 674 00:29:28,100 --> 00:29:28,680 All right. 675 00:29:30,140 --> 00:29:31,760 So let's get you started here. 676 00:29:36,120 --> 00:29:38,800 Okay, now it's time for analysis. 677 00:29:38,800 --> 00:29:40,560 So your turn, actually. 678 00:29:41,600 --> 00:29:45,640 So are there any people here who do not got the CD? 679 00:29:46,280 --> 00:29:49,840 Does everybody got the ISO image now? 680 00:29:52,280 --> 00:29:54,940 So please hand on the CDs to those people 681 00:29:54,940 --> 00:29:56,820 who haven't got the image yet. 682 00:29:57,620 --> 00:29:59,220 And to people that don't have a laptop, 683 00:29:59,460 --> 00:30:01,300 if you just have the CD, maybe that helps too. 684 00:30:01,420 --> 00:30:02,600 I don't know. Take it home. 685 00:30:07,260 --> 00:30:07,760 Okay. 686 00:30:08,800 --> 00:30:14,960 So now the PCAP file is located in slash root slash davix. 687 00:30:15,220 --> 00:30:17,900 Oh, that's the name of the file. 688 00:30:17,980 --> 00:30:20,320 So the file is in the slash root directory 689 00:30:20,320 --> 00:30:22,980 called davix-workshop-captures.pcap. 690 00:30:25,180 --> 00:30:30,200 If there are guys who do not have the DEF CON image, 691 00:30:30,480 --> 00:30:35,340 then probably they should copy the ISO image from somebody else. 692 00:30:35,400 --> 00:30:37,620 It's the easiest thing to do. 693 00:30:39,900 --> 00:30:40,580 All right. 694 00:30:40,700 --> 00:30:46,320 Then I guess Rafi's turn. 695 00:30:47,000 --> 00:30:49,200 Yeah, so let's just hammer away. 696 00:30:49,300 --> 00:30:52,260 If you have questions, either yell, 697 00:30:52,500 --> 00:30:54,880 or it's probably going to end up in chaos, 698 00:30:55,000 --> 00:30:57,360 but you already have a question. 699 00:30:57,720 --> 00:30:58,160 . 700 00:31:01,600 --> 00:31:02,260 You could. 701 00:31:02,380 --> 00:31:03,780 You can download the ISO from the Internet, 702 00:31:03,920 --> 00:31:05,200 but it's quicker if you have the CD. 703 00:31:06,140 --> 00:31:06,580 . 704 00:31:08,340 --> 00:31:08,780 . 705 00:31:08,780 --> 00:31:10,660 So there are two versions, 706 00:31:11,320 --> 00:31:15,780 the official release and the DEF CON 16 ISO. 707 00:31:16,280 --> 00:31:20,160 So they're both downloadable from our website. 708 00:31:20,320 --> 00:31:22,040 That's davix.secviz.org. 709 00:31:22,540 --> 00:31:26,060 And you can also find links in the DEF CON forum. 710 00:31:26,880 --> 00:31:27,300 . 711 00:31:28,600 --> 00:31:29,360 Pardon? 712 00:31:29,680 --> 00:31:32,460 So only the DEF CON dash... 713 00:31:32,460 --> 00:31:37,220 the davix-defcon16 image has the capture in it. 714 00:31:37,220 --> 00:31:39,040 The regular davix image doesn't. 715 00:31:39,160 --> 00:31:40,900 We made an extra image for this. 716 00:31:41,820 --> 00:31:43,520 Okay, this gentleman in the first row. 717 00:31:44,000 --> 00:31:44,480 . 718 00:31:54,340 --> 00:31:57,760 So the question is whether we have any performance numbers 719 00:31:57,760 --> 00:32:00,840 of how long it takes to generate any of these visualizations. 720 00:32:01,080 --> 00:32:01,940 No, I don't. 721 00:32:01,980 --> 00:32:03,620 It depends on a lot of things. 722 00:32:03,800 --> 00:32:06,460 It depends on the machine you're running this on, right? 723 00:32:06,460 --> 00:32:09,400 It depends on how... 724 00:32:09,400 --> 00:32:11,780 what the entropy is in your data, for example. 725 00:32:11,900 --> 00:32:15,100 So, for example, if you're looking at a PCAP file 726 00:32:15,100 --> 00:32:18,680 and there's 100,000 different source addresses, 727 00:32:19,600 --> 00:32:22,420 that's much different than if there are only 100 different ones. 728 00:32:22,660 --> 00:32:24,280 Then it depends on the tool you're using. 729 00:32:24,400 --> 00:32:26,480 If you're using Afterglow, I can guarantee you 730 00:32:26,480 --> 00:32:28,800 it's probably slower than if you use anything else 731 00:32:28,800 --> 00:32:31,960 because it's just a dumb Perl script that keeps a lot of state. 732 00:32:32,200 --> 00:32:33,560 The bigger the file it gets, 733 00:32:33,660 --> 00:32:36,000 there's probably exponential growth in the runtime. 734 00:32:36,000 --> 00:32:39,160 I try to optimize things with caches and so on, 735 00:32:39,240 --> 00:32:41,500 but it's not a commercial product. 736 00:32:41,640 --> 00:32:43,100 I don't have time to optimize it more. 737 00:32:43,240 --> 00:32:44,060 Feel free to do it. 738 00:32:45,260 --> 00:32:47,640 But the other tools, I don't have any control over them either. 739 00:32:47,780 --> 00:32:48,920 So every tool is going to vary, 740 00:32:49,080 --> 00:32:51,920 and it varies on the data types you have and all that. 741 00:32:52,180 --> 00:32:54,100 So, sorry, I have no idea. 742 00:33:01,000 --> 00:33:03,040 So maybe if you're kind of stuck and you're like, 743 00:33:03,140 --> 00:33:04,180 well, where do I start? 744 00:33:04,380 --> 00:33:05,540 There's a couple hints here. 745 00:33:06,000 --> 00:33:07,300 The first thing is probably 746 00:33:07,860 --> 00:33:10,440 you run some kind of a TCP dump on your data, right? 747 00:33:11,220 --> 00:33:12,300 It's a PCAP file. 748 00:33:12,620 --> 00:33:14,280 I mean, if you're really lead, 749 00:33:14,380 --> 00:33:15,720 you probably can use the hex editor 750 00:33:15,720 --> 00:33:18,220 and go in there and do some magic. 751 00:33:18,320 --> 00:33:20,060 I can't, so I'm using TCP dump 752 00:33:20,060 --> 00:33:21,900 to do the protocol interpretation for me 753 00:33:21,900 --> 00:33:23,520 and get an ASCII output, right? 754 00:33:23,600 --> 00:33:24,640 So you can run that over it, 755 00:33:24,680 --> 00:33:26,720 and you get some ASCII output of the communications. 756 00:33:28,040 --> 00:33:29,620 You could also run Snored on it 757 00:33:31,280 --> 00:33:34,200 and have the rules trigger on it, for example, 758 00:33:34,200 --> 00:33:35,180 visualize that somehow. 759 00:33:36,740 --> 00:33:37,620 You can... 760 00:33:37,620 --> 00:33:39,880 The TCP dump to CSV Perl file, 761 00:33:40,100 --> 00:33:40,820 you can just run it. 762 00:33:40,900 --> 00:33:41,340 It's in the path. 763 00:33:41,960 --> 00:33:45,500 You pipe the TCP dump output into it, 764 00:33:45,540 --> 00:33:47,520 and it will actually do the parsing. 765 00:33:47,840 --> 00:33:50,860 If you look at the file quickly on the top, 766 00:33:51,160 --> 00:33:53,500 it will show you how to run the command. 767 00:33:53,760 --> 00:33:56,280 You need to run TCP dump with certain parameters. 768 00:33:56,440 --> 00:33:59,580 I think there's like four Ts and minus E, 769 00:33:59,840 --> 00:34:01,420 and then L something. 770 00:34:01,640 --> 00:34:02,200 I don't remember. 771 00:34:02,400 --> 00:34:04,600 But look in there to get the correct command 772 00:34:04,600 --> 00:34:05,980 so it actually parses the output. 773 00:34:08,120 --> 00:34:11,180 Then if you run afterglow.pl minus H, 774 00:34:11,320 --> 00:34:12,680 you get the help from afterglow. 775 00:34:13,160 --> 00:34:14,500 It's fairly simple to run it. 776 00:34:14,520 --> 00:34:17,040 You don't really need any command line parameters 777 00:34:17,040 --> 00:34:18,880 if you don't want to do anything special. 778 00:34:19,460 --> 00:34:20,280 There's also... 779 00:34:20,280 --> 00:34:23,040 There's a few Perl tools on there that I hacked together. 780 00:34:23,220 --> 00:34:25,840 They're horrible quality, but they get the job done. 781 00:34:26,000 --> 00:34:27,660 So if you want to generate a bar chart, for example, 782 00:34:27,880 --> 00:34:30,640 if you just have basically a one-column output, 783 00:34:30,900 --> 00:34:32,520 you just pipe that into bar.pl, 784 00:34:32,780 --> 00:34:35,140 and it generates a PNG file 785 00:34:35,140 --> 00:34:37,140 of a bar chart of the top 10, 786 00:34:37,260 --> 00:34:38,260 or I think you can even control 787 00:34:39,100 --> 00:34:40,580 whether it shows all of them or not. 788 00:34:43,000 --> 00:34:44,520 Are there any other questions? 789 00:34:47,560 --> 00:34:48,880 Okay, let's get started. 790 00:34:53,660 --> 00:34:55,040 So for those without a laptop, 791 00:34:55,140 --> 00:34:57,480 this is going to get really boring right now. 792 00:34:58,480 --> 00:35:01,260 I will try to probably just hook up Devics here, 793 00:35:01,440 --> 00:35:02,660 and those who want to watch, 794 00:35:02,720 --> 00:35:04,300 I'm going to just generate some graphs 795 00:35:04,300 --> 00:35:06,340 and if you want to yell and say, 796 00:35:06,440 --> 00:35:08,060 hey, do this, please go ahead. 797 00:35:09,620 --> 00:35:11,520 Everyone else who finds something, 798 00:35:11,740 --> 00:35:13,520 just come up and show it. 799 00:35:14,520 --> 00:35:18,060 I see Greg is already frantically working on some stuff. 800 00:35:18,140 --> 00:35:19,580 I hope it's actually related to this. 801 00:35:21,440 --> 00:35:23,340 So you have to compete with Greg, 802 00:35:23,580 --> 00:35:24,360 who is, by the way, 803 00:35:24,360 --> 00:35:26,840 the author of security visualization 804 00:35:26,840 --> 00:35:28,240 of the book by No Starch Press, 805 00:35:28,440 --> 00:35:31,620 the black one with the green image on the cover. 806 00:35:33,720 --> 00:35:35,100 He plucked me, I plucked him. 807 00:35:35,820 --> 00:35:38,840 I will get an image on here officially also. 808 00:36:12,300 --> 00:36:12,780 Okay. 809 00:36:23,600 --> 00:36:25,520 So if there are any people 810 00:36:25,520 --> 00:36:27,280 who do not have the Devics image yet, 811 00:36:30,060 --> 00:36:31,600 please get it from someone 812 00:36:31,600 --> 00:36:32,320 who has the CD. 813 00:36:36,180 --> 00:36:39,000 Has somebody got the image on the USB stick? 814 00:36:40,280 --> 00:36:43,560 There's some CD ROM drive less user. 815 00:36:55,460 --> 00:36:58,560 So I was, when we were preparing for, 816 00:36:59,380 --> 00:37:01,280 just half an hour ago before the talk, 817 00:37:02,040 --> 00:37:03,880 I was trying to look at the capture quickly 818 00:37:03,880 --> 00:37:05,180 and find some things to look at, 819 00:37:05,340 --> 00:37:08,160 and I wanted to know how to run one of the tools, 820 00:37:08,320 --> 00:37:10,840 and Jan caught me looking in the book 821 00:37:10,840 --> 00:37:13,000 to figure out actually how to run one of my own tools. 822 00:37:13,140 --> 00:37:14,660 I can't even remember how to run them. 823 00:37:14,760 --> 00:37:15,900 I had to look in the book. 824 00:37:16,140 --> 00:37:17,760 So this might happen again that I might have to use, 825 00:37:17,880 --> 00:37:19,840 might have to use the book to do something here. 826 00:37:24,900 --> 00:37:26,880 Oh, and Jan is playing tricks on me. 827 00:37:27,280 --> 00:37:28,060 I like this. 828 00:37:28,200 --> 00:37:29,580 This is the Swiss keyboard layout. 829 00:37:30,280 --> 00:37:31,580 Oh, this is going to be great. 830 00:37:31,600 --> 00:37:32,420 Can I help you? 831 00:37:34,380 --> 00:37:36,420 So if you want to change language, 832 00:37:36,500 --> 00:37:38,700 you can do it on the bottom part here. 833 00:37:39,120 --> 00:37:40,240 I like the challenge. 834 00:37:40,360 --> 00:37:40,780 Let's leave it. 835 00:37:41,140 --> 00:37:41,580 Really? 836 00:37:41,760 --> 00:37:43,220 Shall I put it to French or something? 837 00:37:43,420 --> 00:37:43,440 No. 838 00:37:44,420 --> 00:37:46,420 Well, I might actually remember how that looks. 839 00:37:46,680 --> 00:37:48,840 I used to type on a Swiss keyboard all the time 840 00:37:48,840 --> 00:37:50,280 back in the day. 841 00:37:51,980 --> 00:37:53,040 What was I going to do here? 842 00:38:05,420 --> 00:38:05,860 Interesting. 843 00:38:09,080 --> 00:38:10,300 There's this key on here. 844 00:38:10,400 --> 00:38:11,700 It's called Alt-G-R. 845 00:38:12,180 --> 00:38:13,440 I wonder who came up with that. 846 00:38:15,480 --> 00:38:20,060 Okay, so no such file directory. 847 00:38:24,440 --> 00:38:25,160 Here it is. 848 00:38:28,800 --> 00:38:30,240 This is what I've said before. 849 00:38:30,240 --> 00:38:31,180 I'm going to try to, 850 00:38:31,200 --> 00:38:34,860 I was trying to find the command line parameters I need 851 00:38:34,860 --> 00:38:38,560 for tcpdump to csv. 852 00:38:44,880 --> 00:38:46,740 I love not using my laptop. 853 00:38:46,820 --> 00:38:48,520 It's going to be much more efficient here. 854 00:39:00,240 --> 00:39:00,520 All right. 855 00:39:00,560 --> 00:39:01,020 This is lame. 856 00:39:01,100 --> 00:39:01,380 Sorry. 857 00:39:04,460 --> 00:39:05,260 Is it shift? 858 00:39:05,440 --> 00:39:05,620 Okay. 859 00:39:06,700 --> 00:39:07,380 All right. 860 00:39:07,440 --> 00:39:09,100 So I'm going to read the capture file. 861 00:39:10,800 --> 00:39:11,660 What is it called? 862 00:39:12,420 --> 00:39:12,820 Devics. 863 00:39:14,400 --> 00:39:17,540 And for those who want to see how that looks, 864 00:39:20,580 --> 00:39:21,400 let's get this bigger. 865 00:39:27,800 --> 00:39:30,220 So everyone's seen pcapout, but before in tcpdump, 866 00:39:30,220 --> 00:39:33,740 all right, so now we've got to extract something. 867 00:39:34,080 --> 00:39:37,060 The easiest way probably, and you know what? 868 00:39:39,780 --> 00:39:40,980 Minus OVI. 869 00:39:45,860 --> 00:39:47,760 tcpdump to csv. 870 00:39:48,960 --> 00:39:50,640 What kind of shell is this? 871 00:39:53,360 --> 00:39:53,960 . 872 00:39:54,640 --> 00:39:55,240 . 873 00:39:56,840 --> 00:39:57,180 . 874 00:40:00,920 --> 00:40:01,880 This is weird. 875 00:40:03,440 --> 00:40:03,940 All right. 876 00:40:04,020 --> 00:40:04,960 This is going to be really funny. 877 00:40:08,000 --> 00:40:08,340 . 878 00:40:10,680 --> 00:40:11,440 How do you do that? 879 00:40:11,460 --> 00:40:11,800 Is that wrong? 880 00:40:13,480 --> 00:40:13,820 . 881 00:40:15,620 --> 00:40:15,960 Oh. 882 00:40:16,280 --> 00:40:17,220 I don't want to do that. 883 00:40:17,320 --> 00:40:18,060 I want to have it big. 884 00:40:18,900 --> 00:40:19,240 . 885 00:40:21,840 --> 00:40:23,020 I know it's not installed. 886 00:40:23,780 --> 00:40:24,120 . 887 00:40:27,840 --> 00:40:28,300 . 888 00:40:28,300 --> 00:40:28,480 . 889 00:40:31,040 --> 00:40:32,220 Let's just use that one. 890 00:40:32,560 --> 00:40:34,940 If I can now actually copy and paste. 891 00:40:35,800 --> 00:40:36,180 . 892 00:40:38,760 --> 00:40:39,220 Wow. 893 00:40:41,720 --> 00:40:43,320 Then we need to do this here again. 894 00:40:45,100 --> 00:40:45,560 . 895 00:40:49,720 --> 00:40:50,380 All right. 896 00:40:50,440 --> 00:40:51,040 Here we go. 897 00:40:51,120 --> 00:40:51,960 We're going to get somewhere. 898 00:40:53,760 --> 00:40:54,220 . 899 00:40:54,220 --> 00:40:59,000 Now, the cool thing here is that I just say I want to see the SIP and the DIP. 900 00:40:59,160 --> 00:41:00,720 So the source IP and destination IP. 901 00:41:01,340 --> 00:41:05,900 And just to verify what we get here, we do a head of minus 10. 902 00:41:06,300 --> 00:41:09,480 So I have CSV output at source and destinations. 903 00:41:10,700 --> 00:41:13,000 This is kind of boring so far. 904 00:41:13,140 --> 00:41:17,620 But then I want to see a bar chart from this. 905 00:41:17,800 --> 00:41:20,060 And I need to give it an output file. 906 00:41:23,820 --> 00:41:27,000 And then, oh, wow, this capture is too big. 907 00:41:28,000 --> 00:41:35,680 So what I usually do is I just cap it somewhere here to, let's say, 2000. 908 00:41:37,240 --> 00:41:38,300 You've got to start somewhere. 909 00:41:40,280 --> 00:41:45,340 And if we use this GQ view on here, for example, to look at the file. 910 00:41:45,400 --> 00:41:46,200 So this is the first. 911 00:41:48,120 --> 00:41:49,420 Oops, that's not it. 912 00:41:49,560 --> 00:41:50,020 That's not it. 913 00:41:50,060 --> 00:41:50,660 It's this one. 914 00:41:51,940 --> 00:41:52,300 Boo. 915 00:41:52,980 --> 00:41:54,180 This is nice, too, right? 916 00:41:54,460 --> 00:41:55,660 So now at least we see. 917 00:41:57,760 --> 00:41:58,540 No, we don't see. 918 00:41:58,660 --> 00:41:59,740 This is not what I wanted. 919 00:42:01,680 --> 00:42:02,040 Okay. 920 00:42:02,120 --> 00:42:03,820 Who can tell me what I did right now? 921 00:42:06,280 --> 00:42:06,640 No. 922 00:42:06,740 --> 00:42:07,900 What is this output here? 923 00:42:11,200 --> 00:42:12,700 It's a bar chart. 924 00:42:12,780 --> 00:42:12,960 Great. 925 00:42:14,520 --> 00:42:15,920 It's the count by source IP. 926 00:42:15,980 --> 00:42:17,580 That's really what I wanted to do, but it's not. 927 00:42:22,900 --> 00:42:23,940 I can't hear you. 928 00:42:24,020 --> 00:42:25,880 You raised your hand, but you're not seeing it. 929 00:42:26,160 --> 00:42:26,600 Oh. 930 00:42:28,800 --> 00:42:29,640 Frequency of connections. 931 00:42:29,920 --> 00:42:30,360 I like it. 932 00:42:30,440 --> 00:42:31,200 What size are you? 933 00:42:32,080 --> 00:42:32,660 What size? 934 00:42:32,920 --> 00:42:33,120 Double XL. 935 00:42:33,440 --> 00:42:33,980 Double XL. 936 00:42:46,280 --> 00:42:47,160 All right. 937 00:42:48,220 --> 00:42:49,460 So maybe that's... 938 00:42:50,060 --> 00:42:53,740 Maybe I'll do this because I didn't really sleep that much the last few days, so... 939 00:42:55,580 --> 00:42:56,680 I think I was doing... 940 00:42:56,680 --> 00:42:59,040 I thought I was doing okay today, but apparently I'm not. 941 00:42:59,820 --> 00:43:02,900 So this one here is actually for the sources, right? 942 00:43:03,060 --> 00:43:12,340 So I have four sources in there, and remember that tcpdump to csv parser actually takes 943 00:43:12,340 --> 00:43:13,780 care of the source-destination confusion. 944 00:43:14,880 --> 00:43:16,360 So it will take... 945 00:43:16,360 --> 00:43:17,740 These are all the clients. 946 00:43:18,000 --> 00:43:20,040 It's not necessarily the IPs that are in there. 947 00:43:20,040 --> 00:43:22,060 They're the ones that show up in the first column of the tcpdump output. 948 00:43:22,900 --> 00:43:26,060 So you could do the same with the destinations and maybe with the services. 949 00:43:26,320 --> 00:43:27,200 Let's do that quickly. 950 00:43:27,680 --> 00:43:32,160 I usually like to see what services are running on the network. 951 00:43:34,260 --> 00:43:35,980 So that's called sport. 952 00:43:36,240 --> 00:43:40,440 By the way, who can tell me how I know these or how I figure out what these field names 953 00:43:40,440 --> 00:43:41,580 are that I'm typing in there? 954 00:43:41,940 --> 00:43:45,220 Like sip, dip, sport, deport, timestamp, whatever. 955 00:43:45,580 --> 00:43:46,680 Where do I find them? 956 00:43:47,360 --> 00:43:47,840 . 957 00:43:51,360 --> 00:43:52,440 Someone here was saying something. 958 00:43:52,720 --> 00:43:54,580 They're in the beginning of the Perl script. 959 00:43:54,840 --> 00:43:56,320 They're in the beginning of the Perl script. 960 00:43:56,580 --> 00:43:57,360 Eric, what kind of... 961 00:43:57,360 --> 00:43:57,900 Do you want a shirt? 962 00:43:58,360 --> 00:43:58,900 What size? 963 00:43:59,400 --> 00:43:59,680 Excel. 964 00:43:59,820 --> 00:44:00,200 Excel? 965 00:44:03,980 --> 00:44:06,400 Got to wear this around Microsoft, though. 966 00:44:09,000 --> 00:44:14,160 Yeah, so if you want to know them, go and look at the source of tcpdump to csv in there. 967 00:44:14,280 --> 00:44:14,940 You will see them. 968 00:44:15,360 --> 00:44:18,320 So if you look at the destination ports now... 969 00:44:19,480 --> 00:44:20,020 Let me see. 970 00:44:20,020 --> 00:44:20,780 I need to refresh this. 971 00:44:20,960 --> 00:44:21,260 Here we go. 972 00:44:21,700 --> 00:44:24,660 So you see there's mostly HTTP traffic. 973 00:44:24,920 --> 00:44:26,760 There's some proxied stuff here. 974 00:44:27,180 --> 00:44:29,000 And then I have two interesting ones. 975 00:44:29,120 --> 00:44:34,200 So this is probably already a finding that someone could have uncovered here that there's 976 00:44:34,200 --> 00:44:36,000 two interesting port numbers going on in here. 977 00:44:36,180 --> 00:44:40,920 By the way, I'm going to give a book away for the person who's going to tell me what 978 00:44:40,920 --> 00:44:42,080 this capture file is. 979 00:44:42,280 --> 00:44:43,260 Where does it come from? 980 00:44:43,900 --> 00:44:47,660 If someone can nail it on exactly where and which one? 981 00:44:47,900 --> 00:44:48,040 . 982 00:44:49,700 --> 00:44:51,000 Who's that capture flag first? 983 00:44:52,100 --> 00:44:52,880 Is that Trey? 984 00:44:53,040 --> 00:44:53,400 All right. 985 00:44:53,600 --> 00:44:54,740 Did you already get a book? 986 00:44:56,260 --> 00:44:57,380 Did you already get a book? 987 00:44:57,600 --> 00:44:57,860 No? 988 00:44:58,040 --> 00:44:58,800 I'll get you one. 989 00:44:59,580 --> 00:45:03,540 And the person that can tell me what year that was is going to get the second book. 990 00:45:04,220 --> 00:45:04,620 . 991 00:45:06,420 --> 00:45:06,880 What's that? 992 00:45:07,320 --> 00:45:07,720 . 993 00:45:11,020 --> 00:45:11,420 8888? 994 00:45:11,680 --> 00:45:12,680 It might be. 995 00:45:12,720 --> 00:45:13,220 Not necessarily. 996 00:45:13,460 --> 00:45:16,160 If you can look at the capture, you can find out, right? 997 00:45:16,220 --> 00:45:17,600 Just by the port, you might not know. 998 00:45:17,720 --> 00:45:18,020 . 999 00:45:18,020 --> 00:45:19,740 Actually, I'm pretty sure it wasn't. 1000 00:45:19,760 --> 00:45:20,360 The year? 1001 00:45:21,080 --> 00:45:21,600 . 1002 00:45:22,640 --> 00:45:23,160 . 1003 00:45:23,160 --> 00:45:23,680 . 1004 00:45:23,680 --> 00:45:24,240 . 1005 00:45:24,240 --> 00:45:24,360 . 1006 00:45:24,360 --> 00:45:24,420 . 1007 00:45:24,420 --> 00:45:24,680 . 1008 00:45:24,680 --> 00:45:24,780 . 1009 00:45:24,780 --> 00:45:24,920 . 1010 00:45:24,920 --> 00:45:25,680 . 1011 00:45:25,680 --> 00:45:26,360 . 1012 00:45:26,360 --> 00:45:27,020 . 1013 00:45:27,020 --> 00:45:27,360 . 1014 00:45:27,360 --> 00:45:27,460 . 1015 00:45:27,460 --> 00:45:28,180 . 1016 00:45:28,180 --> 00:45:28,260 . 1017 00:45:28,260 --> 00:45:28,440 . 1018 00:45:28,440 --> 00:45:28,820 . 1019 00:45:28,820 --> 00:45:28,900 . 1020 00:45:30,160 --> 00:45:31,320 . 1021 00:45:31,320 --> 00:45:32,020 . 1022 00:45:32,020 --> 00:45:32,420 . 1023 00:45:35,620 --> 00:45:36,200 . 1024 00:45:39,680 --> 00:45:40,840 . 1025 00:45:40,840 --> 00:45:40,880 . 1026 00:45:42,900 --> 00:45:44,060 . 1027 00:45:44,060 --> 00:45:44,160 . 1028 00:45:44,160 --> 00:45:44,320 . 1029 00:45:44,320 --> 00:45:44,780 . 1030 00:45:44,780 --> 00:45:44,820 . 1031 00:45:44,820 --> 00:45:46,020 . 1032 00:45:49,380 --> 00:45:50,540 . 1033 00:45:58,820 --> 00:46:02,820 months, then I will believe you, but I believe there was another service running, which was 1034 00:46:02,820 --> 00:46:07,820 actually something really weird. But you guys should investigate that. 1035 00:46:11,240 --> 00:46:15,720 Just by looking at the port numbers, you might not always, a lot of times you don't know 1036 00:46:15,720 --> 00:46:21,820 really what the traffic is, right? You can see a port 888 traffic, but you can run anything 1037 00:46:21,820 --> 00:46:27,480 over that. And if you actually look at this traffic, let's just do that. Let's see whether 1038 00:46:27,480 --> 00:46:33,400 this is actually Tomcat traffic. So what I'm doing is I'm using a capital A here, which 1039 00:46:34,280 --> 00:46:38,660 does, I will show you what that does in a second here, if I find the pipe again here. 1040 00:46:39,620 --> 00:46:48,660 It gets you ASCII output. Now, what do I do, or why is this not useful right now? Anyone? 1041 00:46:50,740 --> 00:46:55,780 BSD filter? Sure. But why is the ASCII output not really 1042 00:46:55,780 --> 00:46:56,860 useful right now? 1043 00:47:00,760 --> 00:47:06,500 I like that. So I'm not capturing the full packet right now. By default, the capture 1044 00:47:06,500 --> 00:47:14,800 length or the output it gets is, what is it, 68 bytes? Something like that. What is your 1045 00:47:14,800 --> 00:47:27,460 size? What size do you want? Medium? All right. So what you have to do is do a 1046 00:47:27,480 --> 00:47:37,000 minus S, and I always confuse which one it is. That was not it. It's just a small one. 1047 00:47:43,880 --> 00:47:50,420 So here now, you actually see some of the traffic. You see here, application, octet 1048 00:47:50,420 --> 00:47:57,460 stream. It looks really weird to me. You could probably try to extract just the traffic. 1049 00:47:57,480 --> 00:48:06,020 It's an ASCII part. System.runtime. This looks Java-like or something. Or .net. So 1050 00:48:06,020 --> 00:48:18,060 that wouldn't be a Tomcat, I guess. There's some get URLs in here. User agents, curl. 1051 00:48:18,880 --> 00:48:26,740 There was a wiki running there, apparently. Open wiki. So I need to take the other suggestion 1052 00:48:27,620 --> 00:48:34,420 over there. I need to filter just 8-to-8 traffic. Most of it looks kind of funky, 1053 00:48:35,700 --> 00:48:46,140 lambda core database, connect to log in. So did any of my play capture the Flac 2004. 1054 00:48:49,100 --> 00:48:57,280 So you guys don't know what this is. I can't barely remember what it was. But maybe someone 1055 00:48:57,480 --> 00:49:00,640 find some by looking at the captures and it's going to tell me later what it was about. 1056 00:49:00,960 --> 00:49:06,040 I'll leave that open for now. This is kind of interesting. You can go through here and 1057 00:49:06,040 --> 00:49:11,340 figure out what these things are and you see some text in here from the responses probably. 1058 00:49:12,080 --> 00:49:17,620 But if we want to continue visualizing, that's really why we're here. Another thing that 1059 00:49:17,620 --> 00:49:23,700 I usually do as one of the first things when I look at a capture, I look at an afterglow 1060 00:49:23,700 --> 00:49:34,920 graph and you can probably tell I have done this before. Not on Jan's keyboard, obviously. 1061 00:49:54,280 --> 00:50:00,640 That looks sort of boring. What I did is I just sourced destination communications. 1062 00:50:01,160 --> 00:50:07,600 I see who is talking to whom. No caller, nothing. I see that there is this one machine 1063 00:50:07,600 --> 00:50:14,180 here, 4160, that goes to all these different IP addresses. Then there's some other thing 1064 00:50:14,180 --> 00:50:19,860 going on up here. There's a little more traffic. These two machines here obviously for some 1065 00:50:19,860 --> 00:50:20,920 reason are talking to each other. 1066 00:50:23,700 --> 00:50:28,060 Let's add some color here, I guess. That might be interesting. How I go about that 1067 00:50:28,060 --> 00:50:39,980 is let me find sample.properties. Jan, that's another tool to add. Locate. That might be 1068 00:50:39,980 --> 00:50:48,940 nice. If you guys have suggestions on what to do on Davix and things that you're missing, 1069 00:50:49,920 --> 00:50:51,480 Jan loves getting suggestions. 1070 00:50:52,740 --> 00:50:53,260 Okay. 1071 00:50:53,260 --> 00:51:08,040 It doesn't mean he's going to implement them. User, local, share. Let me do this. Share 1072 00:51:08,040 --> 00:51:10,660 afterglow sample.properties. 1073 00:51:11,940 --> 00:51:14,100 Does this read IIS logs? 1074 00:51:14,680 --> 00:51:16,700 Does it read IIS logs? 1075 00:51:17,220 --> 00:51:18,320 Is it actually? 1076 00:51:19,060 --> 00:51:21,500 It actually... 1077 00:51:21,500 --> 00:51:23,240 Yeah, the commerce log. 1078 00:51:23,240 --> 00:51:28,640 It's actually a little separated. What you can do is you just... If you have a file 1079 00:51:28,640 --> 00:51:29,200 that... 1080 00:51:29,200 --> 00:51:29,900 They're space separated. 1081 00:51:30,220 --> 00:51:35,940 They're space separated. Okay. What you can do is you can use an awk command to extract 1082 00:51:35,940 --> 00:51:44,200 the columns that you want, and then format it as a comma in the output to do that. Here 1083 00:51:44,200 --> 00:51:52,860 is a sample property file from afterglow where it basically colors the individual nodes. I 1084 00:51:52,860 --> 00:51:53,220 can... 1085 00:51:53,220 --> 00:51:58,240 I can have individual assignments for the source node, the event node, and the destination 1086 00:51:58,240 --> 00:52:02,980 node. Right now what I did, the graph before only had two nodes, the source and the destination 1087 00:52:02,980 --> 00:52:08,520 node. In that case, the event node here wouldn't matter, but a lot of times you have 1088 00:52:08,520 --> 00:52:12,880 three column output, so source, destination, destination port, for example. Then you can 1089 00:52:12,880 --> 00:52:19,280 address all these three types of node individually. What I'm doing here is I say, well, it's yellow 1090 00:52:19,280 --> 00:52:20,720 if the first field... 1091 00:52:20,720 --> 00:52:23,200 There's an array called field. 1092 00:52:24,020 --> 00:52:28,620 That's implicitly there in the property file that you can address. If you say $field 0, 1093 00:52:29,600 --> 00:52:34,620 you can put a regular expression here. This is really just Perl code here. I say, if it's 1094 00:52:34,620 --> 00:52:40,260 192.168 anything, then I want to color it yellow. If it's in the 10 subnet, it's green 1095 00:52:40,260 --> 00:52:45,080 yellow, light yellow 4. If it's the 172.16 space, and red otherwise. 1096 00:52:47,240 --> 00:52:47,700 Yeah? 1097 00:52:47,820 --> 00:52:50,480 I think a good feature would be just to support like that. 1098 00:52:50,760 --> 00:52:51,220 Yeah. 1099 00:52:52,260 --> 00:52:53,180 Yeah. Yeah. Yeah. Yeah. Yeah. Yeah. Yeah. Yeah. Yeah. Yeah. Yeah. Yeah. Yeah. Yeah. Yeah. 1100 00:52:53,200 --> 00:52:55,180 So, we don't have to the . 1101 00:52:56,320 --> 00:53:02,620 Yeah. The suggestion would be that support different data inputs. With the 1102 00:53:02,620 --> 00:53:07,120 parsers that are on there you can actually quickly look at them probably that might make 1103 00:53:07,120 --> 00:53:16,300 sense here. I guess they're probably user local share bin. Oh, user local bin. 1104 00:53:21,900 --> 00:53:22,460 Yes. 1105 00:53:22,780 --> 00:53:22,940 Yes. 1106 00:53:22,940 --> 00:53:23,180 Yes. 1107 00:53:23,200 --> 00:53:29,960 Let me see, star, two, C, three, hello to the Agneta. 1108 00:53:36,200 --> 00:53:38,000 There, that's not, that's not the audio. 1109 00:53:39,000 --> 00:53:40,680 We're speaking encrypted here. 1110 00:53:40,820 --> 00:53:42,640 Some people can decode, but some can't, 1111 00:53:42,640 --> 00:53:43,640 but that's on purpose. 1112 00:53:44,760 --> 00:53:45,280 So. 1113 00:53:45,380 --> 00:53:46,840 It's roughly 13. 1114 00:53:48,740 --> 00:53:50,420 So these are the parsers that are in there. 1115 00:53:50,420 --> 00:53:53,160 So I have a parser for Argus, IPFW, PF, 1116 00:53:53,500 --> 00:53:56,080 snort, alert logs, and tcpdump. 1117 00:53:57,540 --> 00:54:00,180 Actually, this looks like there's a couple missing. 1118 00:54:00,340 --> 00:54:01,300 I might have other ones, but. 1119 00:54:01,420 --> 00:54:01,740 I'll show you. 1120 00:54:02,300 --> 00:54:04,460 Is anybody writing parsers that 1121 00:54:05,860 --> 00:54:07,860 go to some sort of centralized structure 1122 00:54:07,860 --> 00:54:10,620 security event format, like IDMVF, 1123 00:54:10,700 --> 00:54:13,100 or whatever that open event format 1124 00:54:13,100 --> 00:54:14,480 is on my marketplace these days? 1125 00:54:16,500 --> 00:54:18,920 Or do you regard that even as a useful? 1126 00:54:22,800 --> 00:54:25,240 So gentleman is asking whether there is a way, 1127 00:54:25,360 --> 00:54:29,320 whether we support a common event format 1128 00:54:29,320 --> 00:54:30,480 or something with all these tools. 1129 00:54:30,920 --> 00:54:33,960 So keep in mind, these tools are not controlled by us, 1130 00:54:34,000 --> 00:54:36,100 we just bundle them on the CD, that's it, right? 1131 00:54:36,220 --> 00:54:39,600 So we don't really control what kind of input they take, 1132 00:54:40,400 --> 00:54:43,560 and different tools have slightly different requirements 1133 00:54:43,560 --> 00:54:45,420 in terms of how data has to look, 1134 00:54:45,560 --> 00:54:48,440 so a node, or graph, for example, 1135 00:54:48,440 --> 00:54:49,500 needs to have nodes and edges 1136 00:54:49,500 --> 00:54:52,740 that are connected and need to have properties and so on, 1137 00:54:52,820 --> 00:54:54,500 whereas a bar chart doesn't need that. 1138 00:54:55,880 --> 00:54:58,600 We could probably have parsers 1139 00:54:58,600 --> 00:55:01,140 that go from generic formats to a common format, 1140 00:55:01,400 --> 00:55:03,340 and then you just have parsers for the common format. 1141 00:55:04,620 --> 00:55:08,260 Well, have you guys seen those MSRC guys 1142 00:55:08,260 --> 00:55:10,420 running around with the guns with the marshmallows? 1143 00:55:11,460 --> 00:55:12,540 Have you seen them? No? 1144 00:55:12,660 --> 00:55:14,480 They had this, like, fight going on yesterday 1145 00:55:14,480 --> 00:55:15,260 with marshmallow guns. 1146 00:55:15,440 --> 00:55:17,300 I would actually shoot you if I had one 1147 00:55:17,300 --> 00:55:19,140 because you mentioned IDMEF. 1148 00:55:19,860 --> 00:55:22,320 For those who don't know what IDMEF is, 1149 00:55:22,400 --> 00:55:25,520 it's an intrusion detection message exchange format, 1150 00:55:25,680 --> 00:55:27,520 which is a standard for intrusion detection systems 1151 00:55:27,520 --> 00:55:30,580 to log in a common way. 1152 00:55:30,860 --> 00:55:32,860 I think there's an extension for Snort to do that. 1153 00:55:34,220 --> 00:55:37,620 I have very strong feelings about that format, as you can tell. 1154 00:55:38,700 --> 00:55:41,720 We're actually working on another standard right now 1155 00:55:41,720 --> 00:55:43,720 called CEE, Common Event Expression. 1156 00:55:43,920 --> 00:55:46,380 It's one of those horrible acronyms from MITRE. 1157 00:55:46,960 --> 00:55:49,040 They have everything from CVs. 1158 00:55:49,040 --> 00:55:49,480 It's CW. 1159 00:55:49,500 --> 00:55:49,940 It's CCE. 1160 00:55:50,220 --> 00:55:50,620 It's CEE. 1161 00:55:51,740 --> 00:55:52,640 It's CME. 1162 00:55:53,440 --> 00:55:54,880 I'm not making them up. 1163 00:55:55,300 --> 00:55:55,780 CPE. 1164 00:55:57,780 --> 00:55:58,440 It's horrible. 1165 00:55:58,740 --> 00:56:00,340 But CEE, Common Event Expression. 1166 00:56:00,460 --> 00:56:03,580 We hope that we're going to address the shortcomings of IDMEF 1167 00:56:03,580 --> 00:56:04,720 and come up with a decent standard. 1168 00:56:05,220 --> 00:56:10,080 Anyways, no, we don't have parsers from all the formats 1169 00:56:10,080 --> 00:56:11,720 to a common format. 1170 00:56:12,880 --> 00:56:15,680 This is something that commercial tools are trying to do. 1171 00:56:17,600 --> 00:56:19,020 If you buy it, 1172 00:56:19,020 --> 00:56:21,320 a SIM, for example, they have all kinds of parsers. 1173 00:56:21,540 --> 00:56:25,700 And they spend a lot of time and money maintaining those things 1174 00:56:25,700 --> 00:56:27,800 because the sources change, right? 1175 00:56:27,940 --> 00:56:32,020 Like, I don't know, Snort might change their log format. 1176 00:56:32,060 --> 00:56:34,060 At some point, someone decides that the syslog output 1177 00:56:34,060 --> 00:56:35,340 needs to have another field in there. 1178 00:56:35,500 --> 00:56:37,500 Well, you have to change your parser to support it. 1179 00:56:38,740 --> 00:56:41,080 Every update, and Pixis, for example, 1180 00:56:41,220 --> 00:56:43,880 they, every message needs a different parser. 1181 00:56:43,960 --> 00:56:45,160 Every message looks different. 1182 00:56:45,380 --> 00:56:47,240 So you have to have these, like, 1183 00:56:47,960 --> 00:56:51,260 slews of regular expressions or some way of parsing that thing. 1184 00:56:51,420 --> 00:56:55,260 That's really not what I have time and I'm not really in the mood to do that. 1185 00:56:56,040 --> 00:57:01,580 I'm encouraging you guys to submit the parsers you have on Secqviz. 1186 00:57:01,920 --> 00:57:04,800 There's a section of parsers where you can submit some parsers. 1187 00:57:04,920 --> 00:57:08,480 And I think Michael Rash is unfortunately not here anymore, 1188 00:57:08,660 --> 00:57:11,560 but he submitted some for IP Tables, I believe. 1189 00:57:12,560 --> 00:57:15,140 So there is a place where you can collect them. 1190 00:57:15,360 --> 00:57:16,620 Put your things up there. 1191 00:57:16,760 --> 00:57:17,220 I put mine up there. 1192 00:57:17,220 --> 00:57:18,660 You can have them. 1193 00:57:19,760 --> 00:57:22,400 If you contribute some, maybe someone else is going to benefit. 1194 00:57:24,000 --> 00:57:25,720 You can also use Splunk. 1195 00:57:25,920 --> 00:57:28,720 This is going to be, hopefully, my only plug for Splunk today. 1196 00:57:29,420 --> 00:57:33,540 But Splunk is free if you use it up to 500 megabytes a day. 1197 00:57:33,660 --> 00:57:35,040 So you can go download it, use it. 1198 00:57:37,120 --> 00:57:39,540 And there are field extractions. 1199 00:57:39,600 --> 00:57:41,060 They're sort of like parsers, but not really, 1200 00:57:41,220 --> 00:57:43,920 that will help you extract the individual fields that you need. 1201 00:57:44,060 --> 00:57:45,100 So there's a few there. 1202 00:57:47,280 --> 00:57:51,840 So these are some of the ones that are on the CD. 1203 00:57:52,640 --> 00:57:54,520 Actually, the tcpdump, snort alert. 1204 00:57:55,380 --> 00:57:56,700 It's the ones I mentioned, I think. 1205 00:57:56,800 --> 00:57:57,240 That's the ones. 1206 00:57:58,860 --> 00:58:00,240 Yeah, if you have more, we'll bundle them. 1207 00:58:00,440 --> 00:58:01,480 I mean, we're happy to do that. 1208 00:58:04,200 --> 00:58:05,800 Now I lost track where I was before. 1209 00:58:12,820 --> 00:58:13,660 Oh, I did, sorry. 1210 00:58:14,560 --> 00:58:15,240 I did, good. 1211 00:58:16,700 --> 00:58:17,200 All right. 1212 00:58:17,200 --> 00:58:17,940 Where was I? 1213 00:58:18,120 --> 00:58:19,760 I was at, oh, here. 1214 00:58:22,680 --> 00:58:25,200 So what I was going to do here, 1215 00:58:25,300 --> 00:58:29,100 I actually know a little bit of something about this capture. 1216 00:58:30,360 --> 00:58:36,860 I wish I had, let me just do this. 1217 00:58:39,640 --> 00:58:41,440 You guys feel free interrupting me again 1218 00:58:41,440 --> 00:58:44,140 if you have anything you want to say or share or ask. 1219 00:58:49,720 --> 00:58:51,000 Can you repeat that, please? 1220 00:58:51,240 --> 00:58:54,160 The capture from an OpenBSD or? 1221 00:58:54,660 --> 00:58:55,060 OpenVMS. 1222 00:58:55,680 --> 00:58:56,080 OpenVMS. 1223 00:58:57,320 --> 00:58:57,720 No. 1224 00:59:01,560 --> 00:59:02,440 What was it? 1225 00:59:02,780 --> 00:59:03,180 . 1226 00:59:06,980 --> 00:59:09,240 No, I don't think the captures were from OpenVMS. 1227 00:59:11,300 --> 00:59:12,420 No, I'm pretty sure it wasn't. 1228 00:59:17,880 --> 00:59:20,560 So if you look at this file again that I generated earlier, 1229 00:59:22,400 --> 00:59:24,300 there was some structure in here. 1230 00:59:28,640 --> 00:59:31,340 So maybe to tell you a little more about this capture file, 1231 00:59:33,200 --> 00:59:37,300 the capture was, maybe I have to explain a little bit 1232 00:59:37,300 --> 00:59:38,420 of how capture flag works. 1233 00:59:38,500 --> 00:59:40,340 Who doesn't know how capture flag works here? 1234 00:59:40,940 --> 00:59:44,000 Hands up for those who don't know how it works. 1235 00:59:46,640 --> 00:59:47,540 One person. 1236 00:59:47,760 --> 00:59:48,360 Thank you. 1237 00:59:48,580 --> 00:59:50,980 There's probably 90% here who don't. 1238 00:59:51,040 --> 00:59:51,480 I'm assuming. 1239 00:59:51,860 --> 00:59:53,580 Who wants to explain how it works? 1240 00:59:55,460 --> 00:59:56,020 Anyone? 1241 00:59:58,320 --> 00:59:58,880 Wow. 1242 00:59:59,420 --> 01:00:01,380 It's great to have an interactive crowd. 1243 01:00:06,600 --> 01:00:07,340 All right. 1244 01:00:07,340 --> 01:00:09,920 Who dares to explain how it works and comes up here 1245 01:00:09,920 --> 01:00:11,240 and can have another book? 1246 01:00:13,840 --> 01:00:15,580 The person who wants to just come up. 1247 01:00:15,920 --> 01:00:16,740 Come up here. 1248 01:00:16,820 --> 01:00:18,040 You fight whoever is first. 1249 01:00:18,420 --> 01:00:19,840 He has to put his shoes on first. 1250 01:00:23,120 --> 01:00:25,120 That's the advantage of being in the first row. 1251 01:00:25,540 --> 01:00:25,680 All right. 1252 01:00:28,060 --> 01:00:28,500 Okay. 1253 01:00:28,600 --> 01:00:29,720 So there's a bunch of teams. 1254 01:00:31,840 --> 01:00:34,200 Each team is supposed to compromise the other team's 1255 01:00:34,200 --> 01:00:37,220 servers while maintaining their own server. 1256 01:00:37,340 --> 01:00:41,000 And each server has services on it that have a flag. 1257 01:00:41,160 --> 01:00:43,900 So it could be a website where, you know, 1258 01:00:43,980 --> 01:00:45,880 their picture of their flag is on the web page. 1259 01:00:47,440 --> 01:00:49,920 The ones I've watched before, they had, like, 1260 01:00:50,600 --> 01:00:54,020 they had a mud, I think it was a pearl mud. 1261 01:00:54,620 --> 01:00:58,520 So you'd connect to the mud and one of the rooms in the mud 1262 01:00:58,520 --> 01:01:00,760 would have the flag and you could view it. 1263 01:01:00,860 --> 01:01:03,160 And if you could hack the mud, then you could change the flag. 1264 01:01:06,400 --> 01:01:07,320 And, you know, 1265 01:01:07,320 --> 01:01:09,400 all these services would be running on the service, like, 1266 01:01:10,480 --> 01:01:11,880 well, it depends on which year it is. 1267 01:01:11,980 --> 01:01:17,280 But all these servers, services running and, you know, 1268 01:01:17,340 --> 01:01:21,500 if you can break into Telnet or SSH or whatever, you know, 1269 01:01:21,500 --> 01:01:24,320 crack their password, then you change one of the flags. 1270 01:01:24,700 --> 01:01:27,320 So the longer you own the flags, the more points you get. 1271 01:01:28,440 --> 01:01:31,240 And, of course, you lose points if your flags are captured. 1272 01:01:33,880 --> 01:01:37,020 And there's a knock and they monitor everything and keep 1273 01:01:37,320 --> 01:01:37,860 track of what's going on. 1274 01:01:37,860 --> 01:01:43,400 And they record all the TCP dumps so that people can look at them later. 1275 01:01:44,080 --> 01:01:46,100 What do you know about the network set up? 1276 01:01:46,600 --> 01:01:47,140 Anything? 1277 01:01:48,780 --> 01:01:49,580 Which year? 1278 01:01:50,420 --> 01:01:50,960 2004. 1279 01:01:52,740 --> 01:01:55,420 The idea is always fairly similar. 1280 01:01:55,700 --> 01:01:57,000 Do you know anything about it? 1281 01:01:57,320 --> 01:02:05,280 I know there's each team gets a Class C. 1282 01:02:05,720 --> 01:02:06,820 I've got 192, whatever. 1283 01:02:08,200 --> 01:02:09,040 It's actually class. 1284 01:02:09,260 --> 01:02:09,580 Yeah. 1285 01:02:10,780 --> 01:02:11,400 It's a C. 1286 01:02:11,420 --> 01:02:11,880 Yes, you're right. 1287 01:02:11,920 --> 01:02:12,060 Sorry. 1288 01:02:12,300 --> 01:02:15,020 And there's a router in the, like, a Cisco router in the middle, 1289 01:02:15,100 --> 01:02:18,840 I believe, a bunch of 100 megabit or gig switches. 1290 01:02:21,700 --> 01:02:22,100 Yeah. 1291 01:02:24,880 --> 01:02:25,840 So, all right. 1292 01:02:26,140 --> 01:02:27,760 Thank you for being very brave. 1293 01:02:27,860 --> 01:02:28,820 I'm going to explain some more. 1294 01:02:29,820 --> 01:02:30,620 You're welcome. 1295 01:02:30,840 --> 01:02:32,240 I'm going to explain a little more. 1296 01:02:37,820 --> 01:02:40,880 So, as the gentleman said, there's eight teams. 1297 01:02:40,920 --> 01:02:41,960 Each has a C class. 1298 01:02:42,900 --> 01:02:46,380 And it's kind of important to see or you can see that in the capture here. 1299 01:02:49,080 --> 01:02:53,460 192, 168, four is one team. 1300 01:02:54,700 --> 01:02:55,820 Seven is another one. 1301 01:02:55,880 --> 01:02:56,580 Five is another one. 1302 01:02:56,660 --> 01:03:00,620 So you see here, what team was this capture taken from? 1303 01:03:01,940 --> 01:03:02,920 I don't need the name. 1304 01:03:02,920 --> 01:03:05,580 But come on. 1305 01:03:06,060 --> 01:03:07,540 Can you even read the labels here? 1306 01:03:08,460 --> 01:03:08,960 Four. 1307 01:03:09,020 --> 01:03:09,520 Four. 1308 01:03:09,760 --> 01:03:09,920 Right. 1309 01:03:13,680 --> 01:03:20,980 So, the gateway of the team is, I have to be careful. 1310 01:03:22,260 --> 01:03:24,980 So, each team can capture their own data. 1311 01:03:25,140 --> 01:03:30,560 And whoever runs the game, like Ken Shoto or whoever, they could capture everything. 1312 01:03:30,680 --> 01:03:32,900 But obviously, the teams can't. 1313 01:03:32,920 --> 01:03:35,360 So, this capture has taken a team four that I was playing on. 1314 01:03:35,840 --> 01:03:37,880 We had two server, dot one and dot two. 1315 01:03:38,500 --> 01:03:48,320 That was, I think, the year that they screwed us all over and gave us Windows machines to protect and to keep up a new hack. 1316 01:03:48,920 --> 01:03:51,160 I was playing on the Unix Linux team. 1317 01:03:51,940 --> 01:03:57,820 And we brought all the Unix operating systems, all the latest patches, everything with us. 1318 01:03:57,980 --> 01:04:00,100 We were ready for any kind of Unix flavor. 1319 01:04:00,360 --> 01:04:01,420 They gave us Windows. 1320 01:04:01,420 --> 01:04:07,940 We went to the room and started downloading Windows patches over some weird link because we didn't trust the networks here. 1321 01:04:08,120 --> 01:04:09,780 It took us forever to get the patches. 1322 01:04:10,260 --> 01:04:18,100 And we actually ended up getting one of my friends from my previous employer and said, hey, you know Windows. 1323 01:04:18,200 --> 01:04:20,440 You can come and administer that for us, please. 1324 01:04:20,680 --> 01:04:21,840 We were all these Unix geeks. 1325 01:04:21,920 --> 01:04:23,040 We had no clue what we were doing. 1326 01:04:23,820 --> 01:04:25,900 So, obviously, we didn't do too well in that game. 1327 01:04:28,020 --> 01:04:29,480 So, if you look a little more here. 1328 01:04:29,780 --> 01:04:30,880 So, these are two servers. 1329 01:04:30,880 --> 01:04:36,800 And there seems to be this one machine, 4.160, that connects out to the other teams. 1330 01:04:36,960 --> 01:04:40,560 So, this is one of our attackers generally trafficking to other teams. 1331 01:04:40,600 --> 01:04:42,340 So, he's attacking those machines. 1332 01:04:42,720 --> 01:04:51,040 Now, the interesting thing is all the traffic coming into the network comes from one IP address. 1333 01:04:51,560 --> 01:04:56,400 The teams don't see who is actually connecting to the network. 1334 01:04:56,640 --> 01:04:59,760 They don't know what team is attacking them right now. 1335 01:05:00,200 --> 01:05:04,300 And even worse, you don't know what the score bot is coming along or not. 1336 01:05:05,040 --> 01:05:09,480 So, Ken Shoto or whoever organized the team, they run a score bot to figure out whether your services are up. 1337 01:05:09,980 --> 01:05:15,880 So, you don't know what is attack traffic versus actually legitimate score bot traffic. 1338 01:05:16,260 --> 01:05:19,600 Because otherwise, you could just run a firewall and block that stuff. 1339 01:05:23,540 --> 01:05:29,160 You can actually, what we did was we tried to do some analysis on the captures and figure out if there's anything in there that indicates. 1340 01:05:29,340 --> 01:05:29,740 . . 1341 01:05:29,740 --> 01:05:31,740 Whether the score bot comes along or not. 1342 01:05:32,520 --> 01:05:34,240 And that's every year people try to do that. 1343 01:05:34,340 --> 01:05:37,080 This year here, it was fairly simple. 1344 01:05:39,100 --> 01:05:41,700 And this is maybe something someone is going to find out. 1345 01:05:41,800 --> 01:05:44,180 If not, I might lift a secret later. 1346 01:05:44,840 --> 01:05:49,860 Anyway, so we have to structure here a little bit of what happened. 1347 01:05:50,120 --> 01:05:53,720 This might be interesting to use that knowledge in your further analysis. 1348 01:05:55,840 --> 01:05:57,620 What else we can now do is... 1349 01:05:57,620 --> 01:05:58,740 . . 1350 01:05:58,740 --> 01:05:59,500 I'm actually working on this one here. 1351 01:05:59,900 --> 01:06:02,960 So, what I really want to do is I want to color my servers differently, right? 1352 01:06:03,200 --> 01:06:07,300 So, if it's four dot one. 1353 01:06:07,880 --> 01:06:09,120 Let's do this here. 1354 01:06:11,320 --> 01:06:13,500 One or actually two. 1355 01:06:16,620 --> 01:06:18,020 Then I want to make it yellow. 1356 01:06:18,520 --> 01:06:24,360 And actually, let's just comment these guys out. 1357 01:06:27,320 --> 01:06:28,360 . . 1358 01:06:28,360 --> 01:06:28,720 . . 1359 01:06:28,720 --> 01:06:29,700 Ah, yeah, okay. 1360 01:06:30,500 --> 01:06:31,240 What do you want? 1361 01:06:31,320 --> 01:06:31,460 Green? 1362 01:06:37,560 --> 01:06:38,100 What's that? 1363 01:06:38,260 --> 01:06:39,280 I'm missing a backslash? 1364 01:06:39,300 --> 01:06:39,640 Where? 1365 01:06:39,800 --> 01:06:40,280 Here. 1366 01:06:46,520 --> 01:06:49,680 I'm telling you, it's a real challenge typing on a Swiss keyboard in VI. 1367 01:06:50,000 --> 01:06:55,940 Because I think the developers of VI actually had US keyboard layouts in mind. 1368 01:06:55,940 --> 01:07:02,400 They put the shortcut keys that you need a lot, like, I don't know, pound or dollar in there. 1369 01:07:02,460 --> 01:07:06,800 In Swiss keyboard, you have, like, Alt-G-R-3 for a pound. 1370 01:07:07,240 --> 01:07:08,300 Why do you, bitch? 1371 01:07:08,880 --> 01:07:10,260 It's your choice. 1372 01:07:11,280 --> 01:07:14,240 Yeah, but then I don't remember the US layout. 1373 01:07:14,340 --> 01:07:15,020 I'd have to do it blind. 1374 01:07:16,740 --> 01:07:17,700 . . 1375 01:07:17,700 --> 01:07:17,980 . . . 1376 01:07:17,980 --> 01:07:19,000 . . . 1377 01:07:20,640 --> 01:07:22,020 Someone get me one of those guns. 1378 01:07:22,140 --> 01:07:22,900 Please, seriously. 1379 01:07:23,460 --> 01:07:25,920 . . . 1380 01:07:28,540 --> 01:07:28,940 Here. 1381 01:07:29,180 --> 01:07:30,580 This was the command I ran earlier. 1382 01:07:33,200 --> 01:07:37,740 What I'm doing here is I'm just adding this property file with minus C, right? 1383 01:07:38,820 --> 01:07:40,200 Let's see what happens if I do this. 1384 01:07:40,320 --> 01:07:44,340 And actually, I think this is just an old habit that I put things into temp. 1385 01:07:45,760 --> 01:07:46,340 All right. 1386 01:07:46,380 --> 01:07:49,000 So now, ta-da, we have green nodes. 1387 01:07:49,520 --> 01:07:50,720 And this is not what I wanted. 1388 01:07:51,900 --> 01:07:54,020 No one caught the mistake on my regular expression. 1389 01:07:55,400 --> 01:07:55,800 Seriously. 1390 01:07:55,820 --> 01:07:55,900 . . 1391 01:07:55,900 --> 01:07:56,200 Even more obviously, guys. 1392 01:08:04,420 --> 01:08:05,040 Here we go. 1393 01:08:05,640 --> 01:08:07,920 And we only did sources right now. 1394 01:08:08,040 --> 01:08:11,280 So we could probably change that too, instead of calling up source. 1395 01:08:12,480 --> 01:08:13,260 Did you get that? 1396 01:08:13,320 --> 01:08:14,240 Why it didn't work before? 1397 01:08:14,600 --> 01:08:15,780 It was kind of fast, but. 1398 01:08:17,220 --> 01:08:17,580 . . 1399 01:08:17,580 --> 01:08:21,880 I didn't put the dollar in the end here. 1400 01:08:22,080 --> 01:08:24,000 . . 1401 01:08:24,000 --> 01:08:26,500 I have to stop the regular expression there. 1402 01:08:26,580 --> 01:08:28,460 Otherwise, it's everything that starts with a 1 or a 2, 1403 01:08:28,600 --> 01:08:29,520 which is a lot of addresses. 1404 01:08:32,380 --> 01:08:40,180 So now it changed the color source to be everything. 1405 01:08:40,700 --> 01:08:42,100 And now everything is red or green. 1406 01:08:43,300 --> 01:08:46,240 Now what I want to also do is probably I want to have per 1407 01:08:50,220 --> 01:08:55,840 team, actually let's do this, blue. 1408 01:08:58,360 --> 01:09:01,900 So now we could go and code kind of every team as a 1409 01:09:01,900 --> 01:09:02,420 different color. 1410 01:09:05,480 --> 01:09:16,120 I'm just going to, whatever, I'm going to 1411 01:09:16,120 --> 01:09:16,480 want to do one. 1412 01:09:17,000 --> 01:09:18,180 You get the idea. 1413 01:09:24,140 --> 01:09:25,720 Did I catch one that wasn't in there? 1414 01:09:25,800 --> 01:09:26,040 Five? 1415 01:09:33,280 --> 01:09:33,980 What's wrong here? 1416 01:09:34,080 --> 01:09:34,620 Is that right? 1417 01:09:43,500 --> 01:09:44,460 What am I doing wrong? 1418 01:09:48,320 --> 01:09:49,260 Let's refresh again. 1419 01:09:50,080 --> 01:09:50,640 Oh, wait. 1420 01:09:51,900 --> 01:09:52,960 Is there anything wrong here? 1421 01:09:56,380 --> 01:09:59,020 No, I didn't miss the dollar, because I want all the fives. 1422 01:10:01,160 --> 01:10:02,480 There is a five, right? 1423 01:10:02,620 --> 01:10:02,880 There's one? 1424 01:10:04,520 --> 01:10:05,220 Oh, me neither. 1425 01:10:07,660 --> 01:10:08,460 Yeah, five. 1426 01:10:11,340 --> 01:10:12,060 NVI is here? 1427 01:10:13,360 --> 01:10:14,000 All right. 1428 01:10:14,160 --> 01:10:15,020 I'm learning . 1429 01:10:15,480 --> 01:10:16,020 I like this. 1430 01:10:16,020 --> 01:10:18,440 What is NVI? 1431 01:10:19,260 --> 01:10:19,840 No color? 1432 01:10:20,620 --> 01:10:22,260 That color red over on it. 1433 01:10:24,960 --> 01:10:25,560 . 1434 01:10:29,740 --> 01:10:30,040 Whatever. 1435 01:10:30,300 --> 01:10:30,860 I like VI. 1436 01:10:32,080 --> 01:10:32,680 . 1437 01:10:38,080 --> 01:10:38,380 Um. 1438 01:10:39,420 --> 01:10:40,020 . 1439 01:10:43,020 --> 01:10:43,620 No. 1440 01:10:44,020 --> 01:10:44,620 . 1441 01:10:44,620 --> 01:10:44,780 . 1442 01:10:48,800 --> 01:10:50,300 It shouldn't really matter, but. 1443 01:10:50,500 --> 01:10:50,800 . 1444 01:10:54,080 --> 01:10:55,700 So what does color red affect? 1445 01:10:56,820 --> 01:10:58,820 It's basically first match wins, right? 1446 01:10:58,920 --> 01:11:01,640 So the most specific should be first. 1447 01:11:01,720 --> 01:11:03,060 So I color all the fours. 1448 01:11:03,340 --> 01:11:08,000 And then I color the fives with blue. 1449 01:11:08,100 --> 01:11:09,220 And then the rest would be red. 1450 01:11:09,580 --> 01:11:10,040 . 1451 01:11:12,900 --> 01:11:13,760 Yes, I do. 1452 01:11:14,080 --> 01:11:14,540 . 1453 01:11:18,620 --> 01:11:20,620 Oh, are you missing an F on the blue line? 1454 01:11:24,820 --> 01:11:25,140 . 1455 01:11:27,260 --> 01:11:27,580 . 1456 01:11:27,580 --> 01:11:27,620 . 1457 01:11:27,620 --> 01:11:27,820 . 1458 01:11:27,820 --> 01:11:27,920 . 1459 01:11:27,920 --> 01:11:28,000 . 1460 01:11:28,000 --> 01:11:28,020 . 1461 01:11:28,020 --> 01:11:28,040 . 1462 01:11:28,040 --> 01:11:28,060 . 1463 01:11:28,060 --> 01:11:28,140 . 1464 01:11:28,140 --> 01:11:28,160 . 1465 01:11:28,160 --> 01:11:28,360 . 1466 01:11:28,360 --> 01:11:28,560 . 1467 01:11:28,560 --> 01:11:28,600 . 1468 01:11:28,600 --> 01:11:28,660 . 1469 01:11:28,660 --> 01:11:29,120 . 1470 01:11:44,580 --> 01:11:45,760 I really don't see it. 1471 01:11:46,840 --> 01:11:47,280 . 1472 01:11:47,280 --> 01:11:47,840 . 1473 01:11:47,840 --> 01:11:50,480 It could be because. . 1474 01:11:50,480 --> 01:11:51,980 Yeah, that might actually be it. 1475 01:11:52,200 --> 01:11:52,560 . 1476 01:11:53,580 --> 01:11:54,020 . 1477 01:11:54,020 --> 01:11:54,200 . 1478 01:11:54,200 --> 01:11:54,640 . 1479 01:11:54,640 --> 01:11:54,800 . 1480 01:11:54,800 --> 01:11:54,860 . 1481 01:12:03,040 --> 01:12:03,440 No! 1482 01:12:09,240 --> 01:12:10,120 I don't like that. 1483 01:12:16,980 --> 01:12:17,760 I give up. 1484 01:12:18,420 --> 01:12:19,160 All right, next. 1485 01:12:22,600 --> 01:12:23,820 What else do we want to do here? 1486 01:12:23,820 --> 01:12:24,800 Let's generate one. 1487 01:12:25,620 --> 01:12:27,040 Anyone come up with anything yet? 1488 01:12:27,160 --> 01:12:29,820 Anything interesting they want to share already? 1489 01:12:30,640 --> 01:12:31,660 Or want me to do? 1490 01:12:31,960 --> 01:12:33,720 Anyone want me to do something specific here? 1491 01:12:42,960 --> 01:12:45,660 The question is what format of snort log would I write? 1492 01:12:45,840 --> 01:12:47,000 I would probably do an alert log 1493 01:12:47,000 --> 01:12:49,420 because I have a snort alert to CSV converter. 1494 01:12:50,380 --> 01:12:53,800 So if you run snort minus capital L, 1495 01:12:53,820 --> 01:12:57,580 capital A full over your capture, 1496 01:12:58,740 --> 01:13:00,880 we can probably... 1497 01:13:03,220 --> 01:13:04,820 You're really pushing me here a little bit, 1498 01:13:05,600 --> 01:13:06,720 which is kind of okay. 1499 01:13:11,820 --> 01:13:12,960 Let's just try this. 1500 01:13:13,080 --> 01:13:15,320 So please correct me if anyone... 1501 01:13:16,280 --> 01:13:17,240 Yeah, well... 1502 01:13:22,260 --> 01:13:22,740 Man. 1503 01:13:24,720 --> 01:13:25,680 Didn't I say dash? 1504 01:13:27,740 --> 01:13:28,760 Babin, can you read? 1505 01:13:29,520 --> 01:13:31,280 Why don't you come into first row here? 1506 01:13:31,380 --> 01:13:32,480 You can actually read it. 1507 01:13:35,560 --> 01:13:36,040 Oh. 1508 01:13:40,280 --> 01:13:40,860 That was? 1509 01:13:42,540 --> 01:13:43,220 Exactly that? 1510 01:13:48,240 --> 01:13:49,400 I haven't seen... 1511 01:13:49,400 --> 01:13:50,500 Actually, Marty's not here. 1512 01:13:50,540 --> 01:13:50,940 He's traveling. 1513 01:13:53,900 --> 01:13:54,340 Otherwise... 1514 01:13:58,840 --> 01:13:59,400 Oh, yeah. 1515 01:13:59,560 --> 01:14:01,400 You need to tell me to do something. 1516 01:14:01,660 --> 01:14:01,900 All right. 1517 01:14:02,240 --> 01:14:02,940 Let's do that. 1518 01:14:03,880 --> 01:14:04,840 It works for you? 1519 01:14:05,340 --> 01:14:06,360 I've got a dash read. 1520 01:14:07,100 --> 01:14:07,980 Oh, okay. 1521 01:14:08,020 --> 01:14:08,680 That might actually work. 1522 01:14:10,080 --> 01:14:11,320 Ah, here we go. 1523 01:14:12,540 --> 01:14:12,980 Whoa. 1524 01:14:14,900 --> 01:14:17,360 So let's just capture this into a file. 1525 01:14:20,500 --> 01:14:21,420 To snort. 1526 01:14:24,160 --> 01:14:25,440 Wow, there were a lot triggering. 1527 01:14:25,580 --> 01:14:26,080 What is in here? 1528 01:14:34,500 --> 01:14:35,840 This is not the output I want. 1529 01:14:36,880 --> 01:14:39,180 This is TCP dump type output. 1530 01:14:40,280 --> 01:14:40,740 Um... 1531 01:14:42,800 --> 01:14:43,260 Um... 1532 01:14:44,240 --> 01:14:44,700 Okay. 1533 01:14:49,220 --> 01:14:50,620 Um... 1534 01:14:56,960 --> 01:14:58,360 Um... 1535 01:14:58,360 --> 01:14:58,820 . 1536 01:15:06,460 --> 01:15:07,860 . 1537 01:15:07,860 --> 01:15:07,900 . 1538 01:15:16,980 --> 01:15:19,780 All right. 1539 01:15:20,160 --> 01:15:21,560 All right. 1540 01:15:27,920 --> 01:15:28,620 Interesting. 1541 01:15:36,820 --> 01:15:37,840 Oh, here we go. 1542 01:15:38,280 --> 01:15:38,900 Ta-da. 1543 01:15:39,860 --> 01:15:40,380 Empty. 1544 01:15:53,820 --> 01:15:54,660 Yeah, there. 1545 01:15:58,620 --> 01:15:59,340 All right, here we go. 1546 01:16:08,360 --> 01:16:10,840 Oh, here comes this challenge again with the keyboard. 1547 01:16:11,020 --> 01:16:11,380 I love it. 1548 01:16:14,820 --> 01:16:15,480 How do you? 1549 01:16:15,720 --> 01:16:16,120 Here. 1550 01:16:16,860 --> 01:16:18,600 Starting with a pound. 1551 01:16:19,700 --> 01:16:21,620 I'm going to kill that. 1552 01:16:24,360 --> 01:16:25,340 Oh, maybe not. 1553 01:16:28,620 --> 01:16:29,880 Actually, that's not what I wanted to do. 1554 01:16:32,480 --> 01:16:44,020 A comma dot S, doom-de-doom, space include, slash include. 1555 01:16:44,840 --> 01:16:45,500 All right. 1556 01:16:45,820 --> 01:16:46,700 That wasn't bad. 1557 01:16:49,420 --> 01:16:53,320 And then we want to do this. 1558 01:17:03,480 --> 01:17:04,680 Oh, yeah, great. 1559 01:17:06,100 --> 01:17:07,980 This is going to take a bit. 1560 01:17:08,420 --> 01:17:16,980 I really want to do that, because different rules need different, I guess, variables. 1561 01:17:20,100 --> 01:17:25,620 And so I just enabled all the rules, and one of them asks for SH ports. 1562 01:17:26,820 --> 01:17:27,320 No? 1563 01:17:27,620 --> 01:17:27,860 No? 1564 01:17:28,620 --> 01:17:29,060 Yeah. 1565 01:17:31,160 --> 01:17:31,720 Yeah. 1566 01:17:33,100 --> 01:17:33,600 Yeah. 1567 01:17:44,340 --> 01:17:46,500 But was it really complaining about that? 1568 01:17:46,900 --> 01:17:49,060 I think it was complaining actually about something else. 1569 01:17:49,120 --> 01:17:52,980 It was like Etsy snorts rules bleeding boot cc excluded on our rule type. 1570 01:17:53,320 --> 01:17:55,420 There's something wrong with that file. 1571 01:17:57,200 --> 01:17:58,320 Rules bleeding. 1572 01:17:58,320 --> 01:17:58,600 Rules bleeding. 1573 01:18:20,840 --> 01:18:21,100 Let's see. 1574 01:18:37,160 --> 01:18:41,900 So the question is whether we can change the edges to kind of encode the amount of traffic 1575 01:18:42,900 --> 01:18:44,460 that was submitted. 1576 01:18:44,640 --> 01:18:46,520 The problem is that yes, you could. 1577 01:18:48,280 --> 01:18:50,460 You can change the color of the edge right now. 1578 01:18:50,600 --> 01:18:53,060 So if you say color.edge, you can change that. 1579 01:18:53,700 --> 01:18:57,140 You cannot change the thickness because GraphVis doesn't support that. 1580 01:18:58,020 --> 01:19:06,100 If you have any other tool that you read the dot file with, you could change the thickness 1581 01:19:06,100 --> 01:19:07,280 of the edges. 1582 01:19:07,540 --> 01:19:10,860 But Afterglow doesn't support it right now because I'm kind of going with the feature 1583 01:19:10,860 --> 01:19:12,880 set of GraphVis. 1584 01:19:13,000 --> 01:19:17,920 But if you send me an email and say, hey, but look, this tool here takes dot files and 1585 01:19:17,920 --> 01:19:21,840 it does edge thickness, then I will add the feature to Afterglow. 1586 01:19:23,380 --> 01:19:24,740 But I get that question a lot. 1587 01:19:24,820 --> 01:19:26,880 Unfortunately, I don't know why GraphVis doesn't support it. 1588 01:19:26,880 --> 01:19:30,420 Maybe it's just hard to deal with all the thick edges and then scaling them down. 1589 01:19:30,540 --> 01:19:30,920 I don't know why. 1590 01:19:34,580 --> 01:19:34,940 Yeah. 1591 01:19:36,000 --> 01:19:37,180 The graph would get messy. 1592 01:19:37,280 --> 01:19:37,700 I agree. 1593 01:19:37,940 --> 01:19:40,540 But sometimes it's really useful, especially if you scale it right. 1594 01:19:40,940 --> 01:19:44,460 It's really nice to see that you have this one big pipe with a lot of traffic going on. 1595 01:19:45,180 --> 01:19:49,100 I usually, I try to use color a little bit, but I got it. 1596 01:19:49,780 --> 01:19:50,800 Gee, this guy is good. 1597 01:19:52,360 --> 01:19:53,700 Is that what you're looking for? 1598 01:19:53,940 --> 01:19:54,300 Yes. 1599 01:19:54,660 --> 01:19:55,400 Oh, this is great. 1600 01:19:55,540 --> 01:19:55,780 All right. 1601 01:19:56,500 --> 01:19:56,860 All right. 1602 01:19:56,880 --> 01:19:57,280 What did you do? 1603 01:19:59,560 --> 01:20:02,120 Well, not really magic. 1604 01:20:02,420 --> 01:20:05,260 I just called the original config files. 1605 01:20:05,380 --> 01:20:09,800 I copied back the original one and put the capture into it, and that's it. 1606 01:20:11,640 --> 01:20:12,400 All right. 1607 01:20:12,420 --> 01:20:12,780 I've defeated. 1608 01:20:17,320 --> 01:20:17,840 Okay. 1609 01:20:18,020 --> 01:20:26,740 So now what we can do is var log alert, and then run it through. 1610 01:20:26,880 --> 01:20:29,920 Snort alert to CSV. 1611 01:20:31,160 --> 01:20:32,380 I hope this works. 1612 01:20:34,240 --> 01:20:37,120 It might not, because the format might have changed. 1613 01:20:37,560 --> 01:20:38,500 No, it does, yes. 1614 01:20:40,520 --> 01:20:46,040 So we can now, well, SIP div is not going to be interesting, because we already saw 1615 01:20:46,040 --> 01:20:46,860 the communications, right? 1616 01:20:46,900 --> 01:20:48,080 We took the TCP dump output. 1617 01:20:48,160 --> 01:20:48,980 We know who's communicating. 1618 01:20:50,760 --> 01:20:56,600 We probably want to take the name and the SIP, maybe? 1619 01:20:56,700 --> 01:20:56,860 Yeah. 1620 01:20:57,340 --> 01:20:58,360 Let's see whether that works. 1621 01:21:02,200 --> 01:21:02,600 Yes. 1622 01:21:03,220 --> 01:21:03,780 All right. 1623 01:21:03,840 --> 01:21:08,580 So then, so what we do, what I want to do is just see what sources triggered what signatures, 1624 01:21:08,740 --> 01:21:08,900 right? 1625 01:21:10,660 --> 01:21:13,460 I mean, one way is to use active load to do this, I guess. 1626 01:21:17,440 --> 01:21:21,880 Neto minus tgif minus o test.gif. 1627 01:21:29,380 --> 01:21:30,780 Okay. 1628 01:21:33,400 --> 01:21:34,000 Interesting. 1629 01:21:34,460 --> 01:21:34,700 All right. 1630 01:21:34,740 --> 01:21:38,740 So we have a few signatures being triggered. 1631 01:21:38,860 --> 01:21:39,660 You know, I don't like this. 1632 01:21:47,060 --> 01:21:47,660 Sorry. 1633 01:21:47,820 --> 01:21:49,080 Just kind of preference. 1634 01:21:50,040 --> 01:21:55,980 So you see that 401 triggered a few signatures here. 1635 01:21:56,200 --> 01:21:58,160 It's a little messy, the graph. 1636 01:21:58,360 --> 01:22:00,380 It's kind of overlapping stuff here. 1637 01:22:01,520 --> 01:22:06,620 But there was a scan nmap from 4-1-52, which I probably expect. 1638 01:22:06,780 --> 01:22:10,620 This is one of my attackers running this scan against someone. 1639 01:22:10,780 --> 01:22:13,800 Let's actually see who it was directed to. 1640 01:22:14,740 --> 01:22:18,620 So what we can do then is say SIP div name. 1641 01:22:19,400 --> 01:22:22,620 No more minus t here, because we have three columns coming in. 1642 01:22:23,220 --> 01:22:26,640 Now we see that, where's the other guy? 1643 01:22:26,800 --> 01:22:27,020 Here. 1644 01:22:27,720 --> 01:22:29,020 1-2-2. 1645 01:22:29,020 --> 01:22:29,760 It's communicating. 1646 01:22:29,760 --> 01:22:34,220 He's communicating with 7-2, and he generated all these different signatures. 1647 01:22:34,460 --> 01:22:35,540 So that's probably fine. 1648 01:22:35,700 --> 01:22:38,920 My attacker here is attacking this 7-2 machine here. 1649 01:22:40,940 --> 01:22:47,280 Then we have one of the servers talking to another one, and he's using or he's triggering some signatures. 1650 01:22:47,440 --> 01:22:52,780 That's actually fairly interesting, because it could mean that 4-1, one of the servers was compromised 1651 01:22:53,540 --> 01:22:56,060 and now attacks the other internal machine. 1652 01:22:56,980 --> 01:22:58,580 That's probably something to investigate. 1653 01:22:58,580 --> 01:23:04,840 It might be that, because it's captured flags, that these servers are already kind of vulnerable, 1654 01:23:05,000 --> 01:23:11,440 so that the communication of one machine with the other was already kind of funky and triggers these snort signatures. 1655 01:23:11,600 --> 01:23:16,500 Actually, the next step would be to go in and figure out why these things have triggered, right? 1656 01:23:16,580 --> 01:23:21,200 Which is always a really cumbersome task, but unfortunately you have to do it. 1657 01:23:21,760 --> 01:23:25,160 But even more interesting seems, actually, you know what? 1658 01:23:25,220 --> 01:23:26,000 I was lying earlier. 1659 01:23:26,240 --> 01:23:27,180 4-1 is the gateway. 1660 01:23:27,180 --> 01:23:28,940 2 and 3 are the servers. 1661 01:23:29,600 --> 01:23:34,500 So the attacks came in to each of the servers. 1662 01:23:35,440 --> 01:23:35,880 Sorry. 1663 01:23:36,960 --> 01:23:39,460 I guess the other graph looked a little different. 1664 01:23:39,580 --> 01:23:42,200 I didn't see that there was traffic coming from 4-1 to both of these machines. 1665 01:23:43,080 --> 01:23:44,460 So that's one thing to look at. 1666 01:23:45,880 --> 01:23:50,620 The problem here is that it's not really useful to look at this, right? 1667 01:23:51,600 --> 01:23:54,360 Because there's so many attacks coming in. 1668 01:23:54,420 --> 01:23:55,560 You know there are attacks. 1669 01:23:55,560 --> 01:23:57,420 And they just come from this one IP. 1670 01:23:57,940 --> 01:24:01,680 Maybe you can then go back and figure out what exact packets were they, 1671 01:24:01,860 --> 01:24:11,240 and see whether you can find any kind of identifier that shows whether this is scoreboard traffic or attack traffic. 1672 01:24:11,400 --> 01:24:16,440 So maybe you see something funky in the attacks that you then can use as a filter later to filter the traffic. 1673 01:24:17,200 --> 01:24:20,960 But it's not necessarily even that these are real attacks now, 1674 01:24:21,040 --> 01:24:25,500 because just because I have some null bytes in there doesn't mean it's an attack. 1675 01:24:25,500 --> 01:24:28,000 Because the scoreboard could just do something really funky, 1676 01:24:28,120 --> 01:24:29,820 or the flags could actually trigger it or something. 1677 01:24:30,400 --> 01:24:33,940 So during the game we actually didn't really... 1678 01:24:33,940 --> 01:24:38,680 We had a snort box running, but I don't think it was useful. 1679 01:24:40,700 --> 01:24:41,100 Right? 1680 01:24:44,420 --> 01:24:48,900 Anyways, I guess this gives you an idea of how to run stuff into snort and look at it. 1681 01:24:48,940 --> 01:24:52,220 Maybe you'll find some more stuff in there if you're digging a little bit. 1682 01:24:52,460 --> 01:24:54,180 But I was going to do something else actually. 1683 01:24:59,720 --> 01:25:01,480 Let me go back here. 1684 01:25:01,640 --> 01:25:10,760 What I wanted to do is really generate this graph here and see who was accessing what ports. 1685 01:25:10,880 --> 01:25:12,900 So let's see. 1686 01:25:13,120 --> 01:25:24,340 We should probably change our file here 1687 01:25:24,340 --> 01:25:29,240 to reflect my misinterpretation. 1688 01:25:32,260 --> 01:25:34,460 So I'm going to just do... 1689 01:25:38,500 --> 01:25:40,480 Two or three are the servers, right? 1690 01:25:40,540 --> 01:25:41,760 So I'm going to do this. 1691 01:25:42,880 --> 01:25:44,280 And do this again. 1692 01:25:49,080 --> 01:25:50,500 You guys are awfully quiet. 1693 01:25:51,640 --> 01:25:53,000 Did you find anything yet? 1694 01:26:00,580 --> 01:26:01,420 Is that right? 1695 01:26:01,520 --> 01:26:02,080 I think... 1696 01:26:02,080 --> 01:26:02,520 No. 1697 01:26:03,640 --> 01:26:04,080 Four. 1698 01:26:06,940 --> 01:26:07,760 Two or three. 1699 01:26:07,880 --> 01:26:08,320 Here we go. 1700 01:26:17,980 --> 01:26:18,780 This is right. 1701 01:26:18,920 --> 01:26:19,980 Dum de dum de dum. 1702 01:26:20,560 --> 01:26:21,000 One. 1703 01:26:25,240 --> 01:26:25,680 Yeah. 1704 01:26:25,820 --> 01:26:27,460 This looks about right. 1705 01:26:27,780 --> 01:26:29,040 So now the gateway is one. 1706 01:26:30,040 --> 01:26:31,880 Then this was one of my servers. 1707 01:26:32,920 --> 01:26:37,040 It doesn't show up in communications here, which is kind of interesting actually. 1708 01:26:40,660 --> 01:26:42,760 And then you see the ports again. 1709 01:26:42,960 --> 01:26:44,280 And we already did the bar chart earlier. 1710 01:26:44,420 --> 01:26:46,600 So we kind of know what ports are showing up here. 1711 01:26:46,800 --> 01:26:54,320 But at least now you see that this guy here accessed this machine on this high network. 1712 01:26:54,320 --> 01:26:58,720 This is a port number that might actually just be outgoing traffic. 1713 01:26:59,960 --> 01:27:04,120 And I might not have enough captures to figure out what's the source and destination. 1714 01:27:04,520 --> 01:27:09,040 So if we would actually go into the traffic right now, this is probably a response to this port 1715 01:27:09,040 --> 01:27:11,700 and not a communication going out. 1716 01:27:11,900 --> 01:27:14,680 So this might actually be a source port instead of destination port. 1717 01:27:15,080 --> 01:27:19,860 But because I'm running heuristics on what is the source, what is the server, and what's the client, 1718 01:27:20,200 --> 01:27:22,440 I might not have enough information to figure that out. 1719 01:27:22,520 --> 01:27:23,420 So it just assumes... 1720 01:27:23,420 --> 01:27:25,280 The communication went that way. 1721 01:27:25,400 --> 01:27:26,100 So that might just... 1722 01:27:26,100 --> 01:27:27,800 I think that's probably a false positive there. 1723 01:27:29,340 --> 01:27:32,460 But this gives you a little bit of another impression of what's going on. 1724 01:27:34,880 --> 01:27:38,660 What I usually do also is I make the edge lengths a little smaller. 1725 01:27:39,120 --> 01:27:42,640 If you do 1.3 or something like that, it's a little more compact. 1726 01:27:42,840 --> 01:27:44,900 So the graph renders a little different. 1727 01:27:44,980 --> 01:27:46,920 So that's just something I like to do. 1728 01:28:11,580 --> 01:28:12,580 All right. 1729 01:28:12,680 --> 01:28:19,520 I want to show you some stuff in terms of using Neato. 1730 01:28:20,480 --> 01:28:23,320 The things we just did are like static pictures. 1731 01:28:23,420 --> 01:28:27,320 So maybe you want to explore the graph in an interactive way. 1732 01:28:27,640 --> 01:28:35,300 So instead of calling Neato and generating a PNG or whatever, 1733 01:28:35,480 --> 01:28:37,340 you can call L Neato. 1734 01:28:37,640 --> 01:28:40,080 So this gives you an interactive display. 1735 01:28:40,400 --> 01:28:42,720 So you can actually drag around nodes. 1736 01:28:42,840 --> 01:28:45,360 So if there is some cloud and you want to clear it up, 1737 01:28:45,620 --> 01:28:47,800 you can just drag stuff around. 1738 01:28:51,620 --> 01:28:52,720 You can... 1739 01:28:52,720 --> 01:28:53,260 Like... 1740 01:28:53,420 --> 01:28:53,920 Drop nodes. 1741 01:28:54,240 --> 01:28:57,120 When you are on a node, you can say D. 1742 01:28:57,640 --> 01:28:58,440 It's really... 1743 01:28:58,440 --> 01:28:59,800 It's not easy to use. 1744 01:29:00,080 --> 01:29:02,480 You need to get to the manual to do it. 1745 01:29:02,760 --> 01:29:03,860 So you can delete nodes. 1746 01:29:05,180 --> 01:29:05,660 And... 1747 01:29:07,100 --> 01:29:10,580 Relay out everything without the nodes we just deleted. 1748 01:29:11,160 --> 01:29:13,940 So if you sort of see things which you say, 1749 01:29:14,060 --> 01:29:14,820 okay, that's normal, 1750 01:29:15,020 --> 01:29:17,260 just delete the nodes and relay out. 1751 01:29:17,540 --> 01:29:19,360 So maybe you get a clearer display. 1752 01:29:21,340 --> 01:29:23,060 There is also a thing when you do... 1753 01:29:23,060 --> 01:29:26,180 Right click on the window, 1754 01:29:26,440 --> 01:29:29,160 you can activate the bird's eye view. 1755 01:29:29,700 --> 01:29:33,020 See, this is a small representation of the graph. 1756 01:29:33,720 --> 01:29:36,480 So now you can sort of like zoom in in the big one 1757 01:29:37,920 --> 01:29:41,740 with a big or capital Z. 1758 01:29:42,740 --> 01:29:46,420 And now you can sort of click into the bird's eye view 1759 01:29:46,940 --> 01:29:48,700 to sort of browse around the image. 1760 01:29:48,980 --> 01:29:50,300 So this can be helpful. 1761 01:29:51,340 --> 01:29:52,940 The problem I found out, 1762 01:29:52,940 --> 01:29:54,800 is when you have really huge graphs, 1763 01:29:55,000 --> 01:29:57,260 it doesn't really work out anymore pretty good. 1764 01:29:57,460 --> 01:29:57,640 So... 1765 01:29:58,680 --> 01:29:59,700 It's a nice feature. 1766 01:30:01,100 --> 01:30:02,500 There are also other tools. 1767 01:30:02,780 --> 01:30:04,480 So maybe you're into eye candy. 1768 01:30:05,400 --> 01:30:07,340 There's a tool called iNetVis, 1769 01:30:07,480 --> 01:30:09,520 which does a 3D visualization. 1770 01:30:10,640 --> 01:30:12,400 So we have here a cube, 1771 01:30:13,140 --> 01:30:14,380 which you can drag around. 1772 01:30:16,000 --> 01:30:16,520 And... 1773 01:30:17,660 --> 01:30:19,380 The different X... 1774 01:30:20,240 --> 01:30:20,720 Uh... 1775 01:30:21,940 --> 01:30:23,240 Dimensions are like... 1776 01:30:23,240 --> 01:30:24,800 The green line are the ports 1777 01:30:25,180 --> 01:30:27,340 from 0 to 65535. 1778 01:30:27,940 --> 01:30:29,900 Then you have the blue and the red line, 1779 01:30:29,960 --> 01:30:32,340 which represent the source and the destination address. 1780 01:30:33,220 --> 01:30:35,860 So now we can run the capture file 1781 01:30:37,160 --> 01:30:38,260 in this view. 1782 01:30:39,100 --> 01:30:40,960 So there must be some other GUI. 1783 01:30:41,020 --> 01:30:42,060 Let's search for it. 1784 01:30:44,260 --> 01:30:46,760 All right, so... 1785 01:30:47,180 --> 01:30:48,100 This is the main view. 1786 01:30:49,380 --> 01:30:50,180 To organize stuff. 1787 01:30:50,440 --> 01:30:51,940 So let's open our capture file. 1788 01:30:53,980 --> 01:30:56,200 Browse to the location where it's located. 1789 01:30:58,040 --> 01:30:59,020 Open it up. 1790 01:30:59,420 --> 01:31:00,740 All right, so now it's loading. 1791 01:31:01,160 --> 01:31:02,780 There's some warning. Just click it away. 1792 01:31:03,600 --> 01:31:04,520 And now... 1793 01:31:04,520 --> 01:31:06,560 We could run it in real time. 1794 01:31:06,740 --> 01:31:08,960 Like, we could go here and press play. 1795 01:31:09,460 --> 01:31:11,200 So now the capture file is running. 1796 01:31:11,200 --> 01:31:12,740 You see this on the bottom left 1797 01:31:13,180 --> 01:31:14,680 of the cube window. 1798 01:31:15,700 --> 01:31:16,720 And now you see 1799 01:31:17,380 --> 01:31:18,880 the different, uh... 1800 01:31:19,380 --> 01:31:20,240 Welts coming up. 1801 01:31:20,500 --> 01:31:21,540 So these are the connections 1802 01:31:22,740 --> 01:31:25,240 which are being visualized here in the cube. 1803 01:31:26,500 --> 01:31:28,640 We can sort of 1804 01:31:29,160 --> 01:31:30,160 fasten up things. 1805 01:31:30,380 --> 01:31:31,600 Like, oh, 10 times fast. 1806 01:31:33,340 --> 01:31:34,740 Or we could say, okay, 1807 01:31:34,840 --> 01:31:36,260 let's just head at the end. 1808 01:31:36,420 --> 01:31:39,600 So we move the slider at the top here. 1809 01:31:39,940 --> 01:31:41,900 And then everything should get 1810 01:31:41,900 --> 01:31:43,100 sort of visualized. 1811 01:31:43,460 --> 01:31:46,280 So now everything is sort of one line. 1812 01:31:47,420 --> 01:31:49,180 Probably it's not one line. 1813 01:31:49,340 --> 01:31:50,620 Sort of just one system 1814 01:31:51,740 --> 01:31:52,820 attacking another 1815 01:31:52,820 --> 01:31:54,680 and on all parts. 1816 01:31:55,100 --> 01:31:56,620 So probably we have to 1817 01:31:56,620 --> 01:31:58,280 sort of modify the display 1818 01:31:58,280 --> 01:32:00,340 to not cover the whole internet space, 1819 01:32:00,620 --> 01:32:02,460 but just to cover the space 1820 01:32:02,460 --> 01:32:03,520 of the CTF game. 1821 01:32:03,840 --> 01:32:05,760 So you can do this with, uh... 1822 01:32:06,780 --> 01:32:08,580 with view plotter settings. 1823 01:32:09,000 --> 01:32:10,380 And here you can define 1824 01:32:10,380 --> 01:32:12,080 the range, uh... 1825 01:32:12,680 --> 01:32:14,060 of the different dimensions. 1826 01:32:14,500 --> 01:32:16,260 So it's somewhere in there. 1827 01:32:16,280 --> 01:32:19,560 In 192, 168, something. 1828 01:32:19,960 --> 01:32:22,380 I'll take a net mask of 20. 1829 01:32:23,040 --> 01:32:24,860 And I do the source. 1830 01:32:26,340 --> 01:32:26,940 Dimension. 1831 01:32:28,460 --> 01:32:29,660 Also 20. 1832 01:32:30,000 --> 01:32:31,620 I accept these changes. 1833 01:32:33,300 --> 01:32:34,360 There's some warning. 1834 01:32:35,300 --> 01:32:36,180 Go away. 1835 01:32:37,200 --> 01:32:37,860 All right. 1836 01:32:38,100 --> 01:32:39,700 So now we have just a view 1837 01:32:40,280 --> 01:32:42,600 of the traffic within that range 1838 01:32:42,600 --> 01:32:43,440 we've just defined. 1839 01:32:44,860 --> 01:32:46,260 So the nice thing about this 1840 01:32:46,280 --> 01:32:50,140 is you not just only see, uh... 1841 01:32:50,140 --> 01:32:50,920 vertical scans, 1842 01:32:51,140 --> 01:32:53,080 meaning that a system scans 1843 01:32:53,080 --> 01:32:55,080 a particular system on all ports, 1844 01:32:55,340 --> 01:32:57,300 but you can also see things 1845 01:32:57,300 --> 01:32:59,280 like a horizontal scan 1846 01:32:59,280 --> 01:33:00,260 where... 1847 01:33:00,260 --> 01:33:02,780 where the scanner just hits one port, 1848 01:33:02,880 --> 01:33:03,780 like port 80, 1849 01:33:04,000 --> 01:33:06,480 but through a huge range of IP addresses. 1850 01:33:06,860 --> 01:33:08,580 So you'll notice this here 1851 01:33:08,580 --> 01:33:10,360 in these graphs pretty fast. 1852 01:33:12,980 --> 01:33:13,460 . 1853 01:33:15,900 --> 01:33:16,880 There are limits. 1854 01:33:18,180 --> 01:33:20,140 I don't know how far it goes, 1855 01:33:20,700 --> 01:33:21,700 but there are limits. 1856 01:33:22,580 --> 01:33:23,060 . 1857 01:33:24,820 --> 01:33:26,480 There are also tools on the disk 1858 01:33:26,480 --> 01:33:27,720 which allow you to, uh... 1859 01:33:27,720 --> 01:33:30,100 sort of cut files up. 1860 01:33:30,340 --> 01:33:31,960 So if you have a TCP dump file 1861 01:33:31,960 --> 01:33:32,920 which is really huge 1862 01:33:32,920 --> 01:33:34,940 and crashes iNetVS, 1863 01:33:35,060 --> 01:33:36,560 you just cut the file up. 1864 01:33:36,560 --> 01:33:38,520 There are things like EditCap 1865 01:33:38,520 --> 01:33:39,740 on the disk. 1866 01:33:40,560 --> 01:33:42,600 And we'll probably add other tools 1867 01:33:42,600 --> 01:33:43,680 like TCP slice, 1868 01:33:44,420 --> 01:33:45,940 I think it's called, 1869 01:33:46,100 --> 01:33:48,020 to the disk in the next version. 1870 01:33:50,080 --> 01:33:52,760 You can also do things with EtherApe, 1871 01:33:52,960 --> 01:33:54,560 which allows you to view 1872 01:33:54,560 --> 01:33:57,140 the traffic sort of in a circle. 1873 01:33:57,880 --> 01:33:58,760 So let's open 1874 01:33:58,760 --> 01:34:00,600 our capture file here once again. 1875 01:34:01,540 --> 01:34:02,320 Say OK. 1876 01:34:03,440 --> 01:34:04,600 And now it's sort of 1877 01:34:04,600 --> 01:34:06,160 going through live mode. 1878 01:34:06,560 --> 01:34:08,060 You see how the traffic develops. 1879 01:34:09,120 --> 01:34:09,500 . 1880 01:34:11,780 --> 01:34:12,980 The tool is nice 1881 01:34:12,980 --> 01:34:13,960 if you do online, 1882 01:34:14,660 --> 01:34:16,320 sort of you have live traffic 1883 01:34:16,320 --> 01:34:17,460 you want to look at, 1884 01:34:17,500 --> 01:34:18,960 into it right now. 1885 01:34:19,120 --> 01:34:20,300 Then this is really helpful. 1886 01:34:20,680 --> 01:34:22,300 But like postmortem, 1887 01:34:22,460 --> 01:34:23,300 as we do it here, 1888 01:34:23,500 --> 01:34:24,740 it's not very interesting 1889 01:34:24,740 --> 01:34:26,040 because you cannot slide 1890 01:34:26,040 --> 01:34:28,640 through the dimension time. 1891 01:34:28,920 --> 01:34:29,660 So you say OK, 1892 01:34:29,660 --> 01:34:31,980 let's see it in what happens 1893 01:34:32,720 --> 01:34:34,080 in 15 minutes. 1894 01:34:39,460 --> 01:34:41,920 So all the nodes here 1895 01:34:41,920 --> 01:34:43,120 are sort of 1896 01:34:43,880 --> 01:34:45,160 put in a circle. 1897 01:34:45,380 --> 01:34:47,640 And each of these lines 1898 01:34:47,640 --> 01:34:48,820 here represents a connection 1899 01:34:48,820 --> 01:34:50,000 between those IPs. 1900 01:34:50,140 --> 01:34:51,940 And the color represents 1901 01:34:51,940 --> 01:34:53,640 the intensity of the traffic. 1902 01:34:54,540 --> 01:34:56,180 And on the left hand side 1903 01:34:56,180 --> 01:34:58,500 you see which protocols 1904 01:34:59,660 --> 01:35:00,380 are in the traffic. 1905 01:35:00,660 --> 01:35:01,760 Sort of to get an overview 1906 01:35:01,760 --> 01:35:02,940 what's there. 1907 01:35:04,120 --> 01:35:06,120 I think the color is actually 1908 01:35:06,120 --> 01:35:07,640 encoding the protocol, isn't it? 1909 01:35:08,560 --> 01:35:10,220 I think you can even change that 1910 01:35:10,220 --> 01:35:11,640 if there's a tab that shows 1911 01:35:11,640 --> 01:35:12,540 the color assignment. 1912 01:35:13,160 --> 01:35:14,120 Yeah, that's right. 1913 01:35:14,520 --> 01:35:16,600 So there must be some setting here. 1914 01:35:18,460 --> 01:35:20,500 So you can color the things 1915 01:35:20,500 --> 01:35:21,320 as you like it. 1916 01:35:25,080 --> 01:35:26,900 Did anyone find anything interesting 1917 01:35:26,900 --> 01:35:28,340 or any graphs? 1918 01:35:42,920 --> 01:35:43,360 . 1919 01:35:43,360 --> 01:35:43,640 . 1920 01:35:49,420 --> 01:35:49,860 . 1921 01:35:49,860 --> 01:35:51,520 You can do it live if you like. 1922 01:35:52,880 --> 01:35:53,780 Just come up. 1923 01:35:55,120 --> 01:35:55,560 . 1924 01:35:55,560 --> 01:35:55,660 . 1925 01:35:55,660 --> 01:35:56,300 . 1926 01:36:02,380 --> 01:36:03,480 No, I'm curious. 1927 01:36:04,020 --> 01:36:05,140 You're in for a book. 1928 01:36:05,540 --> 01:36:07,180 Eric, do you actually know 1929 01:36:07,180 --> 01:36:09,580 how to operate a Linux machine? 1930 01:36:09,920 --> 01:36:10,300 Yes. 1931 01:36:10,560 --> 01:36:13,440 I can stumble my way through it. 1932 01:36:14,300 --> 01:36:16,020 I make the phone picker. 1933 01:36:16,160 --> 01:36:17,560 I'm not going to say who he works for. 1934 01:36:18,120 --> 01:36:19,640 Otherwise people won't see anything. 1935 01:36:20,440 --> 01:36:21,380 So let's see. 1936 01:36:21,540 --> 01:36:22,980 Font, enlarge. 1937 01:36:23,960 --> 01:36:25,780 Now you're making me remember 1938 01:36:25,780 --> 01:36:27,140 the whole syntax again. 1939 01:36:28,160 --> 01:36:28,940 We'll help. 1940 01:36:30,920 --> 01:36:31,980 We're nice guys. 1941 01:36:33,260 --> 01:36:35,160 Oh, I made it smaller again. 1942 01:36:35,380 --> 01:36:36,280 I hate it. 1943 01:36:38,160 --> 01:36:39,040 I'm sort of 1944 01:36:39,040 --> 01:36:40,260 challenged here. 1945 01:36:41,400 --> 01:36:42,540 On your own laptop? 1946 01:36:42,920 --> 01:36:43,180 Yeah. 1947 01:36:45,100 --> 01:36:46,820 Alright, so 1948 01:36:47,800 --> 01:36:48,520 I'm ready. 1949 01:36:51,580 --> 01:36:52,520 Oh, here we go. 1950 01:37:00,800 --> 01:37:01,680 Anyone else? 1951 01:37:03,420 --> 01:37:04,500 Anyone else? 1952 01:37:08,500 --> 01:37:10,800 Three, three, three, forty-two. 1953 01:37:10,880 --> 01:37:12,100 Hold on, just source traffic. 1954 01:37:12,560 --> 01:37:12,840 Okay. 1955 01:37:14,360 --> 01:37:16,460 So three, three, three, three. 1956 01:37:16,520 --> 01:37:17,380 That's service? 1957 01:37:20,060 --> 01:37:21,000 Jake, help me. 1958 01:37:21,280 --> 01:37:22,460 That was... 1959 01:37:23,280 --> 01:37:24,500 It was not MUD. 1960 01:37:24,580 --> 01:37:25,540 MUD was 8888. 1961 01:37:27,520 --> 01:37:27,960 .NET. 1962 01:37:29,520 --> 01:37:30,560 Oh, that's right. 1963 01:37:32,540 --> 01:37:32,980 .NET. 1964 01:37:32,980 --> 01:37:34,300 No, that was 8888, I think. 1965 01:37:34,400 --> 01:37:35,360 Then three, three... 1966 01:37:35,360 --> 01:37:36,720 We just looked at it. 1967 01:37:36,800 --> 01:37:38,560 Which port did I look at 1968 01:37:38,560 --> 01:37:39,860 when we saw that .NET stuff? 1969 01:37:41,800 --> 01:37:42,800 I can't remember. 1970 01:37:43,260 --> 01:37:45,600 But there was a weird .NET service running. 1971 01:37:46,140 --> 01:37:47,620 And then the other one 1972 01:37:47,620 --> 01:37:50,200 was the MUD thing we looked at. 1973 01:37:51,240 --> 01:37:52,500 The text you saw 1974 01:37:52,500 --> 01:37:54,300 and the minus A on tcpdump 1975 01:37:54,300 --> 01:37:55,140 was actually from that 1976 01:37:57,140 --> 01:37:58,220 that you also mentioned. 1977 01:37:58,580 --> 01:38:00,080 Here, help me out with the tcpdump. 1978 01:38:00,160 --> 01:38:00,740 Yeah, right. 1979 01:38:00,860 --> 01:38:03,580 Where you could kind of teleport 1980 01:38:03,580 --> 01:38:04,980 from one room to the other 1981 01:38:04,980 --> 01:38:06,520 and steal the flags. 1982 01:38:06,860 --> 01:38:09,360 What were the switches? 1983 01:38:11,020 --> 01:38:11,480 tcpdump. 1984 01:38:13,280 --> 01:38:14,200 Oh, tcpdump? 1985 01:38:15,120 --> 01:38:16,440 Lower the switches 1986 01:38:16,440 --> 01:38:17,920 that you were using. 1987 01:38:20,680 --> 01:38:22,960 Maybe we should install an alias for that. 1988 01:38:23,680 --> 01:38:25,220 I actually wrote a shell script 1989 01:38:25,220 --> 01:38:25,540 online. 1990 01:38:27,140 --> 01:38:28,360 Actually, just before 1991 01:38:28,360 --> 01:38:30,480 when I prepared for the 1992 01:38:32,340 --> 01:38:32,820 talk, 1993 01:38:33,340 --> 01:38:34,540 I started a little shell script 1994 01:38:34,540 --> 01:38:36,680 that generates the most important 1995 01:38:36,680 --> 01:38:37,580 graphs. 1996 01:38:37,900 --> 01:38:39,720 It just runs through the same capture, 1997 01:38:39,800 --> 01:38:40,980 generates a bar chart of the source, 1998 01:38:41,040 --> 01:38:41,980 destination, services, 1999 01:38:42,180 --> 01:38:43,200 and then a connection graph. 2000 01:38:43,500 --> 01:38:44,220 I'll do the same thing. 2001 01:38:45,860 --> 01:38:47,220 I'm going to publish mine first. 2002 01:38:52,360 --> 01:38:55,320 I just saved mine in the script. 2003 01:38:59,480 --> 01:38:59,960 Here. 2004 01:39:02,560 --> 01:39:03,580 Do you want to do it on everything? 2005 01:39:03,840 --> 01:39:04,840 No, that's good enough. 2006 01:39:06,240 --> 01:39:07,300 Do you want to parse it? 2007 01:39:08,340 --> 01:39:09,320 No, that's good. 2008 01:39:09,540 --> 01:39:10,200 This is VI. 2009 01:39:11,040 --> 01:39:13,900 Oh, you're not in VI right now. 2010 01:39:14,080 --> 01:39:14,920 I'm in VI mode. 2011 01:39:16,340 --> 01:39:16,820 Oh. 2012 01:39:19,060 --> 01:39:19,900 Just hit enter? 2013 01:39:20,640 --> 01:39:21,240 Very sure. 2014 01:39:21,520 --> 01:39:22,160 This is... 2015 01:39:25,140 --> 01:39:26,900 This is not an English keyboard. 2016 01:39:27,040 --> 01:39:28,220 Could you give me... 2017 01:39:28,220 --> 01:39:30,120 Could you throw me a bone here? 2018 01:39:30,300 --> 01:39:31,220 Set mine as omex. 2019 01:39:38,860 --> 01:39:40,080 That wouldn't help me. 2020 01:39:53,020 --> 01:39:54,400 So, are there any questions 2021 01:39:54,400 --> 01:39:55,280 in the meantime? 2022 01:39:57,780 --> 01:39:58,640 Everything clear? 2023 01:40:03,260 --> 01:40:05,780 Yeah, that's the one that I was... 2024 01:40:09,440 --> 01:40:10,520 What about chigobi? 2025 01:40:11,140 --> 01:40:12,400 What are the graphs? 2026 01:40:13,100 --> 01:40:14,220 No, it's a manual. 2027 01:40:15,740 --> 01:40:16,940 Where should I put it? 2028 01:40:17,060 --> 01:40:17,200 I don't know. 2029 01:40:17,220 --> 01:40:18,020 Which one? 2030 01:40:19,080 --> 01:40:21,500 This one up here on the one. 2031 01:40:21,860 --> 01:40:22,300 Okay. 2032 01:40:23,020 --> 01:40:27,560 Yeah, so, 2033 01:40:28,600 --> 01:40:29,780 it's just a dot block. 2034 01:40:31,560 --> 01:40:32,960 This is just... 2035 01:40:32,960 --> 01:40:34,320 The pictures you see in the manual, 2036 01:40:34,460 --> 01:40:36,700 these are really simple things 2037 01:40:36,700 --> 01:40:39,220 from data that came along with the tools. 2038 01:40:39,360 --> 01:40:40,740 So this is not really security 2039 01:40:41,320 --> 01:40:42,820 related data you see there. 2040 01:40:43,040 --> 01:40:45,140 So it's just a sample how to use 2041 01:40:45,140 --> 01:40:46,120 the application. 2042 01:40:47,220 --> 01:40:47,980 What would you use 2043 01:40:47,980 --> 01:40:49,180 for chigobi for? 2044 01:40:52,640 --> 01:40:54,280 So, if I remember correctly, 2045 01:40:54,480 --> 01:40:55,460 I'm trying to find it in a book. 2046 01:40:56,440 --> 01:40:56,860 Here. 2047 01:40:57,160 --> 01:40:58,500 I was saying I have to peek. 2048 01:41:00,780 --> 01:41:02,940 Basically, it's a tool that 2049 01:41:02,940 --> 01:41:04,560 helps you generate bar charts, 2050 01:41:05,340 --> 01:41:06,140 scatter plots, 2051 01:41:07,040 --> 01:41:07,860 parallel coordinates, 2052 01:41:08,260 --> 01:41:10,380 just a whole bunch of different types of graphs. 2053 01:41:10,860 --> 01:41:12,420 The interesting thing about this tool 2054 01:41:12,420 --> 01:41:14,560 is that if you have a certain 2055 01:41:15,150 --> 01:41:16,620 data input, you can say, 2056 01:41:17,220 --> 01:41:18,720 generate me a bar chart of the source IPs, 2057 01:41:18,720 --> 01:41:20,600 and then generate me one of the destination IPs, 2058 01:41:20,620 --> 01:41:21,200 and then show me 2059 01:41:23,760 --> 01:41:24,940 a parallel coordinate 2060 01:41:24,940 --> 01:41:26,340 where I have both of them 2061 01:41:26,340 --> 01:41:27,720 and maybe also the destination port. 2062 01:41:28,100 --> 01:41:29,680 Now, these three graphs 2063 01:41:29,680 --> 01:41:30,680 will all be linked together. 2064 01:41:30,960 --> 01:41:33,340 So if I select one of the source 2065 01:41:33,340 --> 01:41:34,640 and one of the graphs, 2066 01:41:34,900 --> 01:41:36,880 it will update the others with your selection. 2067 01:41:37,000 --> 01:41:39,160 So you will see what machines 2068 01:41:39,160 --> 01:41:40,720 this source has talked to. 2069 01:41:41,140 --> 01:41:43,000 And all of them will update at the same time. 2070 01:41:43,080 --> 01:41:45,000 So you can use different views on the data 2071 01:41:47,220 --> 01:41:48,260 to figure out what's going on in there. 2072 01:41:50,920 --> 01:41:52,600 This is actually a really, really 2073 01:41:52,600 --> 01:41:54,760 powerful paradigm that you have 2074 01:41:54,760 --> 01:41:55,560 these linked views. 2075 01:41:56,700 --> 01:41:58,840 There's also a concept called dynamic queries 2076 01:41:59,840 --> 01:42:01,020 where you can do 2077 01:42:01,020 --> 01:42:02,220 on the fly investigations 2078 01:42:02,740 --> 01:42:04,920 and drill downs and everything updates 2079 01:42:04,920 --> 01:42:07,020 in real time. So if you start filtering 2080 01:42:07,020 --> 01:42:08,840 for a certain source address, for example, 2081 01:42:08,940 --> 01:42:10,440 you get rid of everything else, 2082 01:42:10,460 --> 01:42:11,500 and right away it's there. 2083 01:42:11,640 --> 01:42:13,300 So you do kind of a visual investigation 2084 01:42:13,880 --> 01:42:15,960 or dynamic query, as it's called, 2085 01:42:17,220 --> 01:42:18,760 to look at what the data is really about. 2086 01:42:18,940 --> 01:42:21,360 That helps a lot to very quickly see 2087 01:42:21,360 --> 01:42:23,220 this source is connected to all these machines 2088 01:42:23,220 --> 01:42:25,100 and then on these ports 2089 01:42:25,100 --> 01:42:26,220 and maybe you want to then 2090 01:42:26,220 --> 01:42:27,780 pivot back to see what port 2091 01:42:27,780 --> 01:42:29,700 these other machines are connected to. 2092 01:42:29,980 --> 01:42:31,220 It's just a very easy way 2093 01:42:31,220 --> 01:42:33,500 to play around with the data. 2094 01:42:35,560 --> 01:42:37,600 There are commercial tools. 2095 01:42:38,340 --> 01:42:40,440 One that I was allowed to use 2096 01:42:40,440 --> 01:42:41,240 also for the book 2097 01:42:41,240 --> 01:42:43,220 and I know pretty well by now 2098 01:42:43,220 --> 01:42:43,860 is called Advisor. 2099 01:42:44,920 --> 01:42:46,760 That's kind of the commercial end 2100 01:42:47,220 --> 01:42:48,040 of G-Gobi. 2101 01:42:48,160 --> 01:42:50,360 I think Mondrian also is a similar tool 2102 01:42:50,360 --> 01:42:51,460 that has linked views. 2103 01:42:53,100 --> 01:42:55,220 It's really powerful to do analysis in there. 2104 01:42:55,620 --> 01:42:57,420 I did one analysis on botnets 2105 01:42:57,940 --> 01:42:59,340 that I describe in the book 2106 01:42:59,340 --> 01:43:00,660 where I use Advisor 2107 01:43:01,380 --> 01:43:03,400 just because I couldn't find any open source tool 2108 01:43:03,400 --> 01:43:04,440 that would actually do the job. 2109 01:43:05,500 --> 01:43:07,480 Otherwise, everything that you find in the book 2110 01:43:07,480 --> 01:43:08,680 is all done with open source tools. 2111 01:43:08,840 --> 01:43:10,380 I think that was the only analysis I used 2112 01:43:10,380 --> 01:43:12,000 actually, something you have to pay for. 2113 01:43:17,220 --> 01:43:18,300 What does it cost? 2114 01:43:18,920 --> 01:43:20,080 I have no idea. 2115 01:43:23,220 --> 01:43:24,640 I think it's 2116 01:43:25,180 --> 01:43:26,080 fairly expensive. 2117 01:43:26,560 --> 01:43:28,620 It's a BI tool, so business intelligence 2118 01:43:28,620 --> 01:43:31,100 and they like to charge for what they have. 2119 01:43:31,600 --> 01:43:32,920 To be fair, 2120 01:43:33,200 --> 01:43:33,700 it's a really 2121 01:43:34,980 --> 01:43:35,760 commercial tool. 2122 01:43:35,860 --> 01:43:37,460 It has a lot of features. 2123 01:43:37,680 --> 01:43:39,940 It has different data inputs you can take. 2124 01:43:40,840 --> 01:43:41,960 It's fairly powerful. 2125 01:43:42,400 --> 01:43:44,360 The price is definitely justified. 2126 01:43:45,620 --> 01:43:46,940 Unfortunately, no one came up with 2127 01:43:47,220 --> 01:43:48,360 an open source variant yet 2128 01:43:48,360 --> 01:43:49,980 that's good or even better. 2129 01:43:59,100 --> 01:44:00,640 It wasn't very interesting 2130 01:44:00,640 --> 01:44:02,700 when I only took the first 2,000 records, 2131 01:44:02,800 --> 01:44:04,000 so I parsed the entire file, 2132 01:44:04,140 --> 01:44:05,600 which is like 100,000 records, 2133 01:44:05,760 --> 01:44:09,100 but it takes forever for GOB to parse that entire file. 2134 01:44:09,100 --> 01:44:09,880 This is where 2135 01:44:10,360 --> 01:44:11,960 a lot of the visualization tools, 2136 01:44:12,080 --> 01:44:12,900 even commercial ones, 2137 01:44:13,060 --> 01:44:15,820 they have problems with large data 2138 01:44:17,220 --> 01:44:18,380 and GGOBI specifically, 2139 01:44:19,220 --> 01:44:20,620 they have to put everything into memory 2140 01:44:20,620 --> 01:44:22,500 so they support dynamic queries. 2141 01:44:22,780 --> 01:44:24,320 If I click on a certain bar, 2142 01:44:24,520 --> 01:44:26,220 a source address, they need to know 2143 01:44:26,220 --> 01:44:27,580 what destinations are linked to that. 2144 01:44:28,200 --> 01:44:30,360 There are things in data mining 2145 01:44:30,360 --> 01:44:31,920 with the OLAP cubes and whatnot. 2146 01:44:32,420 --> 01:44:33,780 This is not an OLAP 2147 01:44:33,780 --> 01:44:36,200 or this is not a data warehouse 2148 01:44:36,200 --> 01:44:37,920 where you actually run something 2149 01:44:37,920 --> 01:44:38,880 very powerful underneath. 2150 01:44:39,200 --> 01:44:40,580 This is just putting it into memory 2151 01:44:40,580 --> 01:44:42,560 and probably using some really horrible data structures. 2152 01:44:42,560 --> 01:44:43,720 Yes. 2153 01:44:44,800 --> 01:44:45,960 It actually 2154 01:44:46,560 --> 01:44:48,620 kind of jumped out on this visualization. 2155 01:44:52,600 --> 01:44:54,280 I was having trouble 2156 01:44:54,280 --> 01:44:55,960 getting it to show... 2157 01:44:55,960 --> 01:44:58,280 It appears to only be showing... 2158 01:44:59,120 --> 01:45:00,460 It appears to 2159 01:45:00,460 --> 01:45:02,200 not be showing all the IP addresses. 2160 01:45:02,960 --> 01:45:04,260 I was having trouble 2161 01:45:04,260 --> 01:45:06,880 getting this tool to... 2162 01:45:07,780 --> 01:45:09,620 One of the other things is 2163 01:45:09,620 --> 01:45:11,960 these tools are all different 2164 01:45:12,560 --> 01:45:14,740 to operate and GGOBI 2165 01:45:14,740 --> 01:45:15,960 I think is fairly horrible too. 2166 01:45:18,760 --> 01:45:21,380 At first I was really excited 2167 01:45:21,380 --> 01:45:22,200 because this 2168 01:45:22,200 --> 01:45:24,320 appeared to show a lot of activity 2169 01:45:24,320 --> 01:45:25,740 on port 3333, 2170 01:45:25,900 --> 01:45:28,220 but then I was a little bit less excited. 2171 01:45:32,340 --> 01:45:34,000 Now we can open a second one. 2172 01:45:34,580 --> 01:45:36,200 This is a scatterplot matrix 2173 01:45:36,200 --> 01:45:38,360 where you have... 2174 01:45:40,560 --> 01:45:41,760 Let's see... 2175 01:45:42,940 --> 01:45:44,260 Here is the... 2176 01:45:45,800 --> 01:45:47,020 I have this... 2177 01:45:47,680 --> 01:45:49,260 I have a presentation on this. 2178 01:45:49,740 --> 01:45:51,320 Most of the visualization tools 2179 01:45:51,860 --> 01:45:52,380 have... 2180 01:45:52,380 --> 01:45:54,560 They don't really follow good principles. 2181 01:45:55,140 --> 01:45:56,240 One here is 2182 01:45:56,240 --> 01:45:57,780 just label the freaking axes. 2183 01:46:00,040 --> 01:46:00,880 You know what? 2184 01:46:00,980 --> 01:46:02,300 This is actually a problem 2185 01:46:02,300 --> 01:46:03,540 of how we generated the data. 2186 01:46:03,700 --> 01:46:05,020 I should not even blame the tool. 2187 01:46:06,460 --> 01:46:07,480 In this case, 2188 01:46:07,560 --> 01:46:08,600 the tool expects 2189 01:46:08,600 --> 01:46:10,220 the first row 2190 01:46:10,220 --> 01:46:12,380 to be the name of the column. 2191 01:46:13,060 --> 01:46:14,280 I think the first one 2192 01:46:14,280 --> 01:46:15,540 just says 3333. 2193 01:46:16,060 --> 01:46:17,380 I guess the tool does it. 2194 01:46:17,420 --> 01:46:18,400 It actually does show 2195 01:46:19,920 --> 01:46:21,180 the axes labels. 2196 01:46:21,520 --> 01:46:22,560 I guess we just infer it. 2197 01:46:22,660 --> 01:46:24,360 This is the source address here. 2198 01:46:24,460 --> 01:46:27,000 You see the distribution over... 2199 01:46:27,540 --> 01:46:28,600 That doesn't make sense. 2200 01:46:28,760 --> 01:46:29,780 I don't even know what this would show. 2201 01:46:30,040 --> 01:46:32,580 This one here shows source addresses 2202 01:46:32,580 --> 01:46:34,580 and then ports going that way. 2203 01:46:35,840 --> 01:46:36,900 That would make sense. 2204 01:46:38,640 --> 01:46:40,900 If we edited that CSB file 2205 01:46:40,900 --> 01:46:42,300 and put a header row in... 2206 01:46:42,300 --> 01:46:42,460 Yes. 2207 01:46:44,920 --> 01:46:46,280 Every tool does it different. 2208 01:46:46,400 --> 01:46:46,820 You don't know. 2209 01:46:47,020 --> 01:46:48,580 You have to know that the first one 2210 01:46:48,580 --> 01:46:49,780 has to be the label. 2211 01:46:50,400 --> 01:46:51,980 For other tools, it's even worse 2212 01:46:51,980 --> 01:46:52,880 because you have to do 2213 01:46:52,880 --> 01:46:53,680 many transformations. 2214 01:46:54,860 --> 01:46:58,660 One of the worst ones was probably Parvis, 2215 01:46:59,260 --> 01:46:59,940 I think, 2216 01:47:00,780 --> 01:47:03,560 which is a parallel coordinate display. 2217 01:47:04,220 --> 01:47:05,140 What you have to do 2218 01:47:05,140 --> 01:47:07,200 is translate all your data input 2219 01:47:08,600 --> 01:47:09,540 from zero to one. 2220 01:47:09,680 --> 01:47:10,900 You have to scale it all in. 2221 01:47:11,000 --> 01:47:12,300 If you have IP addresses, 2222 01:47:12,440 --> 01:47:13,280 that might work. 2223 01:47:13,460 --> 01:47:15,540 You can probably have a mapping. 2224 01:47:15,800 --> 01:47:16,940 But what if you have strings? 2225 01:47:17,220 --> 01:47:18,720 How do you map them in? 2226 01:47:18,800 --> 01:47:20,020 You have to have a hash table 2227 01:47:20,020 --> 01:47:21,160 or something to map them in. 2228 01:47:21,640 --> 01:47:22,500 That was horrible. 2229 01:47:22,860 --> 01:47:24,980 That's why I ended up not using that tool much. 2230 01:47:25,500 --> 01:47:27,000 I think now I just saw a posting 2231 01:47:27,000 --> 01:47:27,880 on setquist.org. 2232 01:47:28,020 --> 01:47:29,680 Someone posted in the last couple of days 2233 01:47:29,680 --> 01:47:31,200 some parallel coordinate 2234 01:47:32,300 --> 01:47:33,300 visualization tool. 2235 01:47:33,360 --> 01:47:34,240 I still have to look at it, 2236 01:47:34,300 --> 01:47:35,900 but that might actually finally be one 2237 01:47:35,900 --> 01:47:36,500 that we can use. 2238 01:47:39,020 --> 01:47:40,820 I think we're 2239 01:47:41,640 --> 01:47:43,440 short of being done here. 2240 01:47:44,160 --> 01:47:45,340 Does anyone else 2241 01:47:46,380 --> 01:47:47,060 want to 2242 01:47:47,520 --> 01:47:49,420 share some last thoughts with us? 2243 01:47:49,640 --> 01:47:50,760 I'm going to switch this over 2244 01:47:51,540 --> 01:47:53,180 to my laptop again 2245 01:47:54,540 --> 01:47:55,500 to kind of 2246 01:47:56,420 --> 01:47:56,940 conclude. 2247 01:47:59,040 --> 01:47:59,560 Anyway, 2248 01:47:59,680 --> 01:48:00,080 anything else? 2249 01:48:15,280 --> 01:48:19,140 The question is, 2250 01:48:20,220 --> 01:48:21,560 or the comment was first 2251 01:48:21,560 --> 01:48:23,040 that this is very network focused 2252 01:48:24,200 --> 01:48:25,540 or event focused. 2253 01:48:27,120 --> 01:48:27,640 Whether 2254 01:48:27,640 --> 01:48:29,480 I gave or we gave any thought 2255 01:48:29,680 --> 01:48:30,520 to binary analysis, 2256 01:48:31,740 --> 01:48:33,180 and this is actually 2257 01:48:33,180 --> 01:48:34,580 perfect leeway into 2258 01:48:36,180 --> 01:48:37,060 this here. 2259 01:48:40,200 --> 01:48:41,140 Greg, here's 2260 01:48:41,140 --> 01:48:42,040 the image, Greg. 2261 01:48:44,540 --> 01:48:45,820 The book 2262 01:48:45,820 --> 01:48:47,460 and what I 2263 01:48:47,460 --> 01:48:49,560 normally do, I'm really focusing on 2264 01:48:49,560 --> 01:48:51,600 time series data, everything you can 2265 01:48:51,600 --> 01:48:52,760 associate a timestamp with. 2266 01:48:53,440 --> 01:48:55,560 That's the network traffic logs, 2267 01:48:55,900 --> 01:48:57,580 that's maybe configuration 2268 01:48:57,580 --> 01:48:59,660 files, all kinds of IT data. 2269 01:48:59,680 --> 01:49:01,300 You can associate a timestamp with. 2270 01:49:02,960 --> 01:49:03,440 Greg, 2271 01:49:03,780 --> 01:49:05,040 who's sitting over there, 2272 01:49:05,180 --> 01:49:06,060 if you don't know him, 2273 01:49:06,440 --> 01:49:08,800 he's working a lot on doing binary analysis. 2274 01:49:09,220 --> 01:49:10,420 In his book also, 2275 01:49:10,580 --> 01:49:12,800 he's showing a few tools, 2276 01:49:12,940 --> 01:49:13,440 one of them, 2277 01:49:13,460 --> 01:49:15,140 which is the tool he wrote, 2278 01:49:15,420 --> 01:49:18,620 that he can use to analyze binary captures. 2279 01:49:19,600 --> 01:49:21,600 I guess for forensic investigations, 2280 01:49:21,960 --> 01:49:23,200 you would run a memory 2281 01:49:23,200 --> 01:49:24,180 dump in there, for example. 2282 01:49:24,580 --> 01:49:27,220 Greg's presentation is probably something 2283 01:49:27,220 --> 01:49:28,760 you should look at if you're interested in that. 2284 01:49:29,680 --> 01:49:31,440 He showed how you can go through memory 2285 01:49:31,440 --> 01:49:33,400 dumps and visually figure out 2286 01:49:33,400 --> 01:49:35,460 what's going on in there, which was very interesting. 2287 01:49:38,380 --> 01:49:39,620 That was that. 2288 01:49:40,360 --> 01:49:41,060 Any other? 2289 01:50:00,780 --> 01:50:01,520 Any other 2290 01:50:02,800 --> 01:50:03,720 final comments? 2291 01:50:04,860 --> 01:50:05,320 Yes? 2292 01:50:08,400 --> 01:50:09,320 Which one? 2293 01:50:11,760 --> 01:50:13,460 Oh, Backtrack 3 has a new 2294 01:50:13,460 --> 01:50:14,320 visualization tool in it? 2295 01:50:19,360 --> 01:50:21,100 I guess you have to talk to Max. 2296 01:50:22,600 --> 01:50:23,600 Apparently there's a new 2297 01:50:23,600 --> 01:50:25,180 in Backtrack 3, there's a new 2298 01:50:26,560 --> 01:50:27,660 web crawler that 2299 01:50:27,660 --> 01:50:28,740 visualizes some of the traffic. 2300 01:50:29,900 --> 01:50:31,980 It's a data miner and data 2301 01:50:31,980 --> 01:50:33,300 graphing exploration. 2302 01:50:33,860 --> 01:50:35,060 I forget the name of it. 2303 01:50:36,400 --> 01:50:37,460 Post on Secquist. 2304 01:50:37,580 --> 01:50:38,580 Just make an entry here. 2305 01:50:38,700 --> 01:50:39,700 Something cool in Backtrack. 2306 01:50:39,860 --> 01:50:41,620 People can go there and see it, 2307 01:50:41,680 --> 01:50:43,040 so we all get the feedback. 2308 01:50:46,440 --> 01:50:46,920 Okay. 2309 01:50:51,280 --> 01:50:52,160 Anything else? 2310 01:50:54,460 --> 01:50:54,940 . 2311 01:51:00,480 --> 01:51:01,120 . 2312 01:51:03,780 --> 01:51:04,420 . 2313 01:51:16,460 --> 01:51:17,800 DCB dumps supports that 2314 01:51:17,800 --> 01:51:19,840 so that it can send PCAPPs to a remote station? 2315 01:51:20,180 --> 01:51:20,600 . 2316 01:51:21,560 --> 01:51:22,200 Wireshark. 2317 01:51:22,560 --> 01:51:26,320 I haven't played that. 2318 01:51:26,660 --> 01:51:27,280 . 2319 01:51:29,740 --> 01:51:33,500 Can any of these tools handle IFTTT? Yes. There's a few on there that are actually 2320 01:51:33,500 --> 01:51:38,480 kind of interesting. One is called Realtime Graph or RTG from 2321 01:51:40,420 --> 01:51:42,960 Philippe. That might even be wrong. I'm a French guy. 2322 01:51:43,640 --> 01:51:49,720 He wrote Scoppy also. It's on the CD or it's on Davix. 2323 01:51:49,840 --> 01:51:51,640 Check that out. You can actually run... 2324 01:51:51,640 --> 01:51:58,020 What I did is I wrote just a bash script for a while loop, and I pumped the TCP dump traffic 2325 01:51:58,020 --> 01:52:02,680 in there. I think I submitted that on cyclist.org. 2326 01:52:02,780 --> 01:52:05,600 If you go and poke around in there, I actually show the little script you use. 2327 01:52:05,880 --> 01:52:14,280 You can add new nodes on the fly, and it does these 3D kind of link graphs and just adds 2328 01:52:14,280 --> 01:52:16,120 new ones. They get a little messy. 2329 01:52:16,220 --> 01:52:19,100 That's why I think I reset it after a certain time, but that's kind of cool. 2330 01:52:19,220 --> 01:52:22,960 I used to run that in the background on my machines as a screen saver. 2331 01:52:23,100 --> 01:52:25,100 That's kind of interesting. You can also... 2332 01:52:25,100 --> 01:52:26,600 What I do sometimes is run... 2333 01:52:26,600 --> 01:52:28,000 Again, it's just a while loop. 2334 01:52:28,000 --> 01:52:34,540 You can run a while loop and pipe 2,000 lines of TCP dump into a file and then run Afterglow 2335 01:52:34,540 --> 01:52:39,520 over that and just generate an image every 2,000 packets or whatever the number you're 2336 01:52:39,520 --> 01:52:44,660 comfortable with. Then use some GQ view, for example, that updates 2337 01:52:44,660 --> 01:52:49,600 automatically when there's a new file so you see the traffic at every instant in time. 2338 01:52:50,180 --> 01:52:55,040 You will notice that you will actually recognize the pattern of normal traffic. 2339 01:52:56,420 --> 01:52:57,560 I was able... 2340 01:52:57,560 --> 01:53:02,060 I ran it at work, and again, it's a screen saver, and I was able to see when someone 2341 01:53:02,060 --> 01:53:05,860 or when my machine did something weird because the pattern just looked completely different. 2342 01:53:06,940 --> 01:53:11,340 There's some other tools that do real-time traffic also. 2343 01:53:11,760 --> 01:53:17,480 I think we have to wrap up here. If you're really fast, I have about five t-shirts 2344 01:53:17,480 --> 01:53:24,860 left if you want one. Eric definitely gets to book. 2345 01:53:25,140 --> 01:53:26,160 Didn't I give you one already? 2346 01:53:26,620 --> 01:53:27,540 Yeah. Yeah. Yeah. Yeah. Yeah. Yeah. Yeah. Yeah. Yeah. Yeah. Yeah. Yeah. Yeah. Yeah. 2347 01:53:27,560 --> 01:53:36,020 That's good. We're going to hook up Eric's display as the 2348 01:53:36,020 --> 01:53:40,920 final slide. Thanks, everyone, for coming. I hope this was a little useful. It was an 2349 01:53:40,920 --> 01:53:47,580 experiment to run this at DEF CON as a workshop hands-on. I know it's not the same as running 2350 01:53:47,580 --> 01:53:51,740 a training where everybody knows they have to bring their laptop and do this, but I hope 2351 01:53:51,740 --> 01:53:54,140 it was a little fun for you. I enjoyed it. Thanks.