1 00:00:00,000 --> 00:00:07,520 Hello everybody. I'm so sorry that there's something wrong. The next talk is without slides. 2 00:00:07,980 --> 00:00:15,900 Because something horrible happened. My machine, my laptop, which has all the slides inside, 3 00:00:16,000 --> 00:00:20,160 all the information and all the demo inside, is broken right before I come here. 4 00:00:20,720 --> 00:00:27,580 So the file system is broken and it cannot boot past the file system check. 5 00:00:27,580 --> 00:00:37,300 But anyway, my talk is only 20-50 minutes, so I'll do my best to present my talk without slides. 6 00:00:37,640 --> 00:00:40,200 So I'm very sorry and hope you understand. 7 00:00:41,720 --> 00:00:53,300 So my talk is about operating system finger beating for virtual machines. 8 00:00:54,180 --> 00:00:54,820 . 9 00:00:57,580 --> 00:01:00,340 My name is Nguyễn Anh Quỳnh. I'm from Japan. 10 00:01:00,900 --> 00:01:03,580 I'm working for a research lab in Japan. 11 00:01:03,920 --> 00:01:09,200 And one of my research areas is studying how to protect virtual machine system. 12 00:01:10,280 --> 00:01:16,920 And in my talk, I'll present how to fingerprint the operating system running inside virtual machine. 13 00:01:17,760 --> 00:01:24,240 So first, what is OS fingerprinting? I think everybody here knows that. 14 00:01:24,540 --> 00:01:26,600 OS fingerprinting means that 15 00:01:26,600 --> 00:01:26,700 . 16 00:01:27,580 --> 00:01:35,260 We try to identify which operating system running on the target machine. 17 00:01:36,680 --> 00:01:44,380 And traditionally, people fingerprinting system remotely via network. 18 00:01:44,740 --> 00:01:47,800 For example, I have one machine over there. 19 00:01:47,980 --> 00:01:51,120 I have one laptop over there, a laptop here. 20 00:01:51,300 --> 00:01:54,520 And I want to know which OS running inside that machine. 21 00:01:54,520 --> 00:02:01,440 And traditionally, the way is that we send some graph packets to that remote machine. 22 00:02:01,600 --> 00:02:05,380 And we analyze the result, sending back from that machine. 23 00:02:05,520 --> 00:02:12,800 And we can, from the network packets, sending back, we can understand which OS running on that remote machine. 24 00:02:13,240 --> 00:02:21,700 So OS fingerprinting for a remote system like that is well known and all problems. 25 00:02:21,700 --> 00:02:28,580 So in this talk, I don't present the problem. 26 00:02:28,840 --> 00:02:31,840 But we propose new problems. 27 00:02:32,400 --> 00:02:34,520 So the problem is like this. 28 00:02:35,680 --> 00:02:38,820 You have one virtual machine system. 29 00:02:39,320 --> 00:02:40,720 You have one physical system. 30 00:02:41,460 --> 00:02:42,480 You manage the system. 31 00:02:42,920 --> 00:02:45,980 And on that system, you run multiple virtual machines. 32 00:02:46,480 --> 00:02:46,720 Okay? 33 00:02:48,280 --> 00:02:49,940 Virtual machine can run any OS. 34 00:02:50,140 --> 00:02:51,340 It can be Windows. 35 00:02:51,340 --> 00:02:52,220 It can be Linux. 36 00:02:52,680 --> 00:02:53,660 It can be BSD. 37 00:02:53,860 --> 00:02:54,560 It can be storage. 38 00:02:54,780 --> 00:02:55,280 It can be anything. 39 00:02:55,540 --> 00:02:59,280 And each OS can be any version. 40 00:02:59,640 --> 00:03:00,160 Right? 41 00:03:00,500 --> 00:03:05,340 So the question is that my assumption is that I manage the system. 42 00:03:05,740 --> 00:03:06,940 I manage the host. 43 00:03:07,280 --> 00:03:09,900 And there are many virtual machines running on that. 44 00:03:10,100 --> 00:03:13,520 And now how to fingerprint those virtual machines? 45 00:03:13,940 --> 00:03:17,880 How to know which OS running each virtual machine? 46 00:03:18,500 --> 00:03:20,160 So the question is that. 47 00:03:20,160 --> 00:03:21,400 Why we need that? 48 00:03:21,900 --> 00:03:27,180 There are two reasons why I need which OS running inside each virtual machine. 49 00:03:27,520 --> 00:03:31,280 So the first reason is well known. 50 00:03:31,480 --> 00:03:35,540 I want to protect virtual machine without knowing which OS running inside. 51 00:03:35,760 --> 00:03:36,200 Why? 52 00:03:36,420 --> 00:03:41,060 Because, for example, I am running an ISP. 53 00:03:41,320 --> 00:03:43,480 I manage many virtual machines. 54 00:03:43,660 --> 00:03:46,860 And each virtual machine is used by one customer. 55 00:03:46,860 --> 00:03:50,340 So each customer has one virtual machine. 56 00:03:50,600 --> 00:03:53,380 And I don't know which OS they run inside. 57 00:03:53,760 --> 00:03:54,040 Right? 58 00:03:54,600 --> 00:03:56,680 They can do anything inside the virtual machine. 59 00:03:56,880 --> 00:03:58,380 They can run anything inside virtual machine. 60 00:03:58,740 --> 00:04:02,440 So but I don't know which OS they run inside. 61 00:04:02,620 --> 00:04:03,960 But I still want to protect them. 62 00:04:04,700 --> 00:04:13,060 For example, if I know this virtual machine run Windows XP and configure worms coming. 63 00:04:13,360 --> 00:04:16,840 I need to put the function. 64 00:04:16,840 --> 00:04:18,080 Because I want around that virtual machine. 65 00:04:18,180 --> 00:04:18,320 Right? 66 00:04:18,500 --> 00:04:22,180 But if that virtual machine run Linux, I don't need to care. 67 00:04:23,820 --> 00:04:27,880 And sometimes I need to know detail about which OS. 68 00:04:28,100 --> 00:04:30,820 For example, this virtual machine run Windows. 69 00:04:31,040 --> 00:04:31,740 But which version? 70 00:04:32,400 --> 00:04:35,700 Windows XP suffer with configure worm. 71 00:04:35,820 --> 00:04:37,440 But Windows 7 is not. 72 00:04:37,620 --> 00:04:40,380 So I want to know which OS and which version true. 73 00:04:40,520 --> 00:04:40,840 Right? 74 00:04:41,220 --> 00:04:46,040 So the question is how to know which OS running inside. 75 00:04:46,040 --> 00:04:47,880 Each virtual machine. 76 00:04:48,140 --> 00:04:49,840 Given that you manage the host. 77 00:04:50,980 --> 00:04:52,140 Any idea? 78 00:04:53,380 --> 00:04:54,280 How to know? 79 00:04:57,980 --> 00:04:59,160 You manage the host. 80 00:04:59,600 --> 00:05:01,680 And I want to know which OS running inside. 81 00:05:02,080 --> 00:05:06,000 So the easy question is that you use the old way. 82 00:05:07,140 --> 00:05:12,380 You fingerprint each virtual machine using traditional tool like Nmap. 83 00:05:13,300 --> 00:05:16,020 You send graph packet to that virtual machine. 84 00:05:16,040 --> 00:05:19,340 And analyze the result sending back. 85 00:05:19,420 --> 00:05:20,300 That's the old way. 86 00:05:20,420 --> 00:05:20,500 Right? 87 00:05:20,880 --> 00:05:22,380 You can always use that. 88 00:05:22,540 --> 00:05:24,060 It's not for virtual machine. 89 00:05:24,200 --> 00:05:25,200 But of course you can do that. 90 00:05:25,480 --> 00:05:28,440 But there are many problems with that way. 91 00:05:28,580 --> 00:05:29,100 Why? 92 00:05:29,420 --> 00:05:30,140 First one. 93 00:05:30,340 --> 00:05:32,140 The modern operating system. 94 00:05:33,000 --> 00:05:34,960 They have many mechanism. 95 00:05:35,720 --> 00:05:37,240 Which is turn on by default. 96 00:05:37,560 --> 00:05:41,140 So you cannot remotely fingerprint. 97 00:05:42,660 --> 00:05:44,180 You cannot always do that. 98 00:05:44,240 --> 00:05:44,520 For example. 99 00:05:44,520 --> 00:05:45,440 Windows 7. 100 00:05:45,640 --> 00:05:49,640 They close all the port they don't use. 101 00:05:50,760 --> 00:05:54,580 So in the case that virtual machine has no port open. 102 00:05:54,680 --> 00:05:55,540 Nmap doesn't work. 103 00:05:56,260 --> 00:05:58,160 Or if Nmap work. 104 00:05:58,300 --> 00:05:59,640 The result is not correct. 105 00:06:00,860 --> 00:06:04,260 And modern operating system has some mechanism. 106 00:06:04,520 --> 00:06:05,140 For example. 107 00:06:05,420 --> 00:06:06,320 Windows 7. 108 00:06:06,420 --> 00:06:10,280 They drop all the ICMP packet by default. 109 00:06:10,960 --> 00:06:11,520 So. 110 00:06:12,060 --> 00:06:13,420 The tool like Xprobe. 111 00:06:13,420 --> 00:06:17,020 Which is a remote fingerprinting tool. 112 00:06:17,360 --> 00:06:18,660 Rely on ICMP. 113 00:06:18,800 --> 00:06:19,380 Doesn't work anymore. 114 00:06:21,200 --> 00:06:25,520 So network based fingerprinting is not very good. 115 00:06:26,420 --> 00:06:27,360 And finally. 116 00:06:27,940 --> 00:06:32,780 If you use Nmap to fingerprint the virtual machine. 117 00:06:33,000 --> 00:06:34,660 Even on the same system. 118 00:06:34,820 --> 00:06:36,200 From host to the guest. 119 00:06:37,280 --> 00:06:40,260 Nmap take maybe 30 seconds or so. 120 00:06:40,560 --> 00:06:42,100 And I'm not very happy with that. 121 00:06:42,100 --> 00:06:43,620 It's on the same system. 122 00:06:43,820 --> 00:06:44,700 But it takes 30 seconds. 123 00:06:45,420 --> 00:06:45,940 So. 124 00:06:46,200 --> 00:06:47,200 I don't like that. 125 00:06:47,320 --> 00:06:49,000 Old and traditional solution. 126 00:06:49,680 --> 00:06:50,200 So. 127 00:06:50,400 --> 00:06:52,300 There are two other ways. 128 00:06:53,300 --> 00:06:54,720 People propose two other ways. 129 00:06:54,920 --> 00:06:57,220 Which is specific for virtual machine. 130 00:06:57,780 --> 00:06:58,840 The first one is. 131 00:07:00,240 --> 00:07:01,500 You manage the host. 132 00:07:01,640 --> 00:07:01,800 Right? 133 00:07:02,240 --> 00:07:04,560 And on the host you run virtual machine. 134 00:07:04,820 --> 00:07:05,060 So. 135 00:07:05,220 --> 00:07:08,140 You can look inside the guest file system. 136 00:07:08,340 --> 00:07:08,960 It's doable. 137 00:07:10,600 --> 00:07:11,120 So. 138 00:07:11,120 --> 00:07:11,820 The first way is that. 139 00:07:11,880 --> 00:07:15,660 You look in the file system of the virtual machine. 140 00:07:15,880 --> 00:07:17,120 And you analyze it. 141 00:07:17,280 --> 00:07:20,900 To understand the file system content. 142 00:07:21,220 --> 00:07:23,740 And you can extract out some special file there. 143 00:07:23,980 --> 00:07:27,040 To identify the OS. 144 00:07:27,460 --> 00:07:28,640 So that's doable too. 145 00:07:29,000 --> 00:07:30,960 But there are some problem too. 146 00:07:31,560 --> 00:07:32,680 First one is that. 147 00:07:34,440 --> 00:07:35,640 You need to understand. 148 00:07:36,100 --> 00:07:39,300 The host need to understand the file system of the guest. 149 00:07:39,840 --> 00:07:40,840 That's a big problem. 150 00:07:40,840 --> 00:07:41,680 For example. 151 00:07:41,860 --> 00:07:43,960 If you run hyper V virtual machine. 152 00:07:44,680 --> 00:07:45,240 And. 153 00:07:45,440 --> 00:07:47,420 The guest virtual machine run Linux. 154 00:07:48,040 --> 00:07:50,300 There are hundred cap file system on Linux. 155 00:07:50,640 --> 00:07:53,660 And there's no way for hyper V to understand all of them. 156 00:07:54,640 --> 00:07:55,480 So far. 157 00:07:55,580 --> 00:07:56,780 Hyper V windows. 158 00:07:57,060 --> 00:07:58,020 Only understand. 159 00:07:59,240 --> 00:08:00,160 EXT second. 160 00:08:00,380 --> 00:08:01,100 File system. 161 00:08:01,560 --> 00:08:01,900 But. 162 00:08:02,100 --> 00:08:02,980 Have others. 163 00:08:03,240 --> 00:08:03,800 XFS. 164 00:08:04,020 --> 00:08:04,340 JFS. 165 00:08:04,540 --> 00:08:04,940 And so on. 166 00:08:05,780 --> 00:08:07,020 There's no way to understand. 167 00:08:07,320 --> 00:08:07,620 We don't. 168 00:08:07,660 --> 00:08:08,660 Cannot understand that. 169 00:08:08,920 --> 00:08:09,340 So. 170 00:08:09,340 --> 00:08:10,340 Looking at. 171 00:08:11,080 --> 00:08:12,180 Into the file system content. 172 00:08:12,260 --> 00:08:12,700 Is not. 173 00:08:12,720 --> 00:08:13,280 Is not good. 174 00:08:13,760 --> 00:08:14,580 For some. 175 00:08:15,360 --> 00:08:15,800 Hypervisor. 176 00:08:16,520 --> 00:08:16,960 And. 177 00:08:17,760 --> 00:08:18,720 The other reason. 178 00:08:19,020 --> 00:08:19,460 Is that. 179 00:08:19,940 --> 00:08:21,680 If the file system is encrypted. 180 00:08:22,360 --> 00:08:23,140 There's no way to. 181 00:08:23,520 --> 00:08:24,940 To extract information out. 182 00:08:25,240 --> 00:08:25,420 Right? 183 00:08:25,780 --> 00:08:26,220 So. 184 00:08:27,000 --> 00:08:29,520 Looking into the file system of the guest virtual machine. 185 00:08:29,740 --> 00:08:30,340 Is not good. 186 00:08:33,140 --> 00:08:33,580 The. 187 00:08:33,600 --> 00:08:34,380 The other way. 188 00:08:34,420 --> 00:08:35,040 People want to propose. 189 00:08:35,280 --> 00:08:35,660 Is that. 190 00:08:35,960 --> 00:08:37,820 You can look into the memory of the. 191 00:08:37,920 --> 00:08:38,840 Guest virtual machine. 192 00:08:39,020 --> 00:08:39,320 And. 193 00:08:39,320 --> 00:08:39,640 It's too. 194 00:08:40,020 --> 00:08:40,420 Because. 195 00:08:40,640 --> 00:08:41,380 From the host. 196 00:08:41,500 --> 00:08:42,520 You can access to the. 197 00:08:42,600 --> 00:08:42,920 Memory. 198 00:08:43,100 --> 00:08:43,900 On the virtual machine. 199 00:08:44,420 --> 00:08:44,820 And. 200 00:08:44,880 --> 00:08:46,840 You can analyze the content of the memory. 201 00:08:47,680 --> 00:08:48,420 To understand. 202 00:08:48,520 --> 00:08:48,860 Which OS. 203 00:08:49,020 --> 00:08:49,260 Run. 204 00:08:50,000 --> 00:08:50,400 But. 205 00:08:50,480 --> 00:08:51,040 This way. 206 00:08:51,760 --> 00:08:52,640 There's some problem too. 207 00:08:53,340 --> 00:08:53,740 Why? 208 00:08:53,880 --> 00:08:54,140 Because. 209 00:08:54,680 --> 00:08:56,140 If you want to analyze the. 210 00:08:56,300 --> 00:08:56,700 Memory. 211 00:08:56,840 --> 00:08:57,480 Of the virtual machine. 212 00:08:57,620 --> 00:08:58,480 You need to understand. 213 00:08:58,580 --> 00:08:59,040 Very well. 214 00:08:59,160 --> 00:08:59,740 About the. 215 00:09:00,080 --> 00:09:00,480 OS. 216 00:09:00,780 --> 00:09:01,180 Internals. 217 00:09:01,300 --> 00:09:01,740 Of the virtual. 218 00:09:02,200 --> 00:09:03,080 Of the virtual machine. 219 00:09:03,440 --> 00:09:04,420 You need to understand. 220 00:09:04,520 --> 00:09:04,980 Very well. 221 00:09:05,100 --> 00:09:06,240 How the OS. 222 00:09:06,920 --> 00:09:07,240 Organize. 223 00:09:07,320 --> 00:09:07,580 The object. 224 00:09:07,860 --> 00:09:08,080 Inside. 225 00:09:08,160 --> 00:09:08,340 The. 226 00:09:08,420 --> 00:09:08,740 Inside. 227 00:09:08,860 --> 00:09:09,020 The. 228 00:09:09,080 --> 00:09:09,180 Memory. 229 00:09:10,280 --> 00:09:10,600 And. 230 00:09:11,280 --> 00:09:11,600 For. 231 00:09:12,620 --> 00:09:13,240 Open source. 232 00:09:13,400 --> 00:09:13,620 OS. 233 00:09:14,020 --> 00:09:14,340 Is. 234 00:09:14,980 --> 00:09:15,300 It's. 235 00:09:15,320 --> 00:09:15,360 Too. 236 00:09:15,460 --> 00:09:15,600 Weapon. 237 00:09:15,860 --> 00:09:16,180 It's. 238 00:09:16,380 --> 00:09:16,580 Easy. 239 00:09:16,900 --> 00:09:17,220 But. 240 00:09:17,280 --> 00:09:17,420 It's. 241 00:09:17,480 --> 00:09:17,500 Too. 242 00:09:17,560 --> 00:09:17,720 Weapon. 243 00:09:17,900 --> 00:09:18,220 But. 244 00:09:18,280 --> 00:09:18,480 For. 245 00:09:18,480 --> 00:09:18,720 The. 246 00:09:18,820 --> 00:09:19,140 Closed. 247 00:09:19,220 --> 00:09:19,400 Source. 248 00:09:19,460 --> 00:09:19,740 OS. 249 00:09:19,760 --> 00:09:19,920 Like. 250 00:09:20,000 --> 00:09:20,220 Windows. 251 00:09:36,240 --> 00:09:36,360 I guess. 252 00:09:40,500 --> 00:09:40,780 So. 253 00:09:40,840 --> 00:09:40,960 My. 254 00:09:41,100 --> 00:09:41,240 Solution. 255 00:09:41,480 --> 00:09:41,640 Is. 256 00:09:41,720 --> 00:09:41,880 That. 257 00:09:41,900 --> 00:09:42,180 I. 258 00:09:42,280 --> 00:09:42,560 Propose. 259 00:09:42,580 --> 00:09:42,720 A. 260 00:09:42,800 --> 00:09:42,860 Tool. 261 00:09:42,940 --> 00:09:43,220 Name. 262 00:09:43,640 --> 00:09:43,920 U. 263 00:09:44,020 --> 00:09:44,160 F. 264 00:09:44,220 --> 00:09:44,360 O. 265 00:09:45,240 --> 00:09:45,520 U. 266 00:09:45,960 --> 00:09:46,100 F. 267 00:09:46,160 --> 00:09:46,240 O. 268 00:09:46,640 --> 00:09:46,920 Can. 269 00:09:50,040 --> 00:09:50,320 Fingerprint. 270 00:09:50,520 --> 00:09:50,680 The. 271 00:09:50,720 --> 00:09:50,860 Virtual. 272 00:09:50,920 --> 00:09:51,160 Machine. 273 00:09:51,200 --> 00:09:51,440 Very. 274 00:09:51,480 --> 00:09:51,740 Well. 275 00:09:52,420 --> 00:09:52,700 It's. 276 00:09:52,760 --> 00:09:52,960 Very. 277 00:09:53,040 --> 00:09:53,320 Fast. 278 00:09:53,480 --> 00:09:53,760 It's. 279 00:09:53,840 --> 00:09:54,020 Much. 280 00:09:54,020 --> 00:09:54,120 Faster. 281 00:09:55,180 --> 00:09:55,460 And. 282 00:09:55,480 --> 00:09:55,720 Map. 283 00:09:56,180 --> 00:09:56,460 And. 284 00:09:56,560 --> 00:09:56,620 Map. 285 00:09:56,680 --> 00:09:56,860 Take. 286 00:09:56,900 --> 00:09:57,100 Maybe. 287 00:09:57,220 --> 00:09:57,500 30. 288 00:09:57,620 --> 00:09:57,860 Second. 289 00:09:57,900 --> 00:09:58,040 Or. 290 00:09:58,100 --> 00:09:58,260 More. 291 00:09:58,640 --> 00:09:58,920 My. 292 00:09:58,980 --> 00:09:59,100 Tool. 293 00:09:59,160 --> 00:09:59,340 Take. 294 00:09:59,340 --> 00:09:59,540 Only. 295 00:09:59,860 --> 00:10:00,140 Millisecond. 296 00:10:00,880 --> 00:10:01,160 And. 297 00:10:01,240 --> 00:10:01,340 It. 298 00:10:01,360 --> 00:10:01,500 Work. 299 00:10:01,540 --> 00:10:01,680 With. 300 00:10:01,680 --> 00:10:01,820 All. 301 00:10:01,900 --> 00:10:02,000 The. 302 00:10:02,040 --> 00:10:02,200 Operating. 303 00:10:02,260 --> 00:10:02,520 System. 304 00:10:03,820 --> 00:10:04,100 Regardless. 305 00:10:04,380 --> 00:10:04,640 How. 306 00:10:04,760 --> 00:10:04,900 We. 307 00:10:04,940 --> 00:10:05,220 Trick. 308 00:10:05,740 --> 00:10:05,840 Change. 309 00:10:06,140 --> 00:10:06,240 The. 310 00:10:06,600 --> 00:10:06,920 OS. 311 00:10:07,160 --> 00:10:07,480 Setting. 312 00:10:07,500 --> 00:10:07,800 Inside. 313 00:10:08,420 --> 00:10:08,740 And. 314 00:10:09,220 --> 00:10:09,540 It. 315 00:10:09,600 --> 00:10:09,740 Work. 316 00:10:09,820 --> 00:10:09,980 With. 317 00:10:10,000 --> 00:10:10,120 All. 318 00:10:10,260 --> 00:10:10,360 The. 319 00:10:10,400 --> 00:10:10,580 Virtual. 320 00:10:10,660 --> 00:10:10,920 All. 321 00:10:11,020 --> 00:10:11,080 The. 322 00:10:11,340 --> 00:10:11,660 Virtual. 323 00:10:11,680 --> 00:10:11,920 Machine. 324 00:10:12,640 --> 00:10:12,960 So. 325 00:10:13,020 --> 00:10:13,260 Here's. 326 00:10:13,320 --> 00:10:13,440 How. 327 00:10:13,600 --> 00:10:13,920 I. 328 00:10:14,060 --> 00:10:14,380 I. 329 00:10:14,880 --> 00:10:15,200 Design. 330 00:10:15,340 --> 00:10:15,600 My. 331 00:10:15,600 --> 00:10:15,900 My. 332 00:10:16,080 --> 00:10:16,400 My. 333 00:10:16,400 --> 00:10:16,580 Tool. 334 00:10:20,200 --> 00:10:20,520 So. 335 00:10:21,140 --> 00:10:21,460 People. 336 00:10:21,460 --> 00:10:21,620 Already. 337 00:10:22,200 --> 00:10:22,220 At. 338 00:10:22,280 --> 00:10:22,540 The. 339 00:10:22,640 --> 00:10:22,840 Network. 340 00:10:22,900 --> 00:10:23,100 Traffic. 341 00:10:23,260 --> 00:10:23,400 Right. 342 00:10:23,760 --> 00:10:24,040 And. 343 00:10:24,080 --> 00:10:24,200 Map. 344 00:10:24,800 --> 00:10:25,080 People. 345 00:10:25,160 --> 00:10:25,420 Look. 346 00:10:25,440 --> 00:10:25,620 At. 347 00:10:25,640 --> 00:10:25,900 File. 348 00:10:25,980 --> 00:10:26,220 System. 349 00:10:26,740 --> 00:10:27,020 Doesn't. 350 00:10:27,040 --> 00:10:27,160 Work. 351 00:10:27,460 --> 00:10:27,740 People. 352 00:10:27,820 --> 00:10:28,020 Look. 353 00:10:28,040 --> 00:10:28,160 At. 354 00:10:28,160 --> 00:10:28,360 Memory. 355 00:10:28,580 --> 00:10:28,840 Doesn't. 356 00:10:28,860 --> 00:10:29,020 Work. 357 00:10:29,440 --> 00:10:29,720 My. 358 00:10:29,780 --> 00:10:29,900 Tool. 359 00:10:29,980 --> 00:10:30,160 Look. 360 00:10:30,360 --> 00:10:30,640 Into. 361 00:10:30,760 --> 00:10:30,920 The. 362 00:10:30,960 --> 00:10:31,180 CPU. 363 00:10:31,360 --> 00:10:31,640 Context. 364 00:10:32,560 --> 00:10:32,780 Why. 365 00:10:33,620 --> 00:10:33,840 From. 366 00:10:34,000 --> 00:10:34,200 Host. 367 00:10:34,280 --> 00:10:34,440 You. 368 00:10:34,600 --> 00:10:34,680 Can. 369 00:10:34,700 --> 00:10:34,900 Get. 370 00:10:34,920 --> 00:10:35,140 The. 371 00:10:35,560 --> 00:10:35,780 CPU. 372 00:10:36,000 --> 00:10:36,220 Context. 373 00:10:36,280 --> 00:10:36,380 Of. 374 00:10:36,420 --> 00:10:36,620 All. 375 00:10:36,640 --> 00:10:36,700 The. 376 00:10:36,760 --> 00:10:36,860 Virtual. 377 00:10:37,000 --> 00:10:37,220 Machine. 378 00:10:37,240 --> 00:10:37,420 You. 379 00:10:37,900 --> 00:10:38,120 You. 380 00:10:38,160 --> 00:10:38,360 Can. 381 00:10:38,840 --> 00:10:39,060 From. 382 00:10:39,120 --> 00:10:39,200 The. 383 00:10:39,240 --> 00:10:39,420 Host. 384 00:10:39,560 --> 00:10:39,780 There's. 385 00:10:39,840 --> 00:10:40,040 Some. 386 00:10:40,220 --> 00:10:40,440 Usually. 387 00:10:40,600 --> 00:10:40,800 Virtual. 388 00:10:40,920 --> 00:10:41,100 Machine. 389 00:10:41,240 --> 00:10:41,460 Provide. 390 00:10:41,520 --> 00:10:41,680 Some. 391 00:10:41,680 --> 00:10:42,120 Interface. 392 00:10:42,420 --> 00:10:42,460 You. 393 00:10:42,520 --> 00:10:42,760 To. 394 00:10:43,280 --> 00:10:43,520 Query. 395 00:10:43,620 --> 00:10:43,840 The. 396 00:10:43,920 --> 00:10:44,080 CPU. 397 00:10:44,240 --> 00:10:44,480 Context. 398 00:10:44,600 --> 00:10:44,680 Of. 399 00:10:44,700 --> 00:10:44,860 Each. 400 00:10:44,920 --> 00:10:45,080 Virtual. 401 00:10:45,180 --> 00:10:45,420 Machine. 402 00:10:45,840 --> 00:10:46,080 What. 403 00:10:46,180 --> 00:10:46,280 Is. 404 00:10:46,320 --> 00:10:46,440 To. 405 00:10:46,480 --> 00:10:46,540 Be. 406 00:10:46,680 --> 00:10:46,920 Context. 407 00:10:48,020 --> 00:10:48,260 In. 408 00:10:48,540 --> 00:10:48,660 This. 409 00:10:49,380 --> 00:10:49,620 In. 410 00:10:49,700 --> 00:10:49,880 My. 411 00:10:49,900 --> 00:10:50,080 In. 412 00:10:50,120 --> 00:10:50,260 My. 413 00:10:50,680 --> 00:10:50,920 In. 414 00:10:51,000 --> 00:10:51,060 My. 415 00:10:51,160 --> 00:10:51,400 Context. 416 00:10:51,640 --> 00:10:51,880 Which. 417 00:10:51,960 --> 00:10:52,140 Mean. 418 00:10:52,340 --> 00:10:52,580 The. 419 00:10:52,580 --> 00:10:53,980 Is. 420 00:10:53,980 --> 00:10:54,360 That. 421 00:10:58,240 --> 00:10:59,000 We. 422 00:10:59,860 --> 00:11:00,180 To. 423 00:11:00,240 --> 00:11:00,560 Can. 424 00:11:02,360 --> 00:11:03,120 Do. 425 00:11:04,180 --> 00:11:04,560 Thank. 426 00:11:17,280 --> 00:11:18,040 Proud. 427 00:11:20,200 --> 00:11:20,680 To. 428 00:11:20,860 --> 00:11:21,080 You. 429 00:11:21,260 --> 00:11:21,600 To. 430 00:11:21,800 --> 00:11:30,400 or not? Does it use an non-executable or not? And why CPU context is meaningful? The reason 431 00:11:30,400 --> 00:11:39,580 is that Intel, Intel platform when they design the platform, they never have strict requirement 432 00:11:39,580 --> 00:11:50,480 on how the OS setting those parameters. You can run the segment anywhere. You can set 433 00:11:50,480 --> 00:12:00,240 the ZT table at any size. You can set the ID table at any size. For example, on Linux, 434 00:12:01,300 --> 00:12:06,800 sorry I don't remember correctly, but because I lost my slide, on Linux the code segment 435 00:12:06,800 --> 00:12:16,040 run at the selector 1, 1, 9, 1, 5, 8, 1, 5, 8. But in Windows, the code segment in during 436 00:12:16,040 --> 00:12:20,460 zero run at selector 8. So all of those things are in the selector 8. So all of those things 437 00:12:20,460 --> 00:12:28,960 are different between OS. Each OS has different way to set those parameters. So my technique 438 00:12:28,960 --> 00:12:36,180 is that I query those parameters at runtime and I match them with the database of signature. 439 00:12:37,140 --> 00:12:44,220 And I can fingerprint exactly the OS variant and OS version. It's very, very accurate 440 00:12:44,540 --> 00:12:50,440 and very fast in milliseconds. And the signature doesn't depend on hypervisor. It can be in 441 00:12:50,460 --> 00:12:56,100 use for Hyper-V, for Xen, because all the hypervisors should provide some interface 442 00:12:56,100 --> 00:13:02,260 for you to query the CPU context. So the final question is that how to get the CPU 443 00:13:02,260 --> 00:13:12,120 context? For example, you know that one operating system uses code segment CS. In ring zero, 444 00:13:12,340 --> 00:13:17,540 it can be, for example, on Windows, it can be 8, number 8 selector, as a selector 8. 445 00:13:20,460 --> 00:13:28,260 This will guarantee that that's the only value. Some operating system can sometimes at some 446 00:13:28,260 --> 00:13:37,800 context use some special value. So how to get all the value that's possible, that's 447 00:13:37,800 --> 00:13:49,300 possibly used by the OS? How to know that? So the easy way is that you write a tool and 448 00:13:49,300 --> 00:13:49,440 you 449 00:13:52,300 --> 00:13:59,220 periodically query the context of the OS. You can get the CPU context, right? And periodically 450 00:13:59,220 --> 00:14:06,640 you query the CPU context. And you get the update value in the signature database. And 451 00:14:07,660 --> 00:14:13,920 that's not good. Why? Because even if your tool runs very tightly, for example, it queries 452 00:14:14,380 --> 00:14:20,440 every second for the CPU context. You can get many values for the CPU context. You can 453 00:14:20,440 --> 00:14:26,060 get many values for the issue of specific OS context, but there are still some chances 454 00:14:26,060 --> 00:14:31,300 that you'll miss something. You're missing something between the interval you query the 455 00:14:31,300 --> 00:14:37,700 CPU context. So writing the tool like that is easy, but it's not good. So in my solution, 456 00:14:37,920 --> 00:14:43,340 I feel fine the OS inside the virtual machine. I use QMU, Q is open source virtual machine. 457 00:14:43,460 --> 00:14:50,420 It's a virtual emulator. I can modify the source code. So I can profile the OS, and I'll modify the QMU. 458 00:14:50,420 --> 00:14:59,580 KMU, run any OS inside KMU, and my modification, I modify KMU so it collects all those parameters 459 00:14:59,580 --> 00:15:01,580 whenever those parameters change. 460 00:15:01,960 --> 00:15:03,500 So I don't miss anything. 461 00:15:04,940 --> 00:15:08,920 So you can see that my way is very flexible. 462 00:15:09,120 --> 00:15:15,760 I don't need to know how the OS organizes the internal object. 463 00:15:15,760 --> 00:15:23,540 Just run it on my KMU, which is modified, and it gets all the CPU context for me, any 464 00:15:23,540 --> 00:15:24,760 time the CPU context changes. 465 00:15:25,220 --> 00:15:28,520 And it automatically generates the database for me. 466 00:15:29,060 --> 00:15:35,200 So after that, for each OS I put, I have one signature, and I put all the signatures in 467 00:15:35,200 --> 00:15:36,840 a whole signature database. 468 00:15:37,380 --> 00:15:43,460 And I run time, I query the CPU context and match them against the signature database. 469 00:15:43,740 --> 00:15:45,380 And I can know which OS is running. 470 00:15:45,380 --> 00:15:46,920 Which OS is running inside that virtual machine. 471 00:15:48,240 --> 00:15:52,780 So that's how MyToon works, and that's the content of my talk. 472 00:15:53,220 --> 00:16:00,420 And MyToon will be released under open source, ZPN license sometime this month, probably 473 00:16:00,420 --> 00:16:01,660 middle of this month. 474 00:16:01,940 --> 00:16:05,420 And it works for Zen very well, for Zen virtual machine very well. 475 00:16:05,480 --> 00:16:07,740 You can use it to fingerprint your OS. 476 00:16:08,060 --> 00:16:11,740 And it has many advantages, it's very fast, millisecond. 477 00:16:12,200 --> 00:16:15,360 It works with the signature database. 478 00:16:15,360 --> 00:16:17,540 The signature also works with all kinds of hypervisors. 479 00:16:17,900 --> 00:16:27,360 And it's even better, there's no way, normally there's no way for you to set the OS to change 480 00:16:27,360 --> 00:16:27,900 those parameters. 481 00:16:28,240 --> 00:16:30,560 So there's no way to fool MyToon. 482 00:16:31,440 --> 00:16:32,360 It's very hard. 483 00:16:33,020 --> 00:16:36,300 Normally the OS has no option for you to change those parameters. 484 00:16:37,260 --> 00:16:37,580 Yeah. 485 00:16:37,980 --> 00:16:39,100 So that's my talk. 486 00:16:43,020 --> 00:16:43,820 Any questions? 487 00:16:46,560 --> 00:16:48,800 So I'm very sorry about the broken machine. 488 00:16:49,280 --> 00:16:53,340 But I hope you understand the talk without the slide. 489 00:16:53,700 --> 00:16:58,480 And in case you want to talk with me, you can speak outside of the room. 490 00:16:58,600 --> 00:16:59,160 Thank you.