I get very self-conscious when I'm talking to a mic, kind of brings out the inner singer that I have, but yeah, I'm not going to bore you with that. The idea is that at the end of the presentation, at the end of what we have today, at the end of two hours, you will, we will be sending out or we will be releasing all the content that we have, including the virtual machines, the Gitbook, the script, the code, all of that, we're going to make it public and you folks can take it down and try it out in your own personal systems because some of these require internet connectivity, some of them require some amount of processing and some of the examples we're going to cover and the way the, so we're going to call it like a talk slash workshop now, the way this is structured, some of it you folks can practice on your systems, right, if you have internet access, you can, there are a couple of sites we're going to show you which allow you to pull information on other things as part of OSINT, right, you can definitely try that as and when you see, if you have access to internet. here, you can go ahead and try that out, okay, now the primary focus, the primary intent of the workshop is to ensure that everybody in the room is familiar with OSINT, right, that's the whole idea, you all here, you have some basic amount of knowledge and coverage of the idea of OSINT, right, what we're going to try and show in the next hour and a half, two hours is how do you take the amount of data that is out there in terms of OSINT and specifically when you're focusing on targets that you want to, you know, you're trying to attack and you're building your attack chain, your attack toolkit, how do you take that data and you visualize it, right, and the visualization has multiple, you know, multiple pros, the idea of visualization enables you to see what is available at the moment, you can compare it with something else that you're trying to figure out, right, a simple example would be subdomains, for example, right, how many of you have done bug bounty here in the room before, bug bounty hunters? Okay, anybody who's from a penetration testing background, all right, so the idea is that when you're trying to attack, when you're trying to attack a target, you would want to find out as much information about the target as possible, right, the visual cue that I would like to paint for attendees normally is the idea of you trying to get into a house, okay, now, before you enter the house, you don't normally try and break into the house directly, you would scout around the house. You try to figure out when the occupants of the house are available, not available, when they're out, how many windows are there, are there fences around, do they have dogs, are their windows unlocked, all of this information, right, analogous to what we do in a penetration testing exercise. We will be trying to enhance the amount of data that we have with open source information that we gather, right, the idea of today's workshop is going to align with that and we are going to cover three scenarios where this is useful, right. So, let's start with the first one. And the scenarios will be in a way where you would be able to use data that is available to you, that you've discovered online and Madhu is going to cover most of the automation and the visualization bit, right. And how do you visualize this so that it is presentable to somebody, either within your team or to your management if you're going to go, coming at it from a defense point of view, right. Like go back to your senior management folk and show them that hey, this is what is visible. You like fancy graphs? Here you go, these are pie charts that you can maybe talk to your other board of directors and see what shit is open on the internet, right, so that's what you're going to do. So essentially we're going to cover three scenarios today, okay. The first scenario is what we would like to, the way we would like to put it, the first scenario allows us to detect. Okay. In near real time. The first scenario allows us to detect in near real time if there are SSL certificates for your subdomains being released, right. We have something called as a certificate transparency log. How many of you are familiar with certificate transparency logs? All right. We'll talk about that briefly, right. And it's really interesting because I'm going to show you, we're going to show you a couple of demos in the form of web applications on the internet, web services on the internet, that you can go back. If you have access to the internet, try it out on your organization domains, right, and it's completely passive and then you'll be surprised the amount of information that it leaks. Okay. We're going to use, in the first scenario, a certificate transparency logs to figure out if any certificates have been issued for subdomains, okay, that you're trying to target for a particular company. The second scenario uses a forward DNS set, it's an open data set by Rapid7, we're going to use that. We're going to use that to try and visualize what is the infrastructure for a particular target organization that you're going to be attacking, right, all the DNS information that the organization has available in the form of visual cues, okay. And the third scenario is going to be if you can detect, or rather in a way, how would you go about detecting and visualizing if somebody's created rogue domain names that look similar and, you know, appear similar. Okay. Verbally or contextually, in enunciation as well, to your organization. Like you've seen those phishing campaigns, right. Phishing campaigns and scammers would want to be able to visualize the target domain as nearly as the original domain and it kind of adds to the whole value of the scamming operation. You would want to have, suppose somebody was trying to scam Gmail, right, and Gmail users. If you could register a domain with GM, with two A's. That would be a far more, right, viable opportunity for scammers to get hooked into the people who they're trying to phish. So that's the third scenario. We're going to again visualize that data. Again, as I said at the beginning, we are going to give away all the entire documentation along with the virtual machine that we're going to release, right, at the end of this. And we're going to release it on GitHub and we're going to tweet about it using ReconVillage or even our AppSecco account. Right. So just follow us whenever the data is available. You should be able to clone that. So yeah, I've been asked to put a, add the disclaimer bit that please, mostly reconnaissance is considered, is almost always passive, right. The idea of recon is trying to be as passive as possible. But sometimes you do touch the remote target. There are cases, test cases that you would run when finding information that you would sometimes touch the target. And I would recommend, I've seen this in the real world with several years of pentesting experience that I have and being part of the company AppSecco, I've worked at Citrix before and other companies before that. The idea is that ensure that you have permission. Your local country laws can easily screw you up. If somebody wants to get back to you, they will get back to you. Right. So the code and the other things that we're going to release as part of this class, they're not production-ready. Right. But you can go back, modify them and use them, use it for your test cases and see if they become viable to you. All right. I'll let Madhu introduce the primary visualization platform that we're going to use, the ELK stack. How many of you are familiar with Elasticsearch? ELK? Oh, good. He's going to introduce that to you. And then we can move on to… This is . Yeah. So before that, our primary trainer, our primary speaker for this class, Bharat, he ran into visa issues like most people who couldn't make it to DEF CON or Black Hat this year. So he says hi to everyone back from India. He's an active member of my team. I head the offensive security team at AppSecco. He's an active member of the team and he's our primary go-to recon guy. Right. And his idea of obtaining information… And we've done tons of… I'll probably give you a couple of examples during the talk where we've used very minuscule amount of information available to us to completely pawn an entire organization. And we have a couple of test cases like that. Brilliant stories. Right. So I'm going to talk about them as well. But yeah, his core interest lies in InfraSec, application security and a lot of reconnaissance work that he does. And he's done a couple of talks as well. So he just wanted us to bring this up. This is Madhu. Welcome. So my colleague at AppSec again, he's another part of… He's another member of my team. Right. And I see that my name isn't there so I'm just going to say hi. So Ria is here. Right. So I'm going to be pitching in whenever the opportunity occurs. Over to you, Madhu. Thank you. So as Ria has introduced, most of the stuff we will be trying to focus on recon and the primary focus of the workshop will be mainly data sets. That is one of the reasons. We choose kind of ELK stack. I think most of you are already familiar with ELK stack as you said. So ELK is primarily allows three things as ELK, Elasticsearch, Logstash. So each piece has individual pleasant advantages and disadvantages. Suppose if your organization have really good data sets like which they have normalized and put it in JSON, then you don't want to be using Logstash. Right. Logstash is kind of normalizing and make sure everything data which you are getting and send it to Elasticsearch. Elasticsearch or S3 buckets or whichever the data source output you wanted to send. And coming to Elasticsearch, Elasticsearch is kind of large NoSQL kind of data store where you kind of store all the data which is coming from the Logstash or like from other data sources which will store an index using Elasticsearch. And the final, the output, whatever we wanted to showcase is we will be using Kibana. So Kibana is kind of front end. Using. I think written in AngularJS which is fancy graphs and the visualization to showcase the data. This will make query to Elasticsearch and get the data to be represented in a visual format. Okay. And just to give again one more time. So we will be going through multiple demonstrations rather than giving hands-on because we couldn't be able to make sure, give virtualization software now and troubleshoot. But we will be releasing this VM whatever we are trying to showcase now and you can go back and try. So using the steps you can follow or like tweet to us like if you have any questions. Yeah. So I'll just quickly highly showcase like how it looks like in the configuration because this is one of the primary ingredient to set up entire the visualization platform. So if you see in terms of especially Logstash part, so it has three types of formats. One is input, filter and output. output, so input is kind of a plug-in, it supports nearly 50 plus amount of plug-ins, it can be taken data from sysmon servers like system monitoring, as well as any S3 buckets or directly file inputs, so in these scenarios which we are going to cover for the three, we will be taking currently as a file output, but it can be taken from anywhere else, alright. And similarly filter is one of the key piece why people try to use Logstash, for example if you have a dataset which contains IP addresses, right, which you wanted to enrich data using suppose longitude, latitude, which country, where is the region, so filters kind of allows you to do that, it uses a GOIP database, like by MaxMind, what it does is you say that this is the field I wanted to enrich, it will go ahead and enrich that data and give you more granular results. And the output is kind of decision maker, whether you wanted to send it to Elasticsearch if you prefer, or your team has really good amount of big data stuff. You can go ahead and send it to Apache Spark or like Hadoop clusters, and it supports I think nearly 60 plus plug-ins output, so that you can go ahead and take actions as well here as well, right. And this is again one of the piece which is like hanging around, especially if ELK stack around, so it builds this kind of data shippers, like if you are familiar with network security, like people use it to send the network switches data, like logs, to a centralized server, system monitoring server, right. So beats is kind of a Golang binary, which sits in wherever you wanted to send the data from, sources, and send it to Elasticsearch or Logstash, right, and it's very lightweight, the good part about this thing, they kind of integrate it with Kafka, like if you don't want to lose not even a single log, it will go ahead and send it to a Kafka streaming, so you can push and pull you like methodology stuff, and the people, if you are most interested in like packet level understanding, like especially in your organizations, they have released a packet bit as well. Like it kind of look at DNS queries and network monitoring as well, each packet level. And we are just gonna skip this section, like not going very deep into ELK stack, if you wanted to go back and refer like more interested in area, so we kind of made a quick git book to deep dive into ELK stack, and again it's in the reference section, I think my internet is super slow. So I'll just update this anyway, whenever we update, the URL is here. At the end, appsecure.com slash book slash ELK workshop. So if you want to deep dive and use that stuff. So the second phase is alerting, while we are storing huge amount of datasets, the key piece is we can't keep looking at the data, because it's a human job to make mistakes, like you may not miss, like look at everything, you may miss out something. So alerting is kind of enables, like rather than keep looking at whatever you look interesting, you can go ahead and save it. You can send it to some other place, based on certain alert queries. How many of you Slack here? Who doesn't, right? So Slack is kind of, the alerting we will be using here is ElastAlert, again it's, as title said, we will be using most of the open source stuff, ElastAlert is an open source project by ELP, so where it completely work with ELK stack, to query the data using REST API, and send back the data based on the queries which you made to the ELK stack alerting system, right? And the very important features it support, at the end you can see, fine, the text, cool, a little bigger, yeah, I think I felt the same, a little better, so if you see this, this is a very simple rule, it looks like, it is, we will be using in the coming section, in the scenario, what it does is, it will keep looking for the logs, and if it matches any of your organization certificate, which is generated a TLS certificate, using any let's encrypt, or like your proprietary certificate authorities, it will go ahead and send an alert, right? It's kind of keep monitoring for our new certificate updates, and to track inventory of certificates as well, so this is a simple filter, what we are doing is, we are looking for the index to receive the logs, and if it matches in number of events, based on the alert. So, we go ahead and look for the query, which we will be showing in coming section, and it will send a slack alert, right? Similarly, it can be many other, but it's kind of more integrated with Elasticsearch, so we have chosen, and if you have like a really good fancy other stuff, it is feel free to use, because the open source, we have chosen this, people might be using Splunk, ArcSight, and other ways, they can go and use as well, same things. And it has different types of ruleset supports, like if you wanted to configure based on the ruleset, and other types, so it can send you to email, SNS, JIRA tickets, to raise it to security team, and talk to them, developers. So I'll go ahead and move into hands-on section, if you have any questions, or if you see anything like missing, or like some stuff, please go ahead and ask, right away, font, fine, back, looks fine. Cool. So we have set up an ELP stack already in this virtual machine, pre-configured using Ansible Playbook, which we will be again giving that as well, like if you wanted to go back and set it up. So I'll quickly show you the configuration. Okay. Okay. So this is an Elasticsearch configuration. So what we are trying to say here is, we have created a new cluster, saying that Elastic stack, and we created a one node, because for the workshop, we're just using one machine. If you are storing like, sorry. Oh, okay. Okay. Black is much better. Okay. Okay. Okay. Okay. Okay. Okay. Great. It's black on the background. I'll just zoom in. So the cluster name, if you wanted to run huge datasets, it may be better to use clustering mode and with different nodes. And this is like a very basic configuration. And one thing we are trying to put is, most of you might find in Shodan searches, if you use Shodan. Like Elasticsearch doesn't have, by default, authentication. If you put 0.0.0 here, anyone can access your cluster out there. Basically, your data is there. out in the internet so we can afford in that part and by default it listens on 9200 port and that's it so this is very high level basic configuration to work with elastic stack and you can just make call request to localhost 9200 you can see that the cluster is up and running and we can able to send and receive the data from the cluster API using that 9200 port right and once we have set up the cluster so we have a place and data store like a to receive or send it back so now we have to get the data right so getting the data part we will be using logstash as I said like I'll quickly show the logstash configuration as well so that you will able to get idea of how the logs are coming in place and how it will exchange any questions like til elastic search part because am I going too fast or like because people will give me feedback saying that I go to fast so I am like two ass please let me know I'll make it slow down and let it be clear so in this case if you see I'll just make it so this is an input configuration so as I said logstash has three phases one is input all configuration one is driving data is and output and once you have understand these basic stuff I think you can go ahead and not only the data which we are showcasing you can explore any data it's at the end like a passing that data and making sure that getting some sense out of the data right visualizations so here what we are doing is we are listening on port 5 0 double 4 for the lock stash so anyone can able to reach 5 0 double 4 of this much virtual machine in able to send data to the beats sorry the lock stash so if you wanted to use SSL search like for this to make sure this is over TLS you can able to configure that and it is over TLS so once we receive we can apply filters so for this we are using two different scenarios the lock sets one is search stream as Riyaz mentioned so which is kind of mostly data coming from the certificate transparency locks of we are currently picking up from CRT data such I'll just quickly show you how the locks looks like so whenever it matches saying that search stream in the tags like we tag the data whenever it is sending it to lock stash it will go ahead and perform these filters currently there is no filter because we kind of directly getting Jason and if you have different kind of data sets this filters allows us to pass the data so you can go back and check the lock stash plug-in sub filter so it has huge amount of data filterization so auto- fogging does not give us reading error so we're the only option. kunna on here for error validation so we can screen the data so if you look at for the same thing like scans a go data the Funders we will be using gee crime paypal aspect because kids are using code data has IP addresses coming are like a no my name's so what we are trying to do is rather than going and passing directly IP address and domain names we resolving them and we are trying to capture their longitude latitude as well as the domain information as well and again sending it back to elastics it so that we can able so we kind of sending everything currently to elastic search which is again currently running in localhost 9 2 double 0 so once the data is receiving and performed the filtration we won't stays in the elastic search so if you see the index of index is automatically created based on every day so you will create different indexes every day to search back so that is about mostly cluster configuration we'll just go back and look at the data sets so that we can able to see how it's going to be parsing into the ELK stack so this is the one which we are talking about the previously the CRT-SH is the one which we are taking the logs the certificate transparency logs we will be making query using the postgres they have a postgres interface and if you wanted to run like a huge amount of queries they kind of block that you can request a different credentials they kind of give you like postgres guest admin credentials so you can have go and query and perform some research on top of like a certificate transparency logs I think I'll just do a quick check switch off my monitor to make sure my internet is working so it's working so I'll just go and go and we're going to see what's going on now we go back to the selenium you can see that it has been working and it's working so it's working that's great that's great that's great that's great so yeah so i'll just go ahead and make a simple query uh to showcase how the data looks like so that we will see how we can go ahead and parse the data if you can't see please let me know i try to make sure like i'm increasing the font always so if i miss out like please let me know so currently it supports uh different kind of queries uh if you use their cli especially the postgres uh the interface it's kind of you uh sql like interface to query the database but in web you kind of use like percentage to say that this is a wild card and a regular expression type so i'll go ahead and give one of the name like that's kind of okay like i wanted to give someone anyone wanted to participate and give one of the domain dot com okay so percentage here is like a wild card so it kind of gets all the data and again i think looks like my internet is super slow yeah so if you see in the the identity field uh so this log that whenever it uh creates a certificate and as well as the background has like a subdomain uh for this like they have created a certificate called a dot background and if you say that uh blog.buckrow.com uh which is again generated by dg cert like you can see the who is the certificate authority as well so you can go ahead and use this kind of uh data to find subdomains as well right as a bounty hunter they want like mainly look at like if you have given a domain what are the subdomain so that they can find any more issues uh in terms of a possible attack surface right uh if you in terms of pen tester point of view it will apply similarly like if you have given a target it may not be the same way to go right you might find other ways to uh let into the target so this is one of the good places to look at because most of the people don't want to make their servers as applications running http HTTP. So, they kind of generate a TLS certificate. As per the regulations or standards, they have to be available in the certification transparency logs. So, if you don't want it to be here as a defense point of view, so you have to run your PKA, public infrastructure for yourself. Right. Yeah. So, I'll be showing the output, the same output in a JSON format, how it looks like. So, this is how it looks like, but I'll try to make it, uh, uh, like it looks simpler. Uh, I'll just, so I kind of ran JQ. Okay. Uh, JQ is like JSON parsing stuff tool. Yeah. If you see from one certificate, basically it starts from the data and, uh, it has like the certificate link, uh, the information about extensions, authority, and each and every information related to the certificate which is generated from the transparency log. So, this is the log we wanted to pass it to the, uh, ELK stack. So, we have already pretty, uh, good JSON. So, we can have directly use that. Right. To send it to, uh, Elasticsearch and Logstash. So, if you have seen, like, uh, some type of other data sets, like not for this scenario, maybe you can have use some other filters, uh, to make it, uh, properly parsed into, uh, Logstash. So, you can have see, uh, which domains they have, uh, updated the certificates as well. Like, uh, Let's Encrypt recently started supporting wildcard domains. So, people started using rather than disclosing their subdomains. Right. If you rather than going and, uh, making a HTTPS certificate for blog.buckrow.com. The kind of putsard or buckrow.com. But it has, again, its own negatives. Uh, disadvantages as well. So, this kind of discloses some of the information, uh, which kind of use, uh, the visibility for the attackers point of view as well. So, we are, uh, parsing these logs again. . . . . . . So, as I said in the beginning, we will be using beats, beats is kind of data shipper, which will help you to send those logs from one location to the ELK stack, so if you see here the configuration, yeah, so we kind of have a different kind of inputs, we are tagged here saying that search stream, so that the log will, whenever it reads, it will go and make sure if it matches search stream, then it will perform those filter patterns. And similarly we are using scanSyvo for another dataset, we will be looking at the next scenario, so we will be using tags called scanSyvo, so the output will be ending up in the local host 5044, which is the log stash running place. So once we have logs and they receive everything, we kind of use Kibana, Kibana is like, looks like this, it's a fancy dashboard using AngularJS, so what it does is, whenever we made a query using curl localhost 9200, so this is similarly, it will talk to the Elasticsearch API and gets the data back, and try to put it in a visualized format, like graphs like similarly like this, some other. So I will quickly cover how to use this Kibana in the coming section, not now, I am going to skip for this now. Because if you understand this, it kind of helps you to put the data in a proper format, and showcase you to answer some kind of questions, right. So we will get started with our first scenario, so it's kind of now basically I get involved into ELK101, I covered, so that you can able to get and use your own datasets if you have any, apart from the scenarios. So in the first scenario we are kind of looking at mainly certificate transparency logs, and we wanted to monitor for an organization, if any new certificate generated for their domains, or subdomains, right, and for this scenario what we have done is, the one thing as we stated in the abstract, saying that in real time, so we kind of not did for this, the workshop, because it's kind of taking up an hour to get that certificate into the log, in the certificate transparency log, whenever it generates a certificate. So what we have done is, we have already created that previously certificates, and we took the data samples, but we kind of show you how to run your own server, as well as how we can get those datasets as well to the JSON, right. So you can go ahead and read more about like the details of certificate transparency log, how it works and everything, they have documented each and everything here. So we will be mainly using the certificate transparency logs, using a service which we are running, which is by Calidoc, I will just showcase. So there is a script we have created, a custom script, what it does is, it will go ahead and look for the certificates, any generated by the service, which we are running, and it will go ahead and write into a JSON format, so that we can directly pass into the ELK stack, right. So this is a very simple Python code, what it does is, should I zoom in? So what it does is, there is a docker container to start the services. So this is for the Calidoc server, which will keep listening for the certificates which are generated through the certificate transparency logs from CRT.sh. So once it writes, it's listening on the local host 4000 server, the docker container. So it will go ahead and make a WebSocket call and keep writing those data into the JSON file, okay. So that JSON file looks like what we have seen similar. The one which we have seen using JQ. So this is the output from that service. So if you wanted to go back and try, basically what we have to do is, you just run the search stream server, which is a docker container, and we have created a documentation in readme how to run that service. So once you have run the service, you can have started a server to listen for all the certificates transparency logs, then you can have used the client to store and send it back to the log stash. Right. Okay. Okay. So that's the docker server. So that you could, that you could set that server on multiple targets to just listen for when there's changes for let's say, reading from web apps. You mean to say different kind of transparency logs states, like places? Well, so that one docker server, is it, would you only aim it at bug crowd and it would monitor their docker? No, no, no. Yeah. To answer your question, so that looks for all the certificate transparency logs which are generated. Means it's throughout the internet. Yeah. It's not for the only specific to the domain, that is what your question meant. It's not for saying that only bugcrowd.com or defcon.org, it's kind of look for the internet by, like, completely. Certificate transparency logs essentially get populated whenever you register a new SSL Taylor certificate. When you buy a certificate, the participating CA will send information to the certificate. That log is what the search stream server reads. So every single certificate that is issued on the internet. That was the example that we used. Kind of. Well, that was the example that we used from the . Right? is an interface to search through certificate logs. Right? And it's a gold mine for a data. It was down until yesterday. Yeah. . So we kind of set it up like that. So that is the reason the server docker container, rather than depending on them, what it does is it is not only look for . It's kind of look at Google transparency log. Facebook has similarly a certificate transparency log. So it's kind of different places to look. If one server down, it's kind of . It will go and talk to the another one and get the logs. The interesting bit is that if you have internal applications, not visible on the internet, right? Corporate applications within an environment that are not visible to the internet. . . . They don't give you who is information, the certificate? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . so that is the one verification another way is dns challenge so the two ways they will but the interesting thing right with certificate transparency logs is the the reason it was created because a lot of cas in the past have been hacked yeah it's kind of uh showcasing your posture yeah so as i said like previously it's not only crt.sh it's kind of looks for different places the cali doc server which the docker container one uh so it is like facebook also runs their own certificate transparency log program like if you can give same buckroot.com here so it's kind of go ahead and perform the same crt.sh like you can see like all the sub domains which are related to buckroot which are generated and all the details as well like it's not only one server like one people maintain so google has their own as well similarly and i think we have put it in the references section where you can go back and read more about it and use different places uh but in terms of two hours workshop we couldn't have not showing all the stuff uh yeah sorry for that cool uh so it's kind of like once we have got the data like as you have seen like the search stream so sorry how often does that service check-in uh which is the service check-in service okay so this will be keep looking for the certificates but the time it is taking uh when we did the demonstration like to get the certificate can have took like 15 to 20 minutes to receive the certificate to the logs but uh the facebook has really interesting features uh where you can see that you have a domain you can go ahead and subscribe to that domain whenever you get new certificate for any subdomains of the domain also you'll get a mail alert so that you can make sure that there is a uh that our subdomains are captured and if you someone creates in your organization without your uh uh notification so then you can have knows that there is a certificate generated someone has created a uh subdomain or something else so if you go here facebook they have a subscription you can go ahead and create a subscription based on the domain they kind of go ahead and send that uh the email so once we have got the data so we kind of currently already sent the data to kibana uh which sorry elastic search so kibana is a front-end uh which will go ahead and query that and get back the data right so if you see here uh we kind of using attacks to differentiate currently just refresh so we are uh have like a different data logs uh because we for this next scenario also we already imported because of the time intention uh so you can see those logs coming in here uh whenever you get the alerts are like whichever generated from the certificate transfer in silos so you can use this uh the filters especially in kibana to query those are to make it granular to whatever the results which we wanted to see because it looks for the entire world right internet so we don't want to look for entire internet this can be done in two ways uh the best way to do this may be at lockstash level you can put tag saying that if matches to our domain then only send it to elastic search so that you kind of reducing your amount of data sets and you can easy to make it passing another stuff if you miss out there you can have used Kibana filters to do that as well so I go ahead and apply the tags saying that make sure I wanted to see loss again I link this upon for that so tags is I am looking for such stream locks only so as we used in file with saying the tagging feature so we can have leverage that to use filtering so we using tagging to make sure only look for the certificate transference logs now so whenever you apply filter like you see 11,000 hits now you can see one thousand and two hundred and twenty seven right it's kind of filter down to the particular logs which you wanted to see in Kibana and if you see the example JSON document like that stores in a JSON format it's kind of passes for you then tag Jason I'll increase the font it's super slow because it's a basic search and Nordstrom Java psychiates in that factory so if you see that Jason it's kind of automatically passes the Jason for view fields so you can use like a key value pets queries like whenever you want to became a case as well so it will pass under Jason which are the key chain data key chain and all the domain names which are part of this like as I said it looks for all the domains throw out the so also it looks for which kind of uh the digital signature and who is the owner like let's encrypt or dizzy uh dizzy cert or whoever it is created and the source name as i said it kind of looks for different data sources so one is google so we are kind of getting from google organ to the natin logs like the log which is coming from the certificate transference log and this is the log entry looks like so this is like pretty similar to what we have seen in the json but it's kind of fast uh structured way so that we can able to query i'll reduce it uh so now what uh is main interesting stuff here is once we have captured the data we have identified the data source now we have placed the data which is in our visualization platform uh the third the final thing is interesting to look to us is uh querying the data sets and making sure taking certain actions on top of it right so as i explained in the beginning you we will be using elast alert uh so we kind of created a last alert rule uh which i'll again show you so it looks similar to this so whenever you see a new certificate uh for this uh this looks for the particular file beat index because the index if you see in the kibana uh the name of this index is file beat so we are saying that uh if you see the name of this index in the kibana it matches the time frame or whatever the reasons which you want to apply the filter suppose you may want to look for a different kind of patterns right and uh then also you can use these queries the one which you made using filters in the kibana this is same i am saying taxis search stream which is the filter which you see here this one you can also apply here tags is search stream sorry spelling mistake the same query so this is uses Apache Lucene which is a backend querying thing for the elastic search so we will be using these queries to make the alerting and currently we are looking for the IETF.org on the wildcard applies here like it looks for all different kind of subdomains rather than looking for the particular domain and whenever it matches we can have send a slack alert so rather than slack alert you can have send go ahead and create a jira ticket to whoever the ops team or admin team or security team saying that new certificate has been generated is this part of your the inventory are like a CMDB like configuration management database right so once it has done we kind of look for the patterns here so this is where we kind of make interesting in terms of data sets so we can go ahead and look for different kind of patterns especially the primary reason is meant for the alerting feature we kind of took this scenario but not only that we kind of go ahead and look for subdomains as well so it makes it more easier especially here so I'll go ahead and open already saved search I can have created a search so that easy to show rather than building here so basically what we are doing is we are trying to take whatever the parameters which we wanted to show in the data sets so that we can only look for the granular data sets so here I can go ahead and run the query saying that I wanted to look for the sudden domain so if you see here the body we are looking for the jira insecure DNS right so whenever you see any instance a certificate has been generated for this query we kind of go ahead and see that it has been issued a new certificate and this is the DNS regard and the other information if you want to drill down and just go ahead and click this icon and I will give you a complete json output of that particular certificate and you can see that it is generated by which time and what are the different resources regarding to that, right. So this is one way and I can also use like wildcard to look at all the subdomains related to the organizations, right. This kind of gives you more different results based on the use case. So the main focus of the certificate transferency logs to look at here is to monitor for any new certificates has been generated or like to look for unknown like generation of your organization members, right. But we kind of moving to the second scenario now. Yes. So how do we find out the different company name under the same company name? Sometimes we found a new product and they use different QoR for the same company. So you mean to say similar? Similar URL patterns or like a subdomains or different domain itself you mean to say. Yeah like abc.com means like abce.com like that. So like Facebook, Instagram and mobile. Oh okay okay gotcha. So these kind of things I think you can't get from certificate transferency logs until unless they kind of use same CA cert and using all domains whatever they have as a single certificate they are generating like their own. And if you want to look at those areas maybe you wanted to get a inventory from your DNS like who are the unnamed registrar like the namecheap or who are the family. So you can kind of use those data source and already make queries already in the last alert. So whenever you make for those domains you can have get alert. So you have to make the inventory and put it in already alerting system. So inventory has to be there like otherwise we kind of looking for the entire internet right. That's the only thing. So you have to have the right x if one of the details you have x. So how to solve this issue for similar domains. Similar domains you mean to say that. That is the third scenario I will be going to cover. So the intention is like mainly to take it forward in terms of making sure you are looking as a defensive way and as well as offensive way. So I kind of mostly done. done with the demonstration. I will just quickly show you internet-wide, because we are looking at currently only organization level. If you want to look at scale, how it kind of helps certificate transparency logs. Okay. Riaz is giving swags and stuff for the questions and cool. Please give feedback, like if you see any useful features from the data search, it might be good to let us know, like we can have used and try to put it back in the documentation. So we can have written a simple city log utilities using Python script. What it does is you kind of go ahead and give the CA by cert. Okay. I just need to pip env install. It's Python. Shell. Okay. So what we are doing is we are trying to get the certificates based on the entire CA search with the internet scale. So what it does is you can go ahead and. It's already running. Yeah. It's running. Yeah. So. Super slow. I'll just briefly show how it looks like. It looks like this. So what it does is. So it looks at internet scale. Like if you see this, a certificate at it had generated these mini search at internet scale. And like a cPanel commodo has these many search generated, in the internet scale. So it's showing like, And it's not only useful in that way, and you can also use for organization level, like similar scripts, which is, you can say that . .com says that Let's Encrypt has generated these many certificates for that . .com, right? You can also look at, like, different ways to use these data sets and get some information out of your organizations using certificate transparency logs. So, before moving to the second scenario, is there any questions regarding this? Yes. Ah, yes. HTTP, no, because the certificate transparency logs is meant to look for the . . . Oh, you mean to say this? Ah, okay. Yeah, you can have . . . You can use subfinder. There are so many subdomain finding tools. I think if you, I'll just, you can go to our blog.appsecure.com. There is a really good blog about pen tester. What is that? OCN. Pen tester guide to subdomains. That is, like, more interesting in terms of, like, finding subdomains. Yeah, I'll zoom in once. I'll get the results. Still. Yeah. So, we will use that. Yeah, that's a fact. My next tool will also be . . . We've actually written two blog posts on our company website. So. One is specifically on using new innovative techniques on finding subdomains, right? I think my internet is super smart. And he's done that at several background conferences also in the past. Yeah, LevelUp. He has done a bunch of . . . LevelUp. He's delivered it there. Right? So, I mean, that's one. And there's another blog post we have. It's written as a 101 for people getting started with Recon. So, there's a 101 sub . . . 101 post on information gathering. And that's also there on the . . . We put both of them in the . . . We just search for . . . If you go to blog.apps.com.com website, blog.company.com website, you will see those articles. And we have created a cheat sheet as well, I think. Fancy. For finding the same thing. So, I was in a . . . I was in a . . . I was in a . . . I was in a . . . I was in a . . . I was in a . . . I was in a . . . I was in a . . . Yeah, Subfinder is the one which is written in Golang. You can have used the binary. And you can specify that which one you wanted to use. And you go ahead and find based on the all ways. Like it can use like VirusTotal. It can use like the Passive DNS. And also you can give your Shodan keys, API keys it supports. And you go ahead and find. Yeah. Yeah, this is the one, Subfinder. So, you can use it. just say that like whatever the thing which you wanted to look it has like a different configurations which you wanted to specify using brute-force dictionary so it kind of does that for you cool my internet is slow I think cool so we will be looking at the scenario 2 now it's mainly focusing on monitoring part rather than looking at alerting and other things and we will be looking at mainly to focus on two things one is as we said the cloudflare if you use it's kind of use a list of subdomains for the domain which I have given but the people who are use cloudflare they may not really reveal their own IP address right so many people struggle like if you got a pen test or like defining they get they are behind a cloudflare I don't even know what is IP address right so the DNA sets especially by this forward DNA sets by rapid7 there is a project called sonar by scans.io which is a project called sonar which is a project called sonar by scans.io which is so what it does is it's kind of collect entire internet wide scans especially for the different kind of records like a IPv6 AAA and NS records and other each text records MS records so what we have done is we kind of took a trimmed version of data set because of the demonstration otherwise it's like 300 plus GB of data sets they have which we couldn't be able to fit in the VMs so we will be using the trimmed version of the data sets to kind of how you can use those data sets to kind of look at your external posture of organization in terms of security in terms of like the infrastructure which you have out there you want to add anything so yeah I think it's they always release of monthly I think once that same data set the problem with them is like they kind of release the entire data set again rather than releasing the diff which has been done so it's kind of difficult to do that and if you wanted to know more like dig into deep I think they have done a pretty good research in and put it in a documentation we have referenced with they kind of explain more how they collect these data sets and the scans as well okay so what we have done is again for this scenario we kind of already this is already captured data sets which are available at rapid7scans.io website if you go here to the Quick Finder so what you gotta do is go over here actually to the software go into slowdown in the first container and we're ready to standby here so it's that fast so it's that fast so so that's us so there's a couple let's do the next oneном васanya okay so they're gonna do that now let me show you this is a transaction so the点 sweetie and let me explain more about you guys so So, I'll just quickly show the data sets, I think it's already downloaded and locally set it up in the VM, but if you wanted to go back and look at the website is here, you can just google for rapid7 the FDNS data sets, it will be there. So this has the different types of records, which are like the IPv4, IPv6 text, CNAME as well as any records. So, we have captured those records and kept in the VM, like if you see here in the... So this is how it looks like, the data set. So what it contains is, it's kind of timestamp and the name of the record, which may be domain name or the IP address and the value and the type of record, may be NS, THT or SOA, the records which are any different types of records and they have also segregated based on the type of record if you want, like you wanted to only look at A records, so they kind of set that data set as well. And so, it's already by default in JSON, so what we have done is, similarly again, sending it to Logstash and Elasticsearch and get into the Kibana. So once we have this data set, the primary reason to look at this data set is huge, as it... Similar to Certificate Transparency Log, so it's not only for the specific domain, it kind of looks at internet scale. So it has like the part of the data which is available in the internet. So once we have parsed the data set using the... So extra feature, as I said, we will be using GOIP filter, so because of the value which is there. So we also added a... The GOIP data pass for IPv6 as well. So what it kind of does is, for IPv6 also, it will go ahead and give you the details. So if I go ahead and change this filter to the ScanCyber, I'll just increase the font. One second. ScanCyber. ScanCyber. ScanCyber. ScanCyber. ScanCyber. ScanCyber. ScanCyber. ScanCyber. So this is the data set which we have taken a trimmed version, which has like 10,000 records. If you want it to parse the entire data set, you can also parse. It's kind of support the ELK stack at scale, so you can use terabytes of data as well to parse. So once we have done that data parsing, so it's kind of you see a complete visibility of the information. Like as I said... it kind of go ahead and get the information about the geo ip like you're gonna see which uh location where the data set has the ip address has been uh triggered like singapore and the ip information uh each and every detail has been uh come because of the lock stash enrichment and uh people also use alternatively like a fluendy it is similar to lock stash if you wanted to familiar with and write out so once we have this data set we kind of uh mainly focusing on trying to showcase those visualizations so that rather than looking at a single time like if you wanted to keep looking at as a fancy sock or knock dashboards whenever something happens and kind of builds those uh visualization to represent is there any new domain has arrived our subdomains has been uh captured so i'll quickly showcase that uh the dashboard like it looks like this so rendering slowly so it's kind of uh looks like this so what we have i'll just quickly go back and show how uh how big visualization so that you can try out for other data sets as well and based on your use case but to highlight uh the main things here is uh we kind of look for different kind of records which we wanted to look at like is there any air records are like at the aaa records are like a txt based on the use case and we kind of map with the the location which it is generated from using a goip map uh which is again available in the kibana so that is the one that we're going to look at the reason we pick and also we can plot those data in a the graph which kind of shows like which type of records has been coming so many for these organizations right so uh at the end again uh the entire data will be available as json format so that if you wanted to go back and drill down in terms of sub domain ways are like more granular way of the particular json record so if you see this for example rather than going and looking for the everything so i just wanted to go ahead and the particular domain so if you see here whenever i search the filter for the name i can dodge org so it will go ahead and apply those uh same query to the entire visualizations so this can be run in whatever the alerting as well if you wanted to go back and send the data which is coming out there so here if i go ahead and almost over seeing that this is a record i can go ahead and click that apply filter so it will apply that filter here and the data which is coming is only specific to the a records which are created for your organizations right so whenever you see here uh the count increases basically there is a new area record added for your dns entry based from the forward dns logs and it kind of gives you which country they are creating if your organization is like across the world like it has like different places uh people using the data centers and uh the apart from the main thing is here uh we kind of like i can come up with some um tools as well like if anyone using same a record to create multiple subdomains like i can not use jira and uh and crm here cricket int vip so these all may be pointing to the same ip as well so you can kind of use correlations capability of kibana to make sure and look at the certain patterns as well using these kind of visualizations right so i'll switch back to one more level and try to show you how these visualization has been created so i'll switch back to one more level and try to show you how this visualization has been created just to give you overview so that you can go back and try for different data sets especially if you are looking for the subdomains maybe you are like using services like subfinder that will give you at the end json you can go back and use these kind of features to look at the posture right so the data is by default available in the search patterns so once it has done the searches we kind of use visualization to represent those data whichever has been produced so kibana has very friendly interface but i think it's very difficult if you are using kibana you have to wanted to try out first time but if you like look some videos tutorials are two times it's a very easy to showcase the data which is available and most of the data science team and if you heard about Mozilla, Mozilla entire defensive platform runs on ELK stack like entire their SOC team and Black Hat I think Defcon their SOC also will use these kind of isolation because the amount of the data it can support is like the scalability issue so we will be using different kind of graphs to showcase like we have created a lap like a already existing graphs as well like if you see here I'll just show the existing one by God like the scan cyber based on the country so it's kind of ask you based on which type of events you wanted to create the graph like we are trying to say that terms means like whichever the field you wanted to select to showcase there so we wanted to select the keyword type means like a which type of regard it has been created so whenever you have applied you can give how many values it has to represent in this pie chart so we'll go ahead and apply this field so if you rather for 10 you can go ahead and apply file so it kind of reflects that data in near real time so this is the one way to showcase and people has built like complex visualizations if you see their tutorials and things so where it kind of gives you more granular visibility you can see like if you wanted to apply based on the type of record and if it matches to certain IP address then it will show the visualization so it can abuse you of the especially business people management so ok this many of the donation posture has been mapped to this IP the sub-domain so there are bunch of other visualizations as well I think we kind of already created a pretty good dashboards for this other scenarios as well so what we have done is rather than going and teaching the kibana we can put references to the kibana tutorials if you wanted to try out and another thing what we have done is this entire dashboard can be exported as a single json file if you wanted to upload for your own dataset you can go ahead and import that json file uh it will be here if you go to the last management section and here saved objects you can just click on the import and uh use this uh the scan cyber kibana will automatically render that uh dashboard based on this data sets for any of the scan cyber stuff i'll just keep because it's already there so this is the main uh one of the use case uh but uh people has extensively used this uh data logs uh to showcase like a different use case uh especially not only with the forward dns they kind of use forward dns dataset with their own internal passive dns so if you use your own internal passive dns you kind of use these logs with by correlating with the forward dns dataset to make sure that uh the alert is not false positive or some kind of thing so that they can ensure that uh the the result is the true value uh any questions uh before moving to the the third scenario on the next section so if you could combine that with like country's information or if somebody was going to like a record or an acquisition yeah or what disappeared or some state line yeah you could do that if you have both the data yeah most of this visualization requires you to have so for example if you have acquisition like google has recently acquired like suppose what is that coming drop cam or something like long ago sorry so you can go back and look at you have to write some kind of custom programming still because we don't know whether it is acquired or not if you have that information we kind of use the correlation engine which is again in logstation to ensure that if it is related to this then it can show in the certain organization level as well so this can uh the amount of uh the information uh which can be showcased it is very uh powerful if you have kind of data sets which are available to use that information the way you would integrate a new data set would be to this correlation engine yes using logstash yeah so that is the reason we just quickly went through in the beginning but uh if you wanted to know more about like how we kind of use different data sets uh we have referenced the way how we can go back and read more about it this is just one of the data sets that's uh in my opinion it's one of the most judicious one of the biggest projects i'm going to take on in terms of studying for data because uh this is our dns is my data set they have http data sets and they have an ssl data they have tons of those data sets which allow them you know all of the data you can visualize you can create the powerful yeah any feedback to improve in terms of like the data set like is there any other ways you people use like to look at like the external infrastructure posture like what kind of data might be useful to showcase here yes okay uh you mean to say who is data set uh you mean to say who oh okay okay okay yeah yeah so what he's trying uh saying is make sense actually what we can do is like if you have found a domain or something we can go back and query the who is information for the domain uh we'll get back the who is the information like contact technical information and the phone number or email id if you use that again you kind of use some other plugin to enrich that data and you can go back and showcase a reverse point to that uh is there any more data available it's kind of going like a nested but it's kind of you more drill down information like how multiple source like if you go and click and showcase but yeah it can be done i think but it has to be put some work but that will be great uh to see like uh to go back dns data is easy to visualize yeah people sometimes who is users they kind of uh protect their who is recording information yeah but yeah that one is good like actually we can have enriched this stuff cool anything else before moving on so as i said like in the beginning uh if you kind of use people uh the older ways like they have migrated from the uh the servers to cloud player they kind of not able to get ip the forward dns data set may have historical data if you kind of download full 320 gb of data set you can able to see the old ip addresses mapped to the domains as well yeah we can have used in one of our engagement pentesting they kind of behind cloud fair we kind of used our forward dns data set to query that particular ip which is the world ip still they point to the same ip so they kind of use useful information while doing testing yeah cool uh so that is one of the most uh thing uh so then we will move on to the section uh the third scenario where i think he is asking what kind of�uh how das scology is soive the not all of these projects of dnc data set business uh performance data set coaching and networking uh um and how to deliver this previously is there any way to see the phishing domains like similarly domains so this is the scenario which we wanted to focus on that area because i think facebook has started extensive research on this they have a similar project uh on the similar areas they are also looking at ct logs based on if you see any similar kind of dns twisted domain they kind of report back to the the team like to make sure that the facebook this is not the facebook domain or something otherwise people go ahead and click that and give the password the gut phishing has been done easily using those kind of domains so for this scenario we can have using a data source by a thing called against certificate transparency log to look at bunch of stuff but it may not to be uh but in this scenario we will be using but i'll showcase where you can go back and try out other ways like different logs as well so what we are doing is we kind of again loading the certificate transparency log so we mainly using a library called dns twist uh it's a python base uh i'll just see if it works yeah i think my internet is bad cool so it's a python uh project in github like what it does is kind of looks for the similar uh any domains available in the internet so if you say like background.com as we saw from the beginning so it figures out is there any similar domain which is available in the internet like bug crowd g o like that or any uh i'll just go ahead and run for the one domain yes i'll zoom in give me a second yeah makes sense what is that um yeah yeah yeah yeah yeah yeah yeah yeah yeah yeah yeah yeah so the input is if an l list uh what is the domain you said microsoft microsoft.com it already did that so i'll just pass it using jq fancy tool so you can see uh it has different kind of sub domains sorry different kind of domains which are similar to microsoft domain if you see here uh this uses like what is this language like which country center okay maybe yeah so what people does is uh like they kind of use different kind of ways to represent also in browser they don't go and see your like copy paste and see the text also right so it looks like um but you see more on top of that so this is a data which can be come from the dns twist uh so what it does is the given domain for your organization it kind of finds related domains different ways if you see this one this is homoglyph the one I think it should see like insertion like if you see Microsoft Microsoft right select a different possible and the combinations it will try and something which is very nice if you say omission as well like if you just remove one kind of letter or something from the domain name to make it look similar so and also it gives the information with all the list of domains possible related to that so you kind of use this inventory to go back and look at is there any similar phishing domain has been created and someone is using this to mimic basically our organization are like used to do some kind of spam or like especially this is kind of data sets people look in fraud detection teams if you have like fraud detection teams in your organizations like especially large e-commerce companies they kind of heavily depends on these kind of things because they kind of use to go and check out this using this link photos you can now know like so this one I think yeah the command actually the same people I think kind of built a fancy website as well DNS twist dot report twister dot report yeah this one so the same what we are said command it's kind of you see a option here like if I say microsoft.com you go ahead and look for the domains available and it'll says this is your original it's kind of gives you IP information again you can go back and send it your log stats to enrich the data where it is has been created and all the stuff and it not only does that you can as iPhone our flag it's kind of shows unresolved the stuff which is able to resolve or not resolve for the domain which has been there right so this is the data set which we were playing with the third scenario especially looking at the phishing campaigns has been created for your organization some by someone and the facebook has similar project I think we have put it in the references section where they have working on similar areas to look for anyone has been created as spam detection for them so similarly we will be using for this as well like the certificate transparency logs to look is there anyone for our organization has been created a certificate for one of our similar looking domain like phishing domain by DNS twist so first way what we have to do is we kind of get the data sets using the DNS tweets so this script does that automatically so we kind of put the script in our code when we distribute yeah so doubt drop this this uh the database twist file will be sent it back to again log stash and vice versa to ELK and the Kibana so what we have to do is extra feature apart from the first scenario and the second scenario we kind of get all the certificate transparency logs uh using the the certificate transparency log that script and the service so once we have uh get the all certificate transparency log the pattern which we wanted look is not only for the our organization so we kind of look for all different kind of possible ways to look for the similar domains so if you look at one example we have created a thing so in the first scenario i think we have used this uh so if you see insecure dns we can have create this owns by uh this this domain owned by us the insecure dns so if you see insecure dns there is a zero dot insecure.dns.com like the domain which has been created i'll just zoom in uh this one so similarly what we have done is we kind of uh bought another domain looking similar to the insecure dns uh but here we are just trying to remove the d basically insecure dns so if you go ahead and run the similar query for the thing so if you see here uh payment.insecurens.com but if you see there is a d missing here insecure dns uh but someone had generated certificate for our payment server which is publicly available they may be using trying to legitimately sending to some other people our customers whoever uses this organization right so using these kind of uh log data sets which are available publicly and looking for this kind of things make you more visibility in terms of what kind of things uh has been happening to your organization in terms of external uh the posture right so this is the one way to look uh uh we are still working on uh making sure that the dns twist records data set will be coming back to logstash to enrich and i think as someone mentioned we may work on that as well like looking who is information and getting back into the logstash to make sure go back and drill down so what we are trying to do here is once it has been received we kind of creating elast alerts against same patterns using the elast alert rule set so if it matches any of our dns test records for the certain domain for our organization so we kind of go ahead and send alert to the ops team saying that do we own this domain so if this is yes it's kind of our own domain so if it is not part of our inventory we may want to go ahead and take action saying that sending an email to our one of the customers team marketing saying that if you see anyone sees the domain name coming similar to this area please do not click or use that at least it kind of helps saying that disclosing point of view right is there any questions in terms of this scenario or like the data sets any feedback so facebook is working on similar sorry so how many of you run phishing campaigns at least for your organization like not you like at least your teams yeah so you could do too is take the permutations and put them into the blog yeah that way you don't have to worry about so the problem with those things it only works for organization level but what about your customers right so that is where we wanted to look at transparency logs so that we can see at internet scale and look for send it back but yeah that is really good if you wanted to block it local things corporate level yeah it's really good way to approach yeah virus total or something like that you mean to say oh okay you mean to say may the people who has done that oh okay so what if it is legitimate domain they are someone organization is using classification maybe yeah yeah that is for sure internally you verify before using code this could simply be a legitimate yeah it reminds me of that very ancient there was a there was a particular case that microsoft again with microsoft there was a chapter micro i have a lot of that there's a there's a young 15 year old developer called micro his name was m-i-k-e-r-o-w-e and he used to write code so he created a website called microsoft you know the legit side he was trying to advertise his code but microsoft kind of tried to shut him down and he filed a lawsuit against microsoft and he won the case and so that that is a real legit example of uh how you could look at the phishing campaign or domain but it turns out that there's somebody else who owns the business so i think that is more automation kicks in place like if you use phantom js like things like you kind of look for these domains and take a picture of the home page and compare with your like google has releasing auto ml if you know uh so what they are trying to do is still in beta i think so you can have upload both all the images which are there so it kind of classifies based on the category so maybe you can kind of use these scenarios and go ahead and take all the phantom js uh actually firefox support now headless you can go ahead and run that script in the automated way so you take all screenshots for your phishing domains and compares with your main domain if it matches using auto ml kind of go and report that it's kind of automation cool uh which one oh okay yeah it's like it's kind of interesting to see so much stuff around this area because it's kind of more uh security work but it's kind of more has to be put in terms of uh uh thinking wise like how people innovatively come up with the phishing campaigns are like new ways to attack this for example you won't see it's something that's time so it can be rather than something that's between two times i didn't get sorry is there a way to query between two times yeah so historical data i mean to say like old data set and the new one you mean to say yeah it is possible so i'll ask you a question and then i'll ask you a question and then i'll ask you a question and then alert uh as i i think i'll just go back to that slide just to showcase yeah so what it does is it has a different way to look at uh this thing so if you see one of them thing is like uh the change feature is looks from the previous data set the timestamp and if anything apart from that something looks a newer than the previous anomalies it's kind of make alert so it will look at the whole data set you can define which timestamp to which timestamp to look like i can look for past six months and if it doesn't match from the past six months similar area of patterns will go and alert also as well so it can the problem with especially using open source solutions it's kind of need to be built so much uh the fine tuning but once you have placed fine tuning it kind of works at scale and customization but uh purchasing product is like yeah you just go and talk to that team organization yes uh-huh yeah oh you mean to say for getting that data oh okay okay so he you are saying that use google docs to find subdomains i any sensitive data available using like index.off or file extensions those things yeah yeah yeah yeah i think this is the one now i got internet i'll just go back and show so this is one of the popular blog which we have written and across internet buzzing so this is i think you can if you are more interested in especially finding subdomain enumeration we kind of wrote a blog post like the how it kind of can perform subdomain enumeration for different ways so the one way is kind of looking at techniques using google locking as he mentioned so what we can do is you can use different kind of site operators to look at like what are the different types of like store uk jobs and different ways like you can get this and people has written scripts like recon ng one of the framework for the recon so they also use similar techniques to do that as well and the people also you can see use google but there are so many other search engines out there which can also give results like being it's really good if you wanted to look at subdomain enumeration yeah kind of see you can get like juicy information like slack jira what do you want the second thing is like we have kind of focused on virus total as people keep updating uploading files and information people also capture the metadata nothing but like the file owner information the file the downloaded urls like referrals if you use some kind of url so these all has been captured as a metadata part so this kind of use subdomains as well like like you can see like for wikipedia wikimedia you can have seen huge amount of subdomains which are from this and the third thing is we use dumpster dns dumpster where it kind of gives the different subdomains and put it in a geographical map saying that which is map like how we saw in the kiwana previously it kind of enriched the data information and as someone mentioned i think i think he mentioned saying that sublister is again one of the things like similar to sub finder so it can go ahead and look at via do yahoo google bing different search engines as well as the passive dns and also it look as ssl certificate which is certificate transparency logs again and it kind of give you complete information what are the domains we have found from those as well and like the certificate transparency logs uh this we have looked in the scenario one as well like this is another way to look at subdomains if you wanted more interested and as i said they kind of give you postgres interface to query uh this is the script uh and if you go to our blog post we have kind of given the script uh to make and use for your organizations and uh the another thing is uh dns recon this is again kind of brute force and look at different ways to go back and find subdomains and uh it uses a bunch of other ways i think so many other like it's kind of huge workshop itself finding subdomains um I just wanted to highlight this part like because if you seen in the second scenario we kind of using fdns set so if we have compared different data sets and fdns has a huge amount of data set given to us so it's kind of like a kind of which has given subdomains because it kind of stores entire historical internet level data sets rather than looking at certain tool uh it gives more visibility uh across the data set so that is one of the reason we picked uh the data set for fdns and the thing is like we have created a cheat sheet if you wanted to go back and try out uh feel free to do uh we will be here as well like if you want to drop to us and ask any questions so moving on so uh this is the one scenario which we wanted to cover the for the last part and uh what uh we have seen is mainly focusing on looking for the fishing domains and uh as so many gave feedback we kind of update uh any of the things which we can uh try to use like who is data sets and compare it and correlate uh to showcase any uh data which can be possibly legitimate or not and the thing is uh we kind of uh not able to put like uh uh the time to make sure everyone has to do here like for the workshop but uh as we said like we kind of make this uh update the gitbook with each step-by-step screenshot as well uh we kind of tweet from the recon village or our actual account uh you can like get entire uh the gitbook and the vm go ahead and feel free to try whatever the stuff and please add your own data sets if you find and uh try out like how you can correlate and get more value out of this and if you have any questions uh please let us know uh then we kind of showcase the references part before concluding the workshop so that you can go back and try other uh ways to look at uh the same data sets to take it forward any questions oh yes yeah , but sometimes people wanted to not to show their information as well in who is so they kind of use who is god or something to protect stuff or you guys watch it fortunately as John does. but we have to just use some other tool again to make it because the existing domain uh domain registrar has no requirement that you need to provide or indicate yes yeah yeah but sometimes people wanted to not to show their information as well in who is so they kind of use who is god or something to protect stuff or you guys watch it fortunately and john knows Yeah, all of them happen. Yeah, yeah. But during an assessment, it wasn't a political problem. We looked around at the color domains in the internet, and one of the domains was registered with . We know it was locked. Yes, you go on. Yes. So if you're asked to do an assessment for company X, and they say, you know, go find everything that you have, and they're using privacy, right? So now everything is Google, all their DNS is Google. How are you guys confirming that the site belongs to them? If you say you have a list of a thousand sites. That's not reasonable to manually perform. Yeah, normally you ask. No, you just ask them. I'm trying to figure out how you can automate that. That's why. You mean to say if they're given a domain and Just, I don't want you to know what my company is for. By name, or like a kind of name? I'm trying to tell you what I have. I mean to say, I'm thinking, do you give the domain as an input for the attacker or the tester who is going to test? Or like the company name? Oh, okay. And I'm an enterprise worldwide company, I have multiple divisions, each division has their own names. So it's not always going to be X.com, now it's going to be EBC.com once you do that. And how do you tie that together? Yeah. Maybe one thing is like we can go back and refer to the site Google or some other things, once we got, we kind of correlate that information, like is there any referral URLs from this site to going back to that. Like if you use some people like Shopify or something, like they kind of use app.shopify some different URL to give them shops externally, but the main domain is completely different from them. But if you see any of the referrals, like a store, go to click on the store or something, it will go back to the whole domain. There are multiple, yeah. One of the common techniques we also use is to use email addresses instead of domain names to figure out. But then you run into the case where I'm using my personal work email to stand up a site that's online. So we come out of that development process first to figure out, we look at LinkedIn people and much other sites to figure out who's the authority people in the company who owns particular domains. What is the admin team? What is the ID? What's the lead post? The information will not be complete. But from that set, we figure out email addresses that would be seen on the internet, who is they at? And then use a real search to figure out what other domains are there. So what I'm trying to get to is how do you automate it at scale? And that doesn't, I'm not hearing how to automate something like that at scale. Because that's everything I do, right? The other thing is you can register with AWS, everything, but you're hitting a company DNS and you see that So I'm like, I have high confidence that x.com DNS is yours. So anything that hits that, I can confirm it as being yours and I can attack. When it's not like that, So if you are internal, it will be makes easier, you just look at passive DNS traffic. Like if you are an internal organization member and as an internal organization, you want to look or test your organization post share. Then you kind of look for passive DNS where it will, before going out of the network, like a gateway. So you can look for all passive DNS traffic and profile them. Maybe it is one of the best way to look. Because whatever they have to look, they can go through the same DNS which you have organization. So it will give you complete entries. But coming to the external post share, maybe you have to do some kind of work in terms of different techniques and ways to look at. But yeah, it's a little tougher to automate unless you put the manual steps in place and document it. Yeah. True. Yeah. Cool. So that is the things. I will just quickly cover whatever the references we have put so that you can go back and look at them. The certificate transparency page, like you can go and look at the more details about how the way capture and what are the data information they give away and the places to look if you wanted to get the certificate transparency logs. And there is a blog post we have written as a kind of what you call, three different formats, like three types. Like three types, dark side, bright side. Only two. Only two. Okay. So there is a blog post we have written about more like detailed what are the things, information it discloses and about stuff. The project which we were talking when we were doing scenario one, like Calidoc security, this is the one which kind of automatically run your own server for listening all the certificate transparency logs. And the rapids of an open data site is scans.io. So it not only has the forward DNS data set, it also has a bunch of other data sets which you wanted to look and may be interested. If you see this project owner, yeah, this one. Yeah, this one. So the project owner has the data sets like they kind of give you different ways to download. As I said, it's kind of huge if you wanted to download at internet scale. And people kind of use like some huge servers to parse and process. Feel free to go ahead and download and try those stuff. And that is mostly about us. And if you have any questions, please feel free to take our card or like tweet to us, like happy to answer. And we will be sending this or tweeting about this workshop, the documentation and VM mostly tomorrow. By tomorrow. Thank you so much and have a great day.