Hi everyone. We'll now get started on the last session of the day and I will hand over to Michael very, very shortly. The title of the speech is up there. Supercharge your web recon with common speak and evolutionary word list and I'll hand over to Michael. Thanks very much. Cool. All right. Let's get talking about some word lists. Just a note, it's just me flying solo today. Shubs unfortunately wasn't able to make it into the U.S. for reasons. So, but yeah. So just a little bit about myself. Shubs and I cofounded a company called Asset Note. Previously I was the director of spider labs in Asia Pacific. You may have seen me around. I've spoken at a bunch of conferences on various topics. Also organized sec talks and another conference, TUSCON in Brisbane, Australia. Shubs also comes from a pen testing background. He's a prolific bug hunter and the hack one top 50. He's also a co-founder of the hackers helping hackers. So I'm not going to do too many plugs but I do want to plug hackers helping hackers which is a charity based in Australia. Basically we get underprivileged and people who don't necessarily have good representation in the industry and we, you know, send them to cons, network and have various industry events and whatever. So if that interests you, you know, consider donating. It's a really good cause. Cool. So I'm going to get on to the meat of it. So this talk is about web recon and content discovery. And I just want to start by setting the scene with sort of the current state, right? So let's say you're testing the security of a large network with zero knowledge of the network, what applications are on the network. You know, the first sort of thing that you'll want to do is some reconnaissance to get an idea of, you know, what are the applications, what are the systems that are running on this network, right? So to do this, typically, you know, you'll load up, you know, a file directory, sort of brute forcing attack. And basically, well, not necessarily attack, recon, reconnaissance exercise. And you'll perform it across all web assets to find, you know, what's out there, right? Pretty standard stuff for everybody in this room I'm sure. So, you know, as a security tester, you know, when you're conducting this directory brute forcing, you know, you're typically using some sort of work that you're not really using. You're probably using some sort of a word list. Probably set lists or some of the word lists that maybe you've created yourself. And then you just pipe it into do search, go buster or whatever your favorite directory brute forcer is. Maybe it's Patator. I don't know many people that use that. But it's also a pretty good tool. So, yeah, pretty, pretty straightforward, right? You guys will be used to that. This is an example. None of this should be shocking. This is just, you know, do search with, you know, a basic word list. You know, looking for, you know, ASPX, HTML, JS extensions. And you're also including sub directories of CMS and API. So it takes ten minutes into the brute force and we find sales.aspx. And in this particular example, visiting this file returns a list of customers and sales, right? So it's a sense of information. But what happens, what would happen if we didn't find that? Like if sales.aspx wasn't in our word list, you know, we would have missed this bug, right? So obviously, you're not going to be able to find that. So obviously, the quality of your word list is really important for the quality of your recon and by extension, the quality of your pen test. So what are the problems with current word lists, right? So they're curated, i.e., they're created manually. They're created by often an individual or a group of individuals. And, you know, so it's really down to their time and their effort as well as their experience in terms of the quality of the word list. They're not really updated regularly. So, you know, if you're creating a word list and they don't really evolve as new technologies are developed, at least not as quickly as they should, they're hard to customize and tailor to your needs because, you know, they're just big long text files, right? And then you have to sort of cut it up and do whatever. It's not really that customizable, at least not in an easy fashion. And if you're creating them, they require, like, significant time investment to create word lists that are of any kind of quality, right? So how can we, you know, if you're creating a word list, you're creating a word list, how can we address these problems? Well, one, I think we need to move away from curated word lists. So under the current model, updates are slow because, you know, people have stuff to do. Nobody gets paid to create word lists typically. And, you know, they can't really maintain them and keep them up to date. We need to figure out a way to keep word lists relevant to current technologies to make sure we get the most effectiveness out of those word lists. We need to reduce the amount of time and effort required to create an up-to-date and high-quality word list. And they need to be easily customizable to your needs. So that's where we introduced the concept of evolutionary word lists. So addressing those problems that I mentioned earlier was relevant to our business. So we developed the concept of evolutionary word lists. So the idea is evolutionary word lists are not static, curated lists. They evolve as the underlying technologies used by organizations shift. So the idea is that it evolves as the technology is used in your organization. And then you have the ability to change it in, you know, actual environments that are also shifting. And so by automating and analyzing large public data sets, we can create these evolutionary word lists. They're dynamic. They're ranked by occurrence. And they're generated regularly in a scheduled manner as part of an automated workflow. So none of this kind of manual curation and updating and maintaining. So one of the key areas is shifting ‑‑ keeping up with the shifting text landscape, right? So, you know, that really goes ‑‑ you know, that's a big part of what we're trying to do with the word lists. If your word lists are out of date with the technologies that people are using to develop applications, then you're going to miss stuff, right? So, you know, just think in the last five years, think about all the new technologies and frameworks that have been introduced over that time, right? There's got to be at least a bajillion JavaScript frameworks that have come out in the last five years, right? You know, do the word lists available cover these technologies? It varies, right? How often are they updated? Not really. So, you know, how often are they updated? Not really that often. You know, and how are the curators choosing what to cover, what to put in their word lists, right? Is it based on experience or is it based on something more empirical, right? Is it just their sort of gut feel that these are the right things to put into the word lists and what to add? Is it just because they're experienced and they see that stuff all the time? What if they are missing stuff or they don't usually work in a certain area of technology or whatever, right? So, you know, and the idea is if our word lists use for web lists, don't keep up with modern technologies, we'll inevitably miss, you know, significant vulnerabilities when using word lists for security assessments or bug hunting or whatever. Cool. So that's where BigQuery comes in. So looking for a way to sort of bring this concept to life, this evolutionary word list concept to life, we looked into BigQuery. So BigQuery is a Google Cloud offering that processes and analyzes large data sets using simple SQL queries. And you can process terabytes of data in a second. It's all processed by Google. It can handle complex SQL queries, so including regex and user defined functions. And more importantly for us and for the concept that we're trying to get to, it offers a number of large public data sets that are updated regularly, right? So they're evolving as well. And these data sets can be queried in an automated fashion. So just an example of some of the data sets that are available on BigQuery that are quite common. So the ones that are updated daily are stories and comments from Hacker News, every SSL search and search transparency logs. Updated weekly, you have contents from over 3 million open source public GitHub repositories. Fortnightly, you have HTTP archives data set, which is obtained by crawling Alexa's top 1 million list. And then quarterly, all publicly available data from Stack Overflow, right? So if you think about, you know, the overall data set that's available on BigQuery, you have the idea of shifting with the technological landscape, these are pretty good data sets for that, right? And BigQuery doesn't cost much. You get up to 1 terabyte free per month. And it's 5 bucks per terabyte after that. So pretty good for what we need to do. And, you know, it should be free for pretty much everybody's needs, right? So writing a BigQuery query. So it's pretty straightforward, right? SQL. Pretty, you know, pretty simple. Everybody or most people, at least, should be familiar with that. And, you know, as I mentioned, you can use regular expressions here to sort of, you know, pull out extensions like PHP, HTML, JS, which is there. So, you know, basically all this does is it's pulling from the GitHub repos data, like the data set, and it's looking for anything that has a .PHP, .HTML, .JS extension. And then, you know, ordering by, grouping by that .PHP, .HTML, .JS extension. And then, you know, ordering by, grouping by that path. And then ordering by count. So the count of those. And then taking 200,000 results. And this is kind of the output, right? So, you know, some of the obvious ones that are there, right? Index HTML stands out as number one. That doesn't surprise anybody, right? But going back to the idea that we're keeping up with the technological landscape, things like grunt files and gulp files, right? Grunt and gulp, you know, are fairly recent kind of tooling with like front-end, the rise of sort of front-end development. So, you know, it's a fairly recent kind of tooling with like front-end development. So, you know, again, you know, they're right up the top, right? So it gives you a good feel of, you know, how you can pull out current but also relevant results from BigQuery. You can also use JavaScript functions in BigQuery. So you can create a temporary function. Basically, all this is doing is parsing a URI to get the path, right? And it's using this library which is just hosted on Google storage. And it's using this library which is just a very simple library for parsing URIs. It's something that Shubhs wrote. It's up there. It's actually publicly accessible. So you could use this in your own BigQuery stuff as well if you wanted to. And then it's just pulling out the URL and grouping by the URL. So pretty straightforward kind of stuff. So we've got this idea of evolutionary wordless and the problems that we're trying to solve with evolutionary wordless. And then, you know, we've got BigQuery which we see could be a good fit for this. You know, how do we take this concept and turn it into something that's repeatable and can be used in a work flow when you're doing sort of bug hunting or security assessments or whatever. So the initial attempts at automation were kind of promising but also not that great, right? So the first attempt at this was common speak version one. And it was functional but not really ideal for a testing work flow. It covered directories, file names and subdomains from Stack Overflow, Hacker News. And it's a little bit more complicated than the other HCP archive. And then subdomains from the search transparency logs. The wordless ended up being very large, very noisy. And it was essentially just a collection of bash scripts which made it hard to integrate into a work flow. So you can see here this is common speak version one. And this is getting the subdomains from Hacker News. It's just a shell script, right? And it comes back with 67,360 domains, right? The problem with common speak one was it was very noisy. And it wasn't easy to work with. And, you know, really the initial focus was on quantity whereas, you know, it became clear that we needed to focus on quality as well. So that's where common speak two comes in. It is way, way simpler. It's written in Go now. So, you know, it plugs into an existing testing work flow quite easily and currently generates three types of wordless. We're adding more modules over time. And we're also using all of the tools that we've used to get the best results. getting heaps of interest and pull requests and stuff like that. People who want to add different modules once they sort of get their head around the idea. So the ones that are currently in there, extension-based word list from GitHub. And it's quite large and it's sorted by popularity. Subdomains from HTTP Archive and Hacker News. And approximately we're focusing on pulling about 500K from that. And then route-based paths from popular web frameworks. So Rails, Tomcat, Node.js for now, but it's pulling out paths, right? You know, config slash whatever, right? And, yeah, so as I said earlier, the focus was on better quality word lists. And, you know, that makes more sense from a bug hunting and security testing perspective. Often having better quality word lists is better than having, you know, a huge word list that's of poor quality. As I mentioned, it's written in Golang. It's extendable, important. Portable. It's really easy to embed in any kind of workflow. And it's open source. I'll get to the links at the end. So this is extension-based word lists, right? So this is just the simple query pulling from GitHub. That was the first sort of query. And it's just pulling out different files, different extensions. So here, same sort of thing in Common Speak too. So basically that's the command up. The project is just your Google project ID. So that's ours, but you'll put in yours. Everybody gets one when you set up a big query and all that kind of stuff. Credentials are your credentials. And then it's generating an extension word list with, this is with ASPX. And it's getting 100,000 results. And then it's piping it out to ASPX.txt. Yep? The word list from, it looked like it was pulling from Hacker News. How frequently are they updating their word lists? Once a month? Quarterly? What do you mean? So back here, Hacker News is updated, I believe, weekly. Daily. So stories and comments. So this is not Hacker News hosting a word list. This is BigQuery pulling all the stories and comments from Hacker News into a data set that you can query. So they're not hosting a word list or anything like that. Yeah. We're creating the word list from that data. Yeah. All right. Get back to where I was. Cool. And this is just sample data. Right? And this is the subdomains word list from HTTP archive. So this is the query. Again, this is a little bit more complex, but not that complex. Right? So, you know, if you want to extend this and add your own modules and add your own queries, it's super simple. Right? So I'm going to go ahead and show you how to do that. So this is just a bit of JavaScript, a bit of SQL. So this is very similar to the original query that we showed earlier, where it's just got a JavaScript function that is used to get the subdomains using this URI JS library that Shub's wrote. And it's basically just getting all the subdomains from the HTTP archive URLs, grouping it by subdomain, and this is getting, I think that's 2 million. So quite a few. Right? So this is just a little bit more complex. Right? So this is what it looks like in terms of using common speak 2 for that. Again, you've got your project ID, your credentials. It's got verbose options as well. So again, this is not just like a really simple bash script. This is, you know, a little bit more featureful and something that you could ideally use. And then it's outputting into a subdomain text file. If you have a look here, the unique subdomains, 484,701 subdomains. And it's sorted by count. So you can see here, right, you can see, you know, I'm not even going to bother reading that number. Right? Makes sense. Right? But, you know, you can see some interesting ones here. Like M makes sense. Right? Developer, whatever. But, you know, as you go on, you know, bits.blogs, right, is up there. Like that seems kind of weird to me. I probably wouldn't have put that in a subdomain word list. Right? Spectrum, I don't know, maybe that's related to some sort of technology. Right? But, like, you know, some of these are kind of surprising even in that top list. Right? So it is sorting by relevancy as well. So automatically by just, you know, working on the count. Cool. So, same thing. But this, sorry, this looks like duplicate slides. Never mind. Let's get on to the future development. Of common speak, too. So framework based route extensions. So think like things like config slash routes.rb. More comprehensive file and directory word list for many languages and frameworks. So we only support a few. Right? So we spoke about, you know, Rails, Tomcat, Node.js, whatever. But, you know, we're going to add some more support for stuff. And hopefully, you know, the community will also add different queries for different stuff that they think about. The other thing as well, before I keep going with this, is there's a couple of things that I want to talk about. One of them is it's not necessarily just useful for recon. Right? So there's other security domains that are also useful. So think about like fuzzing. Right? With BigQuery and even with common speak, you can pull out all the PDFs that are on GitHub, let's say. Right? And then you could use that as a corpus for fuzzing or any kind of binary or whatever. So it's not just the web recon. We find use in it for web recon. But it's great in, you know, a whole bunch of other, you know, security domains. Right? So in terms of future development as well, parameter and value base extraction from URLs sorted by frequency. A permutation engine as well to sort of, you know, take different permutations of the word list to get, you know, again, focusing on quality. And then schedule word list creation. Again, going back to that concept of keeping it up to date and constantly evolving. We're still working on it. We're working on it right up until this presentation. But all of those features that we're listing here are expected to be released within the next couple of weeks. Right? So, yeah, it'll be ‑‑ here we go. In terms of where you can find this and find resources on it, labs.assetnote.io and blog.assetnote.io will be posting up some write ups on using common speak and obviously all the materials from this presentation. GitHub under our ‑‑ our GitHub repository, common speak too, under ask note. And then if you want to just get in touch with us, our website or tweet at us is probably the easiest way to get to us. So infosecau ‑‑ it's actually underscore au. Sorry, that's a bit of a mistake. For Shubbs and M. Generakis for me. And that's the URL. And that's everything. I'll leave it on the URL for anyone else to take photos. So, yeah. Any questions? Have you used this in engagements, like active engagements or like bug bounties already? Yes. We have used it in bug bounties to very significant success. It's also driving ‑‑ so asset note is a platform that monitors your external attack surface for vulnerabilities. And it maps out stuff with recon. And we have passive and active sources. Our active sources are based on word list generated by common speak. Right? So ‑‑ What do you see as, I guess, the difference between using it as a tool and using it as an example? Using, like, Sequelist or something built into Kali, like their built‑in word list for Dirt Buster, Go Buster, versus what this is called now? Do you see more success using this? Oh, yeah. Definitely. Definitely. Especially on bounties, right? We've seen a lot of success on bounties. You know, Shubbs, if you don't know, is a very, very successful bounty hunter, right? He's in the top 50 in HackerOne globally. And where he stands out and where he gets his edge and where the top bug hunters really get their edge is in recon, right? And the stuff that he's pulled out, you know, using, you know, the, you know, the, you know, the, you know, the, you know, the common speak has definitely been interesting stuff that I seriously doubt would be ‑‑ I haven't checked, but I seriously doubt would be in Sequelist, right? Because it's up to date. It's sorted by frequency as well and popularity. So it's not just, like, you know, here's a static word list. It's also, like, you can take ‑‑ if you're sort of pressed for time or you don't want to do a huge scan or whatever huge brute force, you can take the top, you know, 200 or top 100, right? And you're likely to have more success with that than necessarily just a, you know, unsuccessful. So there's ‑‑ it's definitely more flexible and at least in our experience using it, both for our business as well as for bug hunting, it's definitely been successful. And to that ‑‑ but to that said, we haven't compared it necessarily to Sequelist, right? But, you know, we are confident that it's a better approach, right? Any other questions? Okay. Do we have any questions? Any other questions? Thank you very much. Thank you.