Hello everybody. I'm so sorry that there's something wrong. The next talk is without slides. Because something horrible happened. My machine, my laptop, which has all the slides inside, all the information and all the demo inside, is broken right before I come here. So the file system is broken and it cannot boot past the file system check. But anyway, my talk is only 20-50 minutes, so I'll do my best to present my talk without slides. So I'm very sorry and hope you understand. So my talk is about operating system finger beating for virtual machines. . My name is Nguyễn Anh Quỳnh. I'm from Japan. I'm working for a research lab in Japan. And one of my research areas is studying how to protect virtual machine system. And in my talk, I'll present how to fingerprint the operating system running inside virtual machine. So first, what is OS fingerprinting? I think everybody here knows that. OS fingerprinting means that . We try to identify which operating system running on the target machine. And traditionally, people fingerprinting system remotely via network. For example, I have one machine over there. I have one laptop over there, a laptop here. And I want to know which OS running inside that machine. And traditionally, the way is that we send some graph packets to that remote machine. And we analyze the result, sending back from that machine. And we can, from the network packets, sending back, we can understand which OS running on that remote machine. So OS fingerprinting for a remote system like that is well known and all problems. So in this talk, I don't present the problem. But we propose new problems. So the problem is like this. You have one virtual machine system. You have one physical system. You manage the system. And on that system, you run multiple virtual machines. Okay? Virtual machine can run any OS. It can be Windows. It can be Linux. It can be BSD. It can be storage. It can be anything. And each OS can be any version. Right? So the question is that my assumption is that I manage the system. I manage the host. And there are many virtual machines running on that. And now how to fingerprint those virtual machines? How to know which OS running each virtual machine? So the question is that. Why we need that? There are two reasons why I need which OS running inside each virtual machine. So the first reason is well known. I want to protect virtual machine without knowing which OS running inside. Why? Because, for example, I am running an ISP. I manage many virtual machines. And each virtual machine is used by one customer. So each customer has one virtual machine. And I don't know which OS they run inside. Right? They can do anything inside the virtual machine. They can run anything inside virtual machine. So but I don't know which OS they run inside. But I still want to protect them. For example, if I know this virtual machine run Windows XP and configure worms coming. I need to put the function. Because I want around that virtual machine. Right? But if that virtual machine run Linux, I don't need to care. And sometimes I need to know detail about which OS. For example, this virtual machine run Windows. But which version? Windows XP suffer with configure worm. But Windows 7 is not. So I want to know which OS and which version true. Right? So the question is how to know which OS running inside. Each virtual machine. Given that you manage the host. Any idea? How to know? You manage the host. And I want to know which OS running inside. So the easy question is that you use the old way. You fingerprint each virtual machine using traditional tool like Nmap. You send graph packet to that virtual machine. And analyze the result sending back. That's the old way. Right? You can always use that. It's not for virtual machine. But of course you can do that. But there are many problems with that way. Why? First one. The modern operating system. They have many mechanism. Which is turn on by default. So you cannot remotely fingerprint. You cannot always do that. For example. Windows 7. They close all the port they don't use. So in the case that virtual machine has no port open. Nmap doesn't work. Or if Nmap work. The result is not correct. And modern operating system has some mechanism. For example. Windows 7. They drop all the ICMP packet by default. So. The tool like Xprobe. Which is a remote fingerprinting tool. Rely on ICMP. Doesn't work anymore. So network based fingerprinting is not very good. And finally. If you use Nmap to fingerprint the virtual machine. Even on the same system. From host to the guest. Nmap take maybe 30 seconds or so. And I'm not very happy with that. It's on the same system. But it takes 30 seconds. So. I don't like that. Old and traditional solution. So. There are two other ways. People propose two other ways. Which is specific for virtual machine. The first one is. You manage the host. Right? And on the host you run virtual machine. So. You can look inside the guest file system. It's doable. So. The first way is that. You look in the file system of the virtual machine. And you analyze it. To understand the file system content. And you can extract out some special file there. To identify the OS. So that's doable too. But there are some problem too. First one is that. You need to understand. The host need to understand the file system of the guest. That's a big problem. For example. If you run hyper V virtual machine. And. The guest virtual machine run Linux. There are hundred cap file system on Linux. And there's no way for hyper V to understand all of them. So far. Hyper V windows. Only understand. EXT second. File system. But. Have others. XFS. JFS. And so on. There's no way to understand. We don't. Cannot understand that. So. Looking at. Into the file system content. Is not. Is not good. For some. Hypervisor. And. The other reason. Is that. If the file system is encrypted. There's no way to. To extract information out. Right? So. Looking into the file system of the guest virtual machine. Is not good. The. The other way. People want to propose. Is that. You can look into the memory of the. Guest virtual machine. And. It's too. Because. From the host. You can access to the. Memory. On the virtual machine. And. You can analyze the content of the memory. To understand. Which OS. Run. But. This way. There's some problem too. Why? Because. If you want to analyze the. Memory. Of the virtual machine. You need to understand. Very well. About the. OS. Internals. Of the virtual. Of the virtual machine. You need to understand. Very well. How the OS. Organize. The object. Inside. The. Inside. The. Memory. And. For. Open source. OS. Is. It's. Too. Weapon. It's. Easy. But. It's. Too. Weapon. But. For. The. Closed. Source. OS. Like. Windows. I guess. So. My. Solution. Is. That. I. Propose. A. Tool. Name. U. F. O. U. F. O. Can. Fingerprint. The. Virtual. Machine. Very. Well. It's. Very. Fast. It's. Much. Faster. And. Map. And. Map. Take. Maybe. 30. Second. Or. More. My. Tool. Take. Only. Millisecond. And. It. Work. With. All. The. Operating. System. Regardless. How. We. Trick. Change. The. OS. Setting. Inside. And. It. Work. With. All. The. Virtual. All. The. Virtual. Machine. So. Here's. How. I. I. Design. My. My. My. Tool. So. People. Already. At. The. Network. Traffic. Right. And. Map. People. Look. At. File. System. Doesn't. Work. People. Look. At. Memory. Doesn't. Work. My. Tool. Look. Into. The. CPU. Context. Why. From. Host. You. Can. Get. The. CPU. Context. Of. All. The. Virtual. Machine. You. You. Can. From. The. Host. There's. Some. Usually. Virtual. Machine. Provide. Some. Interface. You. To. Query. The. CPU. Context. Of. Each. Virtual. Machine. What. Is. To. Be. Context. In. This. In. My. In. My. In. My. Context. Which. Mean. The. Is. That. We. To. Can. Do. Thank. Proud. To. You. To. or not? Does it use an non-executable or not? And why CPU context is meaningful? The reason is that Intel, Intel platform when they design the platform, they never have strict requirement on how the OS setting those parameters. You can run the segment anywhere. You can set the ZT table at any size. You can set the ID table at any size. For example, on Linux, sorry I don't remember correctly, but because I lost my slide, on Linux the code segment run at the selector 1, 1, 9, 1, 5, 8, 1, 5, 8. But in Windows, the code segment in during zero run at selector 8. So all of those things are in the selector 8. So all of those things are different between OS. Each OS has different way to set those parameters. So my technique is that I query those parameters at runtime and I match them with the database of signature. And I can fingerprint exactly the OS variant and OS version. It's very, very accurate and very fast in milliseconds. And the signature doesn't depend on hypervisor. It can be in use for Hyper-V, for Xen, because all the hypervisors should provide some interface for you to query the CPU context. So the final question is that how to get the CPU context? For example, you know that one operating system uses code segment CS. In ring zero, it can be, for example, on Windows, it can be 8, number 8 selector, as a selector 8. This will guarantee that that's the only value. Some operating system can sometimes at some context use some special value. So how to get all the value that's possible, that's possibly used by the OS? How to know that? So the easy way is that you write a tool and you periodically query the context of the OS. You can get the CPU context, right? And periodically you query the CPU context. And you get the update value in the signature database. And that's not good. Why? Because even if your tool runs very tightly, for example, it queries every second for the CPU context. You can get many values for the CPU context. You can get many values for the issue of specific OS context, but there are still some chances that you'll miss something. You're missing something between the interval you query the CPU context. So writing the tool like that is easy, but it's not good. So in my solution, I feel fine the OS inside the virtual machine. I use QMU, Q is open source virtual machine. It's a virtual emulator. I can modify the source code. So I can profile the OS, and I'll modify the QMU. KMU, run any OS inside KMU, and my modification, I modify KMU so it collects all those parameters whenever those parameters change. So I don't miss anything. So you can see that my way is very flexible. I don't need to know how the OS organizes the internal object. Just run it on my KMU, which is modified, and it gets all the CPU context for me, any time the CPU context changes. And it automatically generates the database for me. So after that, for each OS I put, I have one signature, and I put all the signatures in a whole signature database. And I run time, I query the CPU context and match them against the signature database. And I can know which OS is running. Which OS is running inside that virtual machine. So that's how MyToon works, and that's the content of my talk. And MyToon will be released under open source, ZPN license sometime this month, probably middle of this month. And it works for Zen very well, for Zen virtual machine very well. You can use it to fingerprint your OS. And it has many advantages, it's very fast, millisecond. It works with the signature database. The signature also works with all kinds of hypervisors. And it's even better, there's no way, normally there's no way for you to set the OS to change those parameters. So there's no way to fool MyToon. It's very hard. Normally the OS has no option for you to change those parameters. Yeah. So that's my talk. Any questions? So I'm very sorry about the broken machine. But I hope you understand the talk without the slide. And in case you want to talk with me, you can speak outside of the room. Thank you.