So, I'm Arsnake, and I work for a company called SecTheory out of Austin, Texas. I run hackers and slackers, and this is Jabra. How's it going, DEF CON? Ridiculous numbers here. Ridiculous numbers. So, I'm Jabra. I work for a company called Rapid7. I do a lot of pen testing. I write some Perl. I work with the Backtrack guys. We do, you know, the remote exploit thing. It's all good. So, yeah. That's me. Cool. So, we decided to do a talk on de-anonymization. We've done a lot of talks on, you know, hacking browsers and hacking websites. But we really wanted to kind of change it up a little bit and talk about hacking individuals. So, you know, quickly, why this all matters. I mean, we all kind of care about our privacy at some level. You know, we don't want everyone to know about our secret things and, you know, our passwords and that kind of thing. But people, I think, oftentimes think that they're very secure, especially in this industry. You know, I've done a lot of research. I've done my due diligence. I'm using a proxy. And, therefore, I'm secure. So, we decided to go after, you know, kind of our own to kind of demonstrate that there are quite a few holes in kind of our mantra around our own privacy. So, why is privacy good? It's good because, you know, a lot of people want to drop docs on you, right? You know, you're a security guy. You don't really want your information all over the Internet. Say, for political dissidents, you know, the common thing is, you know, the Chinese guy, you know, against the country, you know, his country might want to kill him for some reason or put him in jail or whatever. Safer for people who might be, you know, subject to violent crimes. You know, they don't want their jealous ex-boyfriend to go come kill him or whatever. Safer for people who have fetishes. For good or for bad. Safer for whistleblowers as well. So, I think there's a lot of different reasons why privacy is good. And we all kind of, you know, encourage ourselves to try to be private if we're doing anything sensitive. And ultimately increases freedoms. So, but there's a bunch of reasons it's also bad. It's a safe and for evildoers. And I'm not going to try to define what that is. But it's sort of, it's up for interpretation. But it allows them to attack, you know, and kind of retreat and exfiltrate the data all relatively quickly and without ramifications. And therefore, it hurts law enforcement. Whether you're pro or against. It's kind of irrelevant. And it prevents the social, you know, compact that we all have with one another. If you come up and say something bad to me and to my face, I can do something about it. But if you say it over the internet, it's a little bit harder. So, it's harder to enforce that over the internet with privacy. But either way, privacy is broken. And we're here to kind of demonstrate quite a few of those different things. Because it's too complex. Ultimately, if you can find someone's IP address, I think that's kind of the gold standard. If you know their real IP address, then you can go do something about it. That's sort of the big thing that we want to find about each other. Not that that's particularly difficult. So, but what about if we can do stuff that's even better? So, we found quite a few ways to do that. So, let's start with a basic anonymization guide. And then we'll break that. All right. So, the first thing that you do when you're looking at being anonymous is you look at, okay, what can I do to mask, you know, what I want to do on the internet? So, can I use things like a proxy and then just traffic? I'll just send all my traffic through this proxy. So, something like Tor is really ideal because you'll have, you know, all these proxies communicating. And you're just sending your information into the proxy. And then at the end, it just goes out through this end node. So, that's pretty cool. You can also do things like, you know, clearing your cookies, clearing your session, using no script. You know, really doing the things diligently to protect and mask your identity. You can also use links so no one knows really what you are and where you're coming from. That sort of stuff. So, yeah, the next component is using things like free email systems, right? So, you can set up like a Gmail server if you want to log in to, you know, some new application. You have things like Lala or whatever. You can just create a free email account and then just log in with that bogus email. They won't be able to track you back to one, you know, one particular email which you used for all your data, like your corporate email. You just use this other account. So, it's a pretty good way to do it. And you're basically, you're dividing up all your user accounts so that no one can actually track you back to, you know, your corporate account. Fair enough. Okay. So, now the client side certificate stuff. Right? So, what I did was I looked at taking a client who's connecting back to a server and they're using like some sort of public key. So, this information is stored within your browser. And what happens if you're going and using this with Firefox? Is you browse through a website and you have your public key within your browser. So, the browser says, okay, do you want to send your public key? And there's just an okay button. And you click okay. And you think about it and you're like, wait a minute. What sort of bad thing could have actually occurred? I'm transmitting my public key to a server and it has nothing to do with the server that I was actually supposed to be sending this information to. So, it's like, well, that's kind of bad. So, we go on to the next slide. And so, what information is actually stored within the public key? Well, there's a whole lot of information about your name, your email, the system that it's running on. So, hypothetically, you can tie this back to, okay, I know it's running, in this example, Fedora Core 4 on, you know, some, you know, EDU or whatever. It's just like an example. Right? But if you look at gathering information about the actual target, all you need to do is really grab this public key. So, can you use something like TCP dump? And you can put it. And you can just, you know. Snip that traffic. Grab the public key. And I have a screenshot we can show later. It's just like using Wireshark to actually grab this public key. And then you can see the information just clear text right there with Wireshark. So, it's kind of good to be able to actually gather this information. And then if we go to the next slide, what we'll see is, okay, so, if you have this information about the client. So, we have their email address or their name or some piece of information. A lot of companies will use a common email schema to actually determine how we're going to create this email address. So, it's really helpful as an attacker to be able to say, okay. So, in traditional phishing, what I would do would be to grab a list of employees and just create my email list. Well, this is sort of the reverse of that. All I need to do is just grab the email address and then just reverse it back to a full name of the individual. So, now I know their name. You know, hypothetically, I know their handle. And now I can start trying to get into that server because based on the public key, I know when it expires. So, all I need to do is just, you know, sort of do a brute force attack. And you're much more likely of actually grabbing a shell because you're doing it, you know, with all the basis of this knowledge. That's sort of how it follows. So, I think a lot of people here have heard of Tor. Yeah? Yeah, a few of you. A few of you have heard of it. So, it's a pretty common way to anonymize yourself. You just kind of bounce through a bunch of proxies. There was a couple of guys, minimum a couple of guys, who compromised some Tor exit nodes and were logging information as it went out of their network. Including 100 embassy passwords. And the reason why 100 is an interesting number is because it's exactly 100. It wasn't 105. It wasn't 96. It was exactly 100. Which means that there's probably a lot of other information that they didn't give out. In fact, I know there's a lot more. But there were such amazingly good passwords as temp and 123456. And Egypt with an I instead of a Y. Very clever. So, Breach actually has a project where they have a bunch of different honeypots. Set up. So, you know, bad guys will route their traffic through it. And they're kind of tracking all this stuff and saying, okay, well, here's what bad guy traffic looks like. And sort of monitoring that kind of information. So, ultimately, you know, you've got to find a proxy that you trust. Which is very difficult. Because it's not your machine, remember. It's somebody else's machine. And hopefully it's not linked back to you. So, you can't really have any prior knowledge of it. Which makes that very difficult. So, Jabro worked on some way to create a hacked version. Of Tor. That would actually do all the same stuff that the guys who did the Tor exit node hacking would be able to. You know, basically make that whole process a lot easier for everybody. But we just sort of ran out of time. So, this is, this little image tag here is a very quick way for you to denonymize. Or at least detect that someone is coming through a Tor node. Because onion routing has its own protocol. Or its own TLD, rather. If you have a server set up. Inside the Tor network. You can actually detect them coming through. And pinging it. And it's your machine. Because you put it there. Or you can use this piece of JavaScript to say, yes, you are or aren't on Tor. So, it's a very, if you're running JavaScript. It's a very easy way to detect that you're coming from JavaScript space. So, probably a year and a half or two years ago or something. I created this thing called Mr. T. It was based off of Ronald's project. Black Dragon, I think it was called. But basically it's a way to enumerate a bunch of plug-ins. History, screen resolution. A bunch of kind of the basic components that give you information about your target. And allow you to go after them. Not great for denonymization. But great for, you know, potential for exploitation. You might be able to say, well, if you've got this specific plug-in. I know that you're going to be vulnerable to this particular thing. Because lots and lots of plug-ins have major issues with them. So, I was looking at utilizing this browser exploitation framework. You guys know about this browser exploitation framework? Yes, no? Yes? All right, cool. So, it's a really awesome piece of software. And what it does is it says, okay, anyone who goes to a malicious website. That I've actually modified with something like cross-site scripting or my website. I can attach it to this framework. And I can do a lot of cool things once you're attached to this framework. So, what I can do is just basically detect what types of things are in the browser. I can detect all the plug-ins. I can detect, you know, what are you doing. All your cookies. All that sort of stuff. I can do keystroke logging. A bunch of cool stuff. So, for this talk, what I did was I said, okay, it's really important to actually be able to improve the quality of this browser exploitation framework. Because what we really want to do is really, really just want to get a shell. But we're going to build upon all of this detection information to do that. So, for this talk, what I did was I said, okay, what do we have for detecting, you know, various types of operating systems? Okay, that's pretty good. Okay, what other things can we look at? So, I said, okay, there's VMware. Which there was currently, there was a module in there that used ActiveX. So, I said, okay, this is not as good as the ideal where I could use something that is going to work everywhere. We'll write it in Java. It'll work pretty much anywhere. And then, you know, you can use it in Linux. You can use it in Windows. Whatever. It doesn't matter. So, that's what I did for this talk. And, you know, I've incorporated that in the new version of Beef, which should be out in a couple of weeks. Incidentally, a lot of this stuff we have demos for. But we need to race through the slides to make sure we get to the end. Then we'll show the demos. Yeah, all the demos are going to be online. There's URLs at the end of the talk. So, everyone's going to, you know, everyone will be able to go and see the demos. Awesome. Next slide. Okay. So, the cool thing is that cloud computing is where all the businesses are going. That's where everything's going. Everyone's, you know, putting all their data in the cloud, right? So, to be able to detect if you're running within something like VMware or QEMU. QEMU is an open source virtualization mechanism. Or VirtualBox or Amazon EC2. All of that. All we really need to do is be able to get the user to run a piece of Java within their browser. So, just a simple Java app that would detect the Mac address and then do a simple regular expression check to say, okay, are you within this range? And you look at the first three octets. And you say, okay, compare that. And then just determine what we're looking at. So, that's already incorporated. It's pretty good. And we can actually, for Amazon EC2, it's even better. We can say, okay, I know you're in this particular region. So, like U.S. East or Europe West. That's pretty nice. What else? So, this pretty much works everywhere, again. So, IE, Firefox, Linux, Windows. I had a couple of issues with Mac. But, you know, talk to the Apple guys and they say, yeah, that stuff will work. It's awesome. So, what we're going to be able to do is we're going to be able to leverage this sort of information in our attacks. So, we don't really have any attacks against, you know, the virtualization mechanisms. But, you know, we're all... That stuff will come in time. So, the next component that I looked at was actually taking this to the next level and actually getting shells based on, you know, this sort of information. So, if we can detect that the user has Java within their browser, just like Java.enabled and such, all we need to do is just create a self-signed Java applet. Self-signed by something like the Microsoft Corporation. And then just run the applet and we get a shell. That's pretty cool. And we'll just customize another one for Linux. The same thing for Mac. And, you know, it's awesome. It's pretty nice. So, if they're running in Linux with sudo, cache to root privs, great. Now we get a root shell. Pretty nice. And if we're, you know, if they don't have Java enabled, we'll just redirect them to browser autopone, which is the Metasploit exploitation framework. So, the next component. So, in summary, I did a ton of work on beef. We have tor detection. We have the Java ping sweeper that rsnake wrote. And what it is, it's basically determining... Based on some really cool agents. Which you can talk about if you want. Determining what are the internal IP addresses for this organization. For this person who went to my page. We'll just do an internal ping sweep on their network. To determine, okay, what else can we see? Wouldn't it be able to be great to go to a web page and get a complete pen test? That's what we're going for. So, the next component is just looking at increasing and just integrating all this stuff into beef. So, it's really just a full detection. Engine for your pen test. And then getting all that information to be transmitted between modules is what we're going to work on next. We also incorporated some of the cool stuff to be able to determine... Okay, give me the Alexa top 500 of where this person has been. So, now I know, okay, they've been to Google. They've been to Twitter. All that stuff. Cross that request forgery. All that stuff comes into play. So, a new version coming out. So, there's a bunch of different ways to get internal IP address range. Or the IP address of the actual box you're on. I'm not going to spend much time on this stuff. A really good one I thought was SCP. WinSCP used to have a vulnerability where you could actually get people to upload files to you. Which was interesting. Word PDF bugs. You'll find this stuff on decloak.net. Interestingly, I went through the about config just kind of hoping I could short circuit a lot of this research. And just kind of jump right to the protocol handlers and look at them. Turns out that most protocol handlers that are really interesting don't actually reside in about config. At least not for protocol handler. You'd think it would. But it doesn't. Including ITMS. ITMS is what iTunes uses to communicate. In fact, I've talked a lot with Apple over the last couple weeks. And Firefox. And the IE guys. All about this issue. Because who owns this bug? So, you come to my webpage. I spawn ITMS protocol. There's a bug in ITMS that allows me to make it visit any page. Forget that for a second. Just assume that it worked that way naturally. So, I get you to visit my page. But instead of going through the protocol. You go through the proxy that you set up instead. Following the proxy settings of Firefox. Which are different than that of the base operating system. It doesn't matter what operating system we're talking about. But let's say it's Windows. And then you connect directly to me. So, now I've got your real IP address as well as the proxy IP address. As long as I submit some sort of payload in the DNS request. So, and this is already on decloak.net. It's been there for a couple months. I just never posted about it. But if you go check it out, it's already there. So, we spend a lot of time talking with the guys. Like, whose bug is this? Where does it belong? I don't think we ever came to a real conclusion. But I'm more and more thinking that it actually is Firefox's bug. Except that if they ever fix it. It will make a lot of people's lives a lot worse. Because they won't be able to have a proxy inside Firefox. As well as using everything else. So, the conclusion to that is. If you want to be anonymous and you're using Firefox. You have to use something like Tor button. Not Tor browser. Tor button. They're very different. One is totally insecure. And the other one is very good. So, just FYI. So, just a little bit. David Byrne came up with something. Probably a year and a half ago or so. Called res timing. So, he could basically check how fast something was coming up. By instantiating it like a thousand times. So, if you instantiate it a thousand times. And it's not there. It's a different time than if it is there. Which is great. You can enumerate anything on the file system. But it just takes a long time. So, not particularly useful as it stands by itself. I made it less useful. By porting it to a non-JavaScript version. But, hey. Now you don't have to have JavaScript turned on. So, then I came up with something called SMB enum. And I didn't publish it. But here I tell you all about it right now. So, I told Rich Mogul about this. You know, I'm able to enumerate your hard drive when you visit my website. And here you go. And I gave him a link. And it was telling what he had installed. And he's like, what the fuck? And that's right. I mean, it's kind of like you don't expect that to happen. That is definitely a cross-zone boundary thing that's vulnerable in IE in multiple ways. Both with res timing and SMB. Also included in beef. Also included in beef. Sorry. And I'll show you what that looks like in a second. But usernames and computer names are really what we're after. You know, IP address is great. But what if I can get you? I want to know who you are. Maybe there's like 20 users on that box. I want to know who you are. But more importantly, it's easier to track you down. If your name is Bob Smith, it's a little harder. But you know what I mean. It's, you know, how many Robert Hansons are there in the security world. Like two or three. You know, it makes it a lot easier. So one example in IE. If you can get someone to cut and paste this URL, it'll actually drop the username and the full path of where their user directory is. Or computer name and full path of where their user directory is. You know, I obfuscated a little bit. Uppercase, lowercase kind of thing. So basically you send them a broken link in an email. You say, hey, can you please, you know, click on this or whatever. They can't click on it because it's a broken link. But they'll cut and paste it into IE. And boom. You've got all that information. Works pretty well. SMB, again, a different way to do SMB. Inside of an iframe you have something as simple as file colon slash slash slash and then slash slash. And then some IP address, which is the location of where your SMB server is sitting on the other side. As long as you've got Windows networking working. I was told that about 50% of networks don't have the ability to have outbound SMB through, you know, outside the corporate firewall or whatever. But 50% is still pretty good. Which means I can actually get all of your information. And when I do mean all, I mean all. Computer name. Your name. What service pack you have. All kinds of crazy stuff. So as long as you've got something sitting there watching the wire, you can actually get all kinds of crazy information from that payload. So SMB enum is great. But it's, and it's pretty fast. I mean, you can probably enumerate it, I don't know, probably several hundred things in a second. Or a couple seconds. It's pretty fast. So how it works is it basically does a file colon slash slash slash. For the local drive. And tries to pick out files. So in JavaScript space, you're only allowed to pull out certain things. Like images, CSS, JavaScript. I'm not allowed to pull, you know, .exes or .log or anything else that would be very interesting. I just can't do it. But with this information, I can actually narrow down what you do have. And then combining this with res colon, now I can actually pull out this very specific granular thing you've got. And not just kind of the big picture of what your drive looks like. So you use SMB first. Res timing for the granularity. And then you start owning them based off what you actually know. This is pretty good at being, it's pretty accurate with the exception of once you've uninstalled something. A lot of times in the uninstall process, it leaves images in place. But other than that, it is pretty accurate. I talked to the IE guys about it. They know about it. I don't know if there's a patch forthcoming. I think it would be kind of difficult to fix. This is an unauthenticated state. But it doesn't matter because you're local to the drive. So the other thing that we tried to do. And I actually threw away the code. I built it and then I threw it away. I was so frustrated. I'm like, I hate this. But I was able to do username detection. And actually enumerate usernames. The problem is the key space for usernames is absolutely ginormous. And if I have to go through and pull images for every single one of these different things. So let's take one of these, for example. If I had Flash and Flash had an image that was based inside my user directory. I could look for, you know, okay. And I know you have Flash. But now I got to look for your user directory. So you can actually use them in combination to figure out where usernames are on the drive. The problem with that is that it takes a very long time to enumerate. In fact, I never got it to work unless it was only like 20 usernames. So if you know it's one of 20 things, it's pretty fast. But if you know it's one of 20,000 things, the user will be sitting there for a very long time. Might even crash their computer. So all that stuff is great. It's fantastic. Except for it all relies that I have a trap. So I have to, like, convince you to do something. Or I have to sort of know that you, like, want to come and attack me. And I have to kind of lay this trap out, which is, I mean, that's fantastic and everything. But it's not all that practical in a lot of cases. Or I have to, you know, do some of the Jabra stuff and actually automatically own every single one of my users. And then, you know, go back and say, okay, who were all those users that I compromised? You know, it's sort of like, it's too much of a wide, you know, range. It's like a thermonuclear weapon when I just want to take out one person. So I was thinking about other ways you could kind of go backwards in time and try to do stuff. Or, like, have such a passive listening device that you would be able to kind of grab all this information. So first thing I was thinking is malware, right? It's the obvious thing. If you can get malware on people's boxes, it would be great. But, again, noisy and you'd have to do it to everybody. And not, you know, kind of OS specific, that kind of stuff. Second is stuff like spyware. You know, like, come on, give me some spyware. You know what I'm talking about. Like Alexa or something. That's phoning home all the time, saying where you are, trying to give information out. But that relies on you being Alexa or having all your users have Alexa. And it's just not that common of a plug-in or tool bar or whatever. So what about Google? What about safe browsing? So I went back and I started really thinking about it. And it turns out that there's some things that are going on under the hood of safe browsing. So safe browsing is designed to protect you. So let's say you go to a phishing site or a malware site. The browser will kind of pop up an alert and say you're not supposed to go there. You're going to get compromised or whatever. So it's great for consumers. It's actually great for security. Except for the fact that it's phoning home all the time. So I left it running for a day. And I got somewhere in the neighborhood, if you average it all out, to around 30 requests per hour out to Google. Which is quite a bit. So it's not, like, perfect. Sometimes it's a little bit more. Sometimes it's a little less. It goes in bursts. Sometimes it's, like, 15 at once and then 12 and then 18. So it's not all very consistent. And I talked to the Mozilla guys about that. And they said, well, it really shouldn't be phoning home that much. There might have been a bug there. And there could easily be. So that was just my test. Feel free to test yourself. But the important part here is that it's phoning home and actually setting a cookie. So we all know cookies can be used for tracking. This might be actually a unique identifier. It might be a hash, an algorithm that they use to, say, when we deliver this encrypted payload, you can decrypt it with the key that you just sent us, that kind of thing, so public-private key sort of thing. But that's irrelevant. I actually don't care what that key consists of. All I care about is that it's unique. You can clear your cookies all the time, and people are pretty good about that. Let's say you wake up in the morning and you're going to go hack somebody. So you log in. You turn on your browser. You go get a cup of coffee. It's phoning home, setting cookies, right? And then you turn on your proxy and you decide you're going to go hack somebody. Well, so the nice thing about this is that it actually does follow the proxy. Normally, you want to go outside the proxy and you want to try to identify who someone is directly. But in this case, it follows the proxy. It's very polite and does exactly what it's supposed to do. The problem with that is that let's say I'm on the other side and I'm in China and I want to kill that dissident or whatever. It's great to be able to say, okay, well, I know I'm getting hacked from this proxy. Maybe someone else has some information about it. Maybe I can go try to break in that proxy, but maybe it's outside the country. Maybe there's other things that get in the way. Or maybe they rm-rf on the way out or whatever. But it's been phoning home the whole time. So I can go to Google and I can say, hey, Google, can you give me the IP address and all associated IP addresses with this cookie over this timestamp? So this cookie came in, this timestamp. Tell me everything else outside of that. And as a result, they can actually get everything that's correlated to that. So they can get your home IP address. They can get the Starbucks down the street. They can get whatever, right? It just depends on wherever you've connected from. And it doesn't matter if you clear cookies as you're booting up. You have to do it as well as when you're shutting down. So you clean your cookies before you start because you don't want to leak information out that might be going to the client that you want to hack or whatever. So you want to tear down your session after it's over, but now you still set that cookie. It was still phoning home that whole time. It set a new cookie. And now you're using the new cookie when you tear down your session and you're using it from your own personal IP address. So it really doesn't matter whether you turn it off at one place or the other. You have to do it in both places. You have to be consistent. You have to always do it. And so not that many people clean their cookies that religiously where they're going to never get caught by that. The dangerous part about this is now you're thinking, well, I'm going to go and turn that off. Well, it doesn't matter. This is all backwards in time. So this is all in the logs. So if you've ever done anything ever illegal when you're using Firefox or Chrome for the last probably year and a half or so, actually maybe even longer than that, they have the potential of having that log. So now whether they do have the logs or not, is in question. They say that they keep all logs for two weeks. Then after that they keep in aggregate. So there's two ways to keep things in aggregate. You can keep like global statistics like the amount of people who visit the site or something. That's an aggregate. Another aggregate is IP address, cookie, and time stamps. That is easily enough information in aggregate to de-anonymize anyone who uses your browser. So they also say we're not going to give, let's see, they say, there's their terms of service. You know, we have good faith belief that access, use, preservation, or disclosure of such information is reasonably necessary to satisfy any applicable law. So any legal entity that comes down and says we want this information, theoretically has it. Regulation, legal process, or enforceable government request, government request, enforce applicable terms of service including investigation of potential violations thereof, detect prevalent or otherwise addressed fraud, security or technical issues, or protect against harm to the rights, property, or safety of Google. Its users are the public. So basically, they pretty much have carte blanche. Now, let's say that they were totally benign and they had no intentions of ever using this ever for anything bad. It kind of doesn't matter. So let's say the FBI comes down within that first two-week period, and let's say they are getting rid of everything. Let's say they're really trying to do a good job. The FBI can still come down and say, you need to hold onto this information for an additional, I think it's like 60 days or something. Can anyone fact check me on that? 60? No? No one knows that? Wow. It's bad. So I think they can keep it for like 60 days or something after that fact and say, well, I don't have the subpoena or warrant. What's that? 90 days. 90 days. All right. And then they can force you to hold it indefinitely after that if they do have the subpoena or whatever. And they also say, we don't correlate this to your username. Well, again, they don't do that, but that is irrelevant. The government can still force them to do that correlation on their behalf. So it almost just doesn't matter what their intentions are in this. It still can be used. So I'm sorry. I was sort of in my head thinking you were all going to be very close and could read what's on the screen. But basically, this is just the transmission of the cookie back and forth and the shavar and some of the payloads going back and forth. But this information will be posted online if you want to take a look at it or just open up a proxy and just watch the information go by. It's pretty simple. Chrome, however, has an interesting thing. So the hypothesis that they're doing totally is all benign and they're not meaning to track anybody and that stuff kind of goes out the window when you're talking about Chrome. Chrome has an additional two pieces that are going across the wire when it does updates. Updates don't happen 30 times an hour. They happen once every five hours. So significantly less amount of time. But they do send two additional pieces of information, which I think are pretty interesting. Machine ID and user ID. So why do you need to know my user ID to give me an update? It doesn't make sense to me. I mean, I can figure out, maybe it's plausible, it's important to know what my machine information is so you can track it and know, hey, maybe we should have more updates for Windows Server, blah, blah, blah, this specific variant. But user ID? So I think it's a little unusual to pass that information out to the web. That's certainly a huge privacy concern and certainly can be tracked back to your user over time because that information doesn't change. So with that, I think we should just get to the demos. All right. 1230. All right. So this first one is being able to identify all the different websites that the user has been to. So all they're doing is they're connecting to beef and we just detect all that information. So this is the new version of beef and it's just the visited URL. So as you'll see here, we have the Alexa top 500 and all we need to do is just click send and then you get the information. Now, the new version of beef is really awesome because it has this new improved logging functionality. So the older versions didn't really have this and now all the information is just right there. And all you get is the information. These are the pages they've been to. You don't get any junk where they haven't been to this website. They just get the good stuff. So that was using the CSS history hack that you're all probably familiar with. Using the view, you know, if the color of a link is changed based off of whether you've been there or not, you can detect that in JavaScript space. You don't have to use JavaScript, but beef heavily uses JavaScript. All right. So this one is just detecting the plug-ins within the browser. Okay. So that's good. So as you can see, you have, like, tons of information with all their plug-ins. So if they have a vulnerable plug-in, all we need to do is just go about actually exploiting it. So you guys can see how we're going with this, right? You're getting information about the client. You're going after them based on that specific piece of information instead of just dumping a bunch of stuff, which is going to cause a lot of pop-ups. The problem with hacking browsers is, you know, you're going to get a bunch of stuff. The problem with hacking browsers is there's a lot of warnings through every single one of those steps. So the more you can sort of reduce that, the more likely it is that you're going to get a shell on the box or, you know, compromise their network or whatever you're trying to do without causing that user to be aware of that happening. And that's what we're all about. We're all about getting shells. So let's do that. So this is the virtualization detection mechanism. The older version had the detection of VMware, but this actual version actually detects QEMU, VirtualBox, and EC2. So this demonstration is just Amazon. Or this is actually VMware. And this will be released in the next couple of weeks. This is interesting for a couple different reasons. A lot of security dudes happen to use some sort of virtualization. So if you don't want to pop your shell inside of a security guy's window, it's kind of nice to know that you're inside of a VM. It could also be interesting to know where geographic locations are. Maybe they're using a virtual host, but it's a bad one. Or maybe the network isn't well secured, so once you're on a VirtualBox, it's essentially shared hosting, and you can start attacking the network. All kinds of stuff. Okay. So the next one is using Browser Autopone. So I couldn't actually get the newest version of Browser Autopone to work because I didn't have a VMware system to actually exploit. So I just used Netcat on Backtrack 4. So it's pretty good. All we're going to do is we're just going to inject an iframe and just redirect them to this page. Okay. So what we'll see here is just modifying the configuration information. I've already included the RC file, as you guys will see up there. But this is just redirecting them to a Netcat session just listening. So obviously, if you're going to do browser exploitation, all you would do would just be have your Metasploit system listening and then just send your exploits. So there we can see the client connected. They sent their information to Netcat. Game over. Now the Java applet. This one's really, really cool. And what we would do if we actually had a client on Linux or Mac, we would just detect actually what operating system they're running and then present them with the corresponding VMware or Java applet in this case to actually exploit their system. Just get a shell, do something a little bit different. This particular actual exploitation is downloading an EXE, you know, MSF payload, and then just, you know, run it. And this is self-signed by the Microsoft Corporation. Obviously, for Apple, you would just do Apple. Must be secure. Yeah. Must be. So I just called it update, Microsoft Corporation, switch over to Linux box, zoom in, and there's our shell. Do you all catch that? Like, you can compromise people by going to a web page. Single click. One click. Pretty easy. I get a shell. Done. Come on. There's no patch for this. There's no patch for this. This works by design. Okay. Now the SMB enum stuff. Thank you. All right. I can actually see you guys now. I'm supposed to picture you naked. That's a lovely sign. All right. SMB enum. I think I'm good on picturing them naked. Yeah, I know. I know. I was going to say. I'm good. No. So bingo. We got all the software that's installed in this box. So this is a, I put this list together in like literally 20 minutes or something. So that could be greatly, greatly improved. It's just a matter of time, how much time you really want to spend making it go through and making those SMB requests. It's local, so it's pretty damn fast. You could probably do it up to maybe 1,000 or 2,000 within just a few seconds. But beyond that, you probably want to find some other way to enumerate. Patches accepted. Yeah. Come on, guys. All right. So this demo is actually disabling safe browsing. So, you know, you can send this to your mom or your dad. Just disable safe browsing. Okay. Let's give them a quick how-to. And the full screen's on. There we go. So this is one way to do it. You can also do it. You can do it through tools, security, and then click the two buttons. But if about config is your sweet spot, you can also do it there. Simple enough. Of course, you know, the Mozilla guys were in the audience when we did this at Black Hat. And they said, well, we really don't recommend that people turn safe browsing and, you know, safe browsing off. All right. I'm sure you all appreciate bright lights after a hangover. All right. But anyway, you know, we talked to them. They're like, yeah, we really appreciate people to keep it on. You know, it's better for their security and all that stuff. And that's true. But it's just a matter of understanding the tradeoffs. If you happen to be a security guy and don't happen to be vulnerable to a lot of that stuff or happen to know that your target isn't going to try to exploit you back, then it probably is a good idea that you turn it off. So, yeah, that's pretty much all the demos. I had one more component. The client-side stuff. This is just an example of sniffing a client-side certificate. So as you can see, you'd get, like, common name and all this information about your organization or whatever. And that's just, you know, just using Wireshark on, you know, public certificate. So this is just a quick example of how to set it up. I'll put this stuff on my blog. And, you know, you guys can take a look. It's pretty easy. All I did was I just used OpenSSL. And created my own certificate. And then I just had it listen and correspondingly accept client-side certs. Pretty easy. So more and more banks are starting to use client-side certs. Not so much in the United States, but definitely a lot more internationally. A few banks here have started doing it as well. Trading platforms, that kind of stuff. It's kind of more common, like, for smaller companies who want to protect themselves without kind of a lot of the hassles of tokens, like actual hardware tokens, that kind of stuff. So. We actually are going to be in room 106 for Q&A if you guys have any questions. But I appreciate you all coming out. Hold on. Let's just show them where they can get, like, the slides and such. Okay. So he's going to put the slides up if you want to write it down. Otherwise, just meet us in room 106. They're right here. All the slides are going to be here. Thank you very much, guys. Thank you.