1 00:00:00,000 --> 00:00:04,400 I get very self-conscious when I'm talking to a mic, kind of brings out the inner singer 2 00:00:04,400 --> 00:00:06,840 that I have, but yeah, I'm not going to bore you with that. 3 00:00:06,940 --> 00:00:12,340 The idea is that at the end of the presentation, at the end of what we have today, at the end 4 00:00:12,340 --> 00:00:17,420 of two hours, you will, we will be sending out or we will be releasing all the content 5 00:00:17,420 --> 00:00:22,040 that we have, including the virtual machines, the Gitbook, the script, the code, all of 6 00:00:22,040 --> 00:00:26,640 that, we're going to make it public and you folks can take it down and try it out in 7 00:00:26,640 --> 00:00:31,320 your own personal systems because some of these require internet connectivity, some 8 00:00:31,320 --> 00:00:34,840 of them require some amount of processing and some of the examples we're going to cover 9 00:00:34,840 --> 00:00:40,980 and the way the, so we're going to call it like a talk slash workshop now, the way this 10 00:00:40,980 --> 00:00:46,360 is structured, some of it you folks can practice on your systems, right, if you have internet 11 00:00:46,360 --> 00:00:49,260 access, you can, there are a couple of sites we're going to show you which allow you to 12 00:00:49,260 --> 00:00:53,080 pull information on other things as part of OSINT, right, you can definitely try that 13 00:00:53,080 --> 00:00:56,560 as and when you see, if you have access to internet. 14 00:00:56,640 --> 00:01:02,260 here, you can go ahead and try that out, okay, now the primary focus, the primary intent 15 00:01:02,260 --> 00:01:07,040 of the workshop is to ensure that everybody in the room is familiar with OSINT, right, 16 00:01:07,080 --> 00:01:11,540 that's the whole idea, you all here, you have some basic amount of knowledge and coverage 17 00:01:11,540 --> 00:01:16,840 of the idea of OSINT, right, what we're going to try and show in the next hour and a half, 18 00:01:16,880 --> 00:01:22,640 two hours is how do you take the amount of data that is out there in terms of OSINT and 19 00:01:22,640 --> 00:01:26,620 specifically when you're focusing on targets that you want to, you know, you're trying 20 00:01:26,620 --> 00:01:31,020 to attack and you're building your attack chain, your attack toolkit, how do you take 21 00:01:31,020 --> 00:01:37,760 that data and you visualize it, right, and the visualization has multiple, you know, 22 00:01:37,780 --> 00:01:45,100 multiple pros, the idea of visualization enables you to see what is available at the 23 00:01:45,100 --> 00:01:49,140 moment, you can compare it with something else that you're trying to figure out, right, 24 00:01:49,180 --> 00:01:53,240 a simple example would be subdomains, for example, right, how many of you have done 25 00:01:53,240 --> 00:01:55,660 bug bounty here in the room before, bug bounty hunters? 26 00:01:56,620 --> 00:02:02,800 Okay, anybody who's from a penetration testing background, all right, so the idea is that 27 00:02:02,800 --> 00:02:07,360 when you're trying to attack, when you're trying to attack a target, you would want 28 00:02:07,360 --> 00:02:12,840 to find out as much information about the target as possible, right, the visual cue 29 00:02:12,840 --> 00:02:18,060 that I would like to paint for attendees normally is the idea of you trying to get 30 00:02:18,060 --> 00:02:23,700 into a house, okay, now, before you enter the house, you don't normally try and break 31 00:02:23,700 --> 00:02:26,440 into the house directly, you would scout around the house. 32 00:02:26,620 --> 00:02:29,800 You try to figure out when the occupants of the house are available, not available, 33 00:02:30,020 --> 00:02:34,000 when they're out, how many windows are there, are there fences around, do they have dogs, 34 00:02:34,200 --> 00:02:39,260 are their windows unlocked, all of this information, right, analogous to what we do in a penetration 35 00:02:39,260 --> 00:02:39,920 testing exercise. 36 00:02:40,740 --> 00:02:46,360 We will be trying to enhance the amount of data that we have with open source information 37 00:02:46,360 --> 00:02:52,700 that we gather, right, the idea of today's workshop is going to align with that and we 38 00:02:52,700 --> 00:02:56,160 are going to cover three scenarios where this is useful, right. 39 00:02:56,220 --> 00:02:56,600 So, let's start with the first one. 40 00:02:56,620 --> 00:03:01,520 And the scenarios will be in a way where you would be able to use data that is available 41 00:03:01,520 --> 00:03:05,620 to you, that you've discovered online and Madhu is going to cover most of the automation 42 00:03:05,620 --> 00:03:07,840 and the visualization bit, right. 43 00:03:08,260 --> 00:03:12,040 And how do you visualize this so that it is presentable to somebody, either within 44 00:03:12,040 --> 00:03:16,100 your team or to your management if you're going to go, coming at it from a defense point 45 00:03:16,100 --> 00:03:17,020 of view, right. 46 00:03:17,280 --> 00:03:20,880 Like go back to your senior management folk and show them that hey, this is what is visible. 47 00:03:21,080 --> 00:03:22,100 You like fancy graphs? 48 00:03:22,240 --> 00:03:26,180 Here you go, these are pie charts that you can maybe talk to your other board of directors 49 00:03:26,180 --> 00:03:29,900 and see what shit is open on the internet, right, so that's what you're going to do. 50 00:03:43,400 --> 00:03:46,460 So essentially we're going to cover three scenarios today, okay. 51 00:03:46,580 --> 00:03:53,720 The first scenario is what we would like to, the way we would like to put it, the first 52 00:03:53,720 --> 00:03:55,320 scenario allows us to detect. 53 00:03:55,700 --> 00:03:56,120 Okay. 54 00:03:56,120 --> 00:03:56,780 In near real time. 55 00:03:58,100 --> 00:04:05,060 The first scenario allows us to detect in near real time if there are SSL certificates 56 00:04:05,520 --> 00:04:08,580 for your subdomains being released, right. 57 00:04:08,840 --> 00:04:11,400 We have something called as a certificate transparency log. 58 00:04:11,520 --> 00:04:13,800 How many of you are familiar with certificate transparency logs? 59 00:04:14,160 --> 00:04:14,600 All right. 60 00:04:15,520 --> 00:04:17,100 We'll talk about that briefly, right. 61 00:04:17,180 --> 00:04:20,740 And it's really interesting because I'm going to show you, we're going to show you a couple 62 00:04:20,740 --> 00:04:24,200 of demos in the form of web applications on the internet, web services on the internet, 63 00:04:24,360 --> 00:04:25,360 that you can go back. 64 00:04:26,120 --> 00:04:30,600 If you have access to the internet, try it out on your organization domains, right, and 65 00:04:30,600 --> 00:04:34,140 it's completely passive and then you'll be surprised the amount of information that 66 00:04:34,140 --> 00:04:34,460 it leaks. 67 00:04:34,760 --> 00:04:35,180 Okay. 68 00:04:35,320 --> 00:04:39,580 We're going to use, in the first scenario, a certificate transparency logs to figure 69 00:04:39,580 --> 00:04:45,540 out if any certificates have been issued for subdomains, okay, that you're trying to target 70 00:04:45,540 --> 00:04:46,740 for a particular company. 71 00:04:47,060 --> 00:04:54,680 The second scenario uses a forward DNS set, it's an open data set by Rapid7, we're going 72 00:04:54,680 --> 00:04:55,240 to use that. 73 00:04:55,240 --> 00:04:59,900 We're going to use that to try and visualize what is the infrastructure for a particular 74 00:04:59,900 --> 00:05:04,260 target organization that you're going to be attacking, right, all the DNS information 75 00:05:04,260 --> 00:05:09,460 that the organization has available in the form of visual cues, okay. 76 00:05:09,580 --> 00:05:16,280 And the third scenario is going to be if you can detect, or rather in a way, how would 77 00:05:16,280 --> 00:05:21,320 you go about detecting and visualizing if somebody's created rogue domain names that 78 00:05:21,320 --> 00:05:24,180 look similar and, you know, appear similar. 79 00:05:24,640 --> 00:05:25,220 Okay. 80 00:05:25,240 --> 00:05:29,700 Verbally or contextually, in enunciation as well, to your organization. 81 00:05:30,060 --> 00:05:33,200 Like you've seen those phishing campaigns, right. 82 00:05:33,760 --> 00:05:38,500 Phishing campaigns and scammers would want to be able to visualize the target domain 83 00:05:38,500 --> 00:05:44,580 as nearly as the original domain and it kind of adds to the whole value of the scamming 84 00:05:44,580 --> 00:05:44,840 operation. 85 00:05:45,360 --> 00:05:51,620 You would want to have, suppose somebody was trying to scam Gmail, right, and Gmail users. 86 00:05:51,880 --> 00:05:55,140 If you could register a domain with GM, with two A's. 87 00:05:55,240 --> 00:06:03,180 That would be a far more, right, viable opportunity for scammers to get hooked into the people 88 00:06:03,180 --> 00:06:04,180 who they're trying to phish. 89 00:06:04,760 --> 00:06:05,760 So that's the third scenario. 90 00:06:05,840 --> 00:06:07,080 We're going to again visualize that data. 91 00:06:08,780 --> 00:06:13,060 Again, as I said at the beginning, we are going to give away all the entire documentation 92 00:06:13,060 --> 00:06:17,160 along with the virtual machine that we're going to release, right, at the end of this. 93 00:06:17,780 --> 00:06:22,400 And we're going to release it on GitHub and we're going to tweet about it using ReconVillage 94 00:06:22,400 --> 00:06:24,340 or even our AppSecco account. 95 00:06:24,560 --> 00:06:24,960 Right. 96 00:06:24,960 --> 00:06:27,160 So just follow us whenever the data is available. 97 00:06:27,220 --> 00:06:28,280 You should be able to clone that. 98 00:06:37,420 --> 00:06:44,640 So yeah, I've been asked to put a, add the disclaimer bit that please, mostly reconnaissance 99 00:06:44,640 --> 00:06:47,680 is considered, is almost always passive, right. 100 00:06:47,720 --> 00:06:50,780 The idea of recon is trying to be as passive as possible. 101 00:06:51,220 --> 00:06:54,620 But sometimes you do touch the remote target. 102 00:06:54,960 --> 00:06:59,060 There are cases, test cases that you would run when finding information that you would 103 00:06:59,060 --> 00:07:00,420 sometimes touch the target. 104 00:07:00,980 --> 00:07:05,660 And I would recommend, I've seen this in the real world with several years of pentesting 105 00:07:05,660 --> 00:07:10,240 experience that I have and being part of the company AppSecco, I've worked at Citrix 106 00:07:10,240 --> 00:07:12,260 before and other companies before that. 107 00:07:12,860 --> 00:07:15,920 The idea is that ensure that you have permission. 108 00:07:16,880 --> 00:07:19,880 Your local country laws can easily screw you up. 109 00:07:19,980 --> 00:07:22,600 If somebody wants to get back to you, they will get back to you. 110 00:07:22,680 --> 00:07:23,020 Right. 111 00:07:23,020 --> 00:07:27,960 So the code and the other things that we're going to release as part of this class, they're 112 00:07:27,960 --> 00:07:28,560 not production-ready. 113 00:07:29,160 --> 00:07:29,240 Right. 114 00:07:29,520 --> 00:07:36,020 But you can go back, modify them and use them, use it for your test cases and see if they 115 00:07:36,020 --> 00:07:36,820 become viable to you. 116 00:07:37,060 --> 00:07:37,520 All right. 117 00:07:42,580 --> 00:07:47,200 I'll let Madhu introduce the primary visualization platform that we're going to use, the ELK 118 00:07:47,200 --> 00:07:47,380 stack. 119 00:07:47,540 --> 00:07:48,940 How many of you are familiar with Elasticsearch? 120 00:07:49,640 --> 00:07:50,040 ELK? 121 00:07:50,140 --> 00:07:50,440 Oh, good. 122 00:07:50,880 --> 00:07:52,180 He's going to introduce that to you. 123 00:07:52,180 --> 00:07:54,080 And then we can move on to… 124 00:07:54,080 --> 00:07:55,180 This is . 125 00:07:55,700 --> 00:07:56,140 Yeah. 126 00:07:56,540 --> 00:08:03,760 So before that, our primary trainer, our primary speaker for this class, Bharat, he ran into 127 00:08:03,760 --> 00:08:07,660 visa issues like most people who couldn't make it to DEF CON or Black Hat this year. 128 00:08:07,840 --> 00:08:11,360 So he says hi to everyone back from India. 129 00:08:12,560 --> 00:08:14,460 He's an active member of my team. 130 00:08:14,640 --> 00:08:17,140 I head the offensive security team at AppSecco. 131 00:08:17,200 --> 00:08:21,240 He's an active member of the team and he's our primary go-to recon guy. 132 00:08:21,640 --> 00:08:22,080 Right. 133 00:08:22,180 --> 00:08:25,700 And his idea of obtaining information… 134 00:08:25,700 --> 00:08:27,040 And we've done tons of… 135 00:08:27,040 --> 00:08:31,840 I'll probably give you a couple of examples during the talk where we've used very minuscule 136 00:08:31,840 --> 00:08:35,180 amount of information available to us to completely pawn an entire organization. 137 00:08:35,400 --> 00:08:37,160 And we have a couple of test cases like that. 138 00:08:37,700 --> 00:08:38,440 Brilliant stories. 139 00:08:38,680 --> 00:08:39,080 Right. 140 00:08:39,100 --> 00:08:40,780 So I'm going to talk about them as well. 141 00:08:41,180 --> 00:08:45,960 But yeah, his core interest lies in InfraSec, application security and a lot of reconnaissance 142 00:08:45,960 --> 00:08:46,580 work that he does. 143 00:08:47,000 --> 00:08:48,540 And he's done a couple of talks as well. 144 00:08:48,580 --> 00:08:50,860 So he just wanted us to bring this up. 145 00:08:50,960 --> 00:08:51,720 This is Madhu. 146 00:08:51,780 --> 00:08:52,160 Welcome. 147 00:08:52,180 --> 00:08:54,800 So my colleague at AppSec again, he's another part of… 148 00:08:54,800 --> 00:08:56,120 He's another member of my team. 149 00:08:56,340 --> 00:08:56,720 Right. 150 00:08:57,180 --> 00:09:00,220 And I see that my name isn't there so I'm just going to say hi. 151 00:09:01,400 --> 00:09:02,400 So Ria is here. 152 00:09:02,560 --> 00:09:02,940 Right. 153 00:09:02,960 --> 00:09:05,860 So I'm going to be pitching in whenever the opportunity occurs. 154 00:09:06,840 --> 00:09:07,520 Over to you, Madhu. 155 00:09:08,060 --> 00:09:08,720 Thank you. 156 00:09:09,720 --> 00:09:16,160 So as Ria has introduced, most of the stuff we will be trying to focus on recon and the 157 00:09:16,160 --> 00:09:20,160 primary focus of the workshop will be mainly data sets. 158 00:09:20,940 --> 00:09:22,160 That is one of the reasons. 159 00:09:22,160 --> 00:09:23,740 We choose kind of ELK stack. 160 00:09:23,940 --> 00:09:26,460 I think most of you are already familiar with ELK stack as you said. 161 00:09:26,620 --> 00:09:33,180 So ELK is primarily allows three things as ELK, Elasticsearch, Logstash. 162 00:09:33,800 --> 00:09:37,700 So each piece has individual pleasant advantages and disadvantages. 163 00:09:38,320 --> 00:09:42,200 Suppose if your organization have really good data sets like which they have normalized 164 00:09:42,200 --> 00:09:45,180 and put it in JSON, then you don't want to be using Logstash. 165 00:09:45,420 --> 00:09:45,900 Right. 166 00:09:46,160 --> 00:09:50,560 Logstash is kind of normalizing and make sure everything data which you are getting and 167 00:09:50,560 --> 00:09:52,140 send it to Elasticsearch. 168 00:09:52,140 --> 00:09:55,360 Elasticsearch or S3 buckets or whichever the data source output you wanted to send. 169 00:09:55,780 --> 00:10:02,700 And coming to Elasticsearch, Elasticsearch is kind of large NoSQL kind of data store 170 00:10:02,700 --> 00:10:07,960 where you kind of store all the data which is coming from the Logstash or like from other 171 00:10:07,960 --> 00:10:12,640 data sources which will store an index using Elasticsearch. 172 00:10:12,940 --> 00:10:18,140 And the final, the output, whatever we wanted to showcase is we will be using Kibana. 173 00:10:18,400 --> 00:10:20,220 So Kibana is kind of front end. 174 00:10:20,440 --> 00:10:20,920 Using. 175 00:10:20,920 --> 00:10:25,980 I think written in AngularJS which is fancy graphs and the visualization to showcase the 176 00:10:25,980 --> 00:10:26,220 data. 177 00:10:27,080 --> 00:10:31,500 This will make query to Elasticsearch and get the data to be represented in a visual 178 00:10:31,500 --> 00:10:31,840 format. 179 00:10:32,420 --> 00:10:32,480 Okay. 180 00:10:34,200 --> 00:10:36,660 And just to give again one more time. 181 00:10:36,780 --> 00:10:41,980 So we will be going through multiple demonstrations rather than giving hands-on because we couldn't 182 00:10:41,980 --> 00:10:45,300 be able to make sure, give virtualization software now and troubleshoot. 183 00:10:45,600 --> 00:10:49,920 But we will be releasing this VM whatever we are trying to showcase now and you can go 184 00:10:49,920 --> 00:10:50,440 back and try. 185 00:10:50,920 --> 00:10:54,580 So using the steps you can follow or like tweet to us like if you have any questions. 186 00:10:57,020 --> 00:10:57,540 Yeah. 187 00:10:58,540 --> 00:11:04,100 So I'll just quickly highly showcase like how it looks like in the configuration because 188 00:11:04,100 --> 00:11:08,400 this is one of the primary ingredient to set up entire the visualization platform. 189 00:11:08,880 --> 00:11:15,560 So if you see in terms of especially Logstash part, so it has three types of formats. 190 00:11:15,820 --> 00:11:18,120 One is input, filter and output. 191 00:11:18,120 --> 00:11:24,560 output, so input is kind of a plug-in, it supports nearly 50 plus amount of plug-ins, 192 00:11:24,660 --> 00:11:30,920 it can be taken data from sysmon servers like system monitoring, as well as any S3 buckets 193 00:11:30,920 --> 00:11:35,800 or directly file inputs, so in these scenarios which we are going to cover for the three, 194 00:11:35,960 --> 00:11:41,040 we will be taking currently as a file output, but it can be taken from anywhere else, alright. 195 00:11:41,400 --> 00:11:46,820 And similarly filter is one of the key piece why people try to use Logstash, for example 196 00:11:46,820 --> 00:11:52,080 if you have a dataset which contains IP addresses, right, which you wanted to enrich data using 197 00:11:52,080 --> 00:11:57,140 suppose longitude, latitude, which country, where is the region, so filters kind of allows 198 00:11:57,140 --> 00:12:03,580 you to do that, it uses a GOIP database, like by MaxMind, what it does is you say that this 199 00:12:03,580 --> 00:12:07,380 is the field I wanted to enrich, it will go ahead and enrich that data and give you more 200 00:12:07,380 --> 00:12:08,440 granular results. 201 00:12:09,020 --> 00:12:13,240 And the output is kind of decision maker, whether you wanted to send it to Elasticsearch 202 00:12:13,240 --> 00:12:16,540 if you prefer, or your team has really good amount of big data stuff. 203 00:12:16,540 --> 00:12:21,620 You can go ahead and send it to Apache Spark or like Hadoop clusters, and it supports I 204 00:12:21,620 --> 00:12:25,400 think nearly 60 plus plug-ins output, so that you can go ahead and take actions as 205 00:12:25,400 --> 00:12:26,680 well here as well, right. 206 00:12:28,880 --> 00:12:35,560 And this is again one of the piece which is like hanging around, especially if ELK stack 207 00:12:35,560 --> 00:12:41,760 around, so it builds this kind of data shippers, like if you are familiar with network security, 208 00:12:42,160 --> 00:12:46,520 like people use it to send the network switches data, like logs, to a centralized server, 209 00:12:46,540 --> 00:12:47,660 system monitoring server, right. 210 00:12:47,820 --> 00:12:52,040 So beats is kind of a Golang binary, which sits in wherever you wanted to send the data 211 00:12:52,040 --> 00:12:57,400 from, sources, and send it to Elasticsearch or Logstash, right, and it's very lightweight, 212 00:12:57,540 --> 00:13:02,040 the good part about this thing, they kind of integrate it with Kafka, like if you don't 213 00:13:02,040 --> 00:13:05,540 want to lose not even a single log, it will go ahead and send it to a Kafka streaming, 214 00:13:05,740 --> 00:13:11,720 so you can push and pull you like methodology stuff, and the people, if you are most interested 215 00:13:11,720 --> 00:13:15,540 in like packet level understanding, like especially in your organizations, they have released 216 00:13:15,540 --> 00:13:16,520 a packet bit as well. 217 00:13:16,520 --> 00:13:20,580 Like it kind of look at DNS queries and network monitoring as well, each packet level. 218 00:13:22,900 --> 00:13:28,680 And we are just gonna skip this section, like not going very deep into ELK stack, if you 219 00:13:28,680 --> 00:13:33,660 wanted to go back and refer like more interested in area, so we kind of made a quick git book 220 00:13:33,660 --> 00:13:39,340 to deep dive into ELK stack, and again it's in the reference section, I think my internet 221 00:13:39,340 --> 00:13:40,040 is super slow. 222 00:13:40,840 --> 00:13:46,280 So I'll just update this anyway, whenever we update, the URL is here. 223 00:13:46,280 --> 00:13:48,980 At the end, appsecure.com slash book slash ELK workshop. 224 00:13:49,300 --> 00:13:51,500 So if you want to deep dive and use that stuff. 225 00:13:52,960 --> 00:14:01,180 So the second phase is alerting, while we are storing huge amount of datasets, the key 226 00:14:01,180 --> 00:14:05,840 piece is we can't keep looking at the data, because it's a human job to make mistakes, 227 00:14:06,060 --> 00:14:09,480 like you may not miss, like look at everything, you may miss out something. 228 00:14:09,880 --> 00:14:14,460 So alerting is kind of enables, like rather than keep looking at whatever you look interesting, 229 00:14:15,360 --> 00:14:16,260 you can go ahead and save it. 230 00:14:16,280 --> 00:14:18,600 You can send it to some other place, based on certain alert queries. 231 00:14:19,520 --> 00:14:20,980 How many of you Slack here? 232 00:14:21,760 --> 00:14:22,780 Who doesn't, right? 233 00:14:23,620 --> 00:14:29,500 So Slack is kind of, the alerting we will be using here is ElastAlert, again it's, 234 00:14:29,500 --> 00:14:34,380 as title said, we will be using most of the open source stuff, ElastAlert is an open source 235 00:14:34,380 --> 00:14:40,020 project by ELP, so where it completely work with ELK stack, to query the data using REST 236 00:14:40,020 --> 00:14:44,600 API, and send back the data based on the queries which you made to the ELK stack alerting 237 00:14:44,600 --> 00:14:45,500 system, right? 238 00:14:46,280 --> 00:14:56,060 And the very important features it support, at the end you can see, fine, the text, cool, 239 00:14:56,510 --> 00:15:08,440 a little bigger, yeah, I think I felt the same, a little better, so if you see this, 240 00:15:10,240 --> 00:15:15,580 this is a very simple rule, it looks like, it is, we will be using in the coming section, 241 00:15:15,580 --> 00:15:21,120 in the scenario, what it does is, it will keep looking for the logs, and if it matches 242 00:15:21,120 --> 00:15:25,700 any of your organization certificate, which is generated a TLS certificate, using any 243 00:15:25,700 --> 00:15:30,480 let's encrypt, or like your proprietary certificate authorities, it will go ahead and send an 244 00:15:30,480 --> 00:15:31,400 alert, right? 245 00:15:31,460 --> 00:15:35,280 It's kind of keep monitoring for our new certificate updates, and to track inventory 246 00:15:35,280 --> 00:15:40,140 of certificates as well, so this is a simple filter, what we are doing is, we are looking 247 00:15:40,140 --> 00:15:44,620 for the index to receive the logs, and if it matches in number of events, based on the 248 00:15:44,620 --> 00:15:44,840 alert. 249 00:15:45,580 --> 00:15:50,460 So, we go ahead and look for the query, which we will be showing in coming section, and 250 00:15:50,460 --> 00:15:51,920 it will send a slack alert, right? 251 00:15:52,200 --> 00:15:56,680 Similarly, it can be many other, but it's kind of more integrated with Elasticsearch, 252 00:15:56,820 --> 00:16:01,760 so we have chosen, and if you have like a really good fancy other stuff, it is feel 253 00:16:01,760 --> 00:16:06,000 free to use, because the open source, we have chosen this, people might be using Splunk, 254 00:16:06,000 --> 00:16:09,640 ArcSight, and other ways, they can go and use as well, same things. 255 00:16:11,260 --> 00:16:15,540 And it has different types of ruleset supports, like if you wanted to configure based on the 256 00:16:15,540 --> 00:16:20,240 ruleset, and other types, so it can send you to email, SNS, JIRA tickets, to raise it 257 00:16:20,240 --> 00:16:22,040 to security team, and talk to them, developers. 258 00:16:24,360 --> 00:16:30,640 So I'll go ahead and move into hands-on section, if you have any questions, or if you see anything 259 00:16:30,640 --> 00:16:41,720 like missing, or like some stuff, please go ahead and ask, right away, font, fine, back, 260 00:16:42,520 --> 00:16:43,220 looks fine. 261 00:16:45,540 --> 00:16:45,760 Cool. 262 00:16:47,800 --> 00:16:53,820 So we have set up an ELP stack already in this virtual machine, pre-configured using 263 00:16:53,820 --> 00:16:58,080 Ansible Playbook, which we will be again giving that as well, like if you wanted to 264 00:16:58,080 --> 00:16:58,880 go back and set it up. 265 00:17:01,360 --> 00:17:03,220 So I'll quickly show you the configuration. 266 00:17:05,420 --> 00:17:05,820 Okay. 267 00:17:11,180 --> 00:17:11,580 Okay. 268 00:17:18,580 --> 00:17:20,940 So this is an Elasticsearch configuration. 269 00:17:21,320 --> 00:17:25,800 So what we are trying to say here is, we have created a new cluster, saying that Elastic 270 00:17:25,800 --> 00:17:31,080 stack, and we created a one node, because for the workshop, we're just using one machine. 271 00:17:31,300 --> 00:17:32,500 If you are storing like, sorry. 272 00:17:33,540 --> 00:17:34,140 Oh, okay. 273 00:17:37,280 --> 00:17:37,720 Okay. 274 00:17:38,340 --> 00:17:39,360 Black is much better. 275 00:17:39,580 --> 00:17:39,680 Okay. 276 00:17:40,740 --> 00:17:41,180 Okay. 277 00:17:41,340 --> 00:17:41,560 Okay. 278 00:17:41,580 --> 00:17:41,800 Okay. 279 00:17:41,800 --> 00:17:41,860 Okay. 280 00:17:41,880 --> 00:17:41,940 Okay. 281 00:17:41,940 --> 00:17:41,960 Great. 282 00:17:43,160 --> 00:17:44,380 It's black on the background. 283 00:17:48,060 --> 00:17:49,060 I'll just zoom in. 284 00:17:49,880 --> 00:17:55,100 So the cluster name, if you wanted to run huge datasets, it may be better to use clustering 285 00:17:55,100 --> 00:17:56,180 mode and with different nodes. 286 00:17:56,980 --> 00:17:59,120 And this is like a very basic configuration. 287 00:17:59,540 --> 00:18:03,880 And one thing we are trying to put is, most of you might find in Shodan searches, if you 288 00:18:03,880 --> 00:18:04,300 use Shodan. 289 00:18:04,460 --> 00:18:06,800 Like Elasticsearch doesn't have, by default, authentication. 290 00:18:07,140 --> 00:18:10,660 If you put 0.0.0 here, anyone can access your cluster out there. 291 00:18:10,740 --> 00:18:11,560 Basically, your data is there. 292 00:18:11,580 --> 00:18:15,680 out in the internet so we can afford in that part and by default it listens on 293 00:18:15,680 --> 00:18:20,900 9200 port and that's it so this is very high level basic configuration to work 294 00:18:20,900 --> 00:18:28,420 with elastic stack and you can just make call request to localhost 9200 you can 295 00:18:28,420 --> 00:18:32,500 see that the cluster is up and running and we can able to send and receive the 296 00:18:32,500 --> 00:18:40,020 data from the cluster API using that 9200 port right and once we have 297 00:18:40,020 --> 00:18:44,980 set up the cluster so we have a place and data store like a to receive or send 298 00:18:44,980 --> 00:18:49,520 it back so now we have to get the data right so getting the data part we will 299 00:18:49,520 --> 00:18:53,140 be using logstash as I said like I'll quickly show the logstash configuration 300 00:18:53,140 --> 00:18:56,640 as well so that you will able to get idea of how the logs are coming in place 301 00:18:56,640 --> 00:18:58,460 and how it will exchange 302 00:19:10,160 --> 00:19:12,540 any questions like til elastic search part 303 00:19:12,540 --> 00:19:14,680 because am I going too fast or like 304 00:19:14,680 --> 00:19:16,460 because people will give me feedback 305 00:19:16,460 --> 00:19:17,420 saying that I go to fast 306 00:19:20,200 --> 00:19:22,980 so I am like two ass please let me know 307 00:19:22,980 --> 00:19:25,720 I'll make it slow down and let it be 308 00:19:25,720 --> 00:19:30,380 clear so in this case if you see I'll 309 00:19:30,380 --> 00:19:34,480 just make it so this is an input 310 00:19:34,480 --> 00:19:37,640 configuration so as I said logstash has 311 00:19:37,640 --> 00:19:39,200 three phases one is input all 312 00:19:39,200 --> 00:19:40,000 configuration one is driving data is 313 00:19:40,000 --> 00:19:44,820 and output and once you have understand these basic stuff I think you can go 314 00:19:44,820 --> 00:19:48,940 ahead and not only the data which we are showcasing you can explore any data 315 00:19:48,940 --> 00:19:54,260 it's at the end like a passing that data and making sure that getting some sense 316 00:19:54,260 --> 00:19:58,040 out of the data right visualizations so here what we are doing is we are 317 00:19:58,040 --> 00:20:02,920 listening on port 5 0 double 4 for the lock stash so anyone can able to reach 318 00:20:02,920 --> 00:20:06,520 5 0 double 4 of this much virtual machine in able to send data to the 319 00:20:06,520 --> 00:20:11,660 beats sorry the lock stash so if you wanted to use SSL search like for this 320 00:20:11,660 --> 00:20:16,040 to make sure this is over TLS you can able to configure that and it is over 321 00:20:16,040 --> 00:20:25,500 TLS so once we receive we can apply filters so for this we are using two 322 00:20:25,500 --> 00:20:31,380 different scenarios the lock sets one is search stream as Riyaz mentioned so 323 00:20:31,380 --> 00:20:36,180 which is kind of mostly data coming from the certificate transparency locks 324 00:20:36,180 --> 00:20:36,500 of 325 00:20:36,500 --> 00:20:40,860 we are currently picking up from CRT data such I'll just quickly show you how 326 00:20:40,860 --> 00:20:44,860 the locks looks like so whenever it matches saying that search stream in the 327 00:20:44,860 --> 00:20:48,760 tags like we tag the data whenever it is sending it to lock stash it will go 328 00:20:48,760 --> 00:20:51,940 ahead and perform these filters currently there is no filter because we 329 00:20:51,940 --> 00:20:55,780 kind of directly getting Jason and if you have different kind of data sets 330 00:20:55,780 --> 00:21:00,580 this filters allows us to pass the data so you can go back and check the lock 331 00:21:00,580 --> 00:21:05,380 stash plug-in sub filter so it has huge amount of data filterization so 332 00:21:06,500 --> 00:21:06,680 auto- fogging does not give us reading error so we're the only option. 333 00:21:06,680 --> 00:21:07,040 kunna on here for error validation so we can screen the data so if you look 334 00:21:07,040 --> 00:21:11,380 at for the same thing like scans a go data the Funders we will be using 335 00:21:11,380 --> 00:21:15,380 gee crime paypal aspect because kids are using code data has IP addresses coming 336 00:21:15,380 --> 00:21:19,160 are like a no my name's so what we are trying to do is rather than going and 337 00:21:19,160 --> 00:21:23,240 passing directly IP address and domain names we resolving them and we are 338 00:21:23,240 --> 00:21:26,540 trying to capture their longitude latitude as well as the domain 339 00:21:26,540 --> 00:21:30,400 information as well and again sending it back to elastics it so that we can able 340 00:21:36,500 --> 00:21:40,820 so we kind of sending everything currently to elastic search which is 341 00:21:40,820 --> 00:21:45,580 again currently running in localhost 9 2 double 0 so once the data is receiving 342 00:21:45,580 --> 00:21:50,820 and performed the filtration we won't stays in the elastic search so if you 343 00:21:50,820 --> 00:21:55,120 see the index of index is automatically created based on every day so you will 344 00:21:55,120 --> 00:22:03,620 create different indexes every day to search back so that is about mostly 345 00:22:03,620 --> 00:22:08,140 cluster configuration we'll just go back and look at the data sets so that we 346 00:22:08,140 --> 00:22:19,060 can able to see how it's going to be parsing into the ELK stack so this is 347 00:22:19,060 --> 00:22:24,360 the one which we are talking about the previously the CRT-SH is the one 348 00:22:24,360 --> 00:22:28,260 which we are taking the logs the certificate transparency logs we will be 349 00:22:28,260 --> 00:22:32,720 making query using the postgres they have a postgres interface and if you 350 00:22:32,720 --> 00:22:33,600 wanted to run like a 351 00:22:33,600 --> 00:22:36,780 huge amount of queries they kind of block that you can request a different 352 00:22:36,780 --> 00:22:41,040 credentials they kind of give you like postgres guest admin credentials so you 353 00:22:41,040 --> 00:22:45,140 can have go and query and perform some research on top of like a certificate 354 00:22:45,140 --> 00:22:52,200 transparency logs I think I'll just do a quick check switch off my monitor to 355 00:22:52,200 --> 00:22:53,340 make sure my internet is working 356 00:23:17,620 --> 00:23:26,300 so it's working so I'll just go and go and we're going to see what's going on 357 00:23:26,300 --> 00:23:30,060 now we go back to the selenium you can see that it has been working and 358 00:23:30,060 --> 00:23:31,980 it's working so it's working that's great that's great that's great that's great so 359 00:23:31,980 --> 00:23:37,620 yeah so i'll just go ahead and make a simple query uh to showcase how the data looks like 360 00:23:37,620 --> 00:23:44,380 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 361 00:23:44,380 --> 00:23:49,940 to make sure like i'm increasing the font always so if i miss out like please let me know so 362 00:23:49,940 --> 00:23:55,120 currently it supports uh different kind of queries uh if you use their cli especially the postgres 363 00:23:55,120 --> 00:24:00,900 uh the interface it's kind of you uh sql like interface to query the database but in web you 364 00:24:00,900 --> 00:24:04,960 kind of use like percentage to say that this is a wild card and a regular expression type 365 00:24:06,560 --> 00:24:09,460 so i'll go ahead and give one of the name like 366 00:24:10,940 --> 00:24:14,160 that's kind of okay like i wanted to give someone anyone wanted to participate 367 00:24:14,160 --> 00:24:15,680 and give one of the domain 368 00:24:20,160 --> 00:24:26,940 dot com okay so percentage here is like a wild card so it kind of gets all the data 369 00:24:27,620 --> 00:24:30,020 and again i think looks like my internet is super slow 370 00:24:30,480 --> 00:24:30,880 yeah 371 00:24:30,900 --> 00:24:38,740 so if you see in the the identity field uh so this log that whenever it uh creates a 372 00:24:38,740 --> 00:24:43,220 certificate and as well as the background has like a subdomain uh for this like they have 373 00:24:43,220 --> 00:24:49,740 created a certificate called a dot background and if you say that uh blog.buckrow.com uh which 374 00:24:49,740 --> 00:24:54,340 is again generated by dg cert like you can see the who is the certificate authority as well so 375 00:24:54,340 --> 00:25:00,540 you can go ahead and use this kind of uh data to find subdomains as well right as a bounty hunter 376 00:25:00,900 --> 00:25:05,080 they want like mainly look at like if you have given a domain what are the subdomain so that they can find 377 00:25:05,080 --> 00:25:10,400 any more issues uh in terms of a possible attack surface right uh if you in terms of pen tester 378 00:25:10,400 --> 00:25:15,000 point of view it will apply similarly like if you have given a target it may not be the same way to 379 00:25:15,000 --> 00:25:20,920 go right you might find other ways to uh let into the target so this is one of the good places to 380 00:25:20,920 --> 00:25:25,240 look at because most of the people don't want to make their servers as applications running http 381 00:25:25,240 --> 00:25:30,400 HTTP. So, they kind of generate a TLS certificate. As per the regulations or standards, they 382 00:25:30,400 --> 00:25:34,820 have to be available in the certification transparency logs. So, if you don't want it 383 00:25:34,820 --> 00:25:39,500 to be here as a defense point of view, so you have to run your PKA, public infrastructure 384 00:25:39,500 --> 00:25:46,960 for yourself. Right. Yeah. So, I'll be showing the output, the same output in a JSON format, 385 00:25:46,960 --> 00:26:02,580 how it looks like. So, this is how it looks like, but I'll try to make it, uh, uh, like 386 00:26:02,580 --> 00:26:16,300 it looks simpler. Uh, I'll just, so I kind of ran JQ. 387 00:26:16,540 --> 00:26:16,940 Okay. 388 00:26:16,960 --> 00:26:24,720 Uh, JQ is like JSON parsing stuff tool. Yeah. If you see from one certificate, basically 389 00:26:24,720 --> 00:26:30,440 it starts from the data and, uh, it has like the certificate link, uh, the information 390 00:26:30,440 --> 00:26:35,480 about extensions, authority, and each and every information related to the certificate 391 00:26:35,480 --> 00:26:41,140 which is generated from the transparency log. So, this is the log we wanted to pass it 392 00:26:41,140 --> 00:26:46,200 to the, uh, ELK stack. So, we have already pretty, uh, good JSON. So, we can have directly 393 00:26:46,200 --> 00:26:46,800 use that. 394 00:26:46,960 --> 00:26:50,940 Right. To send it to, uh, Elasticsearch and Logstash. So, if you have seen, like, uh, 395 00:26:51,020 --> 00:26:54,940 some type of other data sets, like not for this scenario, maybe you can have use some 396 00:26:54,940 --> 00:27:00,380 other filters, uh, to make it, uh, properly parsed into, uh, Logstash. So, you can have 397 00:27:00,380 --> 00:27:05,080 see, uh, which domains they have, uh, updated the certificates as well. Like, uh, Let's 398 00:27:05,080 --> 00:27:09,380 Encrypt recently started supporting wildcard domains. So, people started using rather than 399 00:27:09,380 --> 00:27:13,960 disclosing their subdomains. Right. If you rather than going and, uh, making a HTTPS 400 00:27:14,660 --> 00:27:16,880 certificate for blog.buckrow.com. 401 00:27:16,960 --> 00:27:21,500 The kind of putsard or buckrow.com. But it has, again, its own negatives. Uh, disadvantages 402 00:27:21,500 --> 00:27:26,620 as well. So, this kind of discloses some of the information, uh, which kind of use, 403 00:27:26,760 --> 00:27:32,440 uh, the visibility for the attackers point of view as well. So, we are, uh, parsing 404 00:27:32,440 --> 00:27:33,260 these logs again. 405 00:27:35,880 --> 00:27:36,280 . 406 00:27:37,140 --> 00:27:37,540 . 407 00:27:39,540 --> 00:27:39,940 . 408 00:27:39,940 --> 00:27:39,980 . 409 00:27:39,980 --> 00:27:40,120 . 410 00:27:40,120 --> 00:27:40,440 . 411 00:27:46,120 --> 00:27:51,580 So, as I said in the beginning, we will be using beats, beats is kind of data shipper, 412 00:27:51,720 --> 00:27:57,380 which will help you to send those logs from one location to the ELK stack, so if you see 413 00:27:57,380 --> 00:28:04,880 here the configuration, yeah, so we kind of have a different kind of inputs, we are tagged 414 00:28:04,880 --> 00:28:08,660 here saying that search stream, so that the log will, whenever it reads, it will go and 415 00:28:08,660 --> 00:28:12,080 make sure if it matches search stream, then it will perform those filter patterns. 416 00:28:12,400 --> 00:28:17,440 And similarly we are using scanSyvo for another dataset, we will be looking at the next scenario, 417 00:28:17,720 --> 00:28:22,700 so we will be using tags called scanSyvo, so the output will be ending up in the local 418 00:28:22,700 --> 00:28:25,660 host 5044, which is the log stash running place. 419 00:28:31,700 --> 00:28:38,580 So once we have logs and they receive everything, we kind of use Kibana, Kibana is like, looks 420 00:28:38,580 --> 00:28:44,500 like this, it's a fancy dashboard using AngularJS, so what it does is, whenever we made a query 421 00:28:44,500 --> 00:28:50,820 using curl localhost 9200, so this is similarly, it will talk to the Elasticsearch API and gets 422 00:28:50,820 --> 00:28:55,980 the data back, and try to put it in a visualized format, like graphs like similarly like this, 423 00:28:56,040 --> 00:28:56,860 some other. 424 00:29:01,280 --> 00:29:07,260 So I will quickly cover how to use this Kibana in the coming section, not now, I am going 425 00:29:07,260 --> 00:29:08,120 to skip for this now. 426 00:29:08,580 --> 00:29:13,740 Because if you understand this, it kind of helps you to put the data in a proper format, 427 00:29:13,940 --> 00:29:17,240 and showcase you to answer some kind of questions, right. 428 00:29:19,820 --> 00:29:25,400 So we will get started with our first scenario, so it's kind of now basically I get involved 429 00:29:25,400 --> 00:29:30,140 into ELK101, I covered, so that you can able to get and use your own datasets if you have 430 00:29:30,140 --> 00:29:31,460 any, apart from the scenarios. 431 00:29:32,380 --> 00:29:38,040 So in the first scenario we are kind of looking at mainly certificate transparency logs, and 432 00:29:38,040 --> 00:29:42,380 we wanted to monitor for an organization, if any new certificate generated for their 433 00:29:42,380 --> 00:29:48,600 domains, or subdomains, right, and for this scenario what we have done is, the one thing 434 00:29:48,600 --> 00:29:54,600 as we stated in the abstract, saying that in real time, so we kind of not did for this, 435 00:29:54,600 --> 00:29:59,440 the workshop, because it's kind of taking up an hour to get that certificate into the 436 00:29:59,440 --> 00:30:02,660 log, in the certificate transparency log, whenever it generates a certificate. 437 00:30:03,440 --> 00:30:07,940 So what we have done is, we have already created that previously certificates, and we took 438 00:30:08,040 --> 00:30:12,400 the data samples, but we kind of show you how to run your own server, as well as how 439 00:30:12,400 --> 00:30:14,960 we can get those datasets as well to the JSON, right. 440 00:30:20,880 --> 00:30:25,540 So you can go ahead and read more about like the details of certificate transparency log, 441 00:30:25,580 --> 00:30:28,940 how it works and everything, they have documented each and everything here. 442 00:30:30,280 --> 00:30:37,180 So we will be mainly using the certificate transparency logs, using a service which we 443 00:30:37,180 --> 00:30:40,080 are running, which is by Calidoc, I will just showcase. 444 00:30:44,420 --> 00:30:50,780 So there is a script we have created, a custom script, what it does is, it will go ahead 445 00:30:50,780 --> 00:30:55,380 and look for the certificates, any generated by the service, which we are running, and 446 00:30:55,380 --> 00:30:59,360 it will go ahead and write into a JSON format, so that we can directly pass into the ELK 447 00:30:59,360 --> 00:30:59,980 stack, right. 448 00:31:20,960 --> 00:31:27,380 So this is a very simple Python code, what it does is, should I zoom in? 449 00:31:32,260 --> 00:31:36,560 So what it does is, there is a docker container to start the services. 450 00:31:36,560 --> 00:31:41,780 So this is for the Calidoc server, which will keep listening for the certificates which 451 00:31:41,780 --> 00:31:45,520 are generated through the certificate transparency logs from CRT.sh. 452 00:31:45,760 --> 00:31:50,380 So once it writes, it's listening on the local host 4000 server, the docker container. 453 00:31:50,680 --> 00:31:55,580 So it will go ahead and make a WebSocket call and keep writing those data into the 454 00:31:55,580 --> 00:31:57,000 JSON file, okay. 455 00:31:57,400 --> 00:32:00,480 So that JSON file looks like what we have seen similar. 456 00:32:03,540 --> 00:32:06,080 The one which we have seen using JQ. 457 00:32:06,080 --> 00:32:07,820 So this is the output from that service. 458 00:32:08,100 --> 00:32:12,920 So if you wanted to go back and try, basically what we have to do is, you just run the search 459 00:32:12,920 --> 00:32:18,420 stream server, which is a docker container, and we have created a documentation in readme 460 00:32:18,420 --> 00:32:19,300 how to run that service. 461 00:32:19,780 --> 00:32:24,520 So once you have run the service, you can have started a server to listen for all the 462 00:32:24,520 --> 00:32:29,220 certificates transparency logs, then you can have used the client to store and send it 463 00:32:29,220 --> 00:32:30,200 back to the log stash. 464 00:32:30,460 --> 00:32:30,900 Right. 465 00:32:31,940 --> 00:32:32,380 Okay. 466 00:32:33,020 --> 00:32:33,460 Okay. 467 00:32:39,260 --> 00:32:39,840 So that's the docker server. 468 00:32:40,920 --> 00:32:47,840 So that you could, that you could set that server on multiple targets to just listen 469 00:32:47,840 --> 00:32:53,160 for when there's changes for let's say, reading from web apps. 470 00:32:54,140 --> 00:32:58,280 You mean to say different kind of transparency logs states, like places? 471 00:32:58,820 --> 00:33:03,340 Well, so that one docker server, is it, would you only aim it at bug crowd and it would 472 00:33:03,340 --> 00:33:04,200 monitor their docker? 473 00:33:04,200 --> 00:33:04,560 No, no, no. 474 00:33:05,220 --> 00:33:05,740 Yeah. 475 00:33:05,880 --> 00:33:09,620 To answer your question, so that looks for all the certificate transparency logs which 476 00:33:09,620 --> 00:33:10,000 are generated. 477 00:33:10,140 --> 00:33:11,200 Means it's throughout the internet. 478 00:33:11,480 --> 00:33:11,620 Yeah. 479 00:33:12,480 --> 00:33:16,060 It's not for the only specific to the domain, that is what your question meant. 480 00:33:16,140 --> 00:33:20,120 It's not for saying that only bugcrowd.com or defcon.org, it's kind of look for the 481 00:33:20,120 --> 00:33:21,440 internet by, like, completely. 482 00:33:22,400 --> 00:33:27,560 Certificate transparency logs essentially get populated whenever you register a new 483 00:33:27,560 --> 00:33:28,640 SSL Taylor certificate. 484 00:33:28,960 --> 00:33:34,540 When you buy a certificate, the participating CA will send information to the certificate. 485 00:33:36,120 --> 00:33:41,220 That log is what the search stream server reads. 486 00:33:41,660 --> 00:33:44,480 So every single certificate that is issued on the internet. 487 00:33:45,780 --> 00:33:47,520 That was the example that we used. 488 00:33:47,700 --> 00:33:48,280 Kind of. 489 00:33:49,440 --> 00:33:52,400 Well, that was the example that we used from the . 490 00:33:53,080 --> 00:33:53,600 Right? 491 00:33:53,740 --> 00:33:56,540 is an interface to search through certificate logs. 492 00:33:56,940 --> 00:33:57,460 Right? 493 00:33:57,560 --> 00:34:00,200 And it's a gold mine for a data. 494 00:34:00,400 --> 00:34:01,500 It was down until yesterday. 495 00:34:01,760 --> 00:34:02,140 Yeah. 496 00:34:02,260 --> 00:34:02,560 . 497 00:34:03,140 --> 00:34:04,540 So we kind of set it up like that. 498 00:34:04,560 --> 00:34:08,540 So that is the reason the server docker container, rather than depending on them, what it 499 00:34:08,540 --> 00:34:10,120 does is it is not only look for . 500 00:34:10,820 --> 00:34:12,840 It's kind of look at Google transparency log. 501 00:34:12,960 --> 00:34:15,280 Facebook has similarly a certificate transparency log. 502 00:34:15,380 --> 00:34:17,480 So it's kind of different places to look. 503 00:34:17,580 --> 00:34:19,500 If one server down, it's kind of . 504 00:34:19,500 --> 00:34:21,940 It will go and talk to the another one and get the logs. 505 00:34:22,240 --> 00:34:27,100 The interesting bit is that if you have internal applications, not visible on the internet, 506 00:34:27,360 --> 00:34:27,940 right? 507 00:34:28,000 --> 00:34:31,840 Corporate applications within an environment that are not visible to the internet. 508 00:34:32,280 --> 00:34:32,720 . 509 00:34:33,300 --> 00:34:33,740 . 510 00:35:04,560 --> 00:35:05,140 . 511 00:35:05,140 --> 00:35:08,380 They don't give you who is information, the certificate? 512 00:35:08,800 --> 00:35:08,960 . 513 00:35:09,700 --> 00:35:10,340 . 514 00:35:12,620 --> 00:35:13,260 . 515 00:35:13,260 --> 00:35:13,340 . 516 00:35:14,200 --> 00:35:14,840 . 517 00:35:14,840 --> 00:35:14,900 . 518 00:35:14,900 --> 00:35:16,120 . 519 00:35:17,920 --> 00:35:17,960 . 520 00:35:19,240 --> 00:35:19,280 . 521 00:35:19,460 --> 00:35:19,500 . 522 00:35:22,060 --> 00:35:22,100 . 523 00:35:29,160 --> 00:35:29,200 . 524 00:35:29,300 --> 00:35:29,340 . 525 00:35:29,340 --> 00:35:29,360 . 526 00:35:29,360 --> 00:35:29,380 . 527 00:35:29,380 --> 00:35:29,400 . 528 00:35:29,400 --> 00:35:29,420 . 529 00:35:29,420 --> 00:35:29,440 . 530 00:35:29,440 --> 00:35:29,460 . 531 00:35:29,460 --> 00:35:29,480 . 532 00:35:29,480 --> 00:35:29,500 . 533 00:35:29,680 --> 00:35:29,720 . 534 00:35:29,720 --> 00:35:29,740 . 535 00:35:29,740 --> 00:35:29,760 . 536 00:35:29,760 --> 00:35:29,800 . 537 00:35:29,800 --> 00:35:29,820 . 538 00:35:29,900 --> 00:35:29,940 . 539 00:35:29,940 --> 00:35:30,020 . 540 00:35:30,960 --> 00:35:31,000 . 541 00:35:31,000 --> 00:35:31,020 . 542 00:35:31,020 --> 00:35:35,980 so that is the one verification another way is dns challenge so the two ways they will 543 00:35:35,980 --> 00:35:43,440 but the interesting thing right with certificate transparency logs is the 544 00:35:43,440 --> 00:35:48,200 the reason it was created because a lot of cas in the past have been hacked 545 00:36:05,540 --> 00:36:08,140 yeah it's kind of uh showcasing your posture 546 00:36:11,460 --> 00:36:17,900 yeah so as i said like previously it's not only crt.sh it's kind of looks for 547 00:36:17,900 --> 00:36:18,120 different 548 00:36:18,200 --> 00:36:23,420 places the cali doc server which the docker container one uh so it is like facebook also 549 00:36:23,420 --> 00:36:27,740 runs their own certificate transparency log program like if you can give same buckroot.com 550 00:36:27,740 --> 00:36:35,460 here so it's kind of go ahead and perform the same crt.sh like you can see like all the sub 551 00:36:35,460 --> 00:36:39,220 domains which are related to buckroot which are generated and all the details as well 552 00:36:39,220 --> 00:36:43,760 like it's not only one server like one people maintain so google has their own as well 553 00:36:43,760 --> 00:36:47,840 similarly and i think we have put it in the references section where you can go back and 554 00:36:47,840 --> 00:36:48,180 read more 555 00:36:48,200 --> 00:36:53,240 about it and use different places uh but in terms of two hours workshop we couldn't have not showing 556 00:36:53,240 --> 00:37:02,760 all the stuff uh yeah sorry for that cool uh so it's kind of like once we have got the data like 557 00:37:02,760 --> 00:37:05,000 as you have seen like the search stream 558 00:37:11,500 --> 00:37:12,540 so sorry 559 00:37:13,720 --> 00:37:16,340 how often does that service check-in 560 00:37:17,000 --> 00:37:18,180 uh which is the service check-in 561 00:37:18,200 --> 00:37:18,400 service 562 00:37:20,060 --> 00:37:25,440 okay so this will be keep looking for the certificates but the time it is taking uh when 563 00:37:25,440 --> 00:37:30,040 we did the demonstration like to get the certificate can have took like 15 to 20 minutes 564 00:37:30,520 --> 00:37:35,260 to receive the certificate to the logs but uh the facebook has really interesting features 565 00:37:35,260 --> 00:37:39,100 uh where you can see that you have a domain you can go ahead and subscribe to that domain 566 00:37:39,100 --> 00:37:43,240 whenever you get new certificate for any subdomains of the domain also you'll get a mail 567 00:37:43,240 --> 00:37:48,180 alert so that you can make sure that there is a uh that our subdomains are captured and if you 568 00:37:48,200 --> 00:37:53,340 someone creates in your organization without your uh uh notification so then you can have knows that 569 00:37:53,340 --> 00:37:58,320 there is a certificate generated someone has created a uh subdomain or something else so if 570 00:37:58,320 --> 00:38:02,000 you go here facebook they have a subscription you can go ahead and create a subscription 571 00:38:02,000 --> 00:38:05,500 based on the domain they kind of go ahead and send that uh the email 572 00:38:10,760 --> 00:38:16,640 so once we have got the data so we kind of currently already sent the data to kibana uh which 573 00:38:16,640 --> 00:38:17,780 sorry elastic search 574 00:38:18,200 --> 00:38:23,160 so kibana is a front-end uh which will go ahead and query that and get back the data right so 575 00:38:24,160 --> 00:38:30,460 if you see here uh we kind of using attacks to differentiate currently 576 00:38:33,520 --> 00:38:34,480 just refresh 577 00:38:36,700 --> 00:38:42,380 so we are uh have like a different data logs uh because we for this next scenario also we already 578 00:38:42,380 --> 00:38:47,220 imported because of the time intention uh so you can see those logs coming in here uh whenever you 579 00:38:47,220 --> 00:38:48,000 get the alerts 580 00:38:48,200 --> 00:38:53,100 are like whichever generated from the certificate transfer in silos so you can use this uh the 581 00:38:53,100 --> 00:38:58,580 filters especially in kibana to query those are to make it granular to whatever the results which we 582 00:38:58,580 --> 00:39:02,780 wanted to see because it looks for the entire world right internet so we don't want to look for 583 00:39:02,780 --> 00:39:08,000 entire internet this can be done in two ways uh the best way to do this may be at lockstash level 584 00:39:08,500 --> 00:39:13,060 you can put tag saying that if matches to our domain then only send it to elastic search so 585 00:39:13,060 --> 00:39:17,460 that you kind of reducing your amount of data sets and you can easy to make it passing another stuff 586 00:39:18,200 --> 00:39:23,920 if you miss out there you can have used Kibana filters to do that as well so I 587 00:39:23,920 --> 00:39:29,200 go ahead and apply the tags saying that make sure I wanted to see loss again I 588 00:39:29,200 --> 00:39:34,720 link this upon for that so tags is I am looking for such stream locks only so as 589 00:39:34,720 --> 00:39:38,220 we used in file with saying the tagging feature so we can have leverage that to 590 00:39:38,220 --> 00:39:42,220 use filtering so we using tagging to make sure only look for the certificate 591 00:39:42,220 --> 00:39:47,340 transference logs now so whenever you apply filter like you see 11,000 hits 592 00:39:47,340 --> 00:39:50,960 now you can see one thousand and two hundred and twenty seven right it's kind 593 00:39:50,960 --> 00:39:58,860 of filter down to the particular logs which you wanted to see in Kibana and if 594 00:39:58,860 --> 00:40:03,440 you see the example JSON document like that stores in a JSON format it's kind 595 00:40:03,440 --> 00:40:07,080 of passes for you then tag Jason I'll increase the font 596 00:40:18,420 --> 00:40:23,800 it's super slow because it's a basic search and Nordstrom Java psychiates in 597 00:40:23,800 --> 00:40:27,520 that factory so if you see that Jason it's kind of 598 00:40:27,520 --> 00:40:31,440 automatically passes the Jason for view fields so you can use like a key value 599 00:40:31,440 --> 00:40:35,560 pets queries like whenever you want to became a case as well so it will pass 600 00:40:35,560 --> 00:40:40,080 under Jason which are the key chain data key chain and all the domain names 601 00:40:40,080 --> 00:40:44,360 which are part of this like as I said it looks for all the domains throw out the 602 00:40:47,920 --> 00:40:54,900 so also it looks for which kind of uh the digital signature and who is the owner like let's encrypt 603 00:40:54,900 --> 00:41:00,260 or dizzy uh dizzy cert or whoever it is created and the source name as i said it kind of looks 604 00:41:00,260 --> 00:41:04,880 for different data sources so one is google so we are kind of getting from google organ to the 605 00:41:04,880 --> 00:41:09,840 natin logs like the log which is coming from the certificate transference log and this is the log 606 00:41:09,840 --> 00:41:14,600 entry looks like so this is like pretty similar to what we have seen in the json but it's kind 607 00:41:14,600 --> 00:41:24,820 of fast uh structured way so that we can able to query i'll reduce it uh so now what uh is main 608 00:41:24,820 --> 00:41:29,680 interesting stuff here is once we have captured the data we have identified the data source 609 00:41:29,680 --> 00:41:35,140 now we have placed the data which is in our visualization platform uh the third the final 610 00:41:35,140 --> 00:41:40,380 thing is interesting to look to us is uh querying the data sets and making sure taking certain 611 00:41:40,380 --> 00:41:44,260 actions on top of it right so as i explained in the beginning 612 00:41:44,260 --> 00:41:44,500 you 613 00:41:44,600 --> 00:41:49,920 we will be using elast alert uh so we kind of created a last alert rule uh which i'll again show 614 00:41:49,920 --> 00:42:03,460 you so it looks similar to this so whenever you see a new certificate uh for this uh this looks 615 00:42:03,460 --> 00:42:07,900 for the particular file beat index because the index if you see in the kibana uh 616 00:42:10,460 --> 00:42:14,460 the name of this index is file beat so we are saying that uh if you 617 00:42:14,600 --> 00:42:20,340 see the name of this index in the kibana it matches the time frame or whatever the reasons 618 00:42:20,340 --> 00:42:24,640 which you want to apply the filter suppose you may want to look for a different kind of patterns 619 00:42:24,640 --> 00:42:32,020 right and uh then also you can use these queries the one which you made using filters in the kibana 620 00:42:32,020 --> 00:42:38,400 this is same i am saying taxis search stream which is the filter which you see here this one 621 00:42:38,400 --> 00:42:43,740 you can also apply here tags is search stream 622 00:42:44,780 --> 00:42:51,600 sorry spelling mistake the same query so this is uses Apache Lucene which is a 623 00:42:51,600 --> 00:42:55,780 backend querying thing for the elastic search so we will be using these queries 624 00:42:56,740 --> 00:43:02,380 to make the alerting and currently we are looking for the IETF.org on the 625 00:43:02,380 --> 00:43:06,140 wildcard applies here like it looks for all different kind of subdomains rather 626 00:43:06,140 --> 00:43:10,200 than looking for the particular domain and whenever it matches we can have send 627 00:43:10,200 --> 00:43:13,860 a slack alert so rather than slack alert you can have send go ahead and 628 00:43:13,860 --> 00:43:17,520 create a jira ticket to whoever the ops team or admin team or security team saying 629 00:43:17,520 --> 00:43:21,780 that new certificate has been generated is this part of your the inventory are 630 00:43:21,780 --> 00:43:32,460 like a CMDB like configuration management database right so once it has 631 00:43:32,460 --> 00:43:38,080 done we kind of look for the patterns here so this is where we kind of make 632 00:43:38,080 --> 00:43:42,620 interesting in terms of data sets so we can go ahead and look for different kind 633 00:43:42,620 --> 00:43:43,120 of patterns 634 00:43:43,860 --> 00:43:48,220 especially the primary reason is meant for the alerting feature we kind of took 635 00:43:48,220 --> 00:43:51,720 this scenario but not only that we kind of go ahead and look for subdomains as 636 00:43:51,720 --> 00:43:57,220 well so it makes it more easier especially here so I'll go ahead and 637 00:43:57,220 --> 00:44:00,700 open already saved search I can have created a search so that easy to show 638 00:44:00,700 --> 00:44:04,060 rather than building here so basically what we are doing is we are trying to 639 00:44:04,060 --> 00:44:07,800 take whatever the parameters which we wanted to show in the data sets so that 640 00:44:07,800 --> 00:44:13,360 we can only look for the granular data sets so here I can go ahead and run the 641 00:44:13,860 --> 00:44:21,760 query saying that I wanted to look for the sudden domain so if you see here the 642 00:44:21,760 --> 00:44:28,400 body we are looking for the jira insecure DNS right so whenever you see 643 00:44:28,400 --> 00:44:32,780 any instance a certificate has been generated for this query we kind of go 644 00:44:32,780 --> 00:44:37,760 ahead and see that it has been issued a new certificate and this is the DNS 645 00:44:37,760 --> 00:44:41,720 regard and the other information if you want to drill down and just go ahead and 646 00:44:41,720 --> 00:44:43,760 click this icon and I will give you a complete 647 00:44:43,760 --> 00:44:48,220 json output of that particular certificate and you can see that it is generated by which 648 00:44:48,220 --> 00:44:51,480 time and what are the different resources regarding to that, right. 649 00:44:52,660 --> 00:44:58,360 So this is one way and I can also use like wildcard to look at all the subdomains related 650 00:44:58,360 --> 00:45:00,000 to the organizations, right. 651 00:45:00,080 --> 00:45:04,000 This kind of gives you more different results based on the use case. 652 00:45:07,740 --> 00:45:13,540 So the main focus of the certificate transferency logs to look at here is to monitor for any 653 00:45:13,540 --> 00:45:18,100 new certificates has been generated or like to look for unknown like generation of your 654 00:45:18,100 --> 00:45:19,540 organization members, right. 655 00:45:19,840 --> 00:45:23,620 But we kind of moving to the second scenario now. 656 00:45:23,740 --> 00:45:24,100 Yes. 657 00:45:26,020 --> 00:45:30,520 So how do we find out the different company name under the same company name? 658 00:45:30,700 --> 00:45:41,200 Sometimes we found a new product and they use different QoR for the same company. 659 00:45:41,820 --> 00:45:43,520 So you mean to say similar? 660 00:45:43,520 --> 00:45:50,140 Similar URL patterns or like a subdomains or different domain itself you mean to say. 661 00:45:52,100 --> 00:45:56,300 Yeah like abc.com means like abce.com like that. 662 00:45:56,940 --> 00:45:59,520 So like Facebook, Instagram and mobile. 663 00:45:59,820 --> 00:46:01,120 Oh okay okay gotcha. 664 00:46:01,220 --> 00:46:05,600 So these kind of things I think you can't get from certificate transferency logs until 665 00:46:05,600 --> 00:46:10,560 unless they kind of use same CA cert and using all domains whatever they have as a single 666 00:46:10,560 --> 00:46:12,760 certificate they are generating like their own. 667 00:46:12,760 --> 00:46:17,140 And if you want to look at those areas maybe you wanted to get a inventory from your DNS 668 00:46:17,140 --> 00:46:21,540 like who are the unnamed registrar like the namecheap or who are the family. 669 00:46:21,760 --> 00:46:26,640 So you can kind of use those data source and already make queries already in the last alert. 670 00:46:26,760 --> 00:46:29,180 So whenever you make for those domains you can have get alert. 671 00:46:29,520 --> 00:46:32,980 So you have to make the inventory and put it in already alerting system. 672 00:46:33,340 --> 00:46:37,740 So inventory has to be there like otherwise we kind of looking for the entire internet 673 00:46:37,740 --> 00:46:38,020 right. 674 00:46:38,960 --> 00:46:39,820 That's the only thing. 675 00:46:42,760 --> 00:46:46,200 So you have to have the right x if one of the details you have x. 676 00:46:47,480 --> 00:46:53,160 So how to solve this issue for similar domains. 677 00:46:53,760 --> 00:46:55,960 Similar domains you mean to say that. 678 00:46:57,820 --> 00:47:00,380 That is the third scenario I will be going to cover. 679 00:47:02,800 --> 00:47:07,620 So the intention is like mainly to take it forward in terms of making sure you are looking 680 00:47:07,620 --> 00:47:10,040 as a defensive way and as well as offensive way. 681 00:47:10,220 --> 00:47:12,740 So I kind of mostly done. 682 00:47:12,740 --> 00:47:18,060 done with the demonstration. I will just quickly show you internet-wide, because we are looking 683 00:47:18,580 --> 00:47:23,340 at currently only organization level. If you want to look at scale, how it kind of helps 684 00:47:23,340 --> 00:47:40,660 certificate transparency logs. Okay. Riaz is giving swags and stuff for the questions 685 00:47:40,660 --> 00:47:46,860 and cool. Please give feedback, like if you see any useful features from the data search, 686 00:47:47,000 --> 00:47:51,620 it might be good to let us know, like we can have used and try to put it back in the documentation. 687 00:47:53,500 --> 00:47:59,460 So we can have written a simple city log utilities using Python script. What it does is you kind 688 00:47:59,460 --> 00:48:10,060 of go ahead and give the CA by cert. Okay. I just need to pip env install. It's Python. 689 00:48:13,320 --> 00:48:20,240 Shell. Okay. So what we are doing is we are trying to get the certificates based on the 690 00:48:20,240 --> 00:48:26,560 entire CA search with the internet scale. So what it does is you can go ahead and. It's 691 00:48:26,560 --> 00:48:31,200 already running. Yeah. 692 00:48:40,160 --> 00:48:50,700 It's running. Yeah. So. Super slow. I'll just briefly show how it looks like. It looks 693 00:48:50,700 --> 00:49:02,400 like this. So what it does is. So it looks at internet scale. Like if you see this, a 694 00:49:02,400 --> 00:49:07,000 certificate at it had generated these mini search at internet scale. And like a cPanel 695 00:49:07,000 --> 00:49:10,040 commodo has these many search generated, in the internet scale. So it's showing like, 696 00:49:10,040 --> 00:49:15,120 And it's not only useful in that way, and you can also use for organization level, like 697 00:49:15,120 --> 00:49:22,020 similar scripts, which is, you can say that . .com says that Let's Encrypt has generated 698 00:49:22,020 --> 00:49:24,940 these many certificates for that . .com, right? 699 00:49:25,140 --> 00:49:30,260 You can also look at, like, different ways to use these data sets and get some information 700 00:49:30,260 --> 00:49:33,740 out of your organizations using certificate transparency logs. 701 00:49:38,720 --> 00:49:42,900 So, before moving to the second scenario, is there any questions regarding this? 702 00:49:43,480 --> 00:49:43,680 Yes. 703 00:49:47,220 --> 00:49:49,620 Ah, yes. 704 00:49:50,840 --> 00:50:01,080 HTTP, no, because the certificate transparency logs is meant to look for the . . . 705 00:50:01,080 --> 00:50:01,720 Oh, you mean to say this? 706 00:50:01,880 --> 00:50:02,240 Ah, okay. 707 00:50:02,620 --> 00:50:03,720 Yeah, you can have . . . 708 00:50:03,720 --> 00:50:04,400 You can use subfinder. 709 00:50:04,580 --> 00:50:06,500 There are so many subdomain finding tools. 710 00:50:07,320 --> 00:50:10,840 I think if you, I'll just, you can go to our blog.appsecure.com. 711 00:50:10,920 --> 00:50:13,860 There is a really good blog about pen tester. 712 00:50:14,680 --> 00:50:15,340 What is that? 713 00:50:15,640 --> 00:50:16,080 OCN. 714 00:50:16,940 --> 00:50:18,960 Pen tester guide to subdomains. 715 00:50:20,960 --> 00:50:23,860 That is, like, more interesting in terms of, like, finding subdomains. 716 00:50:26,620 --> 00:50:27,840 Yeah, I'll zoom in once. 717 00:50:27,900 --> 00:50:28,860 I'll get the results. 718 00:50:28,900 --> 00:50:29,220 Still. 719 00:50:30,900 --> 00:50:31,340 Yeah. 720 00:50:35,000 --> 00:50:36,080 So, we will use that. 721 00:50:36,840 --> 00:50:37,440 Yeah, that's a fact. 722 00:50:37,980 --> 00:50:41,080 My next tool will also be . . . 723 00:50:41,080 --> 00:50:43,420 We've actually written two blog posts on our company website. 724 00:50:43,660 --> 00:50:44,040 So. 725 00:50:44,160 --> 00:50:50,280 One is specifically on using new innovative techniques on finding subdomains, right? 726 00:50:50,320 --> 00:50:51,960 I think my internet is super smart. 727 00:50:53,140 --> 00:50:56,820 And he's done that at several background conferences also in the past. 728 00:50:56,900 --> 00:50:57,560 Yeah, LevelUp. 729 00:50:57,660 --> 00:50:59,020 He has done a bunch of . . . 730 00:50:59,020 --> 00:50:59,300 LevelUp. 731 00:50:59,320 --> 00:51:00,280 He's delivered it there. 732 00:51:00,780 --> 00:51:01,220 Right? 733 00:51:01,220 --> 00:51:02,180 So, I mean, that's one. 734 00:51:02,320 --> 00:51:03,600 And there's another blog post we have. 735 00:51:03,720 --> 00:51:07,580 It's written as a 101 for people getting started with Recon. 736 00:51:08,180 --> 00:51:11,660 So, there's a 101 sub . . . 101 post on information gathering. 737 00:51:12,540 --> 00:51:14,200 And that's also there on the . . . 738 00:51:14,200 --> 00:51:15,420 We put both of them in the . . . 739 00:51:15,420 --> 00:51:16,820 We just search for . . . 740 00:51:16,820 --> 00:51:23,220 If you go to blog.apps.com.com website, blog.company.com website, you will see those articles. 741 00:51:23,360 --> 00:51:25,200 And we have created a cheat sheet as well, I think. 742 00:51:25,480 --> 00:51:25,880 Fancy. 743 00:51:27,260 --> 00:51:28,660 For finding the same thing. 744 00:51:30,480 --> 00:51:32,160 So, I was in a . . . 745 00:51:32,160 --> 00:51:33,120 I was in a . . . 746 00:51:33,120 --> 00:51:33,700 I was in a . . . 747 00:51:33,720 --> 00:51:34,260 I was in a . . . 748 00:51:34,260 --> 00:51:36,800 I was in a . . . 749 00:51:36,800 --> 00:51:38,540 I was in a . . . 750 00:51:38,540 --> 00:51:38,860 I was in a . . . 751 00:51:39,380 --> 00:51:39,820 I was in a . . . 752 00:51:39,820 --> 00:51:42,140 Yeah, Subfinder is the one which is written in Golang. 753 00:51:42,280 --> 00:51:43,200 You can have used the binary. 754 00:51:43,340 --> 00:51:46,060 And you can specify that which one you wanted to use. 755 00:51:46,280 --> 00:51:50,660 And you go ahead and find based on the all ways. 756 00:51:50,860 --> 00:51:52,400 Like it can use like VirusTotal. 757 00:51:52,500 --> 00:51:54,760 It can use like the Passive DNS. 758 00:51:54,940 --> 00:51:57,760 And also you can give your Shodan keys, API keys it supports. 759 00:51:58,060 --> 00:51:59,200 And you go ahead and find. 760 00:51:59,700 --> 00:52:00,100 Yeah. 761 00:52:00,940 --> 00:52:02,340 Yeah, this is the one, Subfinder. 762 00:52:02,960 --> 00:52:03,700 So, you can use it. 763 00:52:03,700 --> 00:52:06,820 just say that like whatever the thing which you wanted to look it has like a 764 00:52:06,820 --> 00:52:09,920 different configurations which you wanted to specify using brute-force 765 00:52:09,920 --> 00:52:18,780 dictionary so it kind of does that for you cool my internet is slow I think 766 00:52:23,080 --> 00:52:27,940 cool so we will be looking at the scenario 2 now it's mainly focusing on 767 00:52:27,940 --> 00:52:33,520 monitoring part rather than looking at alerting and other things and we will be 768 00:52:33,520 --> 00:52:39,000 looking at mainly to focus on two things one is as we said the cloudflare 769 00:52:39,000 --> 00:52:42,680 if you use it's kind of use a list of subdomains for the domain which I have 770 00:52:42,680 --> 00:52:46,880 given but the people who are use cloudflare they may not really reveal 771 00:52:46,880 --> 00:52:50,260 their own IP address right so many people struggle like if you got a pen 772 00:52:50,260 --> 00:52:54,440 test or like defining they get they are behind a cloudflare I don't even know 773 00:52:54,440 --> 00:52:59,020 what is IP address right so the DNA sets especially by this forward DNA sets by 774 00:52:59,680 --> 00:53:03,100 rapid7 there is a project called sonar by scans.io 775 00:53:03,100 --> 00:53:03,500 which is a project called sonar which is a project called sonar by scans.io 776 00:53:03,500 --> 00:53:07,560 which is so what it does is it's kind of collect entire internet wide scans 777 00:53:08,320 --> 00:53:14,340 especially for the different kind of records like a IPv6 AAA and NS 778 00:53:14,340 --> 00:53:21,040 records and other each text records MS records so what we have done is we kind 779 00:53:21,040 --> 00:53:24,280 of took a trimmed version of data set because of the demonstration otherwise 780 00:53:24,280 --> 00:53:28,400 it's like 300 plus GB of data sets they have which we couldn't be able to fit in 781 00:53:28,400 --> 00:53:33,060 the VMs so we will be using the trimmed version of the data sets to kind of how 782 00:53:33,060 --> 00:53:36,840 you can use those data sets to kind of look at your external posture of 783 00:53:36,840 --> 00:53:41,500 organization in terms of security in terms of like the infrastructure which 784 00:53:41,500 --> 00:53:53,080 you have out there you want to add anything so yeah I think it's they always 785 00:53:53,080 --> 00:53:58,400 release of monthly I think once that same data set the problem with them is 786 00:53:58,400 --> 00:54:01,600 like they kind of release the entire data set again rather than releasing the 787 00:54:01,600 --> 00:54:02,760 diff which has been done 788 00:54:03,060 --> 00:54:07,240 so it's kind of difficult to do that and if you wanted to know more like dig 789 00:54:07,240 --> 00:54:12,080 into deep I think they have done a pretty good research in and put it in a 790 00:54:12,080 --> 00:54:15,580 documentation we have referenced with they kind of explain more how they 791 00:54:15,580 --> 00:54:24,520 collect these data sets and the scans as well okay so what we have done is again 792 00:54:24,520 --> 00:54:29,300 for this scenario we kind of already this is already captured data sets which 793 00:54:29,300 --> 00:54:32,780 are available at rapid7scans.io website if you go here 794 00:54:49,480 --> 00:54:54,720 to the Quick Finder so what you gotta do is go over here actually to the 795 00:54:54,720 --> 00:54:55,020 software go into slowdown in the first container and we're ready to standby 796 00:54:55,020 --> 00:54:57,380 here so it's that fast so it's that fast so so that's us so there's a couple 797 00:54:57,380 --> 00:54:57,700 let's do the next oneном васanya okay so they're gonna do that now let me show you 798 00:54:57,700 --> 00:55:02,780 this is a transaction so the点 sweetie and let me explain more about you guys so 799 00:55:05,060 --> 00:55:10,260 So, I'll just quickly show the data sets, I think it's already downloaded and locally 800 00:55:10,260 --> 00:55:15,540 set it up in the VM, but if you wanted to go back and look at the website is here, you 801 00:55:15,540 --> 00:55:19,600 can just google for rapid7 the FDNS data sets, it will be there. 802 00:55:20,320 --> 00:55:27,220 So this has the different types of records, which are like the IPv4, IPv6 text, CNAME 803 00:55:27,220 --> 00:55:28,480 as well as any records. 804 00:55:28,480 --> 00:55:34,400 So, we have captured those records and kept in the VM, like if you see here in the... 805 00:55:40,620 --> 00:55:43,000 So this is how it looks like, the data set. 806 00:55:44,840 --> 00:55:50,900 So what it contains is, it's kind of timestamp and the name of the record, which may be domain 807 00:55:50,900 --> 00:55:58,400 name or the IP address and the value and the type of record, may be NS, THT or SOA, the 808 00:55:58,400 --> 00:56:02,540 records which are any different types of records and they have also segregated based 809 00:56:02,540 --> 00:56:06,220 on the type of record if you want, like you wanted to only look at A records, so they 810 00:56:06,220 --> 00:56:07,760 kind of set that data set as well. 811 00:56:08,680 --> 00:56:13,780 And so, it's already by default in JSON, so what we have done is, similarly again, sending 812 00:56:13,780 --> 00:56:16,500 it to Logstash and Elasticsearch and get into the Kibana. 813 00:56:21,900 --> 00:56:27,480 So once we have this data set, the primary reason to look at this data set is huge, as 814 00:56:27,480 --> 00:56:27,820 it... 815 00:56:27,820 --> 00:56:32,260 Similar to Certificate Transparency Log, so it's not only for the specific domain, it 816 00:56:32,260 --> 00:56:33,420 kind of looks at internet scale. 817 00:56:34,120 --> 00:56:37,480 So it has like the part of the data which is available in the internet. 818 00:56:37,940 --> 00:56:41,120 So once we have parsed the data set using the... 819 00:56:49,840 --> 00:56:55,040 So extra feature, as I said, we will be using GOIP filter, so because of the value which 820 00:56:55,040 --> 00:56:55,380 is there. 821 00:56:55,560 --> 00:56:56,980 So we also added a... 822 00:56:56,980 --> 00:56:59,920 The GOIP data pass for IPv6 as well. 823 00:57:00,080 --> 00:57:03,760 So what it kind of does is, for IPv6 also, it will go ahead and give you the details. 824 00:57:05,840 --> 00:57:14,340 So if I go ahead and change this filter to the ScanCyber, I'll just increase the font. 825 00:57:15,000 --> 00:57:15,860 One second. 826 00:57:16,420 --> 00:57:16,900 ScanCyber. 827 00:57:18,640 --> 00:57:19,120 ScanCyber. 828 00:57:21,320 --> 00:57:21,800 ScanCyber. 829 00:57:22,400 --> 00:57:22,880 ScanCyber. 830 00:57:22,880 --> 00:57:23,220 ScanCyber. 831 00:57:23,220 --> 00:57:23,660 ScanCyber. 832 00:57:24,300 --> 00:57:24,780 ScanCyber. 833 00:57:24,880 --> 00:57:24,960 ScanCyber. 834 00:57:33,320 --> 00:57:38,520 So this is the data set which we have taken a trimmed version, which has like 10,000 records. 835 00:57:39,480 --> 00:57:42,500 If you want it to parse the entire data set, you can also parse. 836 00:57:42,920 --> 00:57:47,400 It's kind of support the ELK stack at scale, so you can use terabytes of data as well to 837 00:57:47,400 --> 00:57:47,620 parse. 838 00:57:48,060 --> 00:57:52,980 So once we have done that data parsing, so it's kind of you see a complete visibility 839 00:57:52,980 --> 00:57:54,360 of the information. 840 00:57:54,760 --> 00:57:55,620 Like as I said... 841 00:57:55,620 --> 00:58:01,340 it kind of go ahead and get the information about the geo ip like you're gonna see which 842 00:58:01,340 --> 00:58:06,980 uh location where the data set has the ip address has been uh triggered like singapore and the ip 843 00:58:06,980 --> 00:58:11,220 information uh each and every detail has been uh come because of the lock stash enrichment 844 00:58:11,800 --> 00:58:16,640 and uh people also use alternatively like a fluendy it is similar to lock stash if you 845 00:58:16,640 --> 00:58:24,580 wanted to familiar with and write out so once we have this data set we kind of uh mainly focusing 846 00:58:24,580 --> 00:58:29,220 on trying to showcase those visualizations so that rather than looking at a single time like 847 00:58:29,220 --> 00:58:33,860 if you wanted to keep looking at as a fancy sock or knock dashboards whenever something happens 848 00:58:33,860 --> 00:58:38,660 and kind of builds those uh visualization to represent is there any new domain has arrived 849 00:58:38,660 --> 00:58:44,680 our subdomains has been uh captured so i'll quickly showcase that uh the dashboard like 850 00:58:44,680 --> 00:58:49,840 it looks like this so rendering slowly 851 00:58:54,760 --> 00:58:59,420 so it's kind of uh looks like this so what we have i'll just quickly go back and show how 852 00:58:59,420 --> 00:59:04,280 uh how big visualization so that you can try out for other data sets as well and based on your use 853 00:59:04,280 --> 00:59:09,560 case but to highlight uh the main things here is uh we kind of look for different kind of records 854 00:59:09,560 --> 00:59:15,120 which we wanted to look at like is there any air records are like at the aaa records are like a txt 855 00:59:15,120 --> 00:59:20,900 based on the use case and we kind of map with the the location which it is generated from using a 856 00:59:20,900 --> 00:59:24,560 goip map uh which is again available in the kibana so that is the one that we're going to look at 857 00:59:24,580 --> 00:59:29,680 the reason we pick and also we can plot those data in a the graph which kind of shows like which 858 00:59:29,680 --> 00:59:36,640 type of records has been coming so many for these organizations right so uh at the end again uh the 859 00:59:36,640 --> 00:59:40,720 entire data will be available as json format so that if you wanted to go back and drill down in 860 00:59:40,720 --> 00:59:49,040 terms of sub domain ways are like more granular way of the particular json record so if you see 861 00:59:49,040 --> 00:59:54,200 this for example rather than going and looking for the everything so i just wanted to go ahead and 862 00:59:54,580 --> 01:00:04,400 the particular domain so if you see here whenever i search the filter for the name i can dodge 863 01:00:04,400 --> 01:00:11,300 org so it will go ahead and apply those uh same query to the entire visualizations so this can 864 01:00:11,300 --> 01:00:15,800 be run in whatever the alerting as well if you wanted to go back and send the data which is 865 01:00:15,800 --> 01:00:21,640 coming out there so here if i go ahead and almost over seeing that this is a record i can go ahead 866 01:00:21,640 --> 01:00:24,220 and click that apply filter so it will apply that filter here 867 01:00:24,580 --> 01:00:28,700 and the data which is coming is only specific to the a records which are created for your 868 01:00:28,700 --> 01:00:34,600 organizations right so whenever you see here uh the count increases basically there is a new area 869 01:00:34,600 --> 01:00:40,480 record added for your dns entry based from the forward dns logs and it kind of gives you which 870 01:00:40,480 --> 01:00:44,500 country they are creating if your organization is like across the world like it has like different 871 01:00:44,500 --> 01:00:52,540 places uh people using the data centers and uh the apart from the main thing is here uh we kind of 872 01:00:54,580 --> 01:00:58,000 like i can come up with some um tools as well like if anyone using same a record to create 873 01:00:58,000 --> 01:01:06,680 multiple subdomains like i can not use jira and uh and crm here cricket int vip so these all may be 874 01:01:06,680 --> 01:01:12,160 pointing to the same ip as well so you can kind of use correlations capability of kibana to make 875 01:01:12,160 --> 01:01:16,420 sure and look at the certain patterns as well using these kind of visualizations right 876 01:01:18,340 --> 01:01:24,360 so i'll switch back to one more level and try to show you how these visualization has been created 877 01:01:24,360 --> 01:01:24,540 so i'll switch back to one more level and try to show you how this visualization has been created 878 01:01:24,580 --> 01:01:28,820 just to give you overview so that you can go back and try for different data sets especially if you 879 01:01:28,820 --> 01:01:33,320 are looking for the subdomains maybe you are like using services like subfinder that will give you 880 01:01:33,320 --> 01:01:37,560 at the end json you can go back and use these kind of features to look at the posture right 881 01:01:50,480 --> 01:01:57,380 so the data is by default available in the search patterns so once it has done the searches we kind 882 01:01:57,380 --> 01:02:03,740 of use visualization to represent those data whichever has been produced so kibana has very 883 01:02:03,740 --> 01:02:07,540 friendly interface but i think it's very difficult if you are using kibana you have to 884 01:02:07,540 --> 01:02:11,520 wanted to try out first time but if you like look some videos tutorials are two 885 01:02:11,520 --> 01:02:16,480 times it's a very easy to showcase the data which is available and most of the 886 01:02:16,480 --> 01:02:20,300 data science team and if you heard about Mozilla, Mozilla entire defensive 887 01:02:20,300 --> 01:02:24,700 platform runs on ELK stack like entire their SOC team and Black Hat I think 888 01:02:24,700 --> 01:02:28,340 Defcon their SOC also will use these kind of isolation because the amount of 889 01:02:28,340 --> 01:02:34,840 the data it can support is like the scalability issue so we will be using 890 01:02:34,840 --> 01:02:39,580 different kind of graphs to showcase like we have created a lap like a 891 01:02:39,580 --> 01:02:43,420 already existing graphs as well like if you see here I'll just show the existing 892 01:02:43,420 --> 01:02:51,480 one by God like the scan cyber based on the country so it's kind of ask you 893 01:02:51,480 --> 01:02:56,420 based on which type of events you wanted to create the graph like we are trying 894 01:02:56,420 --> 01:02:59,420 to say that terms means like whichever the field you wanted to select to 895 01:02:59,420 --> 01:03:04,100 showcase there so we wanted to select the keyword type means like a which 896 01:03:04,100 --> 01:03:04,580 type of 897 01:03:04,580 --> 01:03:08,340 regard it has been created so whenever you have applied you can give how many 898 01:03:08,340 --> 01:03:12,860 values it has to represent in this pie chart so we'll go ahead and apply this 899 01:03:12,860 --> 01:03:17,240 field so if you rather for 10 you can go ahead and apply file so it kind of 900 01:03:17,240 --> 01:03:25,700 reflects that data in near real time so this is the one way to showcase and 901 01:03:25,700 --> 01:03:29,360 people has built like complex visualizations if you see their 902 01:03:29,360 --> 01:03:34,540 tutorials and things so where it kind of gives you more granular visibility you 903 01:03:34,540 --> 01:03:37,800 can see like if you wanted to apply based on the type of record and if it 904 01:03:37,800 --> 01:03:41,500 matches to certain IP address then it will show the visualization so it can 905 01:03:41,500 --> 01:03:45,980 abuse you of the especially business people management so ok this many of the 906 01:03:45,980 --> 01:03:52,720 donation posture has been mapped to this IP the sub-domain so there are 907 01:03:52,720 --> 01:03:56,880 bunch of other visualizations as well I think we kind of already created a 908 01:03:56,880 --> 01:04:01,880 pretty good dashboards for this other scenarios as well so what we have done is 909 01:04:01,880 --> 01:04:06,660 rather than going and teaching the kibana we can put references to the kibana tutorials if you 910 01:04:06,660 --> 01:04:10,920 wanted to try out and another thing what we have done is this entire dashboard can be exported as 911 01:04:10,920 --> 01:04:15,080 a single json file if you wanted to upload for your own dataset you can go ahead and import 912 01:04:15,080 --> 01:04:21,200 that json file uh it will be here if you go to the last management section and here saved objects 913 01:04:21,790 --> 01:04:27,640 you can just click on the import and uh use this uh the scan cyber kibana will automatically render 914 01:04:27,640 --> 01:04:31,760 that uh dashboard based on this data sets for any of the scan cyber stuff 915 01:04:36,240 --> 01:04:38,360 i'll just keep because it's already there 916 01:04:48,240 --> 01:04:55,480 so this is the main uh one of the use case uh but uh people has extensively used this uh data logs 917 01:04:55,480 --> 01:04:57,540 uh to showcase like a different use case 918 01:04:57,640 --> 01:05:03,900 uh especially not only with the forward dns they kind of use forward dns dataset with their own 919 01:05:03,900 --> 01:05:08,980 internal passive dns so if you use your own internal passive dns you kind of use these 920 01:05:08,980 --> 01:05:14,360 logs with by correlating with the forward dns dataset to make sure that uh the alert is not 921 01:05:14,360 --> 01:05:19,120 false positive or some kind of thing so that they can ensure that uh the the result is the true 922 01:05:19,120 --> 01:05:25,280 value uh any questions uh before moving to the the third scenario on the next section 923 01:05:28,520 --> 01:05:29,040 so 924 01:05:29,040 --> 01:05:40,360 if you could combine that with like country's information or if somebody was going to like 925 01:05:40,360 --> 01:05:41,220 a record or an acquisition 926 01:05:45,780 --> 01:05:52,220 yeah or what disappeared or some state line yeah you could do that if you have both the data yeah 927 01:05:53,580 --> 01:05:56,240 most of this visualization requires you to have 928 01:06:03,160 --> 01:06:07,760 so for example if you have acquisition like google has recently acquired like suppose 929 01:06:07,760 --> 01:06:13,080 what is that coming drop cam or something like long ago sorry so you can go back and look at 930 01:06:13,520 --> 01:06:16,540 you have to write some kind of custom programming still because we don't know 931 01:06:16,540 --> 01:06:21,100 whether it is acquired or not if you have that information we kind of use the correlation engine 932 01:06:21,100 --> 01:06:27,300 which is again in logstation to ensure that if it is related to this then it can show in the certain 933 01:06:27,640 --> 01:06:33,240 organization level as well so this can uh the amount of uh the information uh which can be 934 01:06:33,240 --> 01:06:38,220 showcased it is very uh powerful if you have kind of data sets which are available to use that 935 01:06:38,220 --> 01:06:44,060 information the way you would integrate a new data set would be to this correlation engine 936 01:06:44,060 --> 01:06:49,140 yes using logstash yeah so that is the reason we just quickly went through in the beginning 937 01:06:49,140 --> 01:06:53,680 but uh if you wanted to know more about like how we kind of use different data sets uh we 938 01:06:53,680 --> 01:06:56,740 have referenced the way how we can go back and read more about it 939 01:06:57,640 --> 01:07:01,980 this is just one of the data sets that's uh in my opinion it's one of the most 940 01:07:04,420 --> 01:07:08,140 judicious one of the biggest projects i'm going to take on in terms of 941 01:07:08,140 --> 01:07:13,440 studying for data because uh this is our dns is my data set 942 01:07:13,440 --> 01:07:19,920 they have http data sets and they have an ssl data they have tons of those data sets which 943 01:07:20,390 --> 01:07:25,060 allow them you know all of the data you can visualize you can create the powerful 944 01:07:28,160 --> 01:07:34,220 yeah any feedback to improve in terms of like the data set like is there any other ways you people 945 01:07:34,220 --> 01:07:40,900 use like to look at like the external infrastructure posture like what kind of data might be useful to 946 01:07:40,900 --> 01:07:53,380 showcase here yes okay uh you mean to say who is data set uh you mean to say who oh okay okay 947 01:07:53,380 --> 01:07:53,800 okay 948 01:08:07,580 --> 01:08:13,180 yeah yeah so what he's trying uh saying is make sense actually what we can do is like if you have 949 01:08:13,180 --> 01:08:17,620 found a domain or something we can go back and query the who is information for the domain 950 01:08:17,620 --> 01:08:22,520 uh we'll get back the who is the information like contact technical information and the 951 01:08:22,520 --> 01:08:27,520 phone number or email id if you use that again you kind of use some other plugin to enrich that 952 01:08:27,520 --> 01:08:33,720 data and you can go back and showcase a reverse point to that uh is there any more data available 953 01:08:33,720 --> 01:08:38,740 it's kind of going like a nested but it's kind of you more drill down information like how multiple 954 01:08:38,740 --> 01:08:44,700 source like if you go and click and showcase but yeah it can be done i think but it has to be put 955 01:08:44,700 --> 01:08:50,660 some work but that will be great uh to see like uh to go back dns data is easy to visualize 956 01:08:53,080 --> 01:08:57,420 yeah people sometimes who is users they kind of uh protect their who is recording information 957 01:09:19,200 --> 01:09:23,560 yeah but yeah that one is good like actually we can have enriched this stuff 958 01:09:25,760 --> 01:09:27,200 cool anything else 959 01:09:27,520 --> 01:09:28,400 before moving on 960 01:09:32,880 --> 01:09:36,580 so as i said like in the beginning uh if you kind of use people uh 961 01:09:36,580 --> 01:09:41,720 the older ways like they have migrated from the uh the servers to cloud player they kind 962 01:09:41,720 --> 01:09:46,520 of not able to get ip the forward dns data set may have historical data if you kind of 963 01:09:46,520 --> 01:09:51,760 download full 320 gb of data set you can able to see the old ip addresses mapped to the domains 964 01:09:51,760 --> 01:09:56,840 as well yeah we can have used in one of our engagement pentesting they kind of behind cloud 965 01:09:56,840 --> 01:10:02,380 fair we kind of used our forward dns data set to query that particular ip which is the world ip 966 01:10:02,380 --> 01:10:06,640 still they point to the same ip so they kind of use useful information while doing testing 967 01:10:12,220 --> 01:10:12,660 yeah 968 01:10:18,440 --> 01:10:24,600 cool uh so that is one of the most uh thing uh so then we will move on to the section uh the 969 01:10:24,600 --> 01:10:26,820 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 970 01:10:26,820 --> 01:10:30,740 previously is there any way to see the phishing domains like similarly domains so this is the 971 01:10:30,740 --> 01:10:35,180 scenario which we wanted to focus on that area because i think facebook has started extensive 972 01:10:35,180 --> 01:10:40,520 research on this they have a similar project uh on the similar areas they are also looking at ct 973 01:10:40,520 --> 01:10:46,300 logs based on if you see any similar kind of dns twisted domain they kind of report back to the 974 01:10:46,300 --> 01:10:50,540 the team like to make sure that the facebook this is not the facebook domain or something 975 01:10:50,540 --> 01:10:54,860 otherwise people go ahead and click that and give the password the gut phishing has been 976 01:10:54,860 --> 01:11:01,360 done easily using those kind of domains so for this scenario we can have using a data source by 977 01:11:01,360 --> 01:11:06,480 a thing called against certificate transparency log to look at bunch of stuff but it may not to be 978 01:11:06,480 --> 01:11:11,440 uh but in this scenario we will be using but i'll showcase where you can go back and try out other 979 01:11:11,440 --> 01:11:17,940 ways like different logs as well so what we are doing is we kind of again loading the certificate 980 01:11:17,940 --> 01:11:24,180 transparency log so we mainly using a library called dns twist uh it's a python base uh i'll 981 01:11:24,180 --> 01:11:24,740 just see 982 01:11:24,740 --> 01:11:34,060 if it works yeah i think my internet is bad cool so it's a python uh project in github like what 983 01:11:34,060 --> 01:11:39,320 it does is kind of looks for the similar uh any domains available in the internet so if you say 984 01:11:39,320 --> 01:11:44,440 like background.com as we saw from the beginning so it figures out is there any similar domain 985 01:11:44,440 --> 01:11:51,020 which is available in the internet like bug crowd g o like that or any uh i'll just go ahead and 986 01:11:51,020 --> 01:11:52,020 run for the one domain 987 01:11:58,040 --> 01:11:58,520 yes 988 01:12:08,400 --> 01:12:13,080 i'll zoom in give me a second yeah makes sense 989 01:12:18,020 --> 01:12:18,800 what is that 990 01:12:18,800 --> 01:12:19,100 um 991 01:12:22,060 --> 01:12:22,540 yeah 992 01:12:22,540 --> 01:12:22,840 yeah 993 01:12:22,840 --> 01:12:23,060 yeah 994 01:12:23,060 --> 01:12:23,460 yeah 995 01:12:23,460 --> 01:12:23,580 yeah 996 01:12:23,580 --> 01:12:23,640 yeah 997 01:12:23,640 --> 01:12:23,880 yeah 998 01:12:23,880 --> 01:12:23,900 yeah 999 01:12:23,900 --> 01:12:23,940 yeah 1000 01:12:23,940 --> 01:12:24,260 yeah 1001 01:12:26,680 --> 01:12:27,240 yeah 1002 01:12:27,240 --> 01:12:27,820 yeah 1003 01:12:27,820 --> 01:12:34,580 so the input is if an l list uh what is the domain you said microsoft microsoft.com 1004 01:12:36,340 --> 01:12:53,680 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 1005 01:12:57,000 --> 01:12:57,440 center 1006 01:12:57,440 --> 01:13:03,780 okay maybe yeah so what people does is uh like they kind of use different kind of ways to 1007 01:13:03,780 --> 01:13:08,100 represent also in browser they don't go and see your like copy paste and see the text also right 1008 01:13:08,100 --> 01:13:15,600 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 1009 01:13:15,600 --> 01:13:20,720 twist uh so what it does is the given domain for your organization it kind of finds related domains 1010 01:13:20,720 --> 01:13:27,460 different ways if you see this one this is homoglyph the one I think it should 1011 01:13:27,460 --> 01:13:33,720 see like insertion like if you see Microsoft Microsoft right select a 1012 01:13:33,720 --> 01:13:37,600 different possible and the combinations it will try and something which is very 1013 01:13:37,600 --> 01:13:42,440 nice if you say omission as well like if you just remove one kind of letter or 1014 01:13:42,440 --> 01:13:47,340 something from the domain name to make it look similar so and also it gives the 1015 01:13:47,340 --> 01:13:51,620 information with all the list of domains possible related to that so you kind of 1016 01:13:51,620 --> 01:13:55,100 use this inventory to go back and look at is there any similar phishing domain 1017 01:13:55,100 --> 01:13:59,780 has been created and someone is using this to mimic basically our organization 1018 01:13:59,780 --> 01:14:05,060 are like used to do some kind of spam or like especially this is kind of data 1019 01:14:05,060 --> 01:14:08,900 sets people look in fraud detection teams if you have like fraud detection 1020 01:14:08,900 --> 01:14:12,760 teams in your organizations like especially large e-commerce companies 1021 01:14:12,760 --> 01:14:15,960 they kind of heavily depends on these kind of things because they kind of use 1022 01:14:15,960 --> 01:14:17,260 to go and check out this 1023 01:14:17,260 --> 01:14:21,020 using this link photos you can now know like so 1024 01:14:49,500 --> 01:14:54,280 this one I think yeah the command actually the same people I think kind of 1025 01:14:54,280 --> 01:15:06,960 built a fancy website as well DNS twist dot report twister dot report yeah this 1026 01:15:06,960 --> 01:15:11,860 one so the same what we are said command it's kind of you see a option 1027 01:15:11,860 --> 01:15:14,460 here like if I say microsoft.com 1028 01:15:18,260 --> 01:15:23,320 you go ahead and look for the domains available and it'll says this is your 1029 01:15:23,320 --> 01:15:26,380 original it's kind of gives you IP information again you can go back and 1030 01:15:26,380 --> 01:15:29,560 send it your log stats to enrich the data where it is has been created and 1031 01:15:29,560 --> 01:15:34,760 all the stuff and it not only does that you can as iPhone our flag it's kind of 1032 01:15:34,760 --> 01:15:38,580 shows unresolved the stuff which is able to resolve or not resolve for the 1033 01:15:38,580 --> 01:15:43,640 domain which has been there right so this is the data set which we were 1034 01:15:43,640 --> 01:15:47,240 playing with the third scenario especially looking at the phishing 1035 01:15:47,260 --> 01:15:52,140 campaigns has been created for your organization some by someone and the 1036 01:15:52,140 --> 01:15:56,220 facebook has similar project I think we have put it in the references section 1037 01:15:56,220 --> 01:15:59,440 where they have working on similar areas to look for anyone has been 1038 01:15:59,440 --> 01:16:04,800 created as spam detection for them so similarly we will be using for this as 1039 01:16:04,800 --> 01:16:09,880 well like the certificate transparency logs to look is there anyone for our 1040 01:16:09,880 --> 01:16:13,840 organization has been created a certificate for one of our similar 1041 01:16:13,840 --> 01:16:17,140 looking domain like phishing domain by DNS twist so first 1042 01:16:17,260 --> 01:16:21,640 way what we have to do is we kind of get the data sets using the DNS tweets so 1043 01:16:21,640 --> 01:16:25,440 this script does that automatically so we kind of put the script in our code 1044 01:16:25,440 --> 01:16:26,180 when we distribute 1045 01:16:31,000 --> 01:16:31,440 yeah 1046 01:16:44,760 --> 01:16:46,240 so doubt drop this 1047 01:16:46,240 --> 01:16:47,240 this uh the database 1048 01:16:47,240 --> 01:16:54,140 twist file will be sent it back to again log stash and vice versa to ELK and the Kibana so 1049 01:16:56,120 --> 01:17:00,280 what we have to do is extra feature apart from the first scenario and the second scenario 1050 01:17:00,280 --> 01:17:06,160 we kind of get all the certificate transparency logs uh using the the certificate transparency 1051 01:17:06,160 --> 01:17:11,780 log that script and the service so once we have uh get the all certificate transparency log 1052 01:17:11,780 --> 01:17:16,680 the pattern which we wanted look is not only for the our organization so we kind of look for 1053 01:17:16,680 --> 01:17:22,300 all different kind of possible ways to look for the similar domains so if you look at one example 1054 01:17:22,300 --> 01:17:29,820 we have created a thing so in the first scenario i think we have used this uh so if you see insecure 1055 01:17:29,820 --> 01:17:36,540 dns we can have create this owns by uh this this domain owned by us the insecure dns so if you see 1056 01:17:36,540 --> 01:17:42,940 insecure dns there is a zero dot insecure.dns.com like the domain which has been created i'll just 1057 01:17:42,940 --> 01:17:46,520 zoom in uh this one 1058 01:17:46,680 --> 01:17:51,140 so similarly what we have done is we kind of uh bought another domain looking similar to the 1059 01:17:51,140 --> 01:17:58,680 insecure dns uh but here we are just trying to remove the d basically insecure dns so if you 1060 01:17:58,680 --> 01:18:08,860 go ahead and run the similar query for the thing so if you see here uh payment.insecurens.com 1061 01:18:09,860 --> 01:18:15,540 but if you see there is a d missing here insecure dns uh but someone had generated certificate for 1062 01:18:15,540 --> 01:18:16,360 our payment server 1063 01:18:16,680 --> 01:18:21,600 which is publicly available they may be using trying to legitimately sending to some other 1064 01:18:21,600 --> 01:18:26,160 people our customers whoever uses this organization right so using these kind of uh 1065 01:18:26,160 --> 01:18:31,740 log data sets which are available publicly and looking for this kind of things make you 1066 01:18:31,740 --> 01:18:36,640 more visibility in terms of what kind of things uh has been happening to your organization in 1067 01:18:36,640 --> 01:18:41,420 terms of external uh the posture right so this is the one way to look uh 1068 01:18:41,420 --> 01:18:46,560 uh we are still working on uh making sure that the dns twist records data set will be 1069 01:18:46,680 --> 01:18:51,880 coming back to logstash to enrich and i think as someone mentioned we may work on that as well like 1070 01:18:51,880 --> 01:18:56,860 looking who is information and getting back into the logstash to make sure go back and drill down 1071 01:18:56,860 --> 01:19:03,040 so what we are trying to do here is once it has been received we kind of creating elast alerts 1072 01:19:03,040 --> 01:19:09,380 against same patterns using the elast alert rule set so if it matches any of our dns test 1073 01:19:09,380 --> 01:19:13,820 records for the certain domain for our organization so we kind of go ahead and send alert to the 1074 01:19:13,820 --> 01:19:19,920 ops team saying that do we own this domain so if this is yes it's kind of our own domain so if it 1075 01:19:19,920 --> 01:19:24,860 is not part of our inventory we may want to go ahead and take action saying that sending an email 1076 01:19:24,860 --> 01:19:29,940 to our one of the customers team marketing saying that if you see anyone sees the domain name 1077 01:19:29,940 --> 01:19:34,880 coming similar to this area please do not click or use that at least it kind of helps saying that 1078 01:19:34,880 --> 01:19:41,760 disclosing point of view right is there any questions in terms of this scenario 1079 01:19:43,180 --> 01:19:43,800 or like 1080 01:19:43,820 --> 01:19:49,500 the data sets any feedback so facebook is working on similar sorry 1081 01:19:57,800 --> 01:20:02,360 so how many of you run phishing campaigns at least for your organization like not you like at least 1082 01:20:02,360 --> 01:20:08,360 your teams yeah so you could do too is take the permutations and put them into the blog 1083 01:20:08,360 --> 01:20:13,500 yeah that way you don't have to worry about so the problem with those things it only works for 1084 01:20:13,820 --> 01:20:18,180 organization level but what about your customers right so that is where we wanted to look at transparency 1085 01:20:18,180 --> 01:20:23,340 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 1086 01:20:23,340 --> 01:20:27,620 block it local things corporate level yeah it's really good way to approach 1087 01:20:32,000 --> 01:20:38,140 yeah virus total or something like that you mean to say oh okay you mean to say may the people who has done that 1088 01:20:40,980 --> 01:20:41,780 oh okay 1089 01:20:43,820 --> 01:20:47,420 so what if it is legitimate domain they are someone organization is using 1090 01:20:50,540 --> 01:20:51,980 classification maybe yeah 1091 01:20:54,960 --> 01:21:00,740 yeah that is for sure internally you verify before using code this could simply be a legitimate 1092 01:21:01,900 --> 01:21:05,900 yeah it reminds me of that very ancient there was a there was a particular case 1093 01:21:05,900 --> 01:21:10,740 that microsoft again with microsoft there was a chapter micro 1094 01:21:10,740 --> 01:21:11,680 i have a 1095 01:21:13,820 --> 01:21:21,260 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 1096 01:21:21,760 --> 01:21:27,760 and he used to write code so he created a website called microsoft you know the legit 1097 01:21:27,760 --> 01:21:33,220 side he was trying to advertise his code but microsoft kind of tried to shut him down and he filed a lawsuit 1098 01:21:33,220 --> 01:21:40,080 against microsoft and he won the case and so that that is a real legit example of uh how you could look at the 1099 01:21:40,080 --> 01:21:43,660 phishing campaign or domain but it turns out that there's somebody else who owns the business 1100 01:22:02,060 --> 01:22:09,540 so i think that is more automation kicks in place like if you use phantom js like things 1101 01:22:09,540 --> 01:22:13,440 like you kind of look for these domains and take a picture of the home page and compare with your 1102 01:22:13,440 --> 01:22:18,540 like google has releasing auto ml if you know uh so what they are trying to do is still in beta i 1103 01:22:18,540 --> 01:22:22,920 think so you can have upload both all the images which are there so it kind of classifies based on 1104 01:22:22,920 --> 01:22:28,040 the category so maybe you can kind of use these scenarios and go ahead and take all the phantom 1105 01:22:28,040 --> 01:22:32,240 js uh actually firefox support now headless you can go ahead and run that script in the 1106 01:22:32,760 --> 01:22:37,100 automated way so you take all screenshots for your phishing domains and compares with your main 1107 01:22:37,100 --> 01:22:40,980 domain if it matches using auto ml kind of go and report that it's kind of automation 1108 01:22:42,100 --> 01:22:42,520 cool 1109 01:22:45,560 --> 01:22:49,120 uh which one oh okay 1110 01:22:54,420 --> 01:22:58,140 yeah it's like it's kind of interesting to see so much stuff around this area 1111 01:22:58,140 --> 01:23:03,340 because it's kind of more uh security work but it's kind of more has to be put in terms of uh 1112 01:23:04,380 --> 01:23:09,400 uh thinking wise like how people innovatively come up with the phishing campaigns are like 1113 01:23:09,400 --> 01:23:10,360 new ways to attack 1114 01:23:21,440 --> 01:23:28,180 this for example you won't see it's something that's time so it can be rather than something 1115 01:23:28,180 --> 01:23:36,840 that's between two times i didn't get sorry is there a way to query between two times yeah so 1116 01:23:36,840 --> 01:23:42,420 historical data i mean to say like old data set and the new one you mean to say yeah it is possible 1117 01:23:42,420 --> 01:23:43,420 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 1118 01:23:43,440 --> 01:23:47,500 alert uh as i i think i'll just go back to that slide just to showcase 1119 01:23:50,000 --> 01:23:55,800 yeah so what it does is it has a different way to look at uh this thing so if you see one of them 1120 01:23:55,800 --> 01:24:03,900 thing is like uh the change feature is looks from the previous data set the timestamp and if 1121 01:24:03,900 --> 01:24:09,040 anything apart from that something looks a newer than the previous anomalies it's kind of make 1122 01:24:09,040 --> 01:24:13,340 alert so it will look at the whole data set you can define which timestamp to which 1123 01:24:13,440 --> 01:24:18,680 timestamp to look like i can look for past six months and if it doesn't match from the past six 1124 01:24:18,680 --> 01:24:24,580 months similar area of patterns will go and alert also as well so it can the problem with especially 1125 01:24:24,580 --> 01:24:29,840 using open source solutions it's kind of need to be built so much uh the fine tuning but once you 1126 01:24:29,840 --> 01:24:35,160 have placed fine tuning it kind of works at scale and customization but uh purchasing product is 1127 01:24:35,160 --> 01:24:39,580 like yeah you just go and talk to that team organization yes 1128 01:24:55,480 --> 01:24:56,440 uh-huh 1129 01:24:56,440 --> 01:24:59,860 yeah oh you mean to say for getting that data 1130 01:25:08,500 --> 01:25:13,220 oh okay okay so he you are saying that use google docs to find subdomains 1131 01:25:13,220 --> 01:25:13,420 i 1132 01:25:13,440 --> 01:25:22,180 any sensitive data available using like index.off or file extensions those things yeah yeah yeah 1133 01:25:25,680 --> 01:25:33,180 yeah i think this is the one now i got internet i'll just go back and show so this is one of the 1134 01:25:33,180 --> 01:25:38,600 popular blog which we have written and across internet buzzing so this is i think you can if 1135 01:25:38,600 --> 01:25:43,260 you are more interested in especially finding subdomain enumeration we kind of wrote a blog 1136 01:25:43,260 --> 01:25:50,160 post like the how it kind of can perform subdomain enumeration for different ways so the one way is 1137 01:25:50,160 --> 01:25:55,760 kind of looking at techniques using google locking as he mentioned so what we can do is you can use 1138 01:25:55,760 --> 01:26:00,360 different kind of site operators to look at like what are the different types of like store uk 1139 01:26:00,360 --> 01:26:06,740 jobs and different ways like you can get this and people has written scripts like recon ng one of 1140 01:26:06,740 --> 01:26:11,840 the framework for the recon so they also use similar techniques to do that as well and the 1141 01:26:11,840 --> 01:26:13,020 people also 1142 01:26:13,020 --> 01:26:13,240 you can see 1143 01:26:13,260 --> 01:26:17,460 use google but there are so many other search engines out there which can also give results 1144 01:26:17,460 --> 01:26:24,740 like being it's really good if you wanted to look at subdomain enumeration yeah kind of see you can 1145 01:26:24,740 --> 01:26:30,600 get like juicy information like slack jira what do you want the second thing is like we have kind 1146 01:26:30,600 --> 01:26:35,800 of focused on virus total as people keep updating uploading files and information people also 1147 01:26:35,800 --> 01:26:41,420 capture the metadata nothing but like the file owner information the file the downloaded urls 1148 01:26:41,420 --> 01:26:43,160 like referrals if you use some kind of 1149 01:26:43,160 --> 01:26:49,840 url so these all has been captured as a metadata part so this kind of use subdomains as well like 1150 01:26:50,420 --> 01:26:56,200 like you can see like for wikipedia wikimedia you can have seen huge amount of subdomains which are 1151 01:26:56,200 --> 01:27:02,400 from this and the third thing is we use dumpster dns dumpster where it kind of gives the different 1152 01:27:02,400 --> 01:27:07,460 subdomains and put it in a geographical map saying that which is map like how we saw in the 1153 01:27:07,460 --> 01:27:13,140 kiwana previously it kind of enriched the data information and as someone mentioned i think i think 1154 01:27:13,160 --> 01:27:17,540 he mentioned saying that sublister is again one of the things like similar to 1155 01:27:17,540 --> 01:27:20,520 sub finder so it can go ahead and look at via do 1156 01:27:20,520 --> 01:27:25,240 yahoo google bing different search engines as well as the passive dns and 1157 01:27:25,240 --> 01:27:28,520 also it look as ssl certificate which is certificate transparency logs again 1158 01:27:29,120 --> 01:27:32,540 and it kind of give you complete information what are the domains we have 1159 01:27:32,540 --> 01:27:35,640 found from those as well and like the certificate transparency 1160 01:27:35,640 --> 01:27:38,660 logs uh this we have looked in the scenario one as well 1161 01:27:38,660 --> 01:27:42,540 like this is another way to look at subdomains if you wanted more interested 1162 01:27:42,540 --> 01:27:46,380 and as i said they kind of give you postgres interface to query 1163 01:27:46,380 --> 01:27:50,800 uh this is the script uh and if you go to our blog post we have kind of given 1164 01:27:50,800 --> 01:27:53,440 the script uh to make and use for your organizations 1165 01:27:55,680 --> 01:28:00,840 and uh the another thing is uh dns recon this is again kind of brute force and 1166 01:28:00,840 --> 01:28:05,120 look at different ways to go back and find subdomains and uh it 1167 01:28:05,120 --> 01:28:08,460 uses a bunch of other ways i think so many other 1168 01:28:08,460 --> 01:28:11,760 like it's kind of huge workshop itself finding subdomains 1169 01:28:11,760 --> 01:28:12,180 um 1170 01:28:31,540 --> 01:28:35,580 I just wanted to highlight this part like because if you seen in the second 1171 01:28:35,580 --> 01:28:40,300 scenario we kind of using fdns set so if we have compared different data sets and 1172 01:28:40,300 --> 01:28:42,520 fdns has a huge amount of data set given to us so it's kind of like a kind of 1173 01:28:42,540 --> 01:28:44,960 which has given subdomains because it kind of stores entire 1174 01:28:44,960 --> 01:28:48,640 historical internet level data sets rather than looking at certain tool 1175 01:28:48,640 --> 01:28:52,820 uh it gives more visibility uh across the data set so that is one of the 1176 01:28:52,820 --> 01:28:58,120 reason we picked uh the data set for fdns and the thing is like we have 1177 01:28:58,120 --> 01:29:00,800 created a cheat sheet if you wanted to go back and try out uh 1178 01:29:00,800 --> 01:29:05,480 feel free to do uh we will be here as well like if you want to drop to us and 1179 01:29:05,480 --> 01:29:10,360 ask any questions so moving on 1180 01:29:14,360 --> 01:29:20,400 so uh this is the one scenario which we wanted to cover the for the last part and uh what uh we 1181 01:29:20,400 --> 01:29:26,000 have seen is mainly focusing on looking for the fishing domains and uh as so many gave feedback 1182 01:29:26,000 --> 01:29:30,600 we kind of update uh any of the things which we can uh try to use like who is data sets and 1183 01:29:30,600 --> 01:29:36,540 compare it and correlate uh to showcase any uh data which can be possibly legitimate or not 1184 01:29:37,640 --> 01:29:42,160 and the thing is uh we kind of uh not able to put like uh 1185 01:29:42,160 --> 01:29:45,620 uh the time to make sure everyone has to do here like for the workshop 1186 01:29:45,620 --> 01:29:49,960 but uh as we said like we kind of make this uh update the gitbook with each 1187 01:29:49,960 --> 01:29:53,840 step-by-step screenshot as well uh we kind of tweet from the recon village or 1188 01:29:53,840 --> 01:29:58,720 our actual account uh you can like get entire uh the gitbook and the vm 1189 01:29:58,720 --> 01:30:03,080 go ahead and feel free to try whatever the stuff and please add your own data 1190 01:30:03,080 --> 01:30:06,520 sets if you find and uh try out like how you can correlate 1191 01:30:06,520 --> 01:30:11,040 and get more value out of this and if you have any questions uh please 1192 01:30:11,040 --> 01:30:11,960 let us know uh 1193 01:30:12,160 --> 01:30:15,740 then we kind of showcase the references part before concluding the workshop so 1194 01:30:15,740 --> 01:30:19,720 that you can go back and try other uh ways to look at uh the same data sets 1195 01:30:19,720 --> 01:30:22,380 to take it forward any questions 1196 01:30:25,100 --> 01:30:25,820 oh yes 1197 01:30:30,500 --> 01:30:30,980 yeah 1198 01:30:42,160 --> 01:30:43,100 , 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. 1199 01:30:43,100 --> 01:30:45,660 but we have to just use some other tool again to make it because the 1200 01:30:45,660 --> 01:30:51,420 existing domain uh domain registrar has no requirement that you need to provide or indicate 1201 01:30:52,080 --> 01:30:52,580 yes 1202 01:30:56,880 --> 01:30:57,380 yeah 1203 01:30:57,380 --> 01:31:07,220 yeah but sometimes people wanted to not to show their information as well in who is so they kind 1204 01:31:07,220 --> 01:31:11,900 of use who is god or something to protect stuff or you guys watch it fortunately and john knows 1205 01:31:12,160 --> 01:31:13,780 Yeah, all of them happen. 1206 01:31:13,820 --> 01:31:15,280 Yeah, yeah. 1207 01:31:16,320 --> 01:31:17,760 But during an assessment, 1208 01:31:18,140 --> 01:31:21,820 it wasn't a political problem. 1209 01:31:22,080 --> 01:31:24,260 We looked around at the color domains in the internet, 1210 01:31:24,420 --> 01:31:26,460 and one of the domains was registered 1211 01:31:26,460 --> 01:31:26,940 with . 1212 01:31:28,400 --> 01:31:29,720 We know it was locked. 1213 01:31:31,780 --> 01:31:32,580 Yes, you go on. 1214 01:31:32,720 --> 01:31:33,040 Yes. 1215 01:31:33,040 --> 01:31:35,280 So if you're asked to do an assessment 1216 01:31:35,280 --> 01:31:37,820 for company X, and they say, 1217 01:31:38,060 --> 01:31:40,240 you know, go find everything that you have, 1218 01:31:40,240 --> 01:31:41,220 and they're using 1219 01:31:42,240 --> 01:31:43,800 privacy, right? So now 1220 01:31:43,800 --> 01:31:46,020 everything is Google, all their 1221 01:31:46,020 --> 01:31:46,940 DNS is Google. 1222 01:31:47,900 --> 01:31:50,060 How are you guys confirming that the site 1223 01:31:50,060 --> 01:31:52,200 belongs to them? If you say 1224 01:31:52,200 --> 01:31:53,800 you have a list of a thousand sites. 1225 01:31:54,680 --> 01:31:56,040 That's not reasonable to 1226 01:31:56,040 --> 01:31:56,840 manually perform. 1227 01:31:57,780 --> 01:31:59,120 Yeah, normally you ask. 1228 01:31:59,520 --> 01:32:00,700 No, you just ask them. 1229 01:32:01,080 --> 01:32:04,500 I'm trying to figure out how you can automate that. 1230 01:32:04,600 --> 01:32:04,960 That's why. 1231 01:32:05,520 --> 01:32:07,560 You mean to say if they're given a domain and 1232 01:32:08,500 --> 01:32:10,060 Just, I don't want you to 1233 01:32:10,240 --> 01:32:11,460 know what my company is for. 1234 01:32:11,600 --> 01:32:13,560 By name, or like a kind of name? 1235 01:32:13,680 --> 01:32:14,600 I'm trying to tell you what I have. 1236 01:32:15,120 --> 01:32:17,680 I mean to say, I'm thinking, do you give the domain 1237 01:32:17,680 --> 01:32:20,300 as an input for the attacker or the tester 1238 01:32:20,300 --> 01:32:21,380 who is going to test? 1239 01:32:21,540 --> 01:32:22,720 Or like the company name? 1240 01:32:23,360 --> 01:32:24,840 Oh, okay. 1241 01:32:26,140 --> 01:32:28,480 And I'm an enterprise worldwide company, 1242 01:32:28,600 --> 01:32:29,680 I have multiple 1243 01:32:30,240 --> 01:32:32,520 divisions, each division has their own names. 1244 01:32:33,000 --> 01:32:34,200 So it's not always going to be 1245 01:32:34,200 --> 01:32:35,640 X.com, now it's going to be 1246 01:32:35,640 --> 01:32:37,360 EBC.com once you do that. 1247 01:32:37,920 --> 01:32:39,380 And how do you tie that together? 1248 01:32:40,240 --> 01:32:40,560 Yeah. 1249 01:32:43,960 --> 01:32:46,360 Maybe one thing is like we can go back 1250 01:32:46,360 --> 01:32:47,880 and refer to the site Google 1251 01:32:47,880 --> 01:32:49,920 or some other things, once we got, we kind of 1252 01:32:49,920 --> 01:32:52,000 correlate that information, like is there any 1253 01:32:52,000 --> 01:32:54,100 referral URLs from this site to going 1254 01:32:54,100 --> 01:32:56,220 back to that. Like if you use some people like 1255 01:32:57,040 --> 01:32:58,000 Shopify or something, 1256 01:32:58,180 --> 01:33:00,020 like they kind of use app.shopify 1257 01:33:00,020 --> 01:33:02,340 some different URL to give them shops 1258 01:33:02,340 --> 01:33:04,100 externally, but the main domain is 1259 01:33:04,100 --> 01:33:06,160 completely different from them. But if you see 1260 01:33:06,160 --> 01:33:08,260 any of the referrals, like a store, go to click 1261 01:33:08,260 --> 01:33:10,080 on the store or something, it will go back to the 1262 01:33:11,340 --> 01:33:11,820 whole domain. 1263 01:33:11,820 --> 01:33:13,180 There are multiple, yeah. 1264 01:33:13,860 --> 01:33:16,260 One of the common techniques we also use 1265 01:33:16,260 --> 01:33:18,200 is to use email addresses instead of 1266 01:33:18,200 --> 01:33:19,560 domain names to figure out. 1267 01:33:19,600 --> 01:33:21,740 But then you run into the case where 1268 01:33:21,740 --> 01:33:24,040 I'm using my personal work email to 1269 01:33:24,040 --> 01:33:25,220 stand up a site that's online. 1270 01:33:25,600 --> 01:33:28,100 So we come out of that development process 1271 01:33:28,100 --> 01:33:29,780 first to figure out, we look at 1272 01:33:29,780 --> 01:33:32,060 LinkedIn people and much other sites to figure out 1273 01:33:32,060 --> 01:33:34,140 who's the authority people in the 1274 01:33:34,140 --> 01:33:35,900 company who owns particular domains. 1275 01:33:36,020 --> 01:33:37,280 What is the admin team? 1276 01:33:37,800 --> 01:33:40,120 What is the ID? What's the 1277 01:33:40,240 --> 01:33:42,180 lead post? The information will not be 1278 01:33:42,180 --> 01:33:42,440 complete. 1279 01:33:42,760 --> 01:33:46,300 But from that set, we figure out 1280 01:33:46,300 --> 01:33:47,580 email addresses that would 1281 01:33:47,580 --> 01:33:50,060 be seen on the internet, who is they at? 1282 01:33:50,280 --> 01:33:51,980 And then use a real search to figure out 1283 01:33:51,980 --> 01:33:52,940 what other domains are there. 1284 01:33:54,180 --> 01:33:56,100 So what I'm trying to get to 1285 01:33:56,100 --> 01:33:57,960 is how do you automate it at scale? 1286 01:33:58,460 --> 01:34:00,120 And that doesn't, I'm not 1287 01:34:00,120 --> 01:34:02,320 hearing how to automate something like that at scale. 1288 01:34:02,400 --> 01:34:04,080 Because that's everything I do, right? 1289 01:34:04,240 --> 01:34:05,920 The other thing is you can 1290 01:34:05,920 --> 01:34:08,080 register with AWS, 1291 01:34:08,200 --> 01:34:10,120 everything, but you're hitting a company 1292 01:34:10,240 --> 01:34:11,840 DNS and you see that 1293 01:34:11,840 --> 01:34:13,860 So I'm like, 1294 01:34:13,940 --> 01:34:15,460 I have high confidence that 1295 01:34:16,060 --> 01:34:18,160 x.com DNS is yours. 1296 01:34:18,320 --> 01:34:20,200 So anything that hits that, I can confirm it 1297 01:34:20,200 --> 01:34:21,520 as being yours and I can attack. 1298 01:34:22,000 --> 01:34:23,420 When it's not like that, 1299 01:34:23,600 --> 01:34:26,060 So if you are internal, it will be 1300 01:34:26,060 --> 01:34:27,700 makes easier, you just look at 1301 01:34:27,700 --> 01:34:28,580 passive DNS traffic. 1302 01:34:29,640 --> 01:34:31,580 Like if you are an internal organization member 1303 01:34:31,580 --> 01:34:33,760 and as an internal organization, you want to look 1304 01:34:33,760 --> 01:34:36,080 or test your organization post share. 1305 01:34:36,220 --> 01:34:37,880 Then you kind of look for passive DNS 1306 01:34:37,880 --> 01:34:40,080 where it will, before going out of the 1307 01:34:40,240 --> 01:34:41,380 network, like a gateway. 1308 01:34:41,620 --> 01:34:43,720 So you can look for all passive DNS traffic 1309 01:34:44,100 --> 01:34:45,940 and profile them. Maybe it is 1310 01:34:45,940 --> 01:34:48,040 one of the best way to look. Because whatever 1311 01:34:48,040 --> 01:34:50,040 they have to look, they can go through the same 1312 01:34:50,040 --> 01:34:52,120 DNS which you have organization. So it will 1313 01:34:52,120 --> 01:34:53,160 give you complete entries. 1314 01:34:55,320 --> 01:34:56,120 But coming 1315 01:34:56,120 --> 01:34:58,040 to the external post share, maybe you have to do 1316 01:34:58,040 --> 01:35:00,100 some kind of work in terms of different 1317 01:35:00,100 --> 01:35:01,540 techniques and ways to look at. 1318 01:35:01,700 --> 01:35:03,640 But yeah, it's a little tougher to automate 1319 01:35:03,640 --> 01:35:05,940 unless you put the manual steps in place and 1320 01:35:05,940 --> 01:35:06,480 document it. 1321 01:35:07,440 --> 01:35:07,840 Yeah. 1322 01:35:10,400 --> 01:35:10,840 True. 1323 01:35:12,220 --> 01:35:13,100 Yeah. Cool. 1324 01:35:13,460 --> 01:35:15,980 So that is the things. I will just quickly 1325 01:35:15,980 --> 01:35:18,120 cover whatever the references we have put 1326 01:35:18,120 --> 01:35:19,720 so that you can go back and look at them. 1327 01:35:20,560 --> 01:35:22,160 The certificate transparency page, 1328 01:35:22,300 --> 01:35:24,200 like you can go and look at the more 1329 01:35:24,200 --> 01:35:26,100 details about how the way capture 1330 01:35:26,100 --> 01:35:28,280 and what are the data information they give away 1331 01:35:28,280 --> 01:35:30,160 and the places to look 1332 01:35:30,160 --> 01:35:32,180 if you wanted to get the certificate transparency logs. 1333 01:35:32,880 --> 01:35:33,320 And 1334 01:35:34,440 --> 01:35:36,160 there is a blog post we have 1335 01:35:36,160 --> 01:35:37,640 written as a 1336 01:35:38,080 --> 01:35:40,140 kind of what you call, three different 1337 01:35:40,240 --> 01:35:42,300 formats, like three types. 1338 01:35:43,280 --> 01:35:44,360 Like three types, 1339 01:35:44,420 --> 01:35:46,340 dark side, bright side. 1340 01:35:46,960 --> 01:35:47,600 Only two. 1341 01:35:47,780 --> 01:35:50,420 Only two. Okay. So there is a blog post 1342 01:35:50,420 --> 01:35:52,220 we have written about more like detailed 1343 01:35:52,220 --> 01:35:53,900 what are the things, information it discloses 1344 01:35:53,900 --> 01:35:56,240 and about stuff. The project which we were 1345 01:35:56,240 --> 01:35:58,180 talking when we were doing scenario one, like 1346 01:35:58,180 --> 01:36:00,420 Calidoc security, this is the one which kind of 1347 01:36:00,420 --> 01:36:02,100 automatically run your own server for 1348 01:36:02,100 --> 01:36:04,040 listening all the certificate transparency logs. 1349 01:36:04,520 --> 01:36:06,200 And the rapids of an open data 1350 01:36:06,200 --> 01:36:07,200 site is 1351 01:36:07,900 --> 01:36:10,220 scans.io. So it not only 1352 01:36:10,240 --> 01:36:12,240 has the forward DNS data set, it also 1353 01:36:12,240 --> 01:36:14,200 has a bunch of other data sets which you 1354 01:36:14,200 --> 01:36:15,700 wanted to look and may be interested. 1355 01:36:16,800 --> 01:36:18,100 If you see this project 1356 01:36:18,100 --> 01:36:18,360 owner, 1357 01:36:20,280 --> 01:36:20,760 yeah, 1358 01:36:23,360 --> 01:36:24,320 this one. 1359 01:36:27,060 --> 01:36:27,960 Yeah, this one. 1360 01:36:28,200 --> 01:36:29,980 So the project owner has 1361 01:36:29,980 --> 01:36:31,880 the data sets like 1362 01:36:31,880 --> 01:36:34,140 they kind of give you different ways to download. 1363 01:36:34,400 --> 01:36:36,080 As I said, it's kind of huge 1364 01:36:36,080 --> 01:36:38,060 if you wanted to download at internet scale. 1365 01:36:38,380 --> 01:36:39,960 And people kind of use 1366 01:36:40,240 --> 01:36:42,260 like some huge 1367 01:36:42,260 --> 01:36:43,880 servers to parse and process. 1368 01:36:45,740 --> 01:36:48,080 Feel free to go ahead and download and try those 1369 01:36:48,080 --> 01:36:50,040 stuff. And that 1370 01:36:50,040 --> 01:36:52,000 is mostly about us. And 1371 01:36:52,000 --> 01:36:53,600 if you have any questions, 1372 01:36:53,860 --> 01:36:59,920 please feel free to take our card 1373 01:36:59,920 --> 01:37:02,160 or like tweet to us, like happy to answer. 1374 01:37:02,320 --> 01:37:04,280 And we will be sending this or tweeting 1375 01:37:04,280 --> 01:37:05,680 about this workshop, the 1376 01:37:06,240 --> 01:37:08,220 documentation and VM mostly tomorrow. 1377 01:37:08,780 --> 01:37:09,520 By tomorrow. 1378 01:37:10,320 --> 01:37:11,680 Thank you so much and 1379 01:37:11,680 --> 01:37:12,720 have a great day.