Thanks for making it out today. There's a lot of people here. I hope you guys are ready to learn some very interesting things based on our research of search engine hacking. My name is Rob Regan. This is Fran Brown. We work at Stack & Lou doing security assessments. And we are the Lords of the Bing. So basically, we set out to improve upon search engine hacking. And we realized that most tools that exist were getting blocked. Most tools, most slides don't work when you need them to. But we actually, we realized that we thought it was a shame, really a crying shame, that Google hacking seemed to be a dying technique. I had a bit of a weep. You guys, though, if you also weep with me, then you can stop now. There's no need to cry anymore because we are bringing it back. We sought out to make tools that don't get blocked. We sought out to actually make practical techniques that you, maybe you don't actually have to go out and scan actively. You can just have something that's, you know, running all the time and letting you know what happens. And we also just wanted people to really think differently. About the way you approach Google hacking. And also to blow your minds, as you can see by the icon. The nice blow your mind icon there. So we basically decided that Google and Bing were our favorite search engines. Yahoo is good, and that's something we're going to explore more as well. But what we focused on now was these indexes. troves on the internet to openly find free information on error messages that are occurring in websites, vulnerable software that's being used in websites. And really, like I said before, we just really thought it was a shame that not many people actively are using Google Hacking to find this information. And we basically decided that these crawlers are the best to gather this information, and they had to cache it so that it's forever available to you. And how many people here have done Google Hacking before, familiar with Google Hacking? Yeah, I assumed everyone has. Assumed everybody, right? How many people have Google Hacked your company that you work for? How many people here have Google Hacked a person? You can't Google Hack a person. That's just stalking. You guys seem to be familiar with Google Hacking for the most part. The types of things we're looking at here is just looking at the old Google Hack database, is advisories, error messages, files containing passwords, things like that. Just as an example, looking for some SQL errors being dumped at the screen, or some password lists in the URL. These are our new tools. These are the ones that you're going to use from now on. Basically, we're leveraging the Google AJAX API now that doesn't get you blocked. It doesn't violate terms of service if that's something you could add. No one at DEF CON cares about that. You guys want to violate the hell out of some services. So these are the tools you're going to use because we have reutilized the Google Custom Search Engine. How many of you have heard of that? What it lets you do is create customized search results. Let's say you only care about star.fedex.com or something like that. Maybe you only want to see results that come out of that. You can set a Google Custom Search interface that will only give you the wildcards that you specify. And you can utilize that in our tools. And for the first time ever, we also released a Bing hacking tool that actually will get vulnerability information. It's not just giving you passive footprinting information. We made a Bing hacking database that we converted the traditional Johnny Long's. Google hacking database from 2003, 2004 to work with Bing and enumerate things such as URLs from sites. And also, Bing has a feature that a lot of people, I think, don't know about that I wanted to make you aware of that you can search by IP address. And this is really interesting because you can see things like virtual host IP address. You can see server farms, something like Rackspace that has a lot of domains all on the same IP address. I actually was talking to some people yesterday at Black Hat that they had done pen tests where they saw a site administrator actually hosting his personal site or porn site on corporate infrastructure. And no one knew about that because they kind of had that as a closely guarded secret. But Bing knew about it. So you could put in things like just the IP address of your server and then see all the domains that are hosted on it that are publicly available. And we also. For those people that I know, I know all of you do, want to violate the hell out of some terms of service, are releasing a script that everyone kind of knew was theoretically possible. I just didn't know of anything that was out there and available for you to use that would utilize a list of open proxies that are known to work to just pull results from Google. And this will indefinitely dump millions of URLs for whatever type of information you're trying to scrape. So either have an army of people ready to analyze it or be ready to write your own tools to analyze it because it's something that's just going to give you massive amounts of information. And it also utilizes some things that we found deep in the Google documentation, such as user IP query stream parameter. That lets you. Basically, it's designed for the Ajax API. And it's designed for people that are embedding widgets in their site that kind of makes them the middle man proxy between their client users and then people that want to search that site using Google. And we just can specify a random value for that to reduce getting blocked by Google. Also, it scrapes the mobile interface, which is what comes up automatically based on your user agent when you hit Google from your iPhone or your Android phone. And that we're utilizing because it seems to have less restrictions on getting you blocked. It also is very lightweight. It has nothing like advertisements or other superfluous links that you would be more overhead in scraping this type of information. So just a little background on this. I don't know how many of you know, but the Google SOAP API, they stopped issuing keys back in 2006. And most of the existing Google hacking tools that kind of hobbled along until then finally just all stopped working last September when Google finally closed that down altogether. Our primary tool uses the Google Ajax API, as we mentioned, which is the approved way of doing it. But it does have several limitations. Notably of which is that it limits you to 64 results per query, which is fine if you're just trying to Google hack a small company or something along those lines. It does make footprinting using Google pretty much impossible. If you want to enumerate URLs of an application you're trying to footprint or domains for your company, 64 results is going to limit you. Whereas Google Scrape Diggity, while violating terms of service, probably, will give you 1,000 results, just like the web interface. So it's a primary reason for doing that. As we see on the right there, how many of you guys are familiar with Scroogle? Anyone use Scroogle? A few people. But that kind of inspired us for this, and they found other interfaces that were stripped down, didn't have advertisements that are easy to scrape. This is just one here. They shut down the old interface, but this is just using Windows, or actually scraping Windows Mobile, or Windows Mobile, Google Mobile, which is a nice stripped down interface, easier for us to scrape. And like we said, for the first time ever, we've created a Bing hacking database that would actually give you good vulnerability disclosures from Bing. A lot of the disparate features between Google and Bing made it so that the known Google hacking queries didn't work. Things such as in URL, you can't use in Bing. But there are substitute features if you read into the documentation. Things like in anchor instead of in URL. And things like the file type are very limited in title. But basically, this is just something we made for you to utilize, and we're giving away for free via our website. Yeah. So we have close to 1,000 queries in the Bing hacking database now. And to my knowledge, I haven't seen any. The limited amount of Bing tools we've seen in the past have just been strictly footprinting type tools, not actually finding vulnerabilities. And we're also giving away the Stack and Lude database, which is just a list of queries we compiled from forums. And we're also giving away the Stack and Lude database, which is just a list of queries. And kind of underground lists that were beyond the Johnny Long Google hacking database and the Foundstone database. And it's also stuff that we actually have intern actively adding to. Chained to a desk. Yeah. Just banging out stuff. Interesting searches from Google all day. And he's also working on some other stuff from Google Code Search, which I'll tell you about a little bit later. So we're not happy just giving you the old stuff converter. We're going to be continuing to develop new regexes and adding them to this. Yeah. Like this first one here. This first example. Actually, I found sites that they were giving away, or they had exposed to the internet, their salary information. Basically, their pay band of what employees make what amount. That's definitely a sensitive information leak that you don't want on your website. And you could use this search to find it in Google's index. So now we're going to demonstrate some of our tools to you. We basically decided that all the old tools that we didn't want to use anymore needed improved upon for several reasons. And we came up with this. So basically what we're going to do is we're going to take this user interface to utilize our new techniques on Google and Bing. They pre-ship with the Foundstone database, the Google hacking database, and SLDB, and allow you to do things like multiple domains. That was one thing that all the previous tools didn't do. You had to do one domain at a time, which is completely unrealistic if you're actually trying to monitor a company of any sort of size. Most of our clients are Fortune 100 companies. companies, and one of them has 700 domains. It's just completely unrealistic to say, I want to do one at a time. And you can also plug in the Google Custom Search key that's provided. As I mentioned before, that allows you to filter your results just down to things you care about. So basically, for that client, we created a Google Custom Search engine that just filtered on those 700 domains. Then they could just check every box and just run it against that, making it a lot easier for them to Google hack themselves. But on an unrelated note, how many people are tired of looking at socks that are just normal, and you want to get two socks that have pictures of wolves on them, or clothes that have pictures of wolves on them in general? You have some wolf wardrobe? Yeah, I know you do. Yeah, wolf sweaters. Yeah, that was one of the funnest things about just looking at these results. One of the searches looks for OpenX shopping cart, open-source shopping cart software that's known to have several vulnerabilities in it. And we found a website that actually specializes in selling clothing with wolves on it that's using that shopping cart. So if you want some free wolf clothes, go to wolfpeople.com, and you'll be stocked with all the wolf socks you can possibly have. Look at that. Even for the children, you use socks. They get them early. So basically, the fact that powered by XCart, shopping cart software that's known to have vulnerabilities in the page, was what Google finds as it's indexing the content of the page, and then allows us to generate queries to find vulnerable software in use. So we've got Bing. And the Bing interface, actually, you have to have a SOAP key. And we actually provided a link for you to go to the site and associate your Hotmail or Live account, whatever Microsoft Passport account you have, just make one up, and they'll issue a key for free. And you just need to plug that in. And as I said before, Bing has a really nice feature that allows you to search by IP address. And as someone that does network risk assessments, a lot of times, we don't even get domain names. We get an IP address range. So you can plug in IP addresses there up in the top right via, you can either specify one at a time, start IP, dash, and IP, or a class. And it'll enumerate all of those for sites, and then dump the results from whatever Google Query site you're using. So you don't have to worry about what queries you're specifying. We also allowed you to specify any queries appended to the end of all of the things loaded in via the flat files, which you can go to the File menu and also load in your own flat file if you have some awesome Google hacking queries that you want to keep secret, or if they're just something that maybe no one else cares about that you just want to use to monitor your sites or whatever you're interested in. And also, on the Simple tab, there's just an interface to plug in any query you want that would be akin to just hitting the web interface, which I think most people do now. Yeah. So again, this is just the Bing interface. Yeah. And it's awesome to show that Bing does have tons of information about vulnerabilities. Just doing a simple search on Entitle Snap Server will give us some Snap Servers online. Yeah. You're hitting someone's web storage just by finding this and able to look through their information. Oh, and last but not least, this is still in prototype phase. But the Google Scrape Diggity, just to kind of illustrate, we could take in either a query or a query file full of regexes from the Google Hack database, a list of Google servers, proxy lists, max results, and just to show you to enumerate them for footprinting purposes. There's a quote at the end of the Perl file extension. Yeah. I mean, obviously, we're not going to demo this. We're downloading millions of URLs right now. But this is something that can go beyond the AJAX API 64 result limit. So we see 73 results here, clearly above 64, and utilizing it in a way that's practical. If I was trying to do an assessment of stackgoo.com, I might want a list of every URL that they have in Google for this, if this makes it possible. One thing we realized, though, is that we're not going to do a lot of this stuff because we're going to be doing more of this But the other thing that was utilized is that the traditional defenses against finding these sensitive information leaks or vulnerable software was to just Google hack yourself. How many people that are responsible for guarding the security of a domain actually do this on a regular basis? A few hands. Most of the people we talked to just don't do this. And most of the people, if they do, maybe once a quarter, which just isn't good enough. There could be something that happens between quarters that you can entirely miss, because it was added to the index and maybe removed after the Google bot crawls that site again. Other things that people do to protect against this are update robots.txt or put meta tags into their pages to prevent it from being indexed by Google. We also realized that's something you should be doing, but it's not something that always happens when new features or new applications are launched on the website. Another thing that people do is they use data loss prevention tools that take a hash of your intellectual property and then monitor anything that's going out via email or anything that's going across the network to see if employees are leaking things, which is something you can do, but also we realized not really good enough to prevent this type of thing. Also, you should be using policies and legal restrictions, but again, it's only so much protection. So to really take it to the next level, to really do prevention in depth, we realized that all these failed and we needed something better. See all this stuff? Forget it. It's dead. This is done. This way of doing things is over. It's not effective. As we saw, one or two guys raised their hands and said they Google hacked themselves on a regular basis. I think they were probably lying. Nobody does it. That's probably lying to you. And because of this, the Wolfsock companies of the world are left insecure and it's just a scary place. So now we're going to tell you about some more advanced techniques that we came up with. Protect your neck, fool. Protect your neck. As we said, the tools exist, but they're not convenient, we realized. We realized that you don't get real-time updates. You don't get multi-engine results. You don't have any way to monitor the data and keep a historical log of everything that's found. And you don't have multi-domain searching, but that's until now. We're going to tell you a little bit about Google hacking alerts and Bing alerts, which is something we came up with. How many people here have heard of Google Alerts? Do you use Google Alerts? Maybe you get email updates on things that you care about on the web, maybe. Put your own name in there and see what's going on with you on Google. If you're really narcissistic like me, you do that. So we took the entire Google Hacking Database, Foundstone Database, and our SLDB, and loaded it into Google Alerts. And we set it up to, as soon as something's added to the Google index, let us know via an RSS feed. OK. OK. And we're looking at, you know, maybe there's a SQL injection in this site, or maybe there's a password file that's been disclosed on this site. And it's monitoring the entire web. We have over 2,400 queries that are loaded into there and we're getting basically 3,000 to 4,000 updates a day. And finding really interesting things, like James Bond's website, vulnerable to SQL injection. JAMES BOND IS IN TROUBLE. He needs some help. He's dumping MySQL errors right to the screen. Which is a really dangerous domain to have SQL injection on. This is just the interface where they sell things like James Bond DVDs, and t-shirts, and other merchandise. Actually dumping MySQL error messages. And one thing that I realized about importing this into Google Reader that really makes it beneficial is all RSS feeds that come from Google are going through FeedBurner. That means they're cached forever. And basically, there was a situation like, once a user started complaining about this error message. And the user was like, OK, I'll just hide that error message. And so the developer's like, all right, fine. I'll just hide that error message. Now, the SQL injection's not fixed. As you know, it's just become blind SQL injection. And let's say you Google hacked yourself at start of Q2, and then Google hacked yourself at start of Q3, you would have missed something like that. You would have missed that they covered up that error message. But setting up a Google alert for the string of MySQL error messages would catch that. And then you'd actually have all this historical data archived and everything that was ever found. And you would be able to see that, oh, well, OK, we had SQL injection, did the developer actually fix it? Or did they just hide that error message? And that's one of the benefits of actually having this imported into your RSS feeder, which I recommend Google's because you get that cache, and you get that great searching ability. Also, I don't know if you guys are familiar with this, but if you do a perform a Bing search, and you append n format equals RSS, you can actually turn Bing search results into RSS feeds. OK. That'll also update. So we took our over 900 Bing hacking database queries and turned them all into RSS feeds as well, and have that piping to us, as we could see. And it provides nice little snippets in Google Reader for us there to see what we're looking at for vulnerabilities in Bing. And let me show this. FRAN basically was like, I want to know as soon as anything happens to the sites. That we're caring about. And he created also some thick clients that you can use, such as like a Google desktop reader. So just to, this is important, so I just want to just restate this, just so it sinks in. At this point, for both Google and Bing, any new site that gets indexed by Google or Bing that matches any one of these several thousand hacking database queries, as they get indexed, are being sent to us live feeds. In an organized fashion. So from this point forward, every single thing that meets the Google hacking database, or Bing hacking database, is being sent to us and organized for us. We're talking, it's up to hundreds of thousands of vulnerabilities, and climbing by 3,000, 4,000, 5,000 a day of vulnerable websites on the internet. And the great thing is, we did all the footwork for you. We loaded all of those queries into Google Alerts. And we can give you, it's available for download right now from our website. The OPML file for this Google Reader subscription. So that's just the XML file that allows anyone to import these types of alerts into their RSS reader. So you just download this file. You subscribe to all the feeds. They're automatically nice and organized for you. You can start searching. This is probably one of the largest repositories of live vulnerabilities on the internet. Hundreds of thousands of vulnerable websites. Now, obviously, we kind of, our intent with this was just a way to monitor our own, like about sites that we care about. But this is also the next generation of mass injection tools. Obviously, people kind of glaze over the fact that when malware is spreading via mass injection, step one is search Google for vulnerable classic ASP pages that have SQL injection vulnerabilities in them. But I probably see, as malware writers get a little bit smarter about that, they'll actually have maybe an RSS feed that's feeding their mass injection worm. So that as soon as there's a new site discovered in the index, that it's infected with their attack. I know Rob mentioned this briefly, but just to hit it, if you're not interested in looking through Google Reader at hundreds of thousands of vulnerabilities of everything on the internet, and you're just interested for just yourself, you could download our Google desktop gadget and just specify your domains, as many as you want. And it'll take those RSS feeds and filter them for you and give you nice little system tray alerts that you have a new vulnerability. And Bing or Google. Also, a Droid app coming soon, so that you'll get these alerts right on your phone. Yeah, yeah. So you absolutely cannot leave home without our Google diggity and Bing diggity hacking alerts. You have to have it with you at all times. You have it on your Droid. Yeah, so basically, all the problems that we saw with this act of just every once in a while searching yourself is really replaced by just having Google's cron system always just run as soon as new things are added to the index and give you these alerts. You're getting them in real time. You're getting them from multiple engines, because we took the Bing hacking database feature of appending format equals RSS to all those searches, imported those into Google Reader as well. And you're getting historical data that you can search. You'll never miss a vulnerability that was indexed. You'll basically see everything that happens. You kind of get a timeline of what happened when. And this is, as I said, really the most convenient way to do it. Pretty cool. And one more thing. One thing that we're seeing, and another reason that we wanted to investigate Google hacking, was that the techniques were kind of waning. And no one was really actively developing it. But the search engines were still adapting. Bing's coming out with new features all the time. Google is having an app explosion. In the last five years, they've bought a ton of companies that are integrating those and creating new apps. Google Health is a thing that they have now. How many people know about that? How many people want their health care and health records indexed by Google? And a nice, easily searchable interface for us to exploit. Yeah, and there's things like the Google code search, which we're going to talk about in a minute. We're talking about the Google insights for search. Basically, that's their zeitgeist feature. Get the gist of what people are searching for now. Get the trends. We identified that this treasure trove of information is really useful for spear phishing. We've been calling Eric Schmidt every day. He hasn't returned any of our phone calls yet. So basically, for those of you who don't know, he's the CEO of Google. And if you're looking for information on specific people that you maybe want to find their individual email address or their phone number to try to social engineer them or try to basically send them malware via an email. And we're also leveraging Google code search. How many of you guys are familiar with Google code search? About half. Yeah. So what this lets you do is actually use Google to search open source code repositories, things like SourceForge, things like Microsoft's CodePlex, and even Google's repository that they provide. It's just a subversion. But it indexes all of that code. And you can write regular expressions against it. You can search for things such as a select query that's also utilizing request.queryString in the same line. And identify SQL injection. Identify remote. File includes. Identify cross-site scripting. And we realized that this is extremely valuable information. I just want to skip over that demo. Yeah. Basically, we're finding that we can develop these regular expressions, actually identify. I found things like someone's tennis match scheduling software for them and their friends. Like, OK, that has SQL injection in it. No one really cares. It's just them and their friends scheduling tennis matches. Not much you can do with that. But we're also finding popular open source software, like PHP commenting systems, PHP forums, and blog software, and verifying the vulnerabilities are indeed legit. And then if they're used by a lot of people, it's worth publishing an advisory over that and adding a query that would find those sites that are vulnerable to our SLDB. And this is another thing we have an intern just chained to a desk doing. So we're seeing one thing that he found. He actually reads Chinese, which was helpful, because he found a site that is a blog software that's vulnerable. It has a powered by, this blog name, version number at the bottom of the page. And then you can also search for that string. And then you can search for inurl member.asp, which is the vulnerable page. And we're seeing thousands of results of people in China using this blog software that's vulnerable. So it's kind of a two-stage process of using Google Code Search to look for SQL injection in software to begin with finding a vulnerable blog software, then developing a regex for powered by that blog software. And then finding, I think for that particular case, it was over 25,000 people who were actually using that blog software that we knew was vulnerable to SQL injection. And conversely, the black hat side of this is that this is going to be another evolution of the way mass injection attacks will spread. You'll do that same process, although rather than doing the good guy thing and publishing an advisory and putting out something to help people find these sites, you can just search the web and mass inject them. How many people have heard of black hat SEO? It's search engine optimization, basically the concept of getting search results for certain terms that are searched to the top of the results. Like you want to get ideally in the top 10 Google results, and you're going to get the most visitors. And black hats are using this technique to actually take whatever's the popular search term of the day, maybe when twilight comes out. A lot of people are searching that. And it was actually identified. When the World Cup was out? Yeah, when the World Cup was out, it was identified that a lot of the malware links were rising to the top of results for the World Cup. And what was it? Some kid you grew up with was on Fox News talking about the twilight results. Yeah, some kid I grew up with who, yeah. He got himself a spot on Fox News as an internet expert. And he gave a story. He gave a story. He gave a good segment on when twilight came out about black hat SEO. And basically said the defenses were to eyeball the URLs and Google results and see if it looks OK or not, which is possibly the worst advice that you could possibly give. Yeah, there's no way you can tell these things are actually trying to attack you. I mean, maybe you're expert eyes a little bit better than your mom's, but your mom doesn't know that the fake AV software that her computer box is telling her that she needs is something that she should. She shouldn't install. But one thing that Google provides is the Google Trends and Google Insight for Search to kind of get an idea of what people are searching for the most. So this is the technique that attackers are using. One thing that was identified was that since 2004, is it, that lyrics was the number one search term? Yeah, and I guess that makes kind of sense. I mean, you're in a car. You hear a song that you like. It's Lady Gaga, Poker Face, or something like that. Poker face. And you go home. You want to know the name of the song. Obviously, it's Poker Face, but you type in Lady Gaga, the couple of lyrics that you heard, that you remember, and the word lyrics, and click Go, and lyric sites come up. And that's how you find the song that you can then illegally download or buy the CD. So this is just a perfect example. This was a couple months ago. People will wait. They waited for a Java exploit to come out. Within a number, within a few hours of an exploit being released, these people put up Lady Gaga and Rihanna fake lyrics websites. And then they used search engine optimization, or black hat search engine optimization, to make their fake lyric websites come up on top in the Google results. So if you went home, heard Poker Face or any Rihanna song, typed it in to Google, all the first pages of results, if you clicked on any of them, automatically owned. Your computer's taken over exploiting this Java bug. Within a few hours of it coming out. So obviously, the solution to this is that artists just need to sing more clearly, so that no one has to search to understand what the lyrics actually say. Which is not always easy. I mean, it can work against you with incorrect lyrics like, I've become a wet dream tomato. Have you guys heard that Alicia Keys song in Jay-Z, the Empire State of Mind? The New York one? Next time you listen to it, next time you listen to that song, it's still on the radio a lot. When she comes in with the, with the, I don't know, I don't know, I don't know, I don't She comes in with the hook, and she goes, you listen, all you were gonna hear from this point on is, I've become a wet dream tomato. Nothing you can do. You will not hear anything else from now on, I promise you. Like that? Won't quit my day job. So, but actually, rather than artists singing more clearly, which might be a difficult task, some of the defenses that you can utilize are, you know, you can do a lot of things that, things that the major search providers and browser providers are already building for us. They're trying to protect users by building the Google Safe Browsing API, which is a black list of known malware, known phishing sites, that if you've ever gone to a page that said, this is a reported attack site, continue at your own risk, that's something they're integrating into search results, especially useful for anyone that's utilizing black hat SEO techniques to get those search results to the top, that they're gonna protect you from that. Sandboxing software is another thing that's becoming more and more popular. It's much more useful. Anyone here use Sandboxy? I do. Yeah, you guys do? I know. Fran's hooked. My friend, Oscar, told me about it. I know he uses it. And it's basically gonna run your browser, or any application for that matter, in a sandbox that's protecting write access to things on your system, such as anything that you download. It's gonna say, do you want to recover this outside your sandbox? Or if any malware were to actually exploit your system, it's protecting from things like, such as writes to the registry, such as named piped access. Or anything that's sensitive on the system. And if you were to get infected by something, you can just throw that sandbox away. And... So you could browse all the malware, Rihanna, Lyric sites that you want all day, and then just throw the sandbox away when you're done, which is really the way to go. And it seems to be the trend. I think in the last week or week and a half alone, Dell released their own version of a secure browser using sandboxing. Adobe released their next version of Reader. Reader is gonna have a protected mode that's utilizing sandboxing. And I believe Office 2010 has a sandboxing mode as well. So this is really the, as good of a defense as eyeballing up URLs and Google results is to see if it's good or not. Sandboxing is really the way to go. And really, this seems to be the trend, basically, that malware writers are unleashing things on the web, maybe because they have a decided purpose. One example. Well, just last month was some guys in China wanted to release this malware that would steal passwords to some online games in China. And it got out of control. It basically, as I said, like the fact that people glazed over that step one is search Google for vulnerable websites, it started hitting things like the ad providers for Wall Street Journal. And for Jerusalem Post was another site that ended up distributing this malware that was trying to steal Chinese game passwords. And this is a common problem that I only expect to increase, especially as they get smarter about scraping the results and scraping the new vulnerable websites from Google. Yeah. And it's important to note, I read like 20 articles on this and all the ones you read are very vague about how this actually started. I mean, if you see in the bottom right there, they believe they compromised the total number of websites of 7,214 websites. It's kind of a big range of, I don't know how many there are, let's say a billion, gajillion, bajillion. I don't know. But they don't really cover how that happened to begin with. And it's our belief that people are utilizing either Google or Bing or things like that to find 100,000 vulnerable websites to begin with before they do these mass SQL injection attacks. And as we said, it's great that they're providing these blacklists of knowns. It's great that they're providing these blacklists of knowns. It's great that they're providing these blacklists of knowns. But one idea that I had was, how can we mine that information to monitor our websites? Because the fact of the matter is, most website administrators have no idea when they get out of that blacklist. This is something I found on the netsec list on Reddit. It said that, this guy says, some dickhead emailed me a few weeks ago and told me that my site... Claiming that it was malware. Yeah. Basically saying that his site was in the blacklist. And when people are going to Google it, they're going to be like, oh, it's a blacklist. And when people are visiting it in Chrome, it would say, reported attack site. He said, no way this is possible. But then he actually checked it and realized, oh, yeah, it is saying that. Why am I on this blacklist? And I just thought, we have all these capabilities and all these features in Google and Bing to be able to identify what we're linking to and what's linking to us. Why not have something better than dickhead alert system to let us know that... This is the existing defense. The dickhead notification alert system. alert system. Some dickhead emailed me and told me that my site is serving up malware. Yeah, basically, I just wanted to investigate what would be better than that. What can we do for the average person to know if they've been added to these blacklists? And so one of the advanced techniques we came up with was to protect our neck. Something that we're calling malware diggity at this point. And Bing has a great feature called Link from Domain that you can get all of the off-site links, all the sites basically that you'll dump all the URLs on your site that aren't linking to that domain. So let's say we want Link from Domain, StackBlue.com, that has every external host that we're linking to. And I wanted to take those results and compare them to URLs that are in this blacklist, see if any of those URLs are phishing websites or malware websites. And that would help you get kind of an alert system together to let you know if you've been a victim of one of these mass injections. And even to get that information more real-time, we can use the append format equals RSS onto those Bing results to actively monitor any new links. Let's say you have user-generated content on your site, like a commenting system or a forum, and anyone's allowed to add a link. I came up with this idea when I was doing an assessment of a site that was kind of like MySpace. It was what MySpace was supposed to be. It let venues and artists and fans. log in and upload music and basically share information about concerts. And after they fixed all the cross-site scripting that I found, they also still wanted to allow external links. They still wanted to let people link to whatever they wanted. And I just thought about, there's some risk in that you might be utilized as a phishing platform, especially with your large user base, and especially your prime target for distributing malware as well. So you should actually integrate some code into your app that uses that. . The Google Safe Browsing API to identify any new links that users are adding. But they basically were like, well, we don't have time to do that, we're going to launch the site anyway. But you could utilize something like just Google's crawler or Bing's crawler to let you know of any links on your site that are in that blacklist. So how many of you guys are familiar with what happened last month with the Wall Street Journal incident? Not many people, right? I'm surprised about that. 100,000 websites compromised and nobody's heard about it. Basically, just to give you a quick visual of what it is, is they had 10,000 or 100,000 or whatever you could imagine number of websites scoped out for SQL injection. And they waited. They waited for a browser bug to come out. I believe it was an Adobe Flash vulnerability. Soon as that did, what they did was create an exploit for that, they SQL injected all 100,000 of these websites, appended to every page, include this piece of JavaScript that's an off-site link that exploits this browser bug, so that anyone who went to any of these websites, they could get to any one of these websites the next day, including the Wall Street Journal. Have any of you guys read the Wall Street Journal? If you went to that website, it linked you to this piece of malware that exploited your browser and popped you. So everyone who went to those websites that day automatically gets their browsers out. So it was 1 to 10,000 to God knows how many people went to those sites. And there's still tons of them, actually, if you just Google for these links, these off-site links. And if using our tools, MalwareDiggity, you could sit there and monitor what's linking off of my site and compare it against these lists. And not have to have some dickhead email you and let you know that, hey, by the way, everyone who comes to your site is getting owned or fake AV installed. You can now get a new off-site link. And by the way, it's in this malware list. Maybe you should look into that. It's a little better than the existing defenses. And this is just a demonstration of the results. Actually, this worked really well for monitoring new links on Twitter that were distributing malware phishing. I was getting a lot of hits based on comparing those URLs to what's in the blacklist. And that's just one example of a good way to use this technique. Also, Yahoo has a Site Explorer that lets you see inlinks to your site. So I thought it would be interesting to see, take a known malware URL, like the URL for the Wall Street Journal injection was robint.us. So if you could just input that URL in Yahoo Site Explorer, and its bot had gone out and indexed all of the sites that are linking to that, so that we know all the ones that are infected. That's also useful information that you can gather. And if you want something a little bit more professional, a little more enterprise that's actually going out and crawling your site and identifying things, doing things like JavaScript obfuscation and analyzing all the content on your site actively, Armorize has a new thing called Hack Alert. But if you want something free and crude, you can use these techniques from Bing that we're providing. And so basically, we identified that it was possible to monitor our external links and our incoming links, and then compare those to the blacklist, and then detect infections, and then alert you to that. But my friend asked me, is it possible to get people added to the blacklist? And I was like, hmm, that would be devastating. Because the black hat side of this is that you can, if you show the next slide, identify the links that are in those blacklists, and mass inject your competition via comment spam, or if they have any user-generated content or forums. And then basically, let's say you want to wipe out all the other distributors of Wolf Socks on the internet so that you're the primary retailer of Wolf Socks, you could have your competition blacklisted. And then their page rank goes to zero. And basically, they're not going to show up in the top results of Google anymore. If people do click the link, they're going to get warned that it's a reported attack site, and you can't go there anymore. And basically, this is something that companies could profit from. I'm not sure if this technique is actively being used. . . . The algorithm that identifies links that belong in a blacklist is a closely guarded secret. And this is something I want to test some more to be able to identify how you could get someone added to the blacklist. But I could see this as a service line that the Russian business network might offer, saying, we'll take out your competition. Or as a mafia technique, they could say something like, either give us money, or we'll add you to the blacklist. And this is just something that's kind of unexplored, that information that you can easily gather from these search engines, I think, could be utilized to do something like that. Yeah, I could tell you how I would use it. If you Google for Fran Brown, you will not find our researcher, me, in any way. You will find the Fran Brown College of Beauty. So if I can get that knocked off the Google page results, I want to use this search engine de-optimization. Future predictions. So just to wrap things up with where we think things are going, because things are rapidly changing. They've been a little stagnant since 2004, 2005. But we're kicking things back off again. As we mentioned earlier, I believe there's going to be a continued data explosion. Google will index health records to phone records to open source code to anything they could possibly index and provide an easily searchable interface to. So we're going to see a lot more data indexed, real time streaming updates. I also believe that we're going to see renewed tool development, both on the hacker side, as well as the security side. So we're stepping things up on the security side, but we're going to start seeing things like more automated Google worms, real time detection and exploitation. People are just sitting there waiting in real time, finding these vulnerabilities on Google and automatically exploiting them. And then finally, I believe that Google involvement, as well as Bing involvement, will start getting involved more. Google's been getting a lot of heat from security, from losing their custom authentication code to China, allegedly, and stealing everyone's wireless in Europe that they're going around. So there's a lot of heat. There's a lot of heat on Google right now, from a security perspective. And I know it's led to them hiring a lot more in the security department. I think this will be lower on their priority list, but I think they'll start getting more involved in the Google hacking and Bing hacking side of things. And just to show you, I don't know if you guys have ever messed with this interface. Just regular Google, if you expand the side and go to updates, they are providing. You could see what was indexed and what was going on in Twitter and Google five minutes ago, or at 2 PM this afternoon. Google's providing real time. They're streaming updates of this information. So we're going to start seeing more and more real time uses of this information in exploitation. So I will be available for questions after the talk. I hope you appreciate what we shared today.