start	end	text
0	3380	We've had an amazing run of talks.
3380	4600	Some very interactive talks.
4600	8180	Some real good crowd being attracted towards.
8400	10060	Up next is a similar one.
10060	19420	We've got Lenin Elveski, who is a security professional and with over a decade's experience specializing in cloud and application security.
19560	21780	He has experience with a lot of technologies.
21780	25240	You name the technology and he will be able to talk to you about it.
25240	32380	He's been a former speaker at DEF CON and B-Sides and multiple other conferences as well.
32380	35860	His topic for today is Recon Mind Map.
35860	40720	Organize, visualize, and prioritize your recon data efficiently.
40900	50860	Now, whenever you do a recon on a target, you probably end up with a lot of URLs, domains, and IP addresses that you can handle in a limited time.
50860	52200	How do you prioritize them?
52200	55980	If there is very less time left, how are you going to prioritize them?
55980	69920	So, he's going to go ahead and introduce his tool over here called Recon Mind Map, abbreviating it to RMM, which is a tool that will simplify the task of organizing and sorting all these assets.
70240	74800	RMM is actually capable of a lot of things, which he will let us know about.
74840	82720	During the talk, Lenin will discuss his motivations behind building this tool and what problem it's going to go ahead and solve.
82720	85340	So, let's give it up for Lenin.
90190	92150	Yes, yeah, I can...
94620	95280	Cool.
95280	97160	Thank you so much for attending this talk.
97540	102880	So, we have learned so far a lot about these multiple tools that exist, right?
102880	106000	To do our job of a recon, things like that.
106100	124680	Today, I'm going to talk about me trying to learn recon, but also trying to optimize a little bit of the process of specifically how to analyze URLs and a lot of artifacts that you get when you do, like, a scanning or when you try to organize your domains.
124800	126880	And then, if I can, I'm going to try to do a demo.
126880	129860	If not, you will have to do it on your own on GitHub.
131040	133300	So, my name is Lenin Alepsky.
133300	134820	I'm originally from Mexico.
134820	139060	I'm currently working as a security engineer for Google, one of the security teams.
139100	145000	I'm also an open source contributor, and I collaborate in a couple of villages and nonprofit organizations.
145600	153840	I have been working on startups, small companies, big companies, everything in between, and I'm obsessed with cybersecurity.
155860	158480	So, this is the agenda for today.
158480	160340	It's going to be a short talk, demo talk.
160480	165780	So, I'm going to talk about what was the main problem, the motivation, what I tried to solve.
166240	171240	And then, I'm going to present a little bit of what the tool is about.
171240	172400	It's very simple.
172400	174060	You will like it, I believe.
174060	176160	I'm going to introduce Recon My Map.
176380	181700	And then, we're going to talk a little bit of how it works, the algorithm behind that.
181700	185980	And then, if the demo bots will allow it, a quick demo.
186360	195360	So, with that said, the main problem that I have when I started doing Recon is probably a lot of you will know.
195360	197240	We have multiple teams.
197300	202180	We have like WorkSuite that allows us to scan and scrape and get a lot of domains.
202180	203500	We have VirusTotal.
203500	206160	You can also pull URLs from there.
206160	212440	You can query autonomous systems and it can give you all the domains and subdomains for a particular target.
212580	214400	Wayback Machine, Amass.
214400	218600	Ultimately, you will throw all of that to a particular target.
219260	233880	So, eventually, the first problem that you will face, or I face at the time, is that you may end with hundreds or even thousands of URLs and domains and subdomains and you really don't know where to start.
233880	239280	Even if you have a scope, how do you prioritize all of that?
240060	253600	So , another problem that you may have is that when you do security professionally, your job just doesn't end at running scans or doing the fancy hacker stuff.
253600	257720	You have to do a lot of planning, a lot of reporting.
257720	261100	You have to have meetings with customers, stuff like that.
261100	264560	So, ultimately, this is the main problem that I face.
264560	280280	How to prioritize the URLs that I want to do and also how to create some fancy diagram, fancy chart that I can put on a presentation and then shareholders enjoy the data.
280280	293220	So, I was quite frustrated about that for a long time until I attended one of the talks about JSON headaches from Book Bounty Village.
293220	304080	And he showed a very cool methodology that he does, which is he's trying to organize the data in this particular format that is called a mind map.
304280	310540	So, I talked with him and I told him, yeah, that's a very cool way to visualize data, right?
310540	323960	And not only that, because there is a couple of studies that talk about what the impact of using that particular way of learning, which is structuring your data in a hierarchical order or grouping them by concepts.
324340	325920	And it has real benefits, right?
325920	329000	Such as it allows you to enhance memory retention.
329000	331180	It allows you to improve comprehension.
331180	339860	You can very quickly remember and very quickly see what is what you want to prioritize, right?
340100	354160	So, with that idea in mind, I start coding one weekend and then I end building this small CLI application called RecodeMindMap, which is written in Go.
354160	359520	You can also run it in a container environment or as a container image.
359580	361580	And the concept is pretty simple, right?
361580	366660	You give it some input, like unsorted list of URLs and structured data.
366660	377160	It's going to do some fancy kind of graph traversal and it's going to organize everything in a nice hierarchy structure, right?
377160	384300	It produces output in JSON format, Markdown, and YAML, so it's compatible with other tools.
384560	387740	And just to give you an example, it looks something like this, right?
387740	389560	This is what I was talking about.
389560	404480	You give the list of URLs that you got from your usual recon and then it can produce that list of URLs, a sorted structure group in any of the formats that I mentioned already.
405180	423720	Then after that, you can use your favorite MindMap tool to just copy and paste that output and the tool will automatically create a nice chart, a nice graph that then you can use to continue your usual penetration testing or recon kind of stuff.
423720	427020	Or you can also include it in your diagrams, right?
427020	430440	As I say, it's pretty simple, right?
430560	435380	That's what I focused at the beginning, kind of make it stupid simple to use.
435380	439020	It uses a single binary, less than one megabyte.
439720	446480	And I think when I kind of presented this tool the first time on Twitter, it got very well accepted.
446640	450740	I haven't gotten much contribution yet, so I'm hoping also that people contribute.
451160	453540	But now let's talk about how it works, right?
453540	455500	This is going to be not too technical.
455500	457300	I don't want to go into the details.
459120	469360	But a quick story that every time I need to relearn algorithm or libcode stuff is whenever I'm interviewing because that's what they ask you for the interviews.
469800	474900	And when I'm trying to solve this problem, I finally found a good use case for this, right?
474900	482800	So what the tool really does is takes a list of domains, as I was saying, with domains, subdomains, and so on.
482800	489020	It's going to split it by top-level domain, domain, subdomain, like all the tokens.
489020	491480	It's going to iterate all over them.
491760	500200	And it's going to be created with a combination of hash maps and path traversal, BFS path traversal, or graph traversal.
500200	504680	It's going to create this structure of nested domains, subdomains, right?
504680	513840	So in this example, it's going to iterate from the top-level domain, the domain, and all the subdomains, and it's creating that structure.
514620	516080	So, same thing.
516080	529080	You can see how it starts populating the different levels until finally it completes the whole iteration, the whole processing of all the domains.
529480	533740	And then you end with this structure that is quite generic.
533740	540200	I want it to be quite generic so I can export it to any different format, right?
540200	556820	I'm not saying JSON, Markdown, YAML, or any other format that then will be compatible with software that creates mind maps such as XMind or Obsidian or really any other software that can render this information, right?
556900	559140	So now, here is the part of the demo.
559140	561140	Let me see if this thing works.
605200	608680	No, I think my computer is not working.
608680	609320	I'm going to show you
612890	613170	.
614030	616550	I don't want anything sensitive.
616550	621430	Yeah, I just want to show GitHub, github.com, so people can just go there.
623030	623990	Which one?
630140	631860	I can try that.
645820	646660	Yeah.
646960	649960	No problem, I'll just open up a browser.
650080	656920	Yeah, I'm going to show you what I have on GitHub, and I have a couple of cool screenshots there.
711720	714240	Yeah, the project is publicly on GitHub.
714240	722180	You can go right now, github.com, slash, myhandle, alep.com, slash, rrm, from recon my map.
722260	729860	And as I was saying, if you want, you can run it directly from a docker container, so the instructions are here.
733220	742420	You can see there, and I have an example there, for example, you can pull up a list of Microsoft domains and subdomains that are publicly available.
742560	744980	You can pass them directly to the tool.
749680	765840	You can pass it directly to the tool, like using a standard input, and then that output, you can use copy and paste and use software like XMine that will automatically format everything in that graph.
766120	768780	Before that, I used to do that.
769920	773040	I'm connected to a public one, like a desk phone.
773040	775020	No, no, no, no, this is not connected to that.
785600	787380	Yeah, continue, please.
788240	792940	So, yeah, this is the problem that this tool solves, right?
792940	794440	That's what I was talking about.
794440	805340	Before doing that, I would have to go and manually be copying and pasting the domains and doing this analysis of which subdomains belong to which domain and all of that.
805340	818400	So the tool, once you download it and once run it, you just feed the list of domains and subdomains and it will automatically do all this for this, right?
818400	829320	So the tool also supports, as I was mentioning, like multiple output, like JSON format, YAML, like Markdown, you name it.
829320	832600	So it's the capacity to expand.
832600	839400	And there is a couple of, you know, like future improvements that I want to...
844320	847740	There is a couple of future improvements that I want to work in.
848100	854800	Probably before DEF CON ends, I'm going to be able to put a web API so you don't have to run it directly on your CLI.
854800	864440	You can just start a web server and then do a cool request or HTTP request and it's going to return all the content for you.
864440	873500	I want to add a couple of domain regular expressions and filters so you can filter that graph and only get what you want.
873620	878560	Currently, you kind of can do that using JQ, which is a CLI tool.
878560	885420	So if you decide to output your content in JSON, you can then use JQ to kind of filter that.
885840	898940	I want to do automation integration with a couple of other tools, such as right now, let's say I generate all of this mind map and then I start running like end map or additional scanners.
899140	900800	And that process is still manual.
900800	906060	So I go and copy the output for that into my mind map and present it on the report.
906060	909500	But I think I can automate that work as well.
909500	912140	So that will be a good thing to have.
913140	920280	And also support more input and output formats also will be a really cool thing.
920280	927700	And finally, adding webhooks and continuous monitoring so you get alerting whenever you see a specific domain.
927700	932300	Because ultimately, I want this to be kind of like an intelligence tool, right?
932300	942900	Like it's continuous monitoring a stream of URLs and then it's actuating on a particular alert that you configure or filtering, right?
949790	969110	So today we kind of talked about a little bit of what was the problem of dealing with this huge amount of information or specifically to do kind of like strategic work or prioritizing your data or visualizing and also how to do that reporting.
969190	973150	So now you know there is an additional option, which is this small tool.
973150	982890	We also talked about how it works internally, how you can run it via CLI commands or how you can run it on Docker.
984290	992070	I tried to do a demo that didn't work, but if you catch me outside, I can show you directly on my machine or I can help you to download it and run it.
992490	999850	And with that, I think this is the end of the presentation and I'm open for questions in case you want to talk more about it.
999850	1000110	Any
1010020	1012240	questions ?
1017380	1018540	Yes?
1030930	1034850	So let me repeat the question if I correctly found.
1034850	1040690	So after generating this graph, what's the process to...
1041250	1045490	Okay, so that will depend on the type of work that I'm doing.
1045490	1063130	Like, for example, if I'm doing something like a pen testing and they give me a particular scope that is a subdomain, then it's very easy to see all the domains that concentrate on a particular subdomain that is of interest, for example.
1063130	1069730	In that example, in the repository, there is one subdomain from Microsoft that is under research.
1069950	1081350	And if you go and see everything that is under research, then you can start thinking or have an idea of what are those domains, what type of information those domains are hosting for.
1082370	1087950	Another example that I have there is, for example, it supports giving a list of i.P.
1087950	1088750	Addresses.
1089390	1089950	So the i.P.
1089950	1095590	Addresses, it will automatically calculate the siders and group them, all of that.
1095590	1104130	So you can do, for example, some network scanning or network mapping and then put all the output of those tools there.
1104130	1108490	And then you can just include that in your final report, right?
1108490	1116930	So I will say I create this as a tool to help me fix a particular problem that was very painful at the time.
1116930	1121750	I want to sort these domains or these strings.
1122030	1125570	And then after that, it depends on what I'm doing, right?
1125570	1128130	My hope is to automate the next steps.
1128370	1132190	And as the image says, making a little bit more progress.
1132190	1133270	Question there?
1133270	1133990	Yeah
1138240	1148720	, so one of my hopes is, right now, the process is, like, I get some input, I transform that into, like, a genetic graph.
1148760	1154020	And then I have some functions to print, right, on different formats.
1154020	1157760	So I could add, like, an interface that is multigo.
1157760	1166300	And the multigo interface in Go is going to basically define how to print that in multigo format, right?
1166300	1167260	So that's the idea.
1167260	1176180	I kind of create a tool to be extended so people can contribute and they can add additional inputs and output formats.
1180700	1182260	Yeah, any other questions?
1182260	1185920	If not, I think we're good.
1186260	1187120	Thank you.
