1 00:00:08,540 --> 00:00:11,340 Thank you. 2 00:00:59,400 --> 00:00:59,460 Thank you. 3 00:01:00,980 --> 00:01:04,180 To the memory of true explorers, 4 00:01:04,580 --> 00:01:07,160 I think that the picture speaks for itself. 5 00:01:16,300 --> 00:01:20,400 The source code for the new version of XBORP2 6 00:01:20,400 --> 00:01:22,740 is available from the cybersecurity website. 7 00:01:23,900 --> 00:01:28,720 This presentation would also be available early next week. 8 00:01:28,880 --> 00:01:29,980 And there is also... 9 00:01:30,000 --> 00:01:31,460 There is also a white paper that you can download 10 00:01:31,460 --> 00:01:35,020 basically outlines in great details 11 00:01:35,020 --> 00:01:36,940 the work that we have done 12 00:01:36,940 --> 00:01:38,300 and the things that we have implemented 13 00:01:38,300 --> 00:01:42,100 for XBORP2-02-RC1. 14 00:01:44,980 --> 00:01:47,580 Well, currently I am the CISO 15 00:01:47,580 --> 00:01:49,900 of International Telephone Carrier. 16 00:01:50,920 --> 00:01:54,740 I do computer security research on my own spare time. 17 00:01:55,020 --> 00:01:58,060 If you remember the EtherLeak paper 18 00:01:58,820 --> 00:01:59,980 about the first... 19 00:02:00,000 --> 00:02:01,080 RAM padding information leakage, 20 00:02:01,420 --> 00:02:03,800 this is a paper I wrote along with Josh Anderson. 21 00:02:04,760 --> 00:02:08,260 I also published several papers on IP, telephone, and security 22 00:02:08,260 --> 00:02:10,680 and other papers. 23 00:02:10,860 --> 00:02:12,980 I'm also a member of the HoneyNet project. 24 00:02:14,710 --> 00:02:17,200 The XBORP2 project is an open source project 25 00:02:17,780 --> 00:02:20,060 which has three developers, 26 00:02:20,340 --> 00:02:21,760 myself, Fyodor Arachkin, 27 00:02:21,980 --> 00:02:24,020 which is the other Fyodor, if you didn't know, 28 00:02:24,920 --> 00:02:26,600 Meder, Kidri Alev, 29 00:02:27,540 --> 00:02:29,220 two Russians and one Israeli 30 00:02:29,220 --> 00:02:29,980 living in... 31 00:02:30,000 --> 00:02:32,020 on basically three different time zones, 32 00:02:32,180 --> 00:02:33,100 which is kind of interesting. 33 00:02:34,640 --> 00:02:35,740 What is XBORP2? 34 00:02:35,860 --> 00:02:36,860 I bet that some of you know. 35 00:02:37,000 --> 00:02:39,740 It's a remote active operating system fingerprinting tool. 36 00:02:40,560 --> 00:02:43,300 It is an alternative to other fingerprinting tools 37 00:02:43,300 --> 00:02:46,700 and it was voted by several of you, I guess, 38 00:02:46,860 --> 00:02:49,580 as one of the top 75 security tools 39 00:02:49,580 --> 00:02:53,460 and it actually was among the top 50. 40 00:02:54,680 --> 00:02:57,600 Why it's so important to use active OS fingerprinting tools 41 00:02:57,600 --> 00:02:59,560 and where can we use them? 42 00:03:00,000 --> 00:03:06,500 Well, first of all, 43 00:03:06,520 --> 00:03:07,720 we need the context. 44 00:03:07,900 --> 00:03:09,560 We need the context for IDS systems. 45 00:03:09,720 --> 00:03:12,240 We need the context for vulnerability assessment tools. 46 00:03:12,620 --> 00:03:15,640 And most of us need to build a network inventory. 47 00:03:16,040 --> 00:03:17,840 These kind of tools help tremendously 48 00:03:17,840 --> 00:03:19,220 in doing these kind of tasks. 49 00:03:19,620 --> 00:03:22,540 And of course, there are some other individuals 50 00:03:22,540 --> 00:03:27,560 who use the tools for other usage scenarios, I guess. 51 00:03:29,420 --> 00:03:29,980 So, I think it's really important 52 00:03:30,000 --> 00:03:30,300 to make sure that we have the context. 53 00:03:30,300 --> 00:03:33,580 So, XBORP2 project, basically, as I said before, 54 00:03:33,660 --> 00:03:34,680 is an open source project. 55 00:03:34,740 --> 00:03:38,460 It reflects its developers' beliefs and ideas. 56 00:03:39,740 --> 00:03:42,780 We do hope it contributes to the community at large, 57 00:03:42,860 --> 00:03:45,140 to the security community at large. 58 00:03:45,360 --> 00:03:48,800 And we do encourage people to contribute to the project. 59 00:03:51,100 --> 00:03:54,040 We know that several companies and individuals 60 00:03:54,040 --> 00:03:57,900 were inspired by XBORP2. 61 00:03:58,080 --> 00:03:59,980 So, they decided to look at it 62 00:04:00,000 --> 00:04:02,840 and lift off or lift some techniques 63 00:04:02,840 --> 00:04:04,140 and technologies from it. 64 00:04:04,560 --> 00:04:07,020 But they don't even bother to credit us. 65 00:04:08,280 --> 00:04:11,140 First version of XBORP2 was released two years ago 66 00:04:11,940 --> 00:04:16,200 at Black Hat in 2001, June 2001. 67 00:04:16,920 --> 00:04:19,000 It was only a mission statement, 68 00:04:19,220 --> 00:04:24,460 relying only on several ICMP-based fingerprinting methods 69 00:04:24,460 --> 00:04:25,880 that I've researched. 70 00:04:26,660 --> 00:04:28,680 It was a static decision tree. 71 00:04:29,200 --> 00:04:29,980 As a result, 72 00:04:30,000 --> 00:04:30,440 as I said before, 73 00:04:30,660 --> 00:04:32,960 nothing much was a mission statement, 74 00:04:33,200 --> 00:04:34,200 a working mission statement. 75 00:04:36,020 --> 00:04:37,480 Last year at DEF CON 10, 76 00:04:37,640 --> 00:04:40,040 we have released a newer version of XBORP2, 77 00:04:41,100 --> 00:04:43,020 which had several enhancements. 78 00:04:43,500 --> 00:04:45,820 We were the first open source tool 79 00:04:45,820 --> 00:04:46,980 to implement fuzzy logic. 80 00:04:49,200 --> 00:04:50,900 Fuzzy logic is a matching algorithm 81 00:04:50,900 --> 00:04:53,260 between the probe results we received 82 00:04:53,260 --> 00:04:54,600 from targeted operating systems 83 00:04:54,600 --> 00:04:57,960 and the signature database that we have. 84 00:04:58,480 --> 00:05:02,900 Again, XBORP2 was relying on ICMP-based fingerprinting tests only. 85 00:05:04,280 --> 00:05:05,120 Last April, 86 00:05:05,340 --> 00:05:09,100 we have released 0.1 release. 87 00:05:09,560 --> 00:05:12,640 It's really hard when you work with software engineers 88 00:05:12,640 --> 00:05:13,880 to bump up the versions. 89 00:05:14,120 --> 00:05:14,580 I was like, 90 00:05:14,680 --> 00:05:17,940 cool, so we can release a DEF CON 1.0. 91 00:05:18,120 --> 00:05:18,720 And they were like, 92 00:05:18,900 --> 00:05:20,080 well, you know what, 93 00:05:20,160 --> 00:05:22,360 0.2 RC1 is good enough. 94 00:05:24,880 --> 00:05:26,260 0.1 release, 95 00:05:26,260 --> 00:05:28,080 sends RFC-compliant packets. 96 00:05:28,260 --> 00:05:30,160 There is no more XBORP2 in the payload. 97 00:05:30,920 --> 00:05:32,800 We went through a lot of bug fixes. 98 00:05:33,500 --> 00:05:35,380 We added a lot of signatures. 99 00:05:35,920 --> 00:05:39,960 And we also support the IPID equals sent fingerprinting method, 100 00:05:40,160 --> 00:05:41,440 which, if you want to learn about, 101 00:05:41,760 --> 00:05:43,300 is outlined on my website. 102 00:05:45,520 --> 00:05:47,920 XBORP2 0.2 RC1 was released yesterday, 103 00:05:48,120 --> 00:05:49,520 as well as the white paper. 104 00:05:51,940 --> 00:05:53,880 This part of the presentation 105 00:05:53,880 --> 00:05:55,600 will go through quickly, 106 00:05:56,260 --> 00:05:56,760 and there will be several issues 107 00:05:56,760 --> 00:05:59,600 with active operating system fingerprinting. 108 00:05:59,620 --> 00:06:03,020 If some of you have any questions, 109 00:06:03,120 --> 00:06:03,840 please raise your hand, 110 00:06:03,920 --> 00:06:05,120 and I will stop and answer the question. 111 00:06:06,760 --> 00:06:08,900 When we do fingerprinting 112 00:06:08,900 --> 00:06:11,740 and we do operating system fingerprinting, 113 00:06:11,780 --> 00:06:15,040 we fingerprint the way the operating system 114 00:06:15,040 --> 00:06:17,760 has the software reacts to the probes that we send. 115 00:06:18,200 --> 00:06:20,780 When we fingerprint a hardware-based device, 116 00:06:20,980 --> 00:06:24,280 we fingerprint the way the device's firmware acts 117 00:06:24,280 --> 00:06:26,500 to the different fingerprinting tests. 118 00:06:26,820 --> 00:06:30,200 This is something that not a lot of people actually understand, 119 00:06:30,380 --> 00:06:32,460 and what they're doing is they fingerprint 120 00:06:32,460 --> 00:06:33,980 or put in the signature database 121 00:06:33,980 --> 00:06:37,940 the brand of the device that was fingerprinted. 122 00:06:38,240 --> 00:06:42,780 For example, if we'll try to fingerprint 123 00:06:42,780 --> 00:06:46,140 a Cisco 7200-based router 124 00:06:46,140 --> 00:06:50,620 and a Cisco Aeronet 1100 or 1200 wireless access point, 125 00:06:50,760 --> 00:06:51,140 guess what? 126 00:06:51,240 --> 00:06:52,220 They're both using iOS, 127 00:06:52,220 --> 00:06:55,400 so they both will be identified the same. 128 00:06:56,380 --> 00:07:01,160 If you don't understand how to build your signatures, 129 00:07:01,280 --> 00:07:02,860 then at the end of the day, 130 00:07:02,900 --> 00:07:05,240 the signatures that you will put inside your signature database 131 00:07:05,240 --> 00:07:08,740 will not give you that much of information. 132 00:07:09,220 --> 00:07:12,280 For example, another example is Foundry Network's 133 00:07:12,280 --> 00:07:14,820 NetFast Big Iron family. 134 00:07:15,040 --> 00:07:17,020 Basically, they all use the same software version, 135 00:07:17,200 --> 00:07:18,280 so it doesn't really matter 136 00:07:19,800 --> 00:07:22,200 which Foundry Network's device you're fingerprinting. 137 00:07:22,220 --> 00:07:24,300 At the end of the day, what you're doing 138 00:07:24,300 --> 00:07:26,760 is you fingerprint the firmware version, 139 00:07:26,880 --> 00:07:27,960 you fingerprint the software, 140 00:07:28,160 --> 00:07:30,120 and that's what's really important. 141 00:07:31,100 --> 00:07:33,980 So if the tool you guys are using 142 00:07:33,980 --> 00:07:37,560 has a database which, well, 143 00:07:37,740 --> 00:07:40,840 did put signatures according to the brand, 144 00:07:41,000 --> 00:07:43,840 I guess the results that you will get 145 00:07:43,840 --> 00:07:46,680 will be, well, maybe not accurate, 146 00:07:46,780 --> 00:07:48,800 but will not give you enough information 147 00:07:48,800 --> 00:07:49,940 for you to understand. 148 00:07:54,140 --> 00:07:56,260 If your tool of choice is using 149 00:07:56,260 --> 00:07:57,220 a strict signature matching, 150 00:07:57,500 --> 00:08:00,100 then if it will not find a 100% match 151 00:08:00,100 --> 00:08:02,160 between the received results and the signature database, 152 00:08:02,400 --> 00:08:04,340 it will not produce any kind of results. 153 00:08:05,080 --> 00:08:06,900 It will be extremely sensitive 154 00:08:06,900 --> 00:08:09,820 to different environmental effects 155 00:08:09,820 --> 00:08:11,800 on the target and on the packets 156 00:08:11,800 --> 00:08:13,120 that are sent to the target. 157 00:08:14,240 --> 00:08:17,140 As I said before, we decided to implement Fuzzy Logic, 158 00:08:17,340 --> 00:08:18,980 which gives us the opportunity 159 00:08:18,980 --> 00:08:20,800 to overcome several difficulties 160 00:08:20,800 --> 00:08:23,940 in the process of actively scanning a host 161 00:08:23,940 --> 00:08:27,460 and actively determining the OS. 162 00:08:31,120 --> 00:08:33,080 Another interesting angle is the use 163 00:08:33,080 --> 00:08:35,040 of a fixed number of fingerprinting tests. 164 00:08:35,300 --> 00:08:37,320 In theory, if we have a fixed number 165 00:08:37,320 --> 00:08:38,360 of fingerprinting tests 166 00:08:39,080 --> 00:08:41,980 and we have a fixed number of parameters 167 00:08:42,320 --> 00:08:44,440 that we examine and, of course, 168 00:08:44,500 --> 00:08:46,700 they have a fixed number of permutations, 169 00:08:46,880 --> 00:08:48,820 then the possible matches will be 170 00:08:48,820 --> 00:08:49,840 a fixed number as well. 171 00:08:49,840 --> 00:08:51,840 Sure, the possible matches 172 00:08:51,840 --> 00:08:55,060 still has a larger number 173 00:08:55,060 --> 00:08:57,320 than the networking devices 174 00:08:57,320 --> 00:08:58,480 that are out there, 175 00:08:58,600 --> 00:09:00,300 but there are several test cases 176 00:09:00,300 --> 00:09:03,940 or test models that will fail 177 00:09:03,940 --> 00:09:07,960 to provide us with the so much needed results. 178 00:09:10,040 --> 00:09:11,820 Basically, what they will create 179 00:09:11,820 --> 00:09:13,580 is a certain group of operating systems 180 00:09:13,580 --> 00:09:16,080 as a result, as the best effort result, 181 00:09:16,260 --> 00:09:18,340 and will not be able to give you 182 00:09:18,340 --> 00:09:20,180 a certain operating system 183 00:09:20,180 --> 00:09:22,780 as one result only 184 00:09:22,780 --> 00:09:24,560 or two operating systems 185 00:09:24,560 --> 00:09:25,500 as a final result. 186 00:09:28,040 --> 00:09:30,580 This also means that if you want 187 00:09:30,580 --> 00:09:31,580 to have a better tool 188 00:09:31,580 --> 00:09:33,580 for active OS fingerprinting, 189 00:09:33,600 --> 00:09:36,860 you should use a lot of fingerprinting tests 190 00:09:36,860 --> 00:09:39,660 that will examine many parameter values. 191 00:09:40,880 --> 00:09:44,640 It should be a test that the parameter values 192 00:09:44,640 --> 00:09:46,860 should be different among many 193 00:09:47,600 --> 00:09:49,880 operating systems that you are going to test. 194 00:09:50,940 --> 00:09:53,480 We were going through a phase 195 00:09:53,480 --> 00:09:54,720 of trying to determine 196 00:09:54,720 --> 00:09:56,520 which other fingerprinting models 197 00:09:56,520 --> 00:09:57,620 do we need, 198 00:09:57,740 --> 00:09:59,340 and some of the fingerprinting models 199 00:09:59,340 --> 00:10:01,500 that we examined simply did not 200 00:10:02,600 --> 00:10:04,380 give us the expected results. 201 00:10:05,000 --> 00:10:06,820 I remember one of them 202 00:10:06,820 --> 00:10:08,700 just allowing us to isolate 203 00:10:08,700 --> 00:10:10,680 one operating system only, 204 00:10:10,780 --> 00:10:12,040 and it wasn't Microsoft, 205 00:10:12,280 --> 00:10:14,800 so it wasn't really something 206 00:10:14,800 --> 00:10:16,720 that we thought that it should be implemented 207 00:10:16,860 --> 00:10:18,860 that would give us a certain answer 208 00:10:19,420 --> 00:10:20,640 or a definite answer about one 209 00:10:20,640 --> 00:10:22,080 group of operating systems. 210 00:10:26,100 --> 00:10:28,460 The use of a certain fingerprinting niche 211 00:10:28,460 --> 00:10:29,360 is a problem as well. 212 00:10:31,140 --> 00:10:33,220 If we are looking at, 213 00:10:33,300 --> 00:10:34,340 for example, 214 00:10:34,460 --> 00:10:35,600 X-Probe 2 via 1, 215 00:10:35,820 --> 00:10:38,500 then we are using, with that particular 216 00:10:38,500 --> 00:10:40,320 version of the tool, only ICMP-based 217 00:10:40,320 --> 00:10:41,880 fingerprinting tests. It means that 218 00:10:41,880 --> 00:10:44,320 on some tests we will fail to provide 219 00:10:44,320 --> 00:10:46,620 the much expected results 220 00:10:46,860 --> 00:10:48,580 meaning that we will be able to tell 221 00:10:48,580 --> 00:10:50,280 that this is a SunSolaris box 222 00:10:50,280 --> 00:10:52,900 but we will not be able to say 223 00:10:53,640 --> 00:10:55,120 which version of Solaris 224 00:10:55,500 --> 00:10:56,640 is the exact version 225 00:10:56,640 --> 00:10:58,500 on the machine. 226 00:10:59,200 --> 00:11:00,280 If you use 227 00:11:01,300 --> 00:11:02,400 Nmap, for example, 228 00:11:02,560 --> 00:11:04,540 using most of its TCP-based 229 00:11:06,080 --> 00:11:06,920 fingerprinting tests, 230 00:11:07,140 --> 00:11:08,620 there are several groups 231 00:11:08,620 --> 00:11:09,940 that you cannot differentiate 232 00:11:09,940 --> 00:11:11,600 between merely 233 00:11:12,600 --> 00:11:14,380 XP2000 and ME comes as 234 00:11:14,380 --> 00:11:16,780 one group and the other Microsoft-based 235 00:11:16,860 --> 00:11:18,080 operating systems comes as another. 236 00:11:22,580 --> 00:11:24,320 If you take 237 00:11:24,690 --> 00:11:26,560 that into consideration and 238 00:11:26,560 --> 00:11:28,360 add to that the fact that 239 00:11:28,360 --> 00:11:30,120 nearly released operating systems 240 00:11:30,120 --> 00:11:32,180 do not nearly change the way 241 00:11:32,180 --> 00:11:34,800 their TCP IP stack is being built, 242 00:11:35,900 --> 00:11:36,440 then 243 00:11:36,440 --> 00:11:38,220 at the end of the day, 244 00:11:38,300 --> 00:11:40,720 these tools like Nmap or X-Probe 2 245 00:11:40,720 --> 00:11:42,920 via 1 will not be able to differentiate 246 00:11:42,920 --> 00:11:44,900 between nearly released operating systems 247 00:11:44,900 --> 00:11:46,320 of the same manufacturer. 248 00:11:49,420 --> 00:11:51,140 Usually the changes 249 00:11:51,140 --> 00:11:53,060 that we can see 250 00:11:53,060 --> 00:11:54,060 in the stack 251 00:11:54,060 --> 00:11:56,500 would be very little, 252 00:11:57,540 --> 00:11:58,460 usually only 253 00:11:58,460 --> 00:11:59,760 in one protocol's behavior 254 00:11:59,760 --> 00:12:01,120 and if you are not testing 255 00:12:01,120 --> 00:12:01,880 for that protocol, 256 00:12:02,080 --> 00:12:03,040 then you will not be able 257 00:12:03,040 --> 00:12:04,460 to differentiate between the new 258 00:12:04,460 --> 00:12:05,820 version of the operating system 259 00:12:06,600 --> 00:12:07,620 from an old one. 260 00:12:09,040 --> 00:12:10,760 This is an example, 261 00:12:11,000 --> 00:12:11,860 as I told you before, 262 00:12:12,000 --> 00:12:12,680 you can see here, 263 00:12:16,860 --> 00:12:17,860 the results 264 00:12:17,860 --> 00:12:19,380 that we have received, 265 00:12:19,560 --> 00:12:20,680 basically the entire 266 00:12:20,680 --> 00:12:23,960 SinOS-based operating systems. 267 00:12:24,840 --> 00:12:26,460 This is an Nmap run 268 00:12:26,460 --> 00:12:28,220 against an NT4-based machine, 269 00:12:29,700 --> 00:12:30,340 SP6A. 270 00:12:30,780 --> 00:12:31,780 You can see that 271 00:12:31,780 --> 00:12:34,560 we got a lot of other Microsoft-based 272 00:12:34,560 --> 00:12:35,860 operating systems with the results. 273 00:12:38,640 --> 00:12:40,420 Another interesting angle to active 274 00:12:40,420 --> 00:12:41,700 operating system fingerprinting, 275 00:12:41,700 --> 00:12:44,080 which is turning to be a very major 276 00:12:44,080 --> 00:12:46,520 issue for all of us, 277 00:12:46,860 --> 00:12:47,960 especially in a big corporate network, 278 00:12:48,180 --> 00:12:50,400 is the ability to determine the exact 279 00:12:50,400 --> 00:12:52,120 software service spec which is installed 280 00:12:52,120 --> 00:12:53,380 on a certain operating system. 281 00:12:53,880 --> 00:12:56,480 Usually the traditional tools 282 00:12:56,480 --> 00:12:58,620 will be unable to uncover 283 00:12:58,620 --> 00:13:00,180 the exact service spec installed 284 00:13:00,180 --> 00:13:01,260 on a certain box. 285 00:13:04,120 --> 00:13:05,500 We will be able to tell 286 00:13:05,500 --> 00:13:06,500 that the machine 287 00:13:06,500 --> 00:13:07,760 is a Windows 2K server, 288 00:13:07,940 --> 00:13:09,100 but the exact service spec 289 00:13:09,100 --> 00:13:10,140 will not be detected. 290 00:13:13,320 --> 00:13:14,880 Several other issues 291 00:13:14,880 --> 00:13:16,300 include tests 292 00:13:16,860 --> 00:13:17,760 that may have bigger impact 293 00:13:17,760 --> 00:13:18,840 on the overall results. 294 00:13:19,100 --> 00:13:20,420 If they're going to fail, 295 00:13:20,600 --> 00:13:23,360 if you will be unable to execute them 296 00:13:23,360 --> 00:13:24,440 for some reason, 297 00:13:24,940 --> 00:13:27,280 you will be affecting the overall accuracy 298 00:13:27,280 --> 00:13:28,120 of the tool, 299 00:13:28,240 --> 00:13:30,180 of the result that you will receive, 300 00:13:30,500 --> 00:13:31,840 and the much effect that you 301 00:13:32,600 --> 00:13:34,100 would have expected otherwise 302 00:13:34,100 --> 00:13:36,300 from that particular test 303 00:13:36,300 --> 00:13:38,660 will not be actually in effect. 304 00:13:40,860 --> 00:13:42,320 This is an example 305 00:13:42,320 --> 00:13:43,400 with Xport 2 running 306 00:13:43,400 --> 00:13:45,600 all of its fingerprinting models. 307 00:13:47,260 --> 00:13:48,980 The testing question here 308 00:13:48,980 --> 00:13:52,720 is Microsoft Windows XP Pro SP1, 309 00:13:53,680 --> 00:13:54,820 but you can see 310 00:13:54,820 --> 00:13:56,380 that we got the 2000 311 00:13:56,380 --> 00:13:58,660 as well as the answer. 312 00:13:59,060 --> 00:14:00,860 If we omit 313 00:14:00,860 --> 00:14:03,980 the ICMP echo fingerprinting test, 314 00:14:04,200 --> 00:14:05,160 we can see that 315 00:14:05,160 --> 00:14:06,320 the Microsoft Windows ME 316 00:14:06,320 --> 00:14:07,660 based machine 317 00:14:07,660 --> 00:14:10,460 is now given to us 318 00:14:10,460 --> 00:14:11,420 as a result as well. 319 00:14:12,700 --> 00:14:13,440 That's because 320 00:14:13,440 --> 00:14:15,340 the ICMP echo fingerprinting test 321 00:14:15,340 --> 00:14:16,040 is being used 322 00:14:16,860 --> 00:14:17,980 to not only differentiate between 323 00:14:18,780 --> 00:14:20,220 Microsoft based operating systems 324 00:14:20,720 --> 00:14:23,040 to the rest of the operating system world, 325 00:14:23,180 --> 00:14:24,220 but also to differentiate 326 00:14:24,220 --> 00:14:25,960 between the Microsoft ME 327 00:14:25,960 --> 00:14:28,120 and the Microsoft 2000 and XP families. 328 00:14:33,220 --> 00:14:33,940 Sometimes, 329 00:14:34,860 --> 00:14:36,260 especially on the internet, 330 00:14:36,420 --> 00:14:37,980 if we are probing 331 00:14:37,980 --> 00:14:39,440 a website 332 00:14:39,440 --> 00:14:41,320 or some machine, 333 00:14:41,620 --> 00:14:45,020 there might be several 334 00:14:45,020 --> 00:14:46,620 effects on the package 335 00:14:46,860 --> 00:14:47,180 that we send. 336 00:14:47,320 --> 00:14:47,780 For example, 337 00:14:47,820 --> 00:14:49,000 on our local network, 338 00:14:49,300 --> 00:14:52,480 we might have different VLANs 339 00:14:52,480 --> 00:14:54,080 and several VLANs might have 340 00:14:54,080 --> 00:14:55,220 a better quality of service. 341 00:14:55,520 --> 00:14:56,580 It means that 342 00:14:57,860 --> 00:14:59,280 when we send a packet, 343 00:14:59,400 --> 00:15:01,980 our switch will put a value 344 00:15:01,980 --> 00:15:03,620 in the type of service field 345 00:15:03,620 --> 00:15:05,180 and send it out. 346 00:15:05,660 --> 00:15:07,360 Some firewalls are able 347 00:15:07,360 --> 00:15:08,740 to change several field values. 348 00:15:09,000 --> 00:15:09,900 For example, 349 00:15:09,900 --> 00:15:10,700 Check Point NG 350 00:15:10,700 --> 00:15:11,740 with Application Intelligence 351 00:15:11,740 --> 00:15:14,600 can overwrite the time to leave field value 352 00:15:14,600 --> 00:15:15,920 and can do other little things. 353 00:15:17,660 --> 00:15:18,700 So basically, 354 00:15:18,860 --> 00:15:20,160 when you are scanning, 355 00:15:20,380 --> 00:15:22,260 especially on a hostile environment 356 00:15:22,260 --> 00:15:23,840 or against a hostile environment, 357 00:15:24,540 --> 00:15:25,660 your packets may 358 00:15:26,720 --> 00:15:28,240 get to the target 359 00:15:28,240 --> 00:15:29,580 a little bit different. 360 00:15:29,760 --> 00:15:30,760 That also holds through 361 00:15:30,760 --> 00:15:32,900 when you hit proxies 362 00:15:32,900 --> 00:15:34,040 or load balancers. 363 00:15:36,620 --> 00:15:37,740 And of course, 364 00:15:41,300 --> 00:15:41,860 if we open 365 00:15:41,860 --> 00:15:43,600 and let you just scan them, 366 00:15:43,720 --> 00:15:45,380 a lot of systems are being firewalled 367 00:15:45,380 --> 00:15:47,460 and we expect them to be firewalled. 368 00:15:47,780 --> 00:15:48,260 So, 369 00:15:49,460 --> 00:15:50,220 when you 370 00:15:52,040 --> 00:15:53,240 scan or use 371 00:15:54,440 --> 00:15:55,340 several tests 372 00:15:55,340 --> 00:15:57,180 that use some weird combinations 373 00:15:57,180 --> 00:15:58,420 like, for example, 374 00:15:58,420 --> 00:16:00,100 if you use a SynFin scan 375 00:16:00,100 --> 00:16:03,260 against a Check Point Firewall 376 00:16:03,260 --> 00:16:05,020 or other firewalls that are able to do 377 00:16:05,020 --> 00:16:05,840 stateful inspection, 378 00:16:06,480 --> 00:16:08,560 your packet is not going to go through the firewall. 379 00:16:09,900 --> 00:16:11,300 This also brings another angle to it 380 00:16:11,300 --> 00:16:13,460 that if you are using 381 00:16:13,460 --> 00:16:15,380 an OS fingerprinting tool, 382 00:16:15,500 --> 00:16:17,200 some of the fingerprinting tools 383 00:16:17,200 --> 00:16:18,200 must be legit. 384 00:16:18,520 --> 00:16:20,940 It means that when you will initiate the tool 385 00:16:20,940 --> 00:16:22,080 and we will send it away, 386 00:16:22,220 --> 00:16:24,080 you want to be able to go through the firewall 387 00:16:24,080 --> 00:16:25,820 that is guarding the target 388 00:16:25,820 --> 00:16:27,940 and to be able to receive the reply. 389 00:16:34,040 --> 00:16:35,020 And of course, 390 00:16:36,260 --> 00:16:37,880 several system admins, 391 00:16:37,980 --> 00:16:39,860 especially on a small shop 392 00:16:39,900 --> 00:16:41,860 go and change several behavior 393 00:16:42,840 --> 00:16:43,720 on the 394 00:16:44,500 --> 00:16:45,660 different aborting systems 395 00:16:45,660 --> 00:16:46,280 they install. 396 00:16:47,420 --> 00:16:49,900 There is the NDD command 397 00:16:49,900 --> 00:16:51,900 on SAM Solaris, the CCTL 398 00:16:51,900 --> 00:16:53,100 on different BSDs. 399 00:16:53,140 --> 00:16:54,460 There are the registry hacks 400 00:16:54,460 --> 00:16:56,460 on the different Microsoft boxes. 401 00:16:57,280 --> 00:16:59,580 For example, several people like to change 402 00:16:59,580 --> 00:17:01,520 the window size of the box 403 00:17:01,520 --> 00:17:02,540 if the box is being 404 00:17:03,300 --> 00:17:05,440 served as a web server and such and such. 405 00:17:05,820 --> 00:17:07,740 If you are relying on this kind of 406 00:17:07,740 --> 00:17:09,520 test and the particular values 407 00:17:09,900 --> 00:17:11,240 are changed and altered by the 408 00:17:11,240 --> 00:17:12,880 system admin of that box 409 00:17:12,880 --> 00:17:14,520 of that corporate that you are scanning, 410 00:17:15,180 --> 00:17:17,300 then of course you will get 411 00:17:17,740 --> 00:17:19,600 problematic results that will be affected 412 00:17:19,600 --> 00:17:20,820 from this thing. 413 00:17:23,860 --> 00:17:25,180 Another very important 414 00:17:26,160 --> 00:17:27,880 issue, and I think that 415 00:17:27,880 --> 00:17:29,040 even if your tool 416 00:17:29,040 --> 00:17:30,220 or the tool you are using 417 00:17:30,220 --> 00:17:33,580 is very nice, has this great functionality 418 00:17:33,580 --> 00:17:34,940 and at the end of the day 419 00:17:34,940 --> 00:17:36,780 the signature database is corrupt, 420 00:17:37,040 --> 00:17:38,980 then there is absolutely nothing 421 00:17:39,900 --> 00:17:40,520 that can help the tool. 422 00:17:41,660 --> 00:17:43,400 It is extremely important 423 00:17:43,400 --> 00:17:45,700 to get the fingerprints out of a lab 424 00:17:45,700 --> 00:17:47,440 environment, to get them 425 00:17:47,440 --> 00:17:49,680 right the first time, and then it 426 00:17:49,680 --> 00:17:51,200 will save you the hassles of 427 00:17:51,840 --> 00:17:53,700 thinking, well, what were the 428 00:17:53,700 --> 00:17:55,240 exact environment that 429 00:17:55,240 --> 00:17:57,700 a certain test that was submitted 430 00:17:57,700 --> 00:17:59,820 was performed against. 431 00:18:01,780 --> 00:18:02,760 I think that 432 00:18:04,060 --> 00:18:05,600 if you do not 433 00:18:05,600 --> 00:18:07,420 allow a tight control on the signature 434 00:18:07,420 --> 00:18:09,520 database, then at the end of the day 435 00:18:09,900 --> 00:18:11,540 you will have a lot of signatures 436 00:18:11,540 --> 00:18:13,660 that not only you will not be 437 00:18:13,660 --> 00:18:15,180 able to trust, but 438 00:18:15,860 --> 00:18:17,600 also your 439 00:18:17,600 --> 00:18:19,700 users of the tool will not be able to trust. 440 00:18:19,860 --> 00:18:20,620 That is a very 441 00:18:22,340 --> 00:18:23,740 problematic issue when you want 442 00:18:23,740 --> 00:18:25,620 to propagate the signature database. 443 00:18:26,580 --> 00:18:27,640 If you want people 444 00:18:27,640 --> 00:18:29,120 to submit signatures and 445 00:18:30,000 --> 00:18:31,960 have a larger 446 00:18:31,960 --> 00:18:33,780 database of signatures, at the 447 00:18:33,780 --> 00:18:35,680 end of the day, if you cannot trust the signatures 448 00:18:35,680 --> 00:18:37,280 that the users have been producing, 449 00:18:37,680 --> 00:18:38,760 or you introduce 450 00:18:39,900 --> 00:18:41,720 some lame signatures into the signature database, 451 00:18:42,040 --> 00:18:43,780 then basically the signature database 452 00:18:43,780 --> 00:18:44,420 will be corrupt. 453 00:18:47,260 --> 00:18:49,980 There is an example with NMAP 454 00:18:49,980 --> 00:18:51,540 with the TCP options. 455 00:18:52,060 --> 00:18:53,060 End of line 456 00:18:54,260 --> 00:18:55,660 basically should be 457 00:18:55,660 --> 00:18:57,840 at the end of the TCP option list. 458 00:18:57,960 --> 00:18:59,540 There are several signatures there 459 00:19:00,220 --> 00:19:01,720 with the end of line in the middle 460 00:19:01,720 --> 00:19:03,280 of the option list for TCP. 461 00:19:06,480 --> 00:19:07,440 Another important 462 00:19:07,440 --> 00:19:09,680 problem, especially for 463 00:19:09,900 --> 00:19:11,220 vulnerability assessment tools, 464 00:19:11,380 --> 00:19:13,460 is the inability to identify the 465 00:19:13,460 --> 00:19:15,700 underlying platform of the operating 466 00:19:15,700 --> 00:19:16,060 system. 467 00:19:17,220 --> 00:19:19,620 If you want to exploit a certain 468 00:19:19,620 --> 00:19:21,560 operating system and it has 469 00:19:21,560 --> 00:19:23,720 multiple platforms it can be installed on, 470 00:19:24,120 --> 00:19:24,300 it is 471 00:19:25,220 --> 00:19:27,320 extremely important for one to understand 472 00:19:27,320 --> 00:19:28,700 what is the underlying platform. 473 00:19:29,220 --> 00:19:31,560 Because your exploit may or may not work 474 00:19:31,560 --> 00:19:33,560 on the platform you are 475 00:19:33,560 --> 00:19:33,980 targeting. 476 00:19:41,700 --> 00:19:43,740 So for example, if you are running 477 00:19:43,740 --> 00:19:45,940 a certain vulnerability assessment tool 478 00:19:45,940 --> 00:19:47,600 and that tool is 479 00:19:47,600 --> 00:19:49,900 relying on a certain 480 00:19:50,440 --> 00:19:51,980 active OS fingerprinting tool 481 00:19:51,980 --> 00:19:53,440 and the platform is not 482 00:19:53,440 --> 00:19:56,000 being given, then first of all 483 00:19:56,000 --> 00:19:57,800 the vulnerability assessment process will be 484 00:19:57,800 --> 00:19:59,420 longer and it might be 485 00:20:00,140 --> 00:20:01,280 giving you false results. 486 00:20:04,420 --> 00:20:05,540 On a large network, 487 00:20:05,740 --> 00:20:07,560 when you want to scan, for example, 488 00:20:07,620 --> 00:20:09,820 Class B networks, it is very important that 489 00:20:09,900 --> 00:20:11,500 you understand what is the limit of the network. 490 00:20:11,840 --> 00:20:13,580 It is important to understand that 491 00:20:13,580 --> 00:20:15,920 if you will use 492 00:20:15,920 --> 00:20:17,060 too many packets 493 00:20:17,810 --> 00:20:19,680 per second or too many packets 494 00:20:19,680 --> 00:20:20,940 in a certain amount of time, 495 00:20:21,690 --> 00:20:23,380 not only the networking devices 496 00:20:23,380 --> 00:20:25,660 on your network can suffer from 497 00:20:25,660 --> 00:20:27,400 a denial of service condition, but also 498 00:20:27,400 --> 00:20:29,000 the target operating systems that 499 00:20:29,000 --> 00:20:30,180 you are scanning. 500 00:20:31,060 --> 00:20:32,280 It is important 501 00:20:33,980 --> 00:20:34,520 for 502 00:20:35,620 --> 00:20:38,060 such an active operating system fingerprinting 503 00:20:38,060 --> 00:20:39,680 tool to have the ability to scan 504 00:20:39,900 --> 00:20:41,080 a large network and still do not 505 00:20:41,780 --> 00:20:43,860 put those networks under a denial of service 506 00:20:43,860 --> 00:20:44,300 condition. 507 00:20:48,680 --> 00:20:49,740 One of the issues 508 00:20:49,740 --> 00:20:51,800 that we have talked about for the past 509 00:20:51,800 --> 00:20:53,880 two years is the ability to control 510 00:20:53,880 --> 00:20:55,720 whatever fingerprinting models to use 511 00:20:55,720 --> 00:20:57,660 or the ability to control 512 00:20:57,660 --> 00:20:58,060 whatever 513 00:20:59,480 --> 00:21:00,700 option a tool has. 514 00:21:01,040 --> 00:21:03,120 We have actually implemented that with 515 00:21:03,120 --> 00:21:04,560 the newer version of the tool. 516 00:21:05,580 --> 00:21:06,940 Sometimes you are in 517 00:21:06,940 --> 00:21:09,420 a different situation, for example 518 00:21:09,900 --> 00:21:11,240 targeting a certain topology 519 00:21:11,840 --> 00:21:13,640 from a certain topology and you can 520 00:21:13,640 --> 00:21:15,840 only use certain fingerprinting 521 00:21:15,840 --> 00:21:17,560 models. For example, if you target the website 522 00:21:17,560 --> 00:21:19,580 it is more likely that port 80 523 00:21:19,580 --> 00:21:21,760 will be open and port 443 will be open 524 00:21:21,760 --> 00:21:23,560 rather than the ability to 525 00:21:23,560 --> 00:21:25,840 send a timestamp or an at mask request 526 00:21:25,840 --> 00:21:26,580 to that website. 527 00:21:27,100 --> 00:21:29,700 Instead of triggering too many alarms 528 00:21:29,700 --> 00:21:31,680 if they are there or if you care 529 00:21:31,680 --> 00:21:33,860 about them, then you can just use 530 00:21:33,860 --> 00:21:35,700 the different models you know 531 00:21:35,700 --> 00:21:37,540 that will work and just spare you 532 00:21:37,540 --> 00:21:37,820 the 533 00:21:41,180 --> 00:21:42,140 lack of 534 00:21:42,140 --> 00:21:43,480 the added value of the other models. 535 00:21:47,200 --> 00:21:48,160 Another thing 536 00:21:48,160 --> 00:21:49,580 that you would like to have is the ability 537 00:21:49,580 --> 00:21:51,540 to switch scanning tactics. 538 00:21:51,800 --> 00:21:53,840 It means that if you know that a certain 539 00:21:53,840 --> 00:21:55,760 tactic you are using will be blocked 540 00:21:55,760 --> 00:21:56,940 by a firewall or by 541 00:21:56,940 --> 00:21:59,380 another device guarding the 542 00:22:00,140 --> 00:22:01,640 operating system or the box 543 00:22:01,640 --> 00:22:03,540 that you are scanning, you will like the tool 544 00:22:03,540 --> 00:22:05,560 to have the ability to affect 545 00:22:05,560 --> 00:22:07,540 the other parts of the scanning or to 546 00:22:07,540 --> 00:22:08,380 switch the tactics. 547 00:22:09,900 --> 00:22:11,860 If I know that I am scanning a website 548 00:22:11,860 --> 00:22:13,760 it is much more likely that again 549 00:22:13,760 --> 00:22:15,900 port 80 and port 443 will be open 550 00:22:15,900 --> 00:22:17,760 so I would like to direct my 551 00:22:17,760 --> 00:22:19,820 tool or whatever tool 552 00:22:19,820 --> 00:22:21,680 I am using to use those ports 553 00:22:21,680 --> 00:22:23,840 and if I know that all the 554 00:22:23,840 --> 00:22:25,620 UDP ports will be covered, then 555 00:22:25,620 --> 00:22:27,200 why initiating in the first place 556 00:22:27,200 --> 00:22:29,420 the models that use UDP? 557 00:22:43,360 --> 00:22:43,960 So, 558 00:22:44,080 --> 00:22:45,520 we have decided on adding 559 00:22:45,520 --> 00:22:47,980 several functionalities to X-Probe 2. 560 00:22:49,280 --> 00:22:50,060 We have 561 00:22:50,060 --> 00:22:51,500 added several new discovery models. 562 00:22:52,000 --> 00:22:53,940 We added the ability to totally 563 00:22:53,940 --> 00:22:55,860 control the tools 564 00:22:55,860 --> 00:22:56,660 models operation. 565 00:22:58,160 --> 00:23:00,300 We added more fingerprinting 566 00:23:00,300 --> 00:23:01,880 models. We have 567 00:23:01,880 --> 00:23:02,720 now a port scanner. 568 00:23:03,720 --> 00:23:05,900 We also have an automatic mechanism 569 00:23:05,900 --> 00:23:08,000 to assess the received timeouts 570 00:23:08,000 --> 00:23:09,040 for the different models. 571 00:23:09,900 --> 00:23:11,560 And we have also rebuilt our 572 00:23:11,560 --> 00:23:13,660 database of signatures 573 00:23:13,660 --> 00:23:14,260 from scratch. 574 00:23:15,920 --> 00:23:16,820 We use 575 00:23:16,820 --> 00:23:19,660 discovery models for several things. 576 00:23:20,100 --> 00:23:21,480 First of all, we use them 577 00:23:21,480 --> 00:23:23,080 for host detection. 578 00:23:23,480 --> 00:23:25,600 We use them for firewall detection. 579 00:23:25,980 --> 00:23:27,620 And we use them to provide 580 00:23:27,620 --> 00:23:29,560 information for the automatic 581 00:23:29,560 --> 00:23:31,600 received timeout mechanism that we have. 582 00:23:31,720 --> 00:23:33,440 I will talk about it 583 00:23:33,440 --> 00:23:34,720 in a couple of minutes. 584 00:23:35,580 --> 00:23:37,780 We have added two new discovery 585 00:23:37,780 --> 00:23:39,780 models, things that you already are familiar 586 00:23:39,900 --> 00:23:41,760 with. Basically, TCP ping 587 00:23:41,760 --> 00:23:43,060 and UDP ping, what we 588 00:23:43,700 --> 00:23:45,520 did here, or what we send. 589 00:23:45,700 --> 00:23:47,780 We send a packet, a SYN packet, to the 590 00:23:47,780 --> 00:23:49,780 target host. We expect to receive a SYN 591 00:23:49,780 --> 00:23:51,740 ACK or a reset or no 592 00:23:51,740 --> 00:23:53,100 answer at all. And 593 00:23:53,100 --> 00:23:55,620 when you send the UDP packet, you either 594 00:23:55,620 --> 00:23:57,820 get no answer or get the 595 00:23:57,820 --> 00:23:59,300 ICMP port unreachable back. 596 00:24:00,200 --> 00:24:00,980 We have added 597 00:24:01,980 --> 00:24:03,300 actually using our 598 00:24:03,680 --> 00:24:05,840 minus lower P command line 599 00:24:05,840 --> 00:24:07,560 option, where one can specify 600 00:24:07,560 --> 00:24:09,660 which ports to use with the 601 00:24:09,900 --> 00:24:11,300 different models. 602 00:24:11,940 --> 00:24:13,940 These two new models 603 00:24:13,940 --> 00:24:15,800 will not run by default if the minus 604 00:24:15,800 --> 00:24:17,200 P option will not be specified. 605 00:24:18,640 --> 00:24:19,160 Again, 606 00:24:19,740 --> 00:24:21,020 they are being used for 607 00:24:22,080 --> 00:24:23,920 also for automatic received timeout 608 00:24:23,920 --> 00:24:25,520 calculation, if you did not know. 609 00:24:25,740 --> 00:24:27,920 When you probe the host, the TCP answers 610 00:24:27,920 --> 00:24:29,940 and the UDP answers that you will get 611 00:24:29,940 --> 00:24:31,720 from that host will be much slower 612 00:24:31,720 --> 00:24:33,740 than the answer you will get for ICMP. 613 00:24:34,220 --> 00:24:35,780 So, if you 614 00:24:35,780 --> 00:24:37,820 scan, for example, on 615 00:24:37,820 --> 00:24:39,640 a local network, your 616 00:24:39,900 --> 00:24:41,660 favorite Microsoft-based machine, then just 617 00:24:41,660 --> 00:24:42,960 specify an 618 00:24:42,960 --> 00:24:44,700 open TCP port, 619 00:24:45,040 --> 00:24:47,800 just get one 620 00:24:47,800 --> 00:24:49,820 of the most likely to be 621 00:24:49,820 --> 00:24:51,400 open, and use the TCP 622 00:24:51,400 --> 00:24:53,600 discovery model. That 623 00:24:53,600 --> 00:24:55,460 model will help you after that 624 00:24:55,460 --> 00:24:57,480 with the automatic received timeout 625 00:24:57,480 --> 00:24:57,820 calculation. 626 00:25:03,400 --> 00:25:05,620 Since we did want to allow 627 00:25:05,620 --> 00:25:07,900 the users of the tool to have a complete control 628 00:25:07,900 --> 00:25:09,600 over the tool, we have added 629 00:25:09,900 --> 00:25:11,480 two command line options to control 630 00:25:11,480 --> 00:25:12,520 which models to use. 631 00:25:13,440 --> 00:25:15,640 First, the uppercase D 632 00:25:15,640 --> 00:25:17,140 command line option, which controls 633 00:25:17,740 --> 00:25:19,920 which models not to use, 634 00:25:20,060 --> 00:25:21,620 and the minus M 635 00:25:21,620 --> 00:25:22,920 command line options, which 636 00:25:23,680 --> 00:25:25,580 one can use in order to 637 00:25:25,580 --> 00:25:27,040 specify the models to use. 638 00:25:28,640 --> 00:25:29,800 If you look at the 639 00:25:30,720 --> 00:25:31,640 diagram here, 640 00:25:31,740 --> 00:25:33,380 you can see the different 641 00:25:33,780 --> 00:25:34,840 models that the tool has, 642 00:25:35,380 --> 00:25:36,920 and their execution order. 643 00:25:37,200 --> 00:25:39,620 As I said before, the TCP ping, the UDP 644 00:25:39,900 --> 00:25:41,680 ping, and the port scanner 645 00:25:41,680 --> 00:25:43,800 will not be executed by default. 646 00:25:43,960 --> 00:25:45,020 All the other models will. 647 00:25:46,840 --> 00:25:48,020 Not a lot of people 648 00:25:48,020 --> 00:25:49,740 do use our TTL 649 00:25:49,740 --> 00:25:51,520 distance information 650 00:25:51,520 --> 00:25:53,540 gathering model. It actually can 651 00:25:53,540 --> 00:25:55,680 do trace routes and give you the route 652 00:25:55,680 --> 00:25:57,240 to the box if you are 653 00:25:57,660 --> 00:25:58,380 interested in that. 654 00:26:00,260 --> 00:26:01,620 The first example 655 00:26:01,620 --> 00:26:03,440 is for the usage of the 656 00:26:03,440 --> 00:26:05,100 minus D command line option. 657 00:26:05,880 --> 00:26:07,360 For those of you who 658 00:26:07,360 --> 00:26:09,760 are afraid that they will not see live 659 00:26:09,900 --> 00:26:11,380 examples, I have targeted 660 00:26:11,720 --> 00:26:13,880 several sites in France for the demo. 661 00:26:17,300 --> 00:26:18,560 I love them. 662 00:26:22,080 --> 00:26:23,200 Here you can see 663 00:26:23,200 --> 00:26:24,900 that I have specified 664 00:26:24,900 --> 00:26:27,600 a numeric value as well as the 665 00:26:27,600 --> 00:26:29,660 fingerprinting model 666 00:26:29,660 --> 00:26:31,280 name for the 667 00:26:31,280 --> 00:26:33,180 minus D command line option. 668 00:26:33,500 --> 00:26:35,040 You can use whatever 669 00:26:35,040 --> 00:26:37,560 you like. If you like 670 00:26:37,560 --> 00:26:39,300 numbers, if you like to use the model 671 00:26:39,900 --> 00:26:40,120 name, whatever. 672 00:26:40,520 --> 00:26:42,900 Here we have targeted 673 00:26:42,900 --> 00:26:44,340 the Microsoft Windows 2000 674 00:26:45,540 --> 00:26:47,300 SP3 based machine. 675 00:26:47,540 --> 00:26:49,040 Yes, we can uniquely identify 676 00:26:49,780 --> 00:26:51,900 2000 SP3 as well as 677 00:26:51,900 --> 00:26:53,000 2000 SP4. 678 00:26:54,500 --> 00:26:55,560 The second 679 00:26:56,820 --> 00:26:57,500 example 680 00:26:57,500 --> 00:26:59,100 is for the usage of the minus 681 00:26:59,100 --> 00:27:01,460 D command line option. Here we have 682 00:27:01,460 --> 00:27:03,300 used only three models. 683 00:27:03,540 --> 00:27:05,460 The ICMP echo 684 00:27:05,460 --> 00:27:06,800 discovery model, the 685 00:27:07,660 --> 00:27:09,620 ICMP echo fingerprinting model, and the 686 00:27:09,900 --> 00:27:11,680 ICMP port unreachable 687 00:27:12,880 --> 00:27:13,520 fingerprinting model. 688 00:27:14,020 --> 00:27:15,700 You can see that the tool got 689 00:27:15,700 --> 00:27:17,800 100% success of identifying 690 00:27:17,800 --> 00:27:19,900 the Cisco 11.2 691 00:27:19,900 --> 00:27:21,780 based router that we were fingerprinting. 692 00:27:31,060 --> 00:27:31,840 Since we 693 00:27:31,840 --> 00:27:33,780 have a lot of command line 694 00:27:33,780 --> 00:27:35,640 options now to allow you to 695 00:27:36,900 --> 00:27:37,820 totally control 696 00:27:37,820 --> 00:27:39,800 whatever you are doing with the tool, I was thinking 697 00:27:39,900 --> 00:27:41,700 that it's good to 698 00:27:41,700 --> 00:27:43,740 tell you how you list 699 00:27:43,740 --> 00:27:45,220 them. If you want to 700 00:27:45,760 --> 00:27:47,720 list the different models we are using 701 00:27:47,720 --> 00:27:49,780 and the different options 702 00:27:49,780 --> 00:27:51,800 and what they can do for you, you can 703 00:27:51,800 --> 00:27:53,500 use the uppercase L 704 00:27:53,500 --> 00:27:55,000 command line option. It will 705 00:27:56,340 --> 00:27:57,940 allow you to list the different 706 00:27:58,700 --> 00:27:59,840 fingerprinting and other models 707 00:27:59,840 --> 00:28:01,840 the tool has and will show 708 00:28:01,840 --> 00:28:03,420 you the different switches that you can 709 00:28:03,420 --> 00:28:05,820 use as the command line options. 710 00:28:08,460 --> 00:28:09,260 There is another 711 00:28:09,900 --> 00:28:11,660 command line option which I don't show an example 712 00:28:11,660 --> 00:28:12,260 for, the 713 00:28:13,680 --> 00:28:15,680 lowercase m command line option 714 00:28:15,680 --> 00:28:17,320 which you can specify 715 00:28:17,320 --> 00:28:19,700 which or the number of 716 00:28:20,640 --> 00:28:21,600 matches to print. 717 00:28:21,860 --> 00:28:23,120 Not a lot of people like to 718 00:28:23,740 --> 00:28:25,340 have ten lines of output 719 00:28:25,860 --> 00:28:27,760 at the end of the scan. 720 00:28:28,020 --> 00:28:29,580 So you can specify whatever 721 00:28:29,580 --> 00:28:30,640 you like here as well. 722 00:28:32,540 --> 00:28:33,420 One of the 723 00:28:36,300 --> 00:28:37,500 other enhancements we 724 00:28:37,500 --> 00:28:39,500 introduce is TCP 725 00:28:39,900 --> 00:28:41,560 based fingerprinting model. Again 726 00:28:41,560 --> 00:28:43,060 we didn't invent the wheel here 727 00:28:43,060 --> 00:28:45,420 but we do 728 00:28:45,420 --> 00:28:47,220 several things differently. 729 00:28:48,300 --> 00:28:49,780 We decided after looking 730 00:28:49,780 --> 00:28:51,960 at several TCP based models to use 731 00:28:51,960 --> 00:28:53,700 a TCP model based on the 732 00:28:53,700 --> 00:28:55,280 TCP 3-way handshake. 733 00:28:55,800 --> 00:28:57,580 You all know the process 734 00:28:57,580 --> 00:28:59,720 you all know what is expected 735 00:28:59,720 --> 00:29:01,840 to be sent back. Again, we wanted 736 00:29:01,840 --> 00:29:03,140 to use a model that we will 737 00:29:03,140 --> 00:29:05,640 be able to use against whatever site 738 00:29:05,640 --> 00:29:07,920 and that firewalls will not drop it. 739 00:29:08,080 --> 00:29:09,660 We wanted to use legitimate information 740 00:29:09,900 --> 00:29:11,740 inside a prop and we want to 741 00:29:11,740 --> 00:29:13,340 maximize the results that we produce 742 00:29:13,340 --> 00:29:14,800 with the models. 743 00:29:15,980 --> 00:29:17,860 So we are 744 00:29:17,860 --> 00:29:19,740 sending a SYN request which 745 00:29:19,740 --> 00:29:21,460 absolutely resembles 746 00:29:21,460 --> 00:29:23,040 a Linux telnet request 747 00:29:24,140 --> 00:29:24,820 to 748 00:29:24,820 --> 00:29:27,520 a certain site 749 00:29:27,520 --> 00:29:29,120 to a certain open port 750 00:29:29,120 --> 00:29:31,580 and we are examining the parameters received 751 00:29:31,580 --> 00:29:33,500 with the SYNAC from that 752 00:29:33,500 --> 00:29:34,660 machine. 753 00:29:35,840 --> 00:29:36,940 Basically, currently 754 00:29:36,940 --> 00:29:39,580 we are looking for nine different parameters 755 00:29:39,900 --> 00:29:41,620 with the TCP 756 00:29:41,620 --> 00:29:43,940 handshake model. Several of them 757 00:29:43,940 --> 00:29:45,620 are part of the IP header 758 00:29:45,620 --> 00:29:47,800 and several are part of the TCP header. 759 00:29:48,280 --> 00:29:49,980 There is a little twist 760 00:29:49,980 --> 00:29:50,200 here. 761 00:29:51,340 --> 00:29:53,640 For example, the timestamp value is 762 00:29:53,640 --> 00:29:55,480 the only parameter 763 00:29:55,480 --> 00:29:57,720 we are currently not examining. 764 00:29:58,340 --> 00:29:58,900 But 765 00:29:59,560 --> 00:30:01,580 we are about to support that 766 00:30:01,580 --> 00:30:02,620 with ODA2. 767 00:30:03,600 --> 00:30:05,100 Not a lot of people know 768 00:30:05,100 --> 00:30:07,400 and I doubt if too many know about 769 00:30:07,400 --> 00:30:09,780 that you can be able to detect 770 00:30:09,900 --> 00:30:11,280 a Microsoft based operating system 771 00:30:11,280 --> 00:30:12,860 according to the timestamp value 772 00:30:12,860 --> 00:30:14,880 the machine will send you back. 773 00:30:15,320 --> 00:30:17,360 Basically, you look for the 00 combo 774 00:30:17,900 --> 00:30:18,880 with the SYNAC 775 00:30:18,880 --> 00:30:21,720 and that's going to give you Microsoft based operating systems. 776 00:30:22,660 --> 00:30:23,180 So 777 00:30:23,180 --> 00:30:25,400 if you are looking on the web 778 00:30:25,400 --> 00:30:26,980 and you want to differentiate between 779 00:30:26,980 --> 00:30:29,540 Windows boxes and Unix based boxes 780 00:30:29,540 --> 00:30:30,980 on a very easy manner 781 00:30:30,980 --> 00:30:33,180 what you have to do is to send one packet 782 00:30:33,180 --> 00:30:34,280 and get the SYNAC back. 783 00:30:34,500 --> 00:30:37,220 Look at the timestamp values of 00 784 00:30:37,800 --> 00:30:39,620 then even before trying 785 00:30:39,900 --> 00:30:41,160 to get to the application layer 786 00:30:41,160 --> 00:30:43,660 you can have the conclusion 787 00:30:43,660 --> 00:30:45,200 that this is a Microsoft based box. 788 00:30:48,460 --> 00:30:49,820 The following example 789 00:30:49,820 --> 00:30:50,780 shows how the 790 00:30:51,780 --> 00:30:52,960 TCP handshake 791 00:30:52,960 --> 00:30:55,520 module is integrated 792 00:30:55,520 --> 00:30:57,500 inside the tool and what is the effect 793 00:30:57,500 --> 00:30:59,680 of the module on the overall results 794 00:30:59,680 --> 00:31:01,680 the tool produces. 795 00:31:03,220 --> 00:31:05,340 We have used here the minus D 796 00:31:05,340 --> 00:31:07,100 command line option not to use the 797 00:31:08,040 --> 00:31:09,820 module and you can see that 798 00:31:09,900 --> 00:31:12,140 the results that we have produced 799 00:31:12,140 --> 00:31:14,000 are all the 800 00:31:14,000 --> 00:31:15,080 SunSolaris machines 801 00:31:15,980 --> 00:31:17,320 without no 802 00:31:17,900 --> 00:31:18,620 differentiation. 803 00:31:19,400 --> 00:31:21,000 When we did use the 804 00:31:21,740 --> 00:31:24,260 TCP handshake fingerprinting 805 00:31:24,260 --> 00:31:25,400 module you can see that the 806 00:31:26,320 --> 00:31:27,320 Solaris 8 807 00:31:27,860 --> 00:31:29,100 as well as the target 808 00:31:29,100 --> 00:31:31,660 was 100% identified and the other 809 00:31:31,660 --> 00:31:33,860 Solaris machines got their 810 00:31:33,860 --> 00:31:34,880 own probability. 811 00:31:35,820 --> 00:31:36,620 So 812 00:31:36,620 --> 00:31:38,460 to sum it up 813 00:31:39,900 --> 00:31:41,800 the TCP handshake module greatly enhanced 814 00:31:41,800 --> 00:31:43,300 the fingerprinting results 815 00:31:43,620 --> 00:31:45,340 xpub2 produces especially 816 00:31:45,340 --> 00:31:47,580 on big groups of operating systems 817 00:31:47,580 --> 00:31:49,840 that we were unable to differentiate in the past. 818 00:31:51,660 --> 00:31:53,720 If you look at the signature 819 00:31:53,720 --> 00:31:55,080 database inside the 820 00:31:55,760 --> 00:31:57,560 tarball that we have released yesterday 821 00:31:57,560 --> 00:31:58,740 you can see that 822 00:32:00,360 --> 00:32:01,600 except for maybe 823 00:32:01,600 --> 00:32:03,660 the Linux based operating systems 824 00:32:03,660 --> 00:32:06,000 the results that will be produced 825 00:32:06,000 --> 00:32:07,740 by xpub2 on optimal 826 00:32:07,740 --> 00:32:09,740 conditions will give you one or 827 00:32:09,900 --> 00:32:11,400 two matches 828 00:32:11,400 --> 00:32:13,320 for the probe that you are using 829 00:32:13,750 --> 00:32:15,680 and that's it. It means that no big groups 830 00:32:15,680 --> 00:32:17,300 of operating systems, no big 831 00:32:17,850 --> 00:32:19,600 ranges of operating systems, that's 832 00:32:19,600 --> 00:32:21,460 one or two 100% matches 833 00:32:21,460 --> 00:32:22,060 and that's it. 834 00:32:25,720 --> 00:32:27,200 Since we are relying on 835 00:32:27,750 --> 00:32:29,560 several ports to be open or 836 00:32:29,560 --> 00:32:30,900 closed, well 837 00:32:31,820 --> 00:32:33,620 one TCP port open 838 00:32:33,620 --> 00:32:35,180 and one UDP port closed 839 00:32:35,180 --> 00:32:37,580 we have decided to implement a port 840 00:32:37,580 --> 00:32:39,040 scanner with the tool. 841 00:32:39,900 --> 00:32:41,720 There are a lot of tool users that have 842 00:32:41,720 --> 00:32:43,440 asked for that functionality as well. 843 00:32:44,560 --> 00:32:45,920 So we have decided 844 00:32:45,920 --> 00:32:47,800 to add a port scanner as 845 00:32:47,800 --> 00:32:49,680 an independent 846 00:32:49,680 --> 00:32:51,700 module to the tool. It means that by 847 00:32:51,700 --> 00:32:53,400 default we will not run the port scanner 848 00:32:53,920 --> 00:32:56,200 we will only run the OS fingerprinting 849 00:32:56,200 --> 00:32:57,840 tests and we will 850 00:32:57,840 --> 00:32:58,920 still use the minimum 851 00:32:59,720 --> 00:33:01,720 usage of packets in order to produce 852 00:33:01,720 --> 00:33:02,120 the results. 853 00:33:04,840 --> 00:33:05,760 The usage of 854 00:33:05,760 --> 00:33:07,040 the port scanner is pretty much 855 00:33:07,680 --> 00:33:09,760 straightforward. I used the uppercase 856 00:33:09,900 --> 00:33:11,400 P, uppercase T or U 857 00:33:11,400 --> 00:33:13,780 and specified a port range to scan 858 00:33:13,780 --> 00:33:15,000 and you get 859 00:33:15,760 --> 00:33:17,700 summed up results of the open and 860 00:33:17,700 --> 00:33:19,700 closed ports and filtered ports. Nothing 861 00:33:19,700 --> 00:33:21,760 new here but again, someone wants 862 00:33:21,760 --> 00:33:22,640 to use that functionality 863 00:33:24,420 --> 00:33:25,720 for whatever reason 864 00:33:25,720 --> 00:33:27,100 we are allowing it. 865 00:33:27,340 --> 00:33:29,720 What it also does, when it 866 00:33:29,720 --> 00:33:31,840 will identify an open TCP port 867 00:33:31,840 --> 00:33:33,580 and when it will identify 868 00:33:33,580 --> 00:33:35,540 a closed UDP port, it then 869 00:33:35,540 --> 00:33:36,880 will use them for the 870 00:33:37,720 --> 00:33:39,740 TCP handshake model and for the 871 00:33:39,900 --> 00:33:40,880 ICMP port on which 872 00:33:41,780 --> 00:33:43,740 module. It means that 873 00:33:43,740 --> 00:33:45,780 if your port scanner did 874 00:33:45,780 --> 00:33:46,900 got 875 00:33:47,770 --> 00:33:49,700 whatever port you need for a dependent 876 00:33:49,700 --> 00:33:51,700 module, then that dependent module 877 00:33:51,700 --> 00:33:53,760 will get the port from the port scanner 878 00:33:53,760 --> 00:33:55,280 and will run 879 00:33:55,810 --> 00:33:57,440 with the appropriate 880 00:33:58,560 --> 00:33:59,740 port and of course 881 00:33:59,740 --> 00:34:01,320 will produce the results that you are looking for. 882 00:34:04,040 --> 00:34:05,540 There is a nice diagram 883 00:34:05,540 --> 00:34:07,720 here outlining the 884 00:34:07,720 --> 00:34:09,700 different relationships 885 00:34:09,900 --> 00:34:11,560 between the different P's. 886 00:34:11,900 --> 00:34:13,900 You can look at that afterwards 887 00:34:13,900 --> 00:34:14,580 if you want to. 888 00:34:17,260 --> 00:34:19,760 We have decided to not be 889 00:34:19,760 --> 00:34:21,580 idiots and just 890 00:34:21,580 --> 00:34:23,520 say, oh yeah, we send 891 00:34:23,520 --> 00:34:25,660 10,000 packets in one second 892 00:34:25,660 --> 00:34:27,340 and we produce the results in like three 893 00:34:27,900 --> 00:34:29,800 because that's lame and that will not 894 00:34:29,800 --> 00:34:30,540 get you anywhere. 895 00:34:32,620 --> 00:34:33,660 We allow 896 00:34:33,660 --> 00:34:35,480 the users to specify whatever 897 00:34:39,180 --> 00:34:39,880 time in 898 00:34:39,900 --> 00:34:41,720 interval they want between the different scene packet 899 00:34:41,720 --> 00:34:43,800 sends and the UDP packet sends. It means 900 00:34:43,800 --> 00:34:45,880 that if you want to be 901 00:34:45,880 --> 00:34:47,600 paranoid, ultra paranoid 902 00:34:47,600 --> 00:34:49,860 or whatever, just use the minus s 903 00:34:49,860 --> 00:34:51,640 command line option, define or 904 00:34:51,640 --> 00:34:52,220 put the 905 00:34:54,020 --> 00:34:55,460 different milliseconds you want 906 00:34:55,980 --> 00:34:57,700 as the time interval between the 907 00:34:57,700 --> 00:34:59,780 different scene send or the UDP packet 908 00:34:59,780 --> 00:35:01,560 send and the tool will do that for you. 909 00:35:02,860 --> 00:35:03,340 Basically 910 00:35:03,860 --> 00:35:05,660 you have option to 911 00:35:05,660 --> 00:35:06,780 specify it in milliseconds. 912 00:35:07,300 --> 00:35:09,020 If you are not specifying 913 00:35:09,900 --> 00:35:11,200 minus s, then the 914 00:35:11,200 --> 00:35:13,300 default time interval between 915 00:35:13,800 --> 00:35:15,680 the packet send with the port 916 00:35:15,680 --> 00:35:17,720 scanner will be 10 milliseconds 917 00:35:17,720 --> 00:35:19,680 and it means 100 packets per second. 918 00:35:21,460 --> 00:35:23,420 Another interesting issue to understand 919 00:35:23,420 --> 00:35:25,180 when I have rebuilt the 920 00:35:25,180 --> 00:35:27,560 signature database and 921 00:35:27,560 --> 00:35:28,440 used the port scanner, 922 00:35:28,740 --> 00:35:31,520 how many of you have 923 00:35:31,520 --> 00:35:32,480 free BSD boxes? 924 00:35:33,400 --> 00:35:35,740 Great. You know that there is a nice 925 00:35:35,740 --> 00:35:37,160 option called rate limiting, right? 926 00:35:38,040 --> 00:35:39,500 If you sit down, 927 00:35:39,900 --> 00:35:41,440 and look at your console 928 00:35:41,440 --> 00:35:43,740 with free BSD and you use 929 00:35:43,740 --> 00:35:45,780 a fast port scanner, a fast port scanner 930 00:35:45,780 --> 00:35:47,260 that produces a lot of good results, 931 00:35:47,760 --> 00:35:48,540 you'll see those 932 00:35:51,640 --> 00:35:53,680 messages saying that the box is 933 00:35:53,680 --> 00:35:55,180 rate limiting the 934 00:35:55,740 --> 00:35:56,560 number of 935 00:35:57,540 --> 00:35:59,840 sent packets to the 936 00:36:01,100 --> 00:36:01,620 scanner. 937 00:36:03,300 --> 00:36:03,820 Everybody 938 00:36:03,820 --> 00:36:05,780 has his own issue on how to solve this. 939 00:36:05,880 --> 00:36:07,700 We thought that it's better 940 00:36:07,700 --> 00:36:09,760 to allow the users to 941 00:36:09,900 --> 00:36:11,380 specify whatever time interval 942 00:36:11,380 --> 00:36:12,760 differences they want between 943 00:36:12,760 --> 00:36:15,480 the different packets that 944 00:36:15,480 --> 00:36:17,040 the port scanner sends. 945 00:36:20,020 --> 00:36:21,680 And of course, that's an important 946 00:36:21,680 --> 00:36:22,780 issue, not 947 00:36:23,960 --> 00:36:25,380 producing a denial of service 948 00:36:25,380 --> 00:36:26,520 on your own machine. 949 00:36:30,160 --> 00:36:31,760 Here you can see an example 950 00:36:31,760 --> 00:36:32,840 of a scan that 951 00:36:33,780 --> 00:36:35,280 was too fast or 952 00:36:35,920 --> 00:36:37,840 was not enough time 953 00:36:37,840 --> 00:36:39,600 out in order to produce an 954 00:36:39,900 --> 00:36:40,200 accurate result. 955 00:36:40,760 --> 00:36:43,760 Basically, we scan an OS. 956 00:36:44,140 --> 00:36:45,920 Basically, it's a Linux based OS here. 957 00:36:46,080 --> 00:36:46,960 We scan ports 958 00:36:46,960 --> 00:36:49,640 5.6 to 5.2.0 959 00:36:49,640 --> 00:36:51,460 and TCP ports 20 to 30. 960 00:36:51,660 --> 00:36:53,560 And you can see that the last port is being 961 00:36:53,560 --> 00:36:55,680 filtered. It doesn't mean that the 962 00:36:55,680 --> 00:36:56,740 port is really filtered. 963 00:36:57,200 --> 00:36:59,100 It means that we have scanned too fast. 964 00:36:59,340 --> 00:37:00,580 So by providing 965 00:37:01,960 --> 00:37:03,700 a value for the time 966 00:37:03,700 --> 00:37:04,420 interval here 967 00:37:05,860 --> 00:37:07,260 of 40 milliseconds, 968 00:37:07,580 --> 00:37:07,860 we have 969 00:37:10,300 --> 00:37:11,720 basically got the 970 00:37:11,720 --> 00:37:12,580 problem away. 971 00:37:13,260 --> 00:37:15,820 It's important to understand that on a congested 972 00:37:15,820 --> 00:37:17,820 network, the scanning conditions 973 00:37:17,820 --> 00:37:19,460 are different. On a 974 00:37:19,460 --> 00:37:21,860 local network, at your home network, 975 00:37:22,000 --> 00:37:23,300 the scanning conditions are different. 976 00:37:23,360 --> 00:37:25,520 On the internet, the scanning conditions are different. 977 00:37:25,780 --> 00:37:27,140 It doesn't really matter 978 00:37:27,860 --> 00:37:29,120 for you to scan with 979 00:37:29,120 --> 00:37:31,340 10,000 packets in 2 seconds because 980 00:37:32,200 --> 00:37:33,700 actually it will not give you the 981 00:37:33,700 --> 00:37:35,820 results that you are 982 00:37:35,820 --> 00:37:36,240 expecting. 983 00:37:37,980 --> 00:37:39,260 What we also did 984 00:37:40,120 --> 00:37:41,460 is of course 985 00:37:41,460 --> 00:37:43,580 used hashing for the port scanner. 986 00:37:43,960 --> 00:37:45,640 It's not something we have invented. 987 00:37:46,180 --> 00:37:47,560 It's not something that 988 00:37:47,560 --> 00:37:49,940 other people have invented in the last year 989 00:37:49,940 --> 00:37:50,780 if you know what I mean. 990 00:37:51,000 --> 00:37:53,020 It's something that was invented back in 1998 991 00:37:54,680 --> 00:37:55,640 by an Israeli 992 00:37:55,640 --> 00:37:57,720 hackers group and we used that 993 00:37:57,720 --> 00:37:58,860 for the port scanner as well. 994 00:38:02,740 --> 00:38:03,740 Question? Someone? 995 00:38:04,780 --> 00:38:05,800 I guess lunch 996 00:38:05,800 --> 00:38:06,700 did it for you. 997 00:38:09,580 --> 00:38:10,120 Another 998 00:38:10,690 --> 00:38:12,320 thing that we have added to the tool is the 999 00:38:12,320 --> 00:38:13,960 automatic receive timeout calculation 1000 00:38:14,880 --> 00:38:16,400 that works for three 1001 00:38:16,400 --> 00:38:18,240 different models 1002 00:38:18,240 --> 00:38:19,600 for Xpub2. 1003 00:38:19,920 --> 00:38:22,220 It makes Xpub2 scan an IP address 1004 00:38:22,220 --> 00:38:24,400 at half a second to two 1005 00:38:24,400 --> 00:38:26,520 seconds only. There are 1006 00:38:26,520 --> 00:38:28,360 three different timeouts for the discovery model, 1007 00:38:28,540 --> 00:38:30,460 for the port scanner, and for the 1008 00:38:30,460 --> 00:38:32,080 fingerprinting models. Basically 1009 00:38:32,700 --> 00:38:34,420 whatever discovery model 1010 00:38:34,420 --> 00:38:36,580 you are using will take the longest 1011 00:38:36,700 --> 00:38:38,680 RTT and we will multiple it 1012 00:38:38,680 --> 00:38:40,340 by two and that will be the 1013 00:38:40,340 --> 00:38:41,900 receive timeout for the 1014 00:38:42,580 --> 00:38:44,480 fingerprinting models. For the discovery 1015 00:38:44,480 --> 00:38:46,440 models themselves, we have added 1016 00:38:46,440 --> 00:38:48,280 a minus T command option to 1017 00:38:48,280 --> 00:38:50,520 specify their own receive 1018 00:38:50,520 --> 00:38:52,560 timeout. And with the 1019 00:38:52,560 --> 00:38:54,520 port scanner, we basically 1020 00:38:54,520 --> 00:38:55,840 have added a different 1021 00:38:56,540 --> 00:38:57,360 timeout mechanism. 1022 00:38:58,220 --> 00:39:00,520 Basically we'll take the number of 1023 00:39:00,520 --> 00:39:02,160 ports scanned and multiple 1024 00:39:02,700 --> 00:39:03,740 that by 1025 00:39:03,740 --> 00:39:06,540 the 10 milliseconds 1026 00:39:06,700 --> 00:39:08,260 default that we have plus 1027 00:39:08,260 --> 00:39:09,180 any time 1028 00:39:09,980 --> 00:39:12,520 that you have put as 1029 00:39:12,520 --> 00:39:14,400 a time interval between the packet 1030 00:39:14,400 --> 00:39:16,380 sent and we'll add the 1031 00:39:16,380 --> 00:39:18,500 2X RTT. Now if the 1032 00:39:18,500 --> 00:39:20,400 number of packets received back 1033 00:39:20,400 --> 00:39:22,140 equals the 1034 00:39:22,660 --> 00:39:24,480 number of packets we have sent for 1035 00:39:24,480 --> 00:39:26,460 the port scanner, we will 1036 00:39:26,460 --> 00:39:27,160 timeout before 1037 00:39:27,940 --> 00:39:30,040 the other timeout will 1038 00:39:30,480 --> 00:39:30,800 expire. 1039 00:39:34,580 --> 00:39:36,380 Another thing that we did 1040 00:39:36,700 --> 00:39:38,320 is we have rebuilt the 1041 00:39:38,320 --> 00:39:40,340 entire signature database of 1042 00:39:40,340 --> 00:39:42,620 Xperb 2 from scratch. It means that I had to go 1043 00:39:42,620 --> 00:39:44,440 and install too many operating systems that 1044 00:39:44,440 --> 00:39:46,700 do not like Pentium 1045 00:39:46,700 --> 00:39:48,380 4 or Pentium 3 or 1046 00:39:48,380 --> 00:39:50,480 whatever. We got back until 1047 00:39:50,480 --> 00:39:52,660 well, NetBSD 1.3 1048 00:39:52,660 --> 00:39:54,240 was tough to install. 1049 00:39:56,640 --> 00:39:58,620 The signatures, as I 1050 00:39:58,620 --> 00:39:59,840 said before, are tightly controlled. 1051 00:40:01,600 --> 00:40:02,440 We are 1052 00:40:02,440 --> 00:40:04,680 introducing new signatures only 1053 00:40:04,680 --> 00:40:06,380 and if only we can 1054 00:40:06,700 --> 00:40:08,080 be assured 1055 00:40:08,600 --> 00:40:10,460 that the signatures were produced 1056 00:40:10,460 --> 00:40:12,700 in a correct manner. Sure it means that 1057 00:40:12,700 --> 00:40:14,320 maybe we'll have a 1058 00:40:14,320 --> 00:40:16,600 smaller signature database but 1059 00:40:16,600 --> 00:40:18,680 it also means that our database will be much 1060 00:40:18,680 --> 00:40:20,560 more accurate than any other database for 1061 00:40:20,560 --> 00:40:22,620 any other active operating system fingerprinting tool. 1062 00:40:22,760 --> 00:40:23,060 Yes? 1063 00:40:33,200 --> 00:40:34,600 I'm going to talk 1064 00:40:34,600 --> 00:40:35,220 about it later. 1065 00:40:39,220 --> 00:40:40,720 As I said before, 1066 00:40:40,820 --> 00:40:42,380 it's very easy to corrupt the signature 1067 00:40:42,380 --> 00:40:44,600 database. Our new 1068 00:40:44,600 --> 00:40:45,320 signature database 1069 00:40:46,500 --> 00:40:48,320 and the tool is able to uniquely 1070 00:40:48,320 --> 00:40:50,280 identify 2003 Standard, 1071 00:40:50,620 --> 00:40:52,240 2003 Enterprise, 2000 1072 00:40:52,240 --> 00:40:54,360 SP4 and SP3, which 1073 00:40:54,360 --> 00:40:55,520 currently no other tool does. 1074 00:40:56,680 --> 00:40:58,240 The signature database includes 1075 00:40:58,240 --> 00:41:00,120 the entire 2.4 branches, 1076 00:41:00,240 --> 00:41:02,580 2.2 branches. That was really fun to install. 1077 00:41:05,240 --> 00:41:05,840 For 1078 00:41:06,700 --> 00:41:08,540 freeBSD from 2.2.7, 1079 00:41:08,620 --> 00:41:10,640 openBSD from 2.4, 1080 00:41:10,800 --> 00:41:12,260 and as I said before, an 1081 00:41:12,260 --> 00:41:14,280 NBSD from 1.3, and of course many other 1082 00:41:14,280 --> 00:41:16,120 signatures such as for Cisco AX, 1083 00:41:16,600 --> 00:41:18,380 IIX, and other 1084 00:41:18,380 --> 00:41:19,660 operating systems such as 1085 00:41:19,660 --> 00:41:22,300 the software foundry runs and such and such. 1086 00:41:25,220 --> 00:41:26,340 So, as with 1087 00:41:26,340 --> 00:41:28,380 previous years, if you don't have any other 1088 00:41:28,380 --> 00:41:30,580 questions, and there is another part 1089 00:41:30,580 --> 00:41:31,780 after the demo, 1090 00:41:34,480 --> 00:41:35,660 I've decided to 1091 00:41:35,660 --> 00:41:37,620 target a nice country that we all 1092 00:41:37,620 --> 00:41:39,420 love and respect. And no, 1093 00:41:39,560 --> 00:41:41,560 they did not invite, invited, 1094 00:41:41,640 --> 00:41:43,640 invented the fries. 1095 00:41:45,480 --> 00:41:47,180 The Belgians did. 1096 00:41:50,540 --> 00:41:51,480 And no, 1097 00:41:51,560 --> 00:41:53,140 they do not use American technology. 1098 00:41:54,940 --> 00:41:57,560 First site that I have decided 1099 00:41:57,560 --> 00:41:59,000 to look at 1100 00:41:59,600 --> 00:42:01,300 is the Radio France 1101 00:42:02,440 --> 00:42:03,780 I wanted to 1102 00:42:03,780 --> 00:42:05,500 hear that wonderful, wonderful language 1103 00:42:05,500 --> 00:42:07,460 that we, I guess, nearly all of us 1104 00:42:07,460 --> 00:42:09,600 understand fluently and speak fluently. 1105 00:42:12,500 --> 00:42:13,320 Radio France 1106 00:42:13,320 --> 00:42:15,460 is using Linux. 1107 00:42:15,760 --> 00:42:16,700 Good for them. 1108 00:42:17,420 --> 00:42:19,460 2.4, actually the 1109 00:42:19,460 --> 00:42:21,060 group of operating systems, 1110 00:42:21,540 --> 00:42:23,480 of the kernels that actually match 1111 00:42:23,480 --> 00:42:25,680 the operating system 1112 00:42:25,680 --> 00:42:26,900 Radio France is using is 1113 00:42:27,580 --> 00:42:29,980 2.45 to 2.16 1114 00:42:29,980 --> 00:42:30,660 and 1115 00:42:32,140 --> 00:42:33,720 then I decided that 1116 00:42:33,720 --> 00:42:35,280 I'm bored with the radio. 1117 00:42:35,440 --> 00:42:36,900 Maybe I'll get higher education. 1118 00:42:38,380 --> 00:42:39,900 And I went to do 1119 00:42:39,900 --> 00:42:41,600 the Sorbonne 1120 00:42:41,600 --> 00:42:43,500 University, which is 1121 00:42:44,580 --> 00:42:45,060 well, 1122 00:42:45,260 --> 00:42:46,420 a university in Paris. 1123 00:42:49,560 --> 00:42:51,840 Here I decided that I would like to use 1124 00:42:51,840 --> 00:42:53,220 only several 1125 00:42:53,780 --> 00:42:55,980 models with my fingerprinting 1126 00:42:55,980 --> 00:42:56,700 attempt. 1127 00:42:57,660 --> 00:42:59,640 I did not use several fingerprinting models 1128 00:42:59,640 --> 00:43:01,100 as you can see here. The usage of the 1129 00:43:01,780 --> 00:43:02,860 minus D command line option 1130 00:43:03,700 --> 00:43:04,220 and 1131 00:43:05,360 --> 00:43:06,600 unfortunately for them 1132 00:43:07,260 --> 00:43:09,120 they're using American technology or not. 1133 00:43:09,260 --> 00:43:09,720 I don't know. 1134 00:43:10,500 --> 00:43:11,740 There are no 1135 00:43:13,960 --> 00:43:15,540 French operating systems, right? 1136 00:43:18,000 --> 00:43:18,940 So they're using 1137 00:43:18,940 --> 00:43:20,740 on the Sorbonne 1138 00:43:20,740 --> 00:43:22,180 main website. 1139 00:43:23,880 --> 00:43:25,200 After finishing my 1140 00:43:25,200 --> 00:43:27,520 higher education at the Sorbonne, I decided that I need to 1141 00:43:27,520 --> 00:43:29,640 search for a nice interesting thing to do 1142 00:43:29,640 --> 00:43:31,500 so I decided I'll look for 1143 00:43:31,780 --> 00:43:32,380 a biotech company. 1144 00:43:33,340 --> 00:43:34,140 Found one. 1145 00:43:35,700 --> 00:43:37,560 And that biotech company 1146 00:43:37,560 --> 00:43:39,480 is using Windows 1147 00:43:39,480 --> 00:43:41,300 2000 as their servers 1148 00:43:41,300 --> 00:43:43,200 because this is a good example 1149 00:43:43,540 --> 00:43:45,660 for the inability to differentiate 1150 00:43:45,660 --> 00:43:46,980 between 2000 1151 00:43:46,980 --> 00:43:49,560 until 2000 SP2 and XP. 1152 00:43:49,760 --> 00:43:51,440 But if there is a web server there, 1153 00:43:52,060 --> 00:43:53,820 I mean, what the hell it can be? 1154 00:43:54,220 --> 00:43:55,620 It's common sense sometimes. 1155 00:43:57,380 --> 00:43:59,560 After working for several years for that 1156 00:43:59,560 --> 00:44:01,660 company, I decided I need 1157 00:44:01,780 --> 00:44:02,900 to move on. 1158 00:44:03,460 --> 00:44:05,560 I decided I need to love my 1159 00:44:05,560 --> 00:44:07,820 environment. So I decided 1160 00:44:07,820 --> 00:44:09,360 I'll check out the environment 1161 00:44:10,460 --> 00:44:11,000 government 1162 00:44:11,570 --> 00:44:13,020 environmental site. 1163 00:44:14,040 --> 00:44:14,940 Here is again 1164 00:44:14,940 --> 00:44:16,840 no American technology used. 1165 00:44:19,100 --> 00:44:21,320 And they're using Microsoft Windows 2000 and 1166 00:44:21,320 --> 00:44:23,600 SP3. I guess they need to 1167 00:44:23,600 --> 00:44:23,800 upgrade. 1168 00:44:25,760 --> 00:44:27,400 So after doing all those 1169 00:44:27,400 --> 00:44:29,540 wonderful, wonderful websites, I decided 1170 00:44:29,540 --> 00:44:30,280 that I need to know 1171 00:44:31,780 --> 00:44:33,280 who is the prime minister 1172 00:44:33,280 --> 00:44:35,440 of France. And again, 1173 00:44:35,560 --> 00:44:37,360 they're not using no American technology 1174 00:44:37,360 --> 00:44:39,640 and they're just being hosted by Akamai 1175 00:44:39,640 --> 00:44:40,200 Networks. 1176 00:44:42,900 --> 00:44:43,920 And Akamai 1177 00:44:43,920 --> 00:44:45,100 Networks use 1178 00:44:45,100 --> 00:44:47,360 a proprietary version 1179 00:44:47,360 --> 00:44:48,040 of 1180 00:44:49,380 --> 00:44:51,580 yeah, they have their own Linux 2.2 1181 00:44:51,580 --> 00:44:53,480 version which they are using. 1182 00:44:54,420 --> 00:44:55,420 You can see that 1183 00:44:55,420 --> 00:44:57,440 by playing with the different options which 1184 00:44:57,440 --> 00:44:59,340 fingerprint models to use, 1185 00:44:59,480 --> 00:45:01,680 just using common sense. What do I need to 1186 00:45:01,780 --> 00:45:03,100 use in order to scan a website? 1187 00:45:03,520 --> 00:45:05,780 I can get my results 1188 00:45:05,780 --> 00:45:07,760 more accurate since of course 1189 00:45:07,760 --> 00:45:08,560 there will be several 1190 00:45:10,680 --> 00:45:11,820 probes that will be 1191 00:45:11,820 --> 00:45:13,660 blocked. So why using them in the first 1192 00:45:13,660 --> 00:45:13,920 place? 1193 00:45:15,740 --> 00:45:17,680 So what we actually 1194 00:45:17,680 --> 00:45:19,680 are looking forward to implement 1195 00:45:19,680 --> 00:45:21,780 with O2 release and what is 1196 00:45:21,780 --> 00:45:23,760 really the future of 1197 00:45:23,760 --> 00:45:25,700 things, although I do think that 1198 00:45:25,700 --> 00:45:27,600 Xprobe2 O2 RC1 1199 00:45:27,600 --> 00:45:28,280 is 1200 00:45:29,680 --> 00:45:31,700 a very good total 1201 00:45:31,780 --> 00:45:33,780 to use. I mean after two years of development 1202 00:45:33,780 --> 00:45:35,840 a lot 1203 00:45:35,840 --> 00:45:36,280 of research 1204 00:45:37,420 --> 00:45:39,740 you can download it and try it for yourself 1205 00:45:39,740 --> 00:45:41,500 and see for yourself 1206 00:45:41,500 --> 00:45:43,500 how fast and accurate the tool is. 1207 00:45:45,860 --> 00:45:47,600 Most of the problems that we have 1208 00:45:47,600 --> 00:45:49,320 with active OS fingerprinting tools and 1209 00:45:49,320 --> 00:45:51,860 with tools of such magnitude 1210 00:45:51,860 --> 00:45:53,600 is the inability to assess the 1211 00:45:53,600 --> 00:45:55,600 that we are in and the 1212 00:45:55,600 --> 00:45:57,600 that we are scanning. If we are unable 1213 00:45:57,600 --> 00:45:59,580 to understand both 1214 00:45:59,580 --> 00:46:01,280 then our scanning 1215 00:46:01,780 --> 00:46:02,440 will be affected 1216 00:46:02,440 --> 00:46:05,440 and we will not get the maximum 1217 00:46:05,440 --> 00:46:06,940 results from the scan. 1218 00:46:12,480 --> 00:46:13,800 So if you look at 1219 00:46:13,800 --> 00:46:15,140 this diagram 1220 00:46:15,140 --> 00:46:17,680 it can summarize what we really need 1221 00:46:17,680 --> 00:46:19,100 to implement and the things that are 1222 00:46:19,100 --> 00:46:20,880 currently being developed. 1223 00:46:21,580 --> 00:46:23,760 First of all we need to add model dependency. 1224 00:46:24,100 --> 00:46:24,740 If we 1225 00:46:25,300 --> 00:46:27,220 if one model depends on the 1226 00:46:27,640 --> 00:46:29,580 execution of another and the first 1227 00:46:29,580 --> 00:46:31,520 model fails there is no need to 1228 00:46:31,780 --> 00:46:32,460 execute the other one. 1229 00:46:33,600 --> 00:46:35,600 I mean the port will not open for 1230 00:46:35,600 --> 00:46:36,080 itself man. 1231 00:46:37,580 --> 00:46:39,160 It's not a magical mystery tool here. 1232 00:46:42,160 --> 00:46:43,280 what we are going to do 1233 00:46:43,280 --> 00:46:45,300 and what we are actually working on now 1234 00:46:45,300 --> 00:46:47,440 is adding intelligence 1235 00:46:47,440 --> 00:46:49,720 into the tool because the tool will not be intelligent 1236 00:46:49,720 --> 00:46:51,700 enough or will not have any AI 1237 00:46:51,700 --> 00:46:53,740 if we are not programming to do that. 1238 00:46:55,920 --> 00:46:57,560 What we are going to do is to add 1239 00:46:57,560 --> 00:46:59,540 dependencies to assess our 1240 00:46:59,540 --> 00:47:01,640 scan in each and every state 1241 00:47:01,780 --> 00:47:03,520 if we do 1242 00:47:03,520 --> 00:47:05,020 discovery models and we 1243 00:47:05,780 --> 00:47:07,040 get the understanding that 1244 00:47:07,040 --> 00:47:08,960 there is a firewall there 1245 00:47:08,960 --> 00:47:11,160 we will be able to change different 1246 00:47:11,160 --> 00:47:13,380 tactics of the tool. We will be able to 1247 00:47:13,380 --> 00:47:15,340 automatically flip to another 1248 00:47:15,340 --> 00:47:17,360 tactic. If we do 1249 00:47:17,360 --> 00:47:19,020 fingerprinting models and the 1250 00:47:19,020 --> 00:47:20,920 amount of received results 1251 00:47:20,920 --> 00:47:23,540 the prob matches will be 1252 00:47:23,540 --> 00:47:25,060 a big whole group. 1253 00:47:25,280 --> 00:47:27,480 What we will do is we will look for 1254 00:47:27,480 --> 00:47:29,260 the common thing 1255 00:47:29,520 --> 00:47:31,480 with all of those operating systems and 1256 00:47:31,780 --> 00:47:33,200 then we will use a niche targeted 1257 00:47:33,770 --> 00:47:35,420 operating system fingerprinting test to 1258 00:47:35,420 --> 00:47:37,440 differentiate between the operating 1259 00:47:37,440 --> 00:47:39,340 system that we have 1260 00:47:39,800 --> 00:47:41,580 as the result for the first stage 1261 00:47:41,580 --> 00:47:43,300 of the OS fingerprinting scan. 1262 00:47:44,220 --> 00:47:45,460 There are a lot of things that 1263 00:47:46,280 --> 00:47:47,440 we are going to implement 1264 00:47:47,440 --> 00:47:49,440 at that stage and at the end of the day 1265 00:47:49,440 --> 00:47:51,620 it will give us the ability 1266 00:47:51,620 --> 00:47:53,460 to disassemble the whole 1267 00:47:53,460 --> 00:47:55,500 operating systems and give you 1268 00:47:55,500 --> 00:47:57,140 an accurate result. 1269 00:47:59,720 --> 00:48:01,560 I would like to credit the following people 1270 00:48:01,780 --> 00:48:03,340 that helped us 1271 00:48:03,340 --> 00:48:04,940 develop several 1272 00:48:05,530 --> 00:48:06,460 things for the tool. 1273 00:48:09,740 --> 00:48:11,600 You can get further 1274 00:48:11,600 --> 00:48:13,320 reading from my website and if 1275 00:48:13,320 --> 00:48:15,780 someone has any kind of 1276 00:48:15,780 --> 00:48:17,640 question I can answer 1277 00:48:17,640 --> 00:48:19,420 then that is the time. 1278 00:48:19,820 --> 00:48:20,400 Yes? 1279 00:48:20,740 --> 00:48:23,420 You talked about the beginning about being able to 1280 00:48:23,420 --> 00:48:25,380 check things based on the hardware 1281 00:48:25,380 --> 00:48:27,580 that is used. Are you mostly 1282 00:48:27,580 --> 00:48:29,460 just talking about routers and 1283 00:48:29,460 --> 00:48:31,540 those types of devices or are you also 1284 00:48:31,780 --> 00:48:32,880 talking about server boards? 1285 00:48:33,340 --> 00:48:35,500 We are going to add several tests that 1286 00:48:35,500 --> 00:48:37,440 will be able to allow us to tell you 1287 00:48:37,440 --> 00:48:39,380 the exact platform for several operating systems 1288 00:48:39,380 --> 00:48:41,520 not only about the networking 1289 00:48:41,520 --> 00:48:41,880 devices. 1290 00:48:43,380 --> 00:48:44,140 Jet direct? 1291 00:48:44,420 --> 00:48:44,880 Sorry? 1292 00:48:45,100 --> 00:48:49,140 Jet direct, actually there is 1293 00:48:49,140 --> 00:48:51,300 support for a lot of the jet direct 1294 00:48:51,300 --> 00:48:53,360 version. HP 1295 00:48:53,360 --> 00:48:55,440 is a good example for how you do not 1296 00:48:55,440 --> 00:48:57,080 put signatures inside the database. 1297 00:48:58,700 --> 00:48:59,400 We are 1298 00:48:59,400 --> 00:49:01,600 fingerprinting HP according to the jet direct 1299 00:49:01,780 --> 00:49:03,820 version and we 1300 00:49:03,820 --> 00:49:05,660 have like 10 different signatures according to 1301 00:49:05,660 --> 00:49:06,720 the EEPROM. 1302 00:49:08,540 --> 00:49:09,560 Any other questions? 1303 00:49:13,620 --> 00:49:14,840 Xprobe can be 1304 00:49:14,840 --> 00:49:17,620 built on Linux and FreeBSD and 1305 00:49:17,620 --> 00:49:19,640 I guess on Solaris as well but we haven't tried 1306 00:49:19,640 --> 00:49:20,200 Solaris yet. 1307 00:49:22,240 --> 00:49:22,800 Yes, 1308 00:49:22,820 --> 00:49:23,960 Reddit 9 works. 1309 00:49:25,080 --> 00:49:25,640 Yes? 1310 00:49:35,220 --> 00:49:37,540 Currently no but we will be able to do that. 1311 00:49:40,400 --> 00:49:41,360 Okay, yes. 1312 00:49:41,560 --> 00:49:42,280 Last question. 1313 00:49:47,160 --> 00:49:49,120 There is a document 1314 00:49:49,660 --> 00:49:50,660 inside the tarball 1315 00:49:50,660 --> 00:49:53,400 describing how we can add your own signatures 1316 00:49:53,400 --> 00:49:55,100 and we are going to automate that as well. 1317 00:49:56,540 --> 00:49:57,020 Yes? 1318 00:49:57,860 --> 00:49:58,340 . 1319 00:50:00,240 --> 00:50:00,680 . 1320 00:50:01,120 --> 00:50:01,520 . 1321 00:50:02,160 --> 00:50:02,600 . 1322 00:50:02,600 --> 00:50:03,980 . 1323 00:50:03,980 --> 00:50:04,020 . 1324 00:50:04,020 --> 00:50:04,120 . 1325 00:50:04,120 --> 00:50:04,600 . 1326 00:50:04,600 --> 00:50:04,660 . 1327 00:50:04,660 --> 00:50:05,420 . 1328 00:50:11,040 --> 00:50:11,920 . 1329 00:50:11,920 --> 00:50:11,940 . 1330 00:50:11,940 --> 00:50:12,100 . 1331 00:50:12,100 --> 00:50:12,220 . 1332 00:50:12,220 --> 00:50:12,760 . 1333 00:50:12,760 --> 00:50:13,800 . 1334 00:50:13,800 --> 00:50:14,280 . 1335 00:50:14,280 --> 00:50:15,960 . 1336 00:50:15,960 --> 00:50:16,240 . 1337 00:50:16,240 --> 00:50:16,300 . 1338 00:50:16,300 --> 00:50:16,460 . 1339 00:50:21,080 --> 00:50:22,040 .