1 00:00:00,000 --> 00:00:05,200 Hi, my name is Fran Brown. I'm a managing partner at Stack & Lou. With me I have Rob 2 00:00:05,200 --> 00:00:10,160 Reagan. I'm a senior security associate at Stack & Lou and we're a company that helps IT 3 00:00:10,160 --> 00:00:16,900 organizations secure their businesses. And this is Tenacious Diggity. If you guys are 4 00:00:16,900 --> 00:00:23,140 looking for FX, we pulled a switch with him. We're looking to get all of his fans and make some 5 00:00:23,140 --> 00:00:29,140 new fans ourselves. So this is Tenacious Diggity. Ready to rock your socks off. How hard 6 00:00:29,140 --> 00:00:35,220 it rocks on a scale of 1 to 10. Quick question. How many people here have seen some of the 7 00:00:35,220 --> 00:00:39,000 talks that we've given before on previous versions? Cool. Thanks for coming back. We've got 8 00:00:39,000 --> 00:00:45,820 a lot of new stuff. Cool. Cool. So with that, I'm going to jump right into a demo just to let 9 00:00:45,820 --> 00:00:55,220 you guys know, kind of set the pace for what we're looking to do here. Now, it seems like a 10 00:00:55,220 --> 00:00:58,620 handful of people have seen some of our talks before. It seems like most people are newcomers. 11 00:00:59,140 --> 00:01:05,940 But basically these Diggity tools, Arsenal tools that we've released are a number of search 12 00:01:05,940 --> 00:01:10,760 engine hacking tools that use Google, Bing and various other search engines in interesting ways 13 00:01:11,480 --> 00:01:18,820 for search engine hacking. We're going to see ‑‑ so we have Google Diggity which is what 14 00:01:18,820 --> 00:01:23,680 you would think of as a traditional Google hacking type tool but upgraded to all the latest APIs 15 00:01:23,680 --> 00:01:28,700 and things like that. And we have Bing Diggity which is what you would think of as a Bing equivalent of a 16 00:01:29,140 --> 00:01:33,540 Bing hacking tool or of a Google hacking tool. That's really not what we're going to focus on 17 00:01:33,540 --> 00:01:38,740 today. We're going to focus on all new attack tools that we have. And what we've continued to do 18 00:01:38,740 --> 00:01:44,560 besides just Google and Bing hacking is what are the ways can we utilize different search 19 00:01:44,560 --> 00:01:49,920 engines or existing search engines and weird features of them and new and interesting ways to 20 00:01:49,920 --> 00:01:56,100 find vulnerability information or, you know, find sensitive information disclosures. So this first 21 00:01:56,100 --> 00:01:59,120 talk is ‑‑ or this first video is going to be ‑‑ it's going to be a little bit of an 22 00:01:59,140 --> 00:02:03,840 episode of code search Diggity which the new version of search Diggity which is the tool we see up 23 00:02:03,840 --> 00:02:11,300 here right now is the main attack tool which contains all other tools that we have for our Diggity 24 00:02:11,300 --> 00:02:15,940 attack tools. Right. These are all categorized under open source intelligence gathering. And 25 00:02:15,940 --> 00:02:22,580 that's to find information using freely available sources and produce actionable intelligence on 26 00:02:22,580 --> 00:02:25,960 it. So we're looking not just at the general search engines that are available but also 27 00:02:25,960 --> 00:02:29,120 specialized search engines. And one of those being Google Diggity. So we're looking not just at 28 00:02:29,140 --> 00:02:29,460 the general search engines that are available but also specialized search engines. And one of those 29 00:02:29,460 --> 00:02:34,740 being Google code search. So we're just going to show an example of what we can do with a 30 00:02:34,740 --> 00:02:39,120 specialized search engine like Google code search. Just give you a better understanding of what 31 00:02:39,120 --> 00:02:43,860 our tools are used for. And those of you guys who are familiar with Google code search in 32 00:02:43,860 --> 00:02:49,040 general know that it went away a few months ago. But as of the latest release we found some 33 00:02:49,040 --> 00:02:54,240 workarounds. And it's back in 3.0 which is available for download on our website now. Google 34 00:02:54,240 --> 00:02:59,120 code search reborn. Reborn. Back from the dead. So the first thing we're going to do is we're going 35 00:02:59,120 --> 00:03:01,100 to take a look at Google code search. So those of you not familiar with Google code search, Google 36 00:03:01,100 --> 00:03:06,240 code search is another Google product just like Gmail or something along those lines that 37 00:03:06,240 --> 00:03:12,000 originally was designed to allow people to have full regular expression search capability over 38 00:03:12,000 --> 00:03:17,400 every open source code project. Things like GitHub, Code Plex, Source Forge and Google's 39 00:03:17,400 --> 00:03:24,360 own freely available subversion repositories. And we found that developers often put sensitive 40 00:03:24,360 --> 00:03:29,100 information in their code and maybe they're an independent contractor and they're not able to 41 00:03:29,120 --> 00:03:35,980 use those free resources to manage their code for their clients. Or we can also utilize regular 42 00:03:35,980 --> 00:03:42,460 expressions against a search engine like that to find vulnerabilities. Like simplistic examples of 43 00:03:42,460 --> 00:03:47,880 SQL injections or cross site scripting or other web application vulnerabilities. So this 44 00:03:47,880 --> 00:03:52,300 first demo that I'm about to play right now is what we like to call taking over someone's Amazon 45 00:03:52,300 --> 00:03:59,100 cloud in 30 seconds or less. So what we're going to be doing here, you see I have the code search 46 00:03:59,120 --> 00:04:04,760 interface up. I'm just going to go ahead and check a number of regular expressions that we have set up to 47 00:04:04,760 --> 00:04:11,160 find Amazon EC2 keys embedded in people's open source code projects. And for those of you that don't 48 00:04:11,160 --> 00:04:17,180 know, EC2 keys are like the keys to the castle of an elastic cloud service provided by Amazon. This 49 00:04:17,180 --> 00:04:24,300 can be things like S3 storage for storing large amounts of data or files. Or it can also be for the 50 00:04:24,300 --> 00:04:29,100 actual admin keys to manage that elastic cloud. That means that's the interface that we're going to be 51 00:04:29,120 --> 00:04:32,440 using. So we're going to have an interface where you can put up new servers or take down servers. 52 00:04:32,700 --> 00:04:37,580 And of course if an attacker were able to get access to these keys, they could put up new servers on 53 00:04:37,580 --> 00:04:42,360 someone else's dime. Or they could find sensitive information potentially exposed in their S3 54 00:04:42,360 --> 00:04:50,080 storage. So we see here in this Google code project EC2 sample in the file state test.java, 55 00:04:50,200 --> 00:04:55,860 someone has went ahead and embedded their Amazon EC2 keys. Their access key and their secret key, 56 00:04:56,020 --> 00:04:59,100 as Rob said, is pretty much the equivalent of your user name and password. So if you want to get a 57 00:04:59,100 --> 00:05:04,020 password to be able to access someone's Amazon cloud. So we're just going to take that and using a 58 00:05:04,020 --> 00:05:10,860 Firefox plug-in called S3 Fox Organizer. We're just going to plug in this access key and secret 59 00:05:10,860 --> 00:05:17,460 key that we got out of somebody's state test.java, some random test file. Click add and now we 60 00:05:17,460 --> 00:05:23,700 have access to their Amazon S3 cloud storage. To verify that we actually had it, we downloaded a 61 00:05:23,700 --> 00:05:29,080 single file, EC2 server.text. Literally the first file we downloaded. And we're going to go to the 62 00:05:29,100 --> 00:05:35,500 browser. Open that up. And we see a text file by a developer of administrator credentials, 63 00:05:36,080 --> 00:05:41,700 database administrator credentials, VPN administrator credentials. Literally, you know, 64 00:05:45,660 --> 00:05:49,480 you would think this is too good of an example that I would probably comb through them for days. 65 00:05:49,580 --> 00:05:53,100 This was literally the first file I ever downloaded in this manner. And it just worked out that 66 00:05:53,100 --> 00:05:56,880 way. So it was, you know. Developers don't think people are going to have access to their 67 00:05:56,880 --> 00:05:59,080 source code. They hard code all kinds of secrets. They don't think they're going to have access to 68 00:05:59,080 --> 00:06:07,340 secret keys and secret data in there. And that also goes for developers that are putting things 69 00:06:07,340 --> 00:06:12,920 out on these freely available code repositories. Not thinking that they're being indexed by search 70 00:06:12,920 --> 00:06:16,940 engines and easily searchable. So in this video we're going to see another thing again, 71 00:06:17,040 --> 00:06:22,740 similar searches, a few keys embedded here. But this time we're going to use a tool called, 72 00:06:22,800 --> 00:06:28,800 another free tool called Elastic Fox. Open that up. Create a new instance with this again, this 73 00:06:28,800 --> 00:06:34,580 Amazon access key and secret key. But this time, instead of just their file storage, we're 74 00:06:34,580 --> 00:06:42,780 actually going to take over their entire EC2 instance. Click go. And then we pull up. We see 75 00:06:42,780 --> 00:06:49,660 that we're now connected. And we see that they actually have one virtual server running that we 76 00:06:49,660 --> 00:06:54,460 can administer at this point. A number of images up that are available to run. And at this point, 77 00:06:54,540 --> 00:06:58,780 we're just, because one developer embedded in some random organization, we're going to have a lot of 78 00:06:58,800 --> 00:07:03,440 open source code project and some random file that they thought no one would ever look at. Their 79 00:07:03,440 --> 00:07:10,640 Amazon keys. We now can take full control of their Amazon EC2 instance and fire up our own virtual 80 00:07:10,640 --> 00:07:15,060 servers, take over theirs, do whatever we want at this point. A large organization probably 81 00:07:15,060 --> 00:07:19,680 isn't going to notice a few more servers added to their cloud. And there you go, hackers, free 82 00:07:20,340 --> 00:07:27,460 computing power. That's something that we've seen in our client source code as we've done code 83 00:07:27,460 --> 00:07:28,680 reviews. And really the protection against 84 00:07:28,800 --> 00:07:33,860 this is a lot of these public cloud providers now do allow you to lock down those keys to have a 85 00:07:33,860 --> 00:07:38,980 minimalist set of permissions. And so that's really the recommendations to developers is only 86 00:07:38,980 --> 00:07:45,080 purpose this key for one server. Only purpose it for one use. And don't hard code those keys that 87 00:07:45,080 --> 00:07:50,120 have complete admin control over the cloud or over the storage in your code. Those need to be really 88 00:07:50,120 --> 00:07:54,280 closely guarded secrets. Yep. So we'd just like to start out with that because it kind of gives 89 00:07:54,280 --> 00:07:58,780 you an idea of besides, you know, just a slightly updated, better version of Google Cloud, there's a 90 00:07:58,800 --> 00:08:00,780 lot of things that we're trying to do in terms of Google or Bing hacking tools, some of the new 91 00:08:00,780 --> 00:08:05,980 directions that we're trying to take things in, in terms of other search interfaces out there that we 92 00:08:05,980 --> 00:08:10,120 can leverage to in interesting ways for hacking. Yeah, we only think that search engine 93 00:08:10,120 --> 00:08:15,660 innovation is going to continue to explode over the coming years. There's going to be, you know, more 94 00:08:15,660 --> 00:08:20,420 and more competition out there. There's going to be more and more highly purposed search engines 95 00:08:20,420 --> 00:08:28,560 and we want to utilize those for attack purposes and defense purposes. So we're really quickly just 96 00:08:28,560 --> 00:08:28,780 going to get started. So we're going to get started. So we're going to get started. So we're 97 00:08:28,800 --> 00:08:35,300 going to go through and show you just a list of some of the tools we've done in the past but then 98 00:08:35,300 --> 00:08:40,600 move right on to all entirely new tools that are on the 3.0 version that was uploaded to our 99 00:08:40,600 --> 00:08:47,260 website as of like an hour ago. For those of you who want to read about the old tools, check out 100 00:08:47,260 --> 00:08:50,940 the videos from last year. Just to reiterate that, all this, everything we're showing is for free on 101 00:08:50,940 --> 00:08:57,860 our website, StackBlue.com. So those of you not familiar with our project, it's the Google 102 00:08:57,860 --> 00:09:04,020 hacking diggity project. It's a project where we release a number of open source, not open 103 00:09:04,020 --> 00:09:10,360 source, free anyway, free search engine hacking tools kind of broken up by attack tools and 104 00:09:10,360 --> 00:09:14,700 defensive tools. Our defensive tools which we're not going to spend too much time on today 105 00:09:15,560 --> 00:09:21,980 primarily rely on Google alerts and other alerting and RSS capabilities to feed us real time 106 00:09:21,980 --> 00:09:28,000 updates from Google and Bing and Shodan and other search engines. As Google finds a new 107 00:09:28,000 --> 00:09:33,400 website that would have matched, you know, some Google dork, we're getting real time RSS 108 00:09:33,400 --> 00:09:38,760 updates about it and have created a sort of intrusion detection system for Google hacking, if 109 00:09:38,760 --> 00:09:44,100 you will. And we'll show you some updates we've made to that. Some of the old tools, if 110 00:09:44,100 --> 00:09:47,860 you guys are, I mentioned earlier that Google diggity and Bing diggity, it's traditional 111 00:09:47,860 --> 00:09:51,960 Google and Bing hacking tools. We have flash diggity which is a dope tool that we've 112 00:09:51,960 --> 00:09:56,000 developed. We have Adobe flash security scanning tool which leverages Google and Bing to 113 00:09:56,000 --> 00:10:02,540 find Swift files out there, bulk download them, bulk decompile them back to their action 114 00:10:02,540 --> 00:10:06,700 script and then bulk look through them for Adobe flash vulnerabilities. So we're 115 00:10:06,700 --> 00:10:10,180 penetration testers and we tried to design these tools with penetration testers in mind. We 116 00:10:10,180 --> 00:10:14,300 wanted to be able to target multiple sites at once. We wanted to be able to download and 117 00:10:14,300 --> 00:10:19,880 export the results to CSV files. We wanted to be able to gather all the information that we 118 00:10:19,880 --> 00:10:21,940 need as part of the footprinting phase. So we're going to be able to do that. We're going to be 119 00:10:21,960 --> 00:10:27,680 able to do that. And really it's the step one of any penetration test. Our DLP diggity tool, 120 00:10:27,780 --> 00:10:31,660 which I really encourage people to try, I went out and took every data loss prevention tool that I 121 00:10:31,660 --> 00:10:36,980 could find and I stole all the regexes for social security numbers and credit cards and things 122 00:10:36,980 --> 00:10:41,240 like that and compiled a master list of regular expressions that will look through files for 123 00:10:41,860 --> 00:10:47,860 interesting data. And this allows you to bulk go out and find thousands of documents, you know, 124 00:10:47,860 --> 00:10:51,600 download all of them and then look through them for credit cards and passwords and 125 00:10:51,960 --> 00:10:56,740 security numbers. We'll see what that looks like. But that's all the old tools. I want to get 126 00:10:56,740 --> 00:11:03,420 right into some of the new tools that I want to show you today that we just released. And with 127 00:11:03,420 --> 00:11:08,360 that, we're going to go right into the first one. But even before we get into that, one thing to 128 00:11:08,360 --> 00:11:16,760 note, until this version, we had hooked up the Bing API for Bing diggity and the Google custom 129 00:11:16,760 --> 00:11:21,940 search API for Google. But now that Bing has moved into a pay model and just a little bit of a 130 00:11:21,940 --> 00:11:31,900 test, we've implemented across all the attack tools scraping of Google, which was no easy task. I 131 00:11:31,900 --> 00:11:35,960 spent quite a bit of time trying to make it so that you can do thousands and thousands of 132 00:11:35,960 --> 00:11:43,560 queries against Google scraping and effectively. And we built that into the actual engine for all 133 00:11:43,560 --> 00:11:47,500 the tools now. So it's all completely free. You don't have to sign up for the APIs. 134 00:11:47,880 --> 00:11:51,640 Right. We found that API key to not be adequate and now across all the tools we can 135 00:11:51,940 --> 00:11:58,980 scrape Google effectively and get tens of thousands of results in a few hours, which is the only 136 00:11:58,980 --> 00:12:03,760 search engine hacking tool that can do that right now. And we've done it for Bing as well. 137 00:12:04,700 --> 00:12:11,440 Previously you'd have to sign up for a Google API key and you'd get max like 70-something 138 00:12:11,440 --> 00:12:17,660 results per search. We want it for free and we want to get 1,000 results. And one of the 139 00:12:17,660 --> 00:12:21,920 interesting things as well is that we actually have the ability to scrape the custom search 140 00:12:21,920 --> 00:12:27,180 engine interface. So you can actually get 1,000 results from a custom search engine of Google 141 00:12:27,180 --> 00:12:31,720 that you built. So all the benefits and none of the drawbacks. And this is just kind of giving you 142 00:12:31,720 --> 00:12:34,960 an idea of an overview of some of the things we're doing in terms of taking your queries, 143 00:12:35,200 --> 00:12:40,260 spreading them across hundreds of proxies and spreading those across, you know, dozens of Google 144 00:12:40,260 --> 00:12:45,780 servers and different settings and dropping cookies and things like that to try to avoid bot 145 00:12:45,780 --> 00:12:50,420 detection. Yeah. So we did all the legwork and the research on what query string parameters you 146 00:12:50,420 --> 00:12:51,900 need to send and how to best do that. Yeah. So we did all the legwork and the research on what 147 00:12:51,920 --> 00:12:56,120 query string parameters you need to send and how to best make your scraping look like a human as to 148 00:12:56,120 --> 00:13:01,080 prevent Google detecting you as a bot and put that in the suite across all the attack tools. 149 00:13:01,360 --> 00:13:05,140 So you can manually import proxies and things like that or we try to make it as simple as 150 00:13:05,140 --> 00:13:10,080 possible. You can just open up this options proxies, do auto find. We go out and scrape a 151 00:13:10,080 --> 00:13:14,800 bunch of proxy sites for you and click test and it will test if they're fast, you know, and not 152 00:13:14,800 --> 00:13:19,960 giving you garbage or inline ads or, you know, messing with the responses. Take care of all 153 00:13:19,960 --> 00:13:21,900 that for you and it's, you know, all of that for you and it's, you know, all of that for you and 154 00:13:21,900 --> 00:13:22,100 it's, you know, all of that for you and it's, you know, all of that for you and it's, you know, all 155 00:13:22,100 --> 00:13:26,140 seamless in terms of being able to spread all of your queries across tons of proxies. 156 00:13:26,460 --> 00:13:29,700 Real quick, I was asked to mention that track one and four were switched in case you didn't 157 00:13:29,700 --> 00:13:34,340 know. Yeah. And depending on which one you're looking for, it's here. Yeah. 158 00:13:37,860 --> 00:13:42,380 And you can also manually specify the proxies here. So it just seems like some options 159 00:13:42,380 --> 00:13:46,340 configurations, but I can't tell you, I mean, this has really opened it up where you can now do 160 00:13:46,340 --> 00:13:51,880 Google and Bing for free and instead of getting, you know, dozens of results, you can do 161 00:13:51,880 --> 00:13:58,100 hundreds of thousands of results very easily. Right. And if you need a list of valid open HTTP 162 00:13:58,100 --> 00:14:02,360 proxies, I'd recommend going out to, there's tons of services like this that you can pay, like, 163 00:14:02,360 --> 00:14:09,660 $25 for a lifetime subscription to something like hidemyass.com and get 1,500 known good open HTTP 164 00:14:09,660 --> 00:14:14,240 proxies emailed to you every day. Email you text files every day, once a day of, you know, 165 00:14:14,260 --> 00:14:18,420 latest proxies. And just import into this tool and now you're effectively scraping Google and 166 00:14:18,420 --> 00:14:21,860 Bing. So that being said, right into our first news item, we're going to talk a little bit about 167 00:14:21,880 --> 00:14:27,700 our new attack tool, port scan diggity. So port scan diggity is kind of a really interesting 168 00:14:27,700 --> 00:14:32,400 tool that works on a feature of Google that is not documented and technically shouldn't even work 169 00:14:32,400 --> 00:14:40,360 as far as I know. But what we're doing here is we're actually finding websites that are 170 00:14:40,360 --> 00:14:46,400 listening on nonstandard TCP ports that Google has basically went out there and indexed, you 171 00:14:46,400 --> 00:14:51,340 know, all 65,000 some odd ports. And I don't know exactly how or why they're doing this. We have a 172 00:14:51,880 --> 00:14:57,900 couple of different ways. But you can effectively do passive port scanning instantly through 173 00:14:57,900 --> 00:15:03,940 Google. So, you know, with the advantages of being passive, you're not actually, you know, you're 174 00:15:03,940 --> 00:15:07,620 only talking with Google. You're not actually talking to your targets. I use this during 175 00:15:07,620 --> 00:15:12,200 scoping of engagements, actually, to try to see what other web servers are available out there. 176 00:15:12,260 --> 00:15:17,240 Because I haven't actually touched the client sites yet, but I'm able to see these HTTP services 177 00:15:18,420 --> 00:15:21,860 that exist. The other big event you can do by doing this is you can do a lot of different things. 178 00:15:21,880 --> 00:15:26,300 You can scan domains as well as by IP address ranges. And we see here on the right side, you 179 00:15:26,300 --> 00:15:32,280 see we pretty much are able to cut through an entire B class instantly, at least as far as what 180 00:15:32,280 --> 00:15:37,060 Google knows about in terms of what IPs and what open ports there are. And you see port, you 181 00:15:37,060 --> 00:15:39,960 know, 9998. It won't take a lot longer if you're trying to use NMAP. Right. 182 00:15:40,400 --> 00:15:45,140 Months or, you know, depending on if you're trying not to get detected. But to scan an entire B 183 00:15:45,140 --> 00:15:50,940 class for a full port range. So this is kind of, I'll show you the tool in a second, but this is 184 00:15:51,880 --> 00:15:55,980 kind of how it's actually working. Not only can we just do the star and get a list of all 185 00:15:55,980 --> 00:16:02,540 websites listening on random ports, you can even specify exact port ranges. See 8,000 to 9,000 186 00:16:02,540 --> 00:16:08,460 here and 5,000 to 6,000. Being able to just get a complete list. And one other thing besides 187 00:16:08,460 --> 00:16:12,420 just being a port scan, when you think about this, every single one of these results, you see 188 00:16:13,300 --> 00:16:19,000 216,000, 400,000 results. Almost every single one of these are some web administrative interface 189 00:16:19,000 --> 00:16:21,860 of some kind. So it's, and especially if you're looking at a web server, if you're looking at 190 00:16:21,880 --> 00:16:22,040 a web server, you have to have a web server that has a web server that is actually 191 00:16:22,040 --> 00:16:26,980 combined with the scraping we have now. It's an effective way to get millions of web 192 00:16:26,980 --> 00:16:33,040 administrative interfaces listening on random ports out there. Right. The reason they're 193 00:16:33,040 --> 00:16:36,840 not on standard ports is they're not really meant to be found. Right? In, like, five minutes 194 00:16:36,840 --> 00:16:40,940 of playing with this tool, I found admin interface to a strip mall that accepts PayPal 195 00:16:40,940 --> 00:16:44,320 payments to buy products and they had exposed on that admin interface the ability to add 196 00:16:44,320 --> 00:16:48,860 yourself as an admin user and get in and review orders and shipping addresses and things like 197 00:16:48,860 --> 00:16:51,860 that. These are things that are not meant to be seen. And this tool is a little bit of a 198 00:16:51,880 --> 00:16:58,720 generally have a lack of security around them. And it can be used for, I don't know if any of 199 00:16:58,720 --> 00:17:07,280 you guys saw in the news two weeks ago, I think it was, somebody was selling Oday for Plesk 200 00:17:07,280 --> 00:17:12,780 panel, web administrative interface that was out there. So we see there on the left just doing 201 00:17:12,780 --> 00:17:21,860 a quick search for port 8443 and getting 66,000 likely candidates that are running. So 202 00:17:21,880 --> 00:17:27,800 it's like some version of Parallels Plesk panel management web interface. This Oday was 203 00:17:27,800 --> 00:17:31,620 literally like point at the admin interface and then through a vulnerability in the admin 204 00:17:31,620 --> 00:17:37,640 interface get me the password to log in as full admin. So NNA is what we're seeing, mass 205 00:17:37,640 --> 00:17:43,460 SQL injection attacks and massive scale attacks of compromising and using malware distribution 206 00:17:43,460 --> 00:17:48,160 platforms, hundreds of thousands and millions of sites. This is a really easy way to go about 207 00:17:48,160 --> 00:17:50,700 doing something like that in terms of mass exploitation. 208 00:17:51,340 --> 00:17:51,860 Yeah. 209 00:17:51,860 --> 00:17:57,520 But just to give you an idea of, so that's kind of how it works in theory and to show you 210 00:17:57,520 --> 00:18:04,140 how the tool actually works, take advantage of it. We actually just created an interface here 211 00:18:04,140 --> 00:18:09,940 in our main tag tool. I click, I just put in com in the top right and click go. It finds for 212 00:18:09,940 --> 00:18:21,600 me every result that it can in terms of web interfaces listening on nonstandard ports. And 213 00:18:21,600 --> 00:18:28,080 now I specify the 8443 just to target our Plesk panel which I mentioned earlier. And now 214 00:18:28,080 --> 00:18:33,640 we can see, so we have the view of the actual results, the URLs and things like that. And you 215 00:18:33,640 --> 00:18:39,840 can even switch over to more of like a port scan kind of result view and see a list of hosts that 216 00:18:39,840 --> 00:18:47,460 we found and a list of ports that were open on those hosts. Effectively giving you how would you 217 00:18:47,460 --> 00:18:51,580 use this on your own. Let's say you were Wellington Florida dot gov, you could have a host that would 218 00:18:51,580 --> 00:18:57,520 I would plug in wellingtonflorida.gov and let me check port 8,000 to 9,000, and we see 219 00:18:57,520 --> 00:19:03,120 it found two hosts, one with a website listening on 8080, one with one listening on 8443. 220 00:19:03,280 --> 00:19:07,700 So we can effectively cut through and do port scanning via Google now. 221 00:19:07,900 --> 00:19:13,080 And then export the results out to CSV and load that up into burp or whatever, maybe 222 00:19:13,080 --> 00:19:16,880 you want to run some active web scanning on it, but this was step one. 223 00:19:16,980 --> 00:19:21,060 You've identified all these admin interfaces that you can then manually go take a closer 224 00:19:21,060 --> 00:19:28,540 look at. Cool. Any questions on that so far, or anything we went over so far? I've got 225 00:19:28,540 --> 00:19:33,880 50 minutes. There's a lot I want to show you guys. Cool. So I'm just getting back into it. 226 00:19:35,800 --> 00:19:43,260 So let me see again a list of ports open for each host. So now one of the more interesting new 227 00:19:43,260 --> 00:19:48,980 attack tools I want to go over. It's something that really evolved out of a need that just 228 00:19:48,980 --> 00:19:50,180 kept coming up again and coming up again. 229 00:19:50,280 --> 00:19:50,760 It's a 230 00:19:50,760 --> 00:19:51,040 19270. 231 00:19:51,040 --> 00:19:58,060 in my backyard diggity is one of our new attack tools. And just looking at the Verizon data 232 00:19:58,060 --> 00:20:02,580 breach investigation report from this past year, they kind of jokingly put out there that 233 00:20:03,180 --> 00:20:07,700 perhaps we should create a new breach discovery classification of YouTube and PaceBin and 234 00:20:07,700 --> 00:20:14,080 Twitter just given all the raw amount of data dumps from compromises out there on PaceBin and 235 00:20:14,740 --> 00:20:20,920 things of that nature. Noting that a large percentage of people finding out that they've 236 00:20:20,920 --> 00:20:26,280 had an incident only comes once people brag about it on Twitter or dump all the emails and 237 00:20:26,280 --> 00:20:30,780 passwords on PaceBin or something of that nature. Right. And that was partially the 238 00:20:30,780 --> 00:20:35,140 inspiration for not in my backyard, but also we saw the need from one of our clients that has 239 00:20:35,140 --> 00:20:40,520 hundreds of domains that they're responsible for, and they were being targeted by LullSec and 240 00:20:40,520 --> 00:20:45,480 anonymous, and they said, you know, a lot of the stuff that we're seeing isn't necessarily an 241 00:20:45,480 --> 00:20:49,220 issue on our site. It's data that's being stolen and put on another site. How can we use 242 00:20:49,220 --> 00:20:50,320 search engines to find that? 243 00:20:50,460 --> 00:20:50,900 Yeah. 244 00:20:50,920 --> 00:20:53,900 And that was really what brought about not in my backyard. 245 00:20:54,260 --> 00:20:58,620 Yeah. So, I mean, we really wanted to make it as easy as possible for you to plug in your 246 00:20:58,620 --> 00:21:03,740 domain or your email or even your name as an individual, check a bunch of boxes and click go 247 00:21:03,740 --> 00:21:08,140 and find your sensitive information all over the Internet on third party sites from cloud 248 00:21:08,140 --> 00:21:14,600 storage to PaceBin to wherever really easily to see if your personal information has been 249 00:21:14,600 --> 00:21:20,400 exposed on a third party site you don't control that is not in your backyard. 250 00:21:20,400 --> 00:21:27,620 So we see here a number of PaceBin leaks, just usernames and passwords being dumped on PaceBin. 251 00:21:27,980 --> 00:21:32,720 Also, some of the more interesting ones is people are really starting to, individuals are starting to 252 00:21:32,720 --> 00:21:38,460 move over to use Dropbox and Google Drive and Microsoft SkyDrive and a number of other, you know, 253 00:21:38,500 --> 00:21:43,160 cloud-based storage, especially as people get iPads and iPhones and want to be able to easily hook 254 00:21:43,160 --> 00:21:45,000 that up with their cloud-based storage. 255 00:21:45,280 --> 00:21:50,200 And employees are throwing confidential financial information in spreadsheets up on their Dropbox and then 256 00:21:50,200 --> 00:21:55,720 not realizing that Google may be indexing that or I see more and more people using Google Docs for 257 00:21:55,720 --> 00:21:59,500 managing sensitive information not realizing that that's in Google's index. 258 00:22:00,460 --> 00:22:05,980 And we just see a couple of examples here of finding in Dropbox a completed tax form with 259 00:22:05,980 --> 00:22:12,440 people's personal information to full database dumps in SkyDrive to people's Cisco configuration 260 00:22:13,260 --> 00:22:20,020 files hosted in Google Docs. Not realizing that these public folders are being indexed by Google 261 00:22:20,020 --> 00:22:24,760 and easily searchable. But one other interesting thing that we found, and this is kind of 262 00:22:24,760 --> 00:22:32,420 important, is that robots.txt is dead. Google is not abiding by robots.txt anymore. And if any of 263 00:22:32,420 --> 00:22:38,380 you guys, how many people here use Dropbox in any way? Decent amount of people. How many people 264 00:22:38,380 --> 00:22:42,580 have clicked the setting when propped it for the newer, you know, I want to share all my photos 265 00:22:42,580 --> 00:22:46,620 via Dropbox that I take with my phone? Yeah, right, you plug in your phone and it says, 266 00:22:46,700 --> 00:22:49,800 oh, yeah, upload all my photos that I've taken, right, and sync it with my Dropbox. 267 00:22:50,020 --> 00:22:56,540 Yeah. So recently, especially for Apple devices, it's just a setting and most people are 268 00:22:56,540 --> 00:23:01,720 turning it on by default now just to as you take pictures with your phone, it's just 269 00:23:01,720 --> 00:23:06,880 automatically syncing to these galleries in Dropbox. And we see here in Dropbox's 270 00:23:06,880 --> 00:23:12,100 robots.txt that they're saying disallow this slash gallery which is where all those things are 271 00:23:12,100 --> 00:23:19,040 hosted. But just a quick look on Google and we see 164,000 people's personal photos 272 00:23:19,620 --> 00:23:23,000 galleries have been indexed and are easily searchable via Google. So we know who's been 273 00:23:23,000 --> 00:23:27,420 sexting. Yeah. Actually some really interesting personal photos out there. Probably spent a lot 274 00:23:27,420 --> 00:23:31,860 more time browsing through the photos than was really necessary for the, yeah. It's 275 00:23:31,860 --> 00:23:39,660 research. Yeah. It's research, honey. You know, I'm like, yeah. So this is just yet again 276 00:23:39,660 --> 00:23:44,340 another place out there that people aren't realizing that. And in this case, it's, you know, 277 00:23:44,360 --> 00:23:48,940 they're thinking that Dropbox, Dropbox thinks they're safe in terms of people aren't indexing 278 00:23:48,940 --> 00:23:53,660 this and Google's just doing it anyway. So it's definitely a good recipe for being able to, you 279 00:23:53,660 --> 00:23:58,600 know, find the latest celebrity's nude photos that they want to send out on their phone all the 280 00:23:58,600 --> 00:24:05,220 time and, you know, things of that nature. Or your photos. And this is kind of part of just 281 00:24:05,220 --> 00:24:10,580 the data loss prevention side of it. Just looking for your information again out there. This 282 00:24:10,580 --> 00:24:14,280 was in the news last year and there's been a million incidents since then. It seems like two a 283 00:24:14,280 --> 00:24:18,920 week now. But, you know, just some Yale alumni just Googling for his own name. You know, 284 00:24:18,940 --> 00:24:26,160 stumbled across an Excel spreadsheet with 43,000 of Yale alumni's social security numbers and 285 00:24:26,160 --> 00:24:30,360 all their detailed personal info. And just in one Excel spreadsheet that was just hanging out 286 00:24:30,360 --> 00:24:34,160 there in the wind. Just Googling for his own name. He happened to stumble across it. Right. 287 00:24:34,260 --> 00:24:39,220 So that's one of the beauties of Not In My Backyard is it can be used by an organization or 288 00:24:39,220 --> 00:24:44,140 by an individual for finding sensitive information in disclosure. Yeah. Would have been 289 00:24:44,140 --> 00:24:48,920 helpful for the Yale alumni to run this tool. So I'm going to turn it over to you. Yeah. I'm 290 00:24:48,920 --> 00:24:52,560 going to pull up and show you guys this in a second. But just some of the default locations 291 00:24:52,560 --> 00:24:58,140 that we're looking for. We're basically going to be allowed easy to plug in free form text of 292 00:24:58,140 --> 00:25:02,720 your name, your e-mail, a domain you're interested in. Whatever you want to look for. Select 293 00:25:02,720 --> 00:25:08,240 from a list of locations which we see up here and then select from a list of certain files if 294 00:25:08,240 --> 00:25:14,380 you want to drill down on that. File types as well as a select a number of keyword groups 295 00:25:14,380 --> 00:25:18,760 that narrow down and find more interesting information like data dumps. But I'm 296 00:25:18,760 --> 00:25:21,340 going to show you some of the places that we're looking in terms of locations are we're 297 00:25:21,340 --> 00:25:25,940 looking for files across by default if you leave them unchecked it's just looking for your name 298 00:25:25,940 --> 00:25:31,480 and stuff across the whole Internet and what other filters you specify. But it allows you to 299 00:25:31,480 --> 00:25:36,800 easily narrow down and start looking in cloud based storage, social networking, you know, 300 00:25:37,880 --> 00:25:44,240 document sharing sites like script D, paste bin and every paste bin type site. Right. And 301 00:25:44,240 --> 00:25:48,660 again, we've made this with the pen tester in mind or with the hacker in mind. So this is completely 302 00:25:48,760 --> 00:25:53,080 extensible and you can actually just go to where this application installs and these are all in 303 00:25:53,080 --> 00:25:58,380 text files and the carriage return line feed delineated text files and you can add your own sites 304 00:25:58,380 --> 00:26:02,140 in there, you can add more locations, you can add your own queries that you want to run by 305 00:26:02,140 --> 00:26:06,360 default and then just restart the application and that information will be loaded into the 306 00:26:06,360 --> 00:26:11,660 interface. Yep. And some of these are things you would never even think of. Some people know 307 00:26:11,660 --> 00:26:17,120 the rate my network diagram is a funny one. But even on Glyphy we're seeing people hosting 308 00:26:17,120 --> 00:26:23,340 extremely detailed internal network diagrams on Glyphy and sharing them out and you know. Right. 309 00:26:23,460 --> 00:26:28,420 These are like online Visio applications and people are just like putting their confidential or 310 00:26:28,420 --> 00:26:35,360 proprietary business workflows or their network diagram on there just to show off. It's kind of 311 00:26:35,360 --> 00:26:40,700 funny that a lot of IT administrators may be uploading their whole internal architecture to 312 00:26:40,700 --> 00:26:46,740 rate my network diagram dot com and showing an attacker exactly what they would need to know and 313 00:26:46,740 --> 00:26:53,080 where to go once they get inside. So what we see here is the tool and we have, you would plug in up in 314 00:26:53,080 --> 00:26:58,400 the targets, your name, things like that, whatever you want to do. Then we have the locations tab. In 315 00:26:58,400 --> 00:27:01,940 this particular example I'm just going to look on paste bin only but it would be easy for you to 316 00:27:01,940 --> 00:27:07,200 just check all those boxes. In this case since it's paste bin I'm not going to specify any file 317 00:27:07,200 --> 00:27:12,460 type but I'll easily put like let me just look in Excel spreadsheets or database backup files or 318 00:27:12,460 --> 00:27:16,720 things like that. And then we're going to select the keywords for, you know, if you're going to do a 319 00:27:16,720 --> 00:27:20,260 search for a specific data dump that are good for finding data dumps of personal information. 320 00:27:20,640 --> 00:27:27,600 Click so we see that it comes back with some results from paste bin. I'm just looking at this one 321 00:27:27,600 --> 00:27:36,500 here. We see Osiris owns max pro tech. And we see a few passwords and some headers here for paste 322 00:27:36,500 --> 00:27:44,080 bin. So we go ahead and click that. And you see some data dump from some hacker that is hacked 323 00:27:44,080 --> 00:27:46,700 max pro tech.com. If any of you guys use that, you're going to see the results. So that's kind of what we're 324 00:27:46,720 --> 00:27:53,260 going to use. Max pro tech.com. You might want to go check that out. And we see here anyone who's 325 00:27:53,260 --> 00:27:58,020 bought anything off them, their names, their personal addresses, their e-mail that they're 326 00:27:58,020 --> 00:28:03,400 registered with and the password that they used. So just as an example of how an individual would 327 00:28:03,400 --> 00:28:12,760 use this, besides just searching for everything, let's say that I was chuck.hsu at wiley.com. Is 328 00:28:12,760 --> 00:28:14,560 chuck in the room by any chance? 329 00:28:18,020 --> 00:28:20,320 Bing energy drink is almost as terrible as his password. 330 00:28:20,580 --> 00:28:30,100 Yeah. So in this case I would actually plug in let me use quotes. So this is going to use quotes for 331 00:28:30,100 --> 00:28:35,700 both Google and Bing or allow you to do in text, which works better for Google or in body which 332 00:28:35,700 --> 00:28:39,960 works better for Bing depending on and you could check all of them. So in this case I'm just going 333 00:28:39,960 --> 00:28:46,440 to put quotes. So it's just going to look for chuck.hsus at wiley's e-mail and it's going to look 334 00:28:46,440 --> 00:28:51,340 across the things that I across paste bin for information disclosures. Right. So we tried to 335 00:28:51,340 --> 00:28:55,620 make it as easy as possible for anyone to build these advanced queries to go out and retrieve 336 00:28:55,620 --> 00:29:01,120 this information and really prepackage a lot of the types of information that you want to look 337 00:29:01,120 --> 00:29:06,540 for and where you'd want to look for it so that you can get those results to the top of your 338 00:29:06,540 --> 00:29:11,620 results which is an issue when you're dealing with so much data in these search engine indexes. 339 00:29:11,620 --> 00:29:16,840 So you can see now if I was good old Chuck I would have just plugged in my name and clicked 340 00:29:16,840 --> 00:29:20,920 all the check boxes and when I came back saying hey Chuck, some random site on paste bin 341 00:29:20,920 --> 00:29:26,400 because you bought equipment at max pro tech, there is a link and you can see actually in the 342 00:29:26,400 --> 00:29:31,600 snippet of the results his e-mail address and his password and personal information there. 343 00:29:31,740 --> 00:29:35,960 That's kind of out as an individual how you would use it. But you can plug in an e-mail 344 00:29:35,960 --> 00:29:40,780 address, your name, domain, whatever you want to look for and it makes it very easy to 345 00:29:40,780 --> 00:29:41,240 understand what you want to look for. So you can plug in your email address, your name, your 346 00:29:41,240 --> 00:29:41,600 domain, whatever you want to look for and it makes it very easy to look for it. So you can 347 00:29:41,600 --> 00:29:46,380 see actually if you don't select any location across the whole Internet, you could select down 348 00:29:46,380 --> 00:29:52,220 by just paste bin or cloud storage, whatever you're interested in or certain file types, just 349 00:29:52,220 --> 00:29:56,880 Excel spreadsheets or CSVs and then we have keywords that find patient records, personal 350 00:29:56,880 --> 00:30:02,720 information data dumps to things that basically it's just combining every permutation of all 351 00:30:02,720 --> 00:30:08,100 these different kind of factors and searching Google and Bing for them for you. Making it easy 352 00:30:08,100 --> 00:30:10,000 to find all of your personal information. 353 00:30:12,000 --> 00:30:17,620 And we see that here kind of pointed out we've got where to look, what kind of files to look in, 354 00:30:17,760 --> 00:30:22,660 keywords to help narrow down false positives and you put your name or e-mail or whatever up there. 355 00:30:22,880 --> 00:30:27,740 And we'll be putting up videos to demonstrate how to use these tools and so just check back on 356 00:30:27,740 --> 00:30:32,880 our website. One other example just to show besides paste bin which is kind of an easy example 357 00:30:33,500 --> 00:30:39,920 that I just thought was great is this time in the screen shots you see we're looking in cloud storage. We're going to look for 358 00:30:39,920 --> 00:30:45,520 people who are throwing files up on their Amazon S3 cloud storage. We're going to be specifically 359 00:30:45,520 --> 00:30:55,820 looking at Excel spreadsheets and I added the query appender, just the word password and click go. We see a copy of user.XLS 360 00:30:56,360 --> 00:31:01,100 found and just to see what that would have looked like through the web interface, what it's kind of 361 00:31:01,100 --> 00:31:07,660 simulating is we see just password extension, Excel spreadsheet. Note the other worksheets there. This guy had 362 00:31:07,660 --> 00:31:09,900 basically all of his bank accounts, all of his bills, all of his accounts, all of his data, all of his data, all of his data. So, it's kind of a 363 00:31:09,900 --> 00:31:17,680 nice guy. He builds all of his other services, tax information account and his investments, his 364 00:31:17,680 --> 00:31:24,260 health care, you name it, all in one spreadsheet. His pin for his ATM card. I mean, this guy had 365 00:31:24,260 --> 00:31:28,860 everything in one Excel spreadsheet. And this is just one guy and if this is if you are also in the 366 00:31:28,860 --> 00:31:35,560 room I apologize. I did black out the information. But this is just, yet another. This is just like 367 00:31:35,560 --> 00:31:39,760 the Yale Excel spreadsheet with all their personal information. People just Googling for their own 368 00:31:39,760 --> 00:31:44,500 name or just stumbling across hundreds of thousands of personal records and credit cards 369 00:31:44,500 --> 00:31:50,640 without even trying by accident. And we're seeing this in the news like twice a week now it 370 00:31:50,640 --> 00:31:55,240 seems like where some major person has been compromised or just thrown an Excel 371 00:31:55,240 --> 00:31:59,800 spreadsheet out there somewhere with hundreds of thousands of emails and passwords where 372 00:31:59,800 --> 00:32:06,460 you almost become numb to even looking at the news headlines. It doesn't even say 100,000 373 00:32:06,460 --> 00:32:15,040 results or more. I don't even bookmark this news story. There's just so many. Yeah. So any 374 00:32:15,040 --> 00:32:31,020 questions so far? So the question was for the Google docs and the Amazon S31 were they public 375 00:32:31,020 --> 00:32:36,240 documents where the permissions were set to such? In this case, yes, they were. They weren't 376 00:32:36,240 --> 00:32:36,440 available. They were not available. They were not available. So you have to be very careful. 377 00:32:36,440 --> 00:32:40,060 They weren't blocked. But as we've seen, especially with Dropbox, they've changed some of 378 00:32:40,060 --> 00:32:44,260 the rules and how they do things and sharing public folders and how quickly these things are 379 00:32:44,260 --> 00:32:49,960 changing. People by accident are sharing things out and not realizing that they are public or 380 00:32:49,960 --> 00:32:55,480 that they can be public. And as we saw in the one case, some things that even are supposed to 381 00:32:55,480 --> 00:33:00,680 not be indexed are getting indexed anyway. And so it's one of those quickly changing things 382 00:33:00,680 --> 00:33:06,420 where it's very confusing for a normal user. Or an employee at an organization that may not be 383 00:33:06,420 --> 00:33:11,920 know any better, may not know how to configure those settings to make some of the stuff in 384 00:33:11,920 --> 00:33:16,340 these cloud documents services private. Yeah. And where they want to share it out with 385 00:33:16,340 --> 00:33:20,560 someone to begin with and you have to throw it in the public folder anyway to be able to share a 386 00:33:20,560 --> 00:33:25,540 link out to somebody and then not realizing who would ever guess this huge link. And I think in 387 00:33:25,540 --> 00:33:31,480 the Google index it made it easy to find. So one other thing, and this is not so much a tool, 388 00:33:31,560 --> 00:33:36,400 so much as an update to our main Bing Hacking Dictionary. One thing that I wanted to talk about 389 00:33:36,400 --> 00:33:42,960 is due to some recent updates in Bing's API as well as some undocumented or poorly documented 390 00:33:42,960 --> 00:33:51,100 features, we have released an updated version, the Bing Hacking Database version 2.0. Before we 391 00:33:51,100 --> 00:33:57,240 released our first Bing Hacking Database, Bing or MSN before that was primarily used for 392 00:33:57,240 --> 00:34:03,020 footprinting, finding host names, finding applications or URLs and things like that. It was 393 00:34:03,020 --> 00:34:06,380 primarily for footprinting purposes. And that was because Bing had spent a lot of time trying to 394 00:34:06,380 --> 00:34:14,360 disable a handful of features, most notable of which was in URL, which broke like 95% of the 395 00:34:14,360 --> 00:34:19,200 Google Hacking Database. And they specifically did it to try to prevent Bing Hacking, you know, 396 00:34:19,200 --> 00:34:25,640 in the sense of Google Hacking. And they did that back in 2007. We released a ‑‑ we found 397 00:34:25,640 --> 00:34:29,660 some workarounds for that and were able to release a thousand or so queries for the first Bing 398 00:34:29,660 --> 00:34:35,680 Hacking Database. But now we're proud to say in the latest version due to two major 399 00:34:37,200 --> 00:34:41,760 updates, we are now for the first time are able to make Bing Hacking just as effective as a tool as 400 00:34:41,760 --> 00:34:49,880 Google Hacking. And that's because, one, Bing decided to enable the EXT colon operator to allow 401 00:34:49,880 --> 00:34:55,240 you to search by file extension from the last year. So that was one. And two, and this was the 402 00:34:55,240 --> 00:35:02,780 big one, like 95% of the Google Hacking Database uses this in URL colon operator, which will allow 403 00:35:02,780 --> 00:35:05,660 you to specify, you know, random text that has a lot of information in it. And that's why we're 404 00:35:05,680 --> 00:35:11,420 proud to say it has to be found in the URL of the results. By using this, and we see it in the 405 00:35:11,420 --> 00:35:20,460 screen shot here, in stream set colon URL colon in Bing, you effectively get in URL. And you can 406 00:35:20,460 --> 00:35:27,100 do in stream set body, in stream set title, or other parts of a typical HTTP ‑‑ I'm sorry, 407 00:35:27,160 --> 00:35:34,760 HTML page. But we found that using that in stream set URL, which is just kind of a footnote in 408 00:35:34,760 --> 00:35:35,500 their documentation ‑‑ 409 00:35:37,480 --> 00:35:42,860 We can revive Bing Hacking and make it, as Fran said, just as viable as Google Hacking. 410 00:35:43,120 --> 00:35:48,900 And we see in the screen shot this in stream set URL and WP config. And you see out there a 411 00:35:49,440 --> 00:35:54,940 number of results of people with their WordPress configurations with their database passwords 412 00:35:54,940 --> 00:35:59,200 right there in the configuration file. This is a type of query that we would not have been 413 00:35:59,200 --> 00:36:05,620 able to do with Bing before now. So with the new version that we released in Bing Diggity, we're 414 00:36:05,620 --> 00:36:14,480 getting from like 1,000 or some odd mildly effective queries to I think like 4,000 to 5,000 queries 415 00:36:14,480 --> 00:36:23,820 that are now pulling vulnerability information out of Bing. So it's kind of exciting. Bing 416 00:36:23,820 --> 00:36:30,140 binary malware search. This is one I just want to go over quickly. But any of you guys familiar 417 00:36:30,140 --> 00:36:34,860 with H.D. Moore's tool, MW Search, from a few years back? Where it actually ‑‑ search engines 418 00:36:34,860 --> 00:36:43,800 were indexing PE header info? Of executable files. Basically H.D. had a tool that used Google a few 419 00:36:43,800 --> 00:36:50,540 years back that allowed you to use Google to find people hosting malware based on searching for the 420 00:36:50,540 --> 00:36:57,100 PE header information. Google disabled that feature. So it kind of broke its tool and has been 421 00:36:57,100 --> 00:37:01,680 dead ever since. But people didn't realize that Bing does have the ability to do that as well. So 422 00:37:01,680 --> 00:37:04,840 in using ‑‑ we see here a picture of H.D.'s old H.D. code. It's kind of a new version of Bing. 423 00:37:04,840 --> 00:37:09,480 It's kind of an old signature file. And just throwing that up. Being able to find instances of 424 00:37:09,480 --> 00:37:15,980 malware via Bing. We wanted to give something back to always like the malware researchers in the 425 00:37:15,980 --> 00:37:21,140 room as well. And so this is something that can be effectively used to identify malware that's 426 00:37:21,140 --> 00:37:25,720 indexed by Bing. Although in our tests we found that it changes very rapidly, right? Because Bing 427 00:37:25,720 --> 00:37:29,300 doesn't want to distribute malware. They don't want malware in their results. So as soon as they're 428 00:37:29,300 --> 00:37:34,200 identifying them, they're removing them. But it's kind of like a first notice of, okay, if I 429 00:37:34,200 --> 00:37:34,820 search this, I'm going to get this. I'm going to get this. I'm going to get this. I'm going to get this. 430 00:37:34,840 --> 00:37:40,940 I got this executable file back in the results. And I can identify that as malware based on 431 00:37:40,940 --> 00:37:48,220 that meta information like size of code, entry point, number of segments, and other PE or portable 432 00:37:48,220 --> 00:37:54,760 executable meta information. So the results are somewhat limited in being able to find tons 433 00:37:54,760 --> 00:38:00,520 of malware at this point. One, due to them removing it. But two, just looking at this, I found 434 00:38:00,520 --> 00:38:04,820 some numbers on ‑‑ it's estimated from these researchers that it's estimated that the 435 00:38:04,820 --> 00:38:10,580 Google's indexed about 50 billion pages and Bing has indexed about 3 billion. So just in terms of 436 00:38:10,580 --> 00:38:16,360 role, you know, size does matter. In terms of role set of what you're looking for, there's just 437 00:38:16,360 --> 00:38:21,300 not as many results in Bing as there is in Google for finding things anyway. Although you see in 438 00:38:21,300 --> 00:38:26,760 that graph in the last month, it claims that Bing jumped up from 3 billion to about 16 billion. 439 00:38:26,980 --> 00:38:31,680 But they're probably lying. Yeah. I don't know ‑‑ yeah, I don't know ‑‑ yeah, they lie all 440 00:38:31,680 --> 00:38:34,800 the time. So, I mean, if you ever clicked on it and it says a few hundred thousand, you're 441 00:38:34,800 --> 00:38:41,140 going to page 2, page 3 of results and it's like, okay, maybe there was like 20, 20 results. You 442 00:38:41,140 --> 00:38:47,660 know, you got us. You know, page 3 is the end of it. So who knows how reliable these numbers 443 00:38:47,660 --> 00:38:51,960 really are. But ‑‑ This was actually done by a group that goes out and they do like 444 00:38:51,960 --> 00:38:58,980 Zip's law of statistical analysis and they go out and search a lot of keywords and basically count 445 00:38:58,980 --> 00:39:02,760 the results that come back to those keywords and then try to determine how much is in the index. 446 00:39:04,720 --> 00:39:10,660 But kind of using them combined is what we think it works best, both Google and Bing. Cool. So 447 00:39:10,660 --> 00:39:13,580 we've got ten minutes, so we'll speed along. Code Search Diggy, this is what we showed in the 448 00:39:13,580 --> 00:39:20,500 intro. It was dead. It's now back. We give the ability to search across ‑‑ the version that's 449 00:39:20,500 --> 00:39:24,100 hooked up on the website right now is just for Google Code Projects, but we'll shortly have 450 00:39:24,860 --> 00:39:29,780 everything back up and running very soon. But you can at the very least search all Google Code 451 00:39:29,780 --> 00:39:32,740 Projects, which is quite a bit. For SQL injection, we don't have a lot of time to do that, but we'll 452 00:39:32,740 --> 00:39:36,720 give you a quick example of what we see here. They're putting request.query string parameter 453 00:39:36,720 --> 00:39:43,660 right into a select statement. So what we do with this is this is some trade form software. We can 454 00:39:43,660 --> 00:39:47,860 go out there and find SQL injection in some popular blog software, trade form software, 455 00:39:48,500 --> 00:39:53,620 shopping cart software, and then go to regular Google and do powered by that shopping cart 456 00:39:53,620 --> 00:39:58,160 software, something like that, and it's a quick way of doing some blogging software where we 457 00:39:58,160 --> 00:40:02,720 found SQL injection. We found it was ‑‑ like 11,000 sites in China. Yeah. And then they're 458 00:40:02,740 --> 00:40:05,300 using the blogging software that was vulnerable to SQL injection? 459 00:40:05,640 --> 00:40:09,380 Yeah, so now we can just find, you know, find the targets. Now we know we would go to the 460 00:40:09,380 --> 00:40:14,180 post.asp page and we would tamper with the reply underscore ID parameter and we know exactly 461 00:40:14,180 --> 00:40:19,300 where to go for that for open source code. And the way we're bringing this back is 462 00:40:19,300 --> 00:40:26,860 really by utilizing some freely available cloud services to go out and crawl the data. 463 00:40:29,980 --> 00:40:35,260 One thing to note before we get into that is that just with that example with the Amazon 464 00:40:35,260 --> 00:40:39,720 cloud hacking that we showed earlier, if you look at it, if any of you guys know what the CIA 465 00:40:39,720 --> 00:40:45,260 triad of confidentiality, integrity, and availability, basically Amazon cloud and most 466 00:40:45,260 --> 00:40:50,060 cloud services promise you nothing. In fact, they distinctly tell you that we are not 467 00:40:50,060 --> 00:40:54,520 guaranteeing you in any way, shape, or form the confidentiality, the integrity, or the 468 00:40:54,520 --> 00:40:56,760 availability of your data. You know, take it or leave it. 469 00:40:56,780 --> 00:40:56,840 Yeah. 470 00:40:56,860 --> 00:41:01,420 Kind of thing. So we have to, you know, broker a better deal going forward as, you know, 471 00:41:01,460 --> 00:41:05,860 every employee out there and every corporation is just throwing stuff up in the cloud now. 472 00:41:05,900 --> 00:41:07,060 Leave that to the legal department. 473 00:41:07,440 --> 00:41:07,720 Yeah. 474 00:41:07,820 --> 00:41:08,780 So this is... 475 00:41:08,780 --> 00:41:13,500 But so as we were saying, we're bringing back code search by utilizing some of these 476 00:41:13,500 --> 00:41:18,440 cloud crawling-based services. And one in particular that I liked that where we found is 477 00:41:18,440 --> 00:41:25,080 80 Legs. And this is a service that you can go and utilize them to do your crawling for 478 00:41:25,080 --> 00:41:26,580 you, even with a free account. 479 00:41:26,580 --> 00:41:26,620 Yeah. 480 00:41:26,620 --> 00:41:31,860 So if you go to a free account, they'll do 10,000 pages. And if you...the for pay accounts are just dollars on... 481 00:41:31,860 --> 00:41:35,480 For 20 bucks, you get, like, 10 million pages indexed or something in a matter of, like, an hour. 482 00:41:35,580 --> 00:41:40,460 Right. So we can actually program into this as seed values of where to start crawling and say, 483 00:41:40,540 --> 00:41:46,780 go out to GitHub, search for all PHP code, and use that as my seed page, and then I can put in a 484 00:41:46,780 --> 00:41:53,960 regular expression to say, find all the links to the next page on that result for all the PHP code, 485 00:41:54,080 --> 00:41:56,280 and go crawl those pages. 486 00:41:56,580 --> 00:42:02,040 So basically, it's gonna then download all the PHP code from GitHub. And then I can put in some regular 487 00:42:02,040 --> 00:42:09,580 expressions to do analysis on that and say, now find me all the uses of include that are also taking in a 488 00:42:09,580 --> 00:42:14,560 query string parameter. And now I'm effectively identifying, like, remote file includes in these 489 00:42:14,560 --> 00:42:20,720 open source PHP projects and getting those results back. And so as part of our efforts to make this 490 00:42:20,720 --> 00:42:26,520 available through our tool, we're pulling those results into a cloud database that we can expose as a web 491 00:42:26,580 --> 00:42:32,200 service that anyone could make calls to to effectively query vulnerability information in these open source 492 00:42:32,200 --> 00:42:36,660 code projects. And then we're gonna have our client be able to call that service so that you can use it 493 00:42:36,660 --> 00:42:38,720 in the same old user interface that we always had. 494 00:42:39,000 --> 00:42:43,340 Yeah. So if Google wants to shut it down in favor of making, you know, Google Plus or things 495 00:42:43,340 --> 00:42:47,160 like that, we decided to just do it ourselves and, you know, make it searchable. 496 00:42:47,340 --> 00:42:51,800 And this is really just a proof of concept that is something that's really powerful that we 497 00:42:51,800 --> 00:42:56,560 identified. As a penetration tester, like, I, you know, I rely on certain tools and I rely on 498 00:42:56,560 --> 00:43:01,480 some things to go out and find certain types of information. But if I have a really large scope, 499 00:43:02,400 --> 00:43:07,400 I'm gonna start turning to services like this to say go crawl these 10 million pages and do this 500 00:43:07,400 --> 00:43:12,660 analysis on them and give me the information back and now I know I have some really good starting 501 00:43:12,660 --> 00:43:17,960 points of where I may want to start probing an entire large organization. 502 00:43:18,520 --> 00:43:22,800 Okay. We got five minutes left so we'll just speed through these last couple. Shodan Diggity. 503 00:43:22,980 --> 00:43:24,880 How many of you guys are familiar with Shodan, the search engine? 504 00:43:25,960 --> 00:43:26,540 It does. 505 00:43:26,560 --> 00:43:27,240 Good amount of people. 506 00:43:27,400 --> 00:43:33,400 It indexes the actual headers that come back from a query to various services. 507 00:43:34,060 --> 00:43:39,760 HTTP and things like Telnet, SSH and actually records those and makes them searchable via an index. 508 00:43:40,060 --> 00:43:44,580 Yeah. It's like a search engine for, you know, network service banners more or less. 509 00:43:44,980 --> 00:43:52,300 But it's really gotten some headlines in the last couple, the last six months due to SCADA hacking 510 00:43:52,300 --> 00:43:54,640 and critical infrastructure type things. 511 00:43:54,640 --> 00:43:58,760 But basically what we're seeing is, you know, finding SCADA systems that are out there. 512 00:43:59,520 --> 00:44:04,320 For the first time ever, and this is something I really want to stress, we have SCADA systems 513 00:44:04,320 --> 00:44:11,060 which are controlling everything from the air conditions in buildings to manufacturing plant floors 514 00:44:11,060 --> 00:44:12,660 to the electric grid. 515 00:44:12,880 --> 00:44:15,040 The water pump that powers like the whole municipalities. 516 00:44:15,040 --> 00:44:15,380 You name it. 517 00:44:15,820 --> 00:44:20,380 And these things have been around for a long time and are very easy to hack. 518 00:44:20,500 --> 00:44:23,860 And in the last six months we've seen two major things happen. 519 00:44:23,860 --> 00:44:28,940 One, we're seeing point and click exploits for the first time ever in Metasploit where people are making it. 520 00:44:28,980 --> 00:44:30,520 You point it at a SCADA system and it takes control. 521 00:44:30,740 --> 00:44:32,360 So you have the ability to exploit easily. 522 00:44:32,560 --> 00:44:34,960 As well as two, the ability for mass identification. 523 00:44:35,480 --> 00:44:42,360 Just one Cambridge student putting out a PhD paper, you know, half messing around found, 524 00:44:42,480 --> 00:44:51,540 you see that map in the middle bottom there, found 10,000 SCADA systems with a handful of showdown queries connected to the Internet. 525 00:44:51,740 --> 00:44:53,500 All the red dots as opposed to greens. 526 00:44:53,860 --> 00:44:56,480 These are ones that a public exploit just came out for. 527 00:44:56,680 --> 00:45:01,480 So you have tens of thousands of systems that control water pumps to electric grids all connected to the Internet, 528 00:45:01,680 --> 00:45:05,120 easily findable by showdown and now easily exploitable on that exploit. 529 00:45:05,540 --> 00:45:11,640 I'd be surprised in the next year if we didn't see some kind of major disaster of a physical nature. 530 00:45:12,400 --> 00:45:17,980 So we've wired it up into our user interface and prepackaged it with a lot of useful queries 531 00:45:17,980 --> 00:45:23,400 so that you can start targeting networks that you're looking at using the showdown search engine 532 00:45:23,400 --> 00:45:23,840 and get the results. 533 00:45:25,800 --> 00:45:27,300 And I'll skip the demo for that. 534 00:45:27,420 --> 00:45:32,580 But you can just plug in your showdown API key, have a bunch of pretty queries already for you 535 00:45:32,580 --> 00:45:35,060 and spread a nice easy interface to use showdown. 536 00:45:35,620 --> 00:45:37,980 Because we wanted to have one so we decided to make one. 537 00:45:38,880 --> 00:45:40,760 Last and I know we only have like two minutes. 538 00:45:41,340 --> 00:45:42,260 And I showed this before. 539 00:45:42,740 --> 00:45:44,640 We have this alert diggity DB. 540 00:45:44,820 --> 00:45:49,160 This is what's coming up next where we have these hundreds of thousands of results we're getting from scraping now. 541 00:45:49,320 --> 00:45:53,840 We have three years of Google alert feeds and Bing feeds that have been feeding in a million. 542 00:45:53,840 --> 00:45:54,640 Millions of entries. 543 00:45:54,960 --> 00:45:58,080 Things like four million records of vulnerabilities and sensitive information. 544 00:45:58,320 --> 00:46:02,780 They correspond in every single RSS entry that you see there corresponds to some website on the Internet 545 00:46:02,780 --> 00:46:07,120 that is vulnerable to something that some Google or Bing dork found from several years of it. 546 00:46:07,160 --> 00:46:08,000 We have it in one table. 547 00:46:08,140 --> 00:46:12,640 We put up an Amazon RDS as a cloud-based database that we're going to be making available 548 00:46:12,640 --> 00:46:14,560 as soon as I work out the pricing model. 549 00:46:14,940 --> 00:46:19,720 But you should see in the next few weeks this available to be able to query this massive repository. 550 00:46:20,200 --> 00:46:22,540 So in the future you won't actually have to. 551 00:46:22,540 --> 00:46:26,860 Go to Google and do Google hacking anymore because we've already done it for you. 552 00:46:26,920 --> 00:46:27,760 We've Google hacked. 553 00:46:27,840 --> 00:46:28,380 We've Bing hacked. 554 00:46:28,500 --> 00:46:29,820 We have several years of results. 555 00:46:30,240 --> 00:46:33,740 That is all in one big table that instead of going out and doing Google hacking, 556 00:46:33,920 --> 00:46:39,380 you can just plug in and do a single search and pull all the results from several years of Google hacking 557 00:46:39,380 --> 00:46:41,180 and come to us instead of Google. 558 00:46:41,320 --> 00:46:44,600 We've actually done this for some of our clients as kind of a custom consulting project 559 00:46:44,600 --> 00:46:46,920 and just focused on what was available in search engines 560 00:46:46,920 --> 00:46:51,200 and gotten back a lot of really detailed information on what their exposure was. 561 00:46:51,200 --> 00:46:54,500 And they appreciated that and were able to take that actionable intelligence 562 00:46:54,500 --> 00:46:56,460 and then go do some remediation. 563 00:46:57,140 --> 00:46:58,680 And we're going to be hooking this up again. 564 00:46:58,760 --> 00:47:03,020 There's some charts and mobile business intelligence apps on your iPhone or iPad. 565 00:47:03,220 --> 00:47:05,640 You could just hook it up, say I want to monitor these domains 566 00:47:06,020 --> 00:47:10,780 and get a filtered view of this huge massive repository of vulnerabilities on the Internet, 567 00:47:10,880 --> 00:47:15,760 which is probably the world's largest single repository of live vulnerabilities on the Internet 568 00:47:15,760 --> 00:47:17,440 that I'm aware of anyway. 569 00:47:17,660 --> 00:47:20,720 Unless you guys know of a bigger one and get a nice little view of that. 570 00:47:21,200 --> 00:47:25,720 And this is, as Rob just mentioned, just looking at how you guys can start to analyze some of this information. 571 00:47:26,000 --> 00:47:27,740 And this is from DLP, from a tool we did, 572 00:47:27,880 --> 00:47:33,840 basically pulling down 13,000 documents using some of our tools. 573 00:47:34,140 --> 00:47:36,380 This was on 54 domains for one of our clients, 574 00:47:36,540 --> 00:47:43,300 and they couldn't even wrap their head around, like, okay, we have 13,000 documents on these domains. 575 00:47:43,740 --> 00:47:46,300 What do we even do to start to analyze this? 576 00:47:46,400 --> 00:47:50,660 But we were able to use our DLP tool to start identifying sensitive information 577 00:47:51,200 --> 00:47:51,420 about these documents. 578 00:47:51,900 --> 00:47:54,880 Yeah, so that's kind of the very, very quick view. 579 00:47:55,000 --> 00:47:56,360 I think we're probably out of time now. 580 00:47:57,460 --> 00:48:00,160 But if you guys are interested in some of these other tools that we talked about, 581 00:48:00,300 --> 00:48:03,160 you can check out videos or if you go to... 582 00:48:03,160 --> 00:48:07,200 Yeah, follow me on Twitter if you want to keep up to date on what we're releasing. 583 00:48:10,140 --> 00:48:12,320 The project page is at the bottom right there. 584 00:48:13,200 --> 00:48:15,780 All these tools are free for download. 585 00:48:16,040 --> 00:48:17,220 The new version is 3.0. 586 00:48:17,260 --> 00:48:18,420 It's up on the website right now. 587 00:48:19,060 --> 00:48:20,960 There will probably be some bug fixes and stuff. 588 00:48:21,440 --> 00:48:23,120 But that's a pretty fully functional version. 589 00:48:23,260 --> 00:48:27,340 And all the new tools, free for download, free for use, will continue to be free. 590 00:48:27,440 --> 00:48:28,540 And it's up on that website.