start	end	text
27680	33580	Good morning everyone.
35420	39020	How is day 2 in Vegas going for Defcon?
41840	46680	This being the last day for Defcon today and I'm sure we've got a lot of plans after Defcon.
46840	49300	So let's gear up for the last day and give it our best.
49300	51880	We had a blast yesterday.
52040	56400	There were some amazing talks and almost all of our talks were full house.
56480	60120	We had people peeping in from here, peeping in from the back.
60120	62360	It was overwhelming.
63060	68580	And I'm hoping it's going to be even better today because we've switched gears with a lot of workshops.
69100	77920	Now the first workshop that we've got is the Multigo Community Workshop, which is going to be presented by Carlos Fragoso.
77920	87220	Carlos is an incident response and forensic consultant and also team leader at Security Ninjas.
87220	102820	With over 10 years of experience, Carlos has worked with a lot of security teams, certs, law enforcement teams, multiple agencies, with a special intention to work with perimeter security and intrusion detection.
102820	110140	Carlos has been a frequent speaker of networking and security topics at multiple workshops and conferences.
110300	115400	So we've got someone very resourceful and very intelligent with us over here giving us a workshop today.
115400	121040	He has collaborated with SANS Institute on several advisory boards as well.
121420	129700	And now this workshop aims to describe how to use Multigo CE with the common available transform sets.
129700	140580	Additionally, this workshop will teach you how to extend the tool by integrating external data sources and OSINT tools thanks to the open source Multigo TRX library.
140980	148500	So this walkthrough has a lot to offer and there are some demos and Q&A as well.
148500	150600	So please give it up for Carlos.
154240	156260	Good morning, everyone.
156580	160060	Glad to see wake-up faces.
160560	165700	I hope you had a lot of fun yesterday in the event and after the event with your colleagues.
167000	173840	And I'm very honored to be here with all of you today at DEF CON to have this Multigo workshop.
174620	177820	So let's get started then.
177820	181100	I have been already introduced, so I will skip that.
181100	185400	So what's the goal of this workshop today?
186220	195160	The idea is to... I mean, probably some of you have already used Multigo recently or in the past.
195800	206640	So we are going to do a little bit of setup at the beginning, giving some time to make sure for those of you who don't have their proper setup, we tell you what do you need.
206640	212760	I think most of the steps we will follow today, you can follow them after the workshop by yourself.
213280	220760	But anyway, we will try to keep everyone following the content we have today.
220800	228540	And after this quick setup, we will cover a little bit of introduction about Multigo, about the possibilities of the tool.
228540	247660	And then, I mean, one of the big goals of this workshop is letting the community know that probably the Multigo you have seen many years ago that was able to collect a lot of information from public sources can be used for other things.
247660	258700	Can be connected with your own data sources, can be easily connected with OSINT or Forensic or DFIR tools that you use on a daily basis.
258700	263860	So we will try to invest some time showing the basics of coding.
263880	267820	This is not a coding workshop, but we will have to code a little bit.
267820	278920	We will show pieces of code so that you will see how data sets can be connected or how your favorite OSINT tools can be connected into Multigo.
280140	282660	Okay, so let's get started.
283400	286820	So how many people in the room have already used Multigo?
287740	289760	Okay, some of you.
289760	290660	Lovely.
291220	295800	Okay, so which are the requirements for this workshop?
296680	303960	Multigo is a tool that runs in most of the operating systems is completely multi-platform.
303960	308920	So you can run it in Linux, in Mac, in Windows without any problem.
309660	314180	So for those who have probably the quickest way to do it is for those who have Kali Linux.
314180	317440	In case you have it, you can just install it.
317900	322420	If not, we will show you the quickest steps to do it in Linux in a moment.
325420	333340	And apart from that, you will need to register for a Multigo ID.
333340	336060	It means for activating the community edition.
336160	339900	So the tool we are going to use today is not the commercial tool.
339900	341420	It's not the enterprise tool.
341420	346660	That's for companies, enterprises, law enforcement are using this enterprise version.
346660	348160	Today we use the community version.
348160	348900	It is for free.
348900	350800	It's available for all of you.
350800	354700	But in order to use the tool, you need to register with a Multigo ID.
354700	358480	You don't need to give your real data if you don't want.
359080	365580	If you want to follow operational security stuff, you can use just fake data.
365680	367160	Don't tell my colleagues that.
369500	371380	But you can do it that way.
371420	382100	And then, as I told you, in the second part of the workshop that we will cover the coding part, we are going to mainly use Python with any IDE you want.
382100	384120	Or if you want to do it just command line.
384700	386060	And that's it.
386960	395600	The steps to start with the setup will be, as I told you, downloading the Multigo.
396020	398620	You can download it from our website.
399260	405980	And complete this registration form in order to have access to Multigo.
407500	408920	So these are the steps.
408920	414340	And as I told you, this presentation will be shared after this workshop.
414340	416080	So you can do it by yourself.
416360	419820	These are exactly the four steps you need if you want to do it in Linux.
419860	421280	Download Multigo.
421760	426220	Install the binary, in case you do it in Linux with a package manager.
426300	427340	Install Java.
427360	429060	Still, Multigo depends on Java.
429060	431500	That's something that will probably change in the near future.
431560	434340	But nowadays, it still runs on Java.
434340	436600	So we need at least Java 17.
436880	439400	And then run the Multigo tool.
440120	449480	So for those who have Kali, you can just open your Kali Linux and do apt install Multigo.
449680	453480	Multigo was installed by default in Kali for many years.
453480	456680	But you know, the Kali Linux was growing and growing.
456680	460060	So some of the packages, Multigo is a little bit, let's say, thick.
460060	463080	From the point of view of use of the hard drive.
463080	465000	So it's not installed by default.
465000	469620	But just installing the package, you will have it because it's in the Kali repository.
469980	473920	And our team customizes that package for Kali.
475000	481440	And last but not least, I wanted to point out that lately, and I have to kudos TechRack.
481440	483800	That is an influencer in YouTube.
484080	488700	There is also an alternate way to run Multigo, if you want, in the browser.
489060	491000	Just by using Docker containers.
491000	499320	For those who are familiar with containers and prefer not to run Multigo in a VM or in your operating system.
499320	509220	You can just deploy Multigo inside a container and open that container with the browser.
509520	513120	So I'm going to show, probably this is something not many people know.
513120	515720	So I'm going to show a quick demo of this part.
516320	518300	Let me open here the browser.
523860	525920	Because there is a demo here, so in case...
525920	533580	The people from KSM, that is the technology to, let's say, put applications inside a container.
533580	536920	They also have a community version, so you don't have to pay for this.
537160	541780	So I'm going to launch and you will see that basically...
542680	547300	This is going to open, you will see in a few seconds, Multigo inside a Docker container.
548760	555560	So basically what they are doing is streaming a Linux environment.
556780	558380	Okay, let's wait a few seconds.
558380	560320	The network is going a little bit slow.
560320	562380	Let's wait a few seconds to see if we can show it.
562380	563840	If not, I will skip it.
569810	574570	Okay, let me go back then to the PPT while it is opening.
581360	582740	So let's see.
582740	583320	Okay.
583800	586740	So now it's opening, it looks like.
597850	603050	And in a second you will see basically Multigo opening in the browser inside this Docker container.
603050	603690	I will skip it.
603690	605550	I don't want to lose a lot of time with that.
605550	608850	You have here instructions, even a YouTube video from this influencer.
608850	614570	So kudos to this guy who was showing an OSINT investigation using Multigo one year ago.
614570	618010	Using this way to deploy Multigo.
618610	624950	Once you have Multigo installed in your computer, you need to activate it.
624950	627470	So basically you will see here Multigo CE.
628390	633850	So the first time you have to do register, that will go to the registration site.
635390	637150	So I will now leave...
638830	645470	I will leave a couple of minutes to make sure all the people have Multigo on their systems.
645470	649630	So for those who already have Multigo, be patient for your colleagues.
650550	653670	So I will go back to these slides.
655670	666250	So please, those who are in class and want to follow the workshop in a hands-on way, please download Multigo and create an ID.
667630	668030	So...
670660	672380	Here the timer, quickly.
682540	687580	So as I told you, I will leave a couple of minutes for those who don't have Multigo, you want to install it.
687800	692860	No worries, if you don't want to do it, you just want to follow what I'm doing on the screen, that's okay also.
719400	725380	The gentleman here was asking about the amount of RAM to allocate for Java, for Multigo.
725380	730700	By default, as far as I know, it's recommending 8GB of RAM.
730800	736500	That is not, let's say, completely necessary, unless you are a heavy user of Multigo.
736500	740660	So you are doing a lot of investigations with a lot of data, probably you need a lot of RAM.
740660	746420	But for what we are going to do today, I will say even 4GB of RAM, probably Multigo can run without any problem.
746540	749020	So don't worry about the RAM for this workshop.
749360	753740	Probably if you put 2GB of RAM, it's not going to work, but 4GB should be enough.
755380	761100	So let's wait a few seconds to make sure it's being installed.
776650	782290	I will leave also some time later, but for those who don't complete the steps now.
802880	805400	Okay, so let's continue then.
807100	814140	So once you install Multigo and you create an account, basically you will have the possibility to log in.
814140	822180	And you will see that you have activated your Multigo Community Edition.
822180	828220	And then we will say that Multigo is completely operational to work.
828660	834900	So what we are going to do to make sure that your Multigo client is operational.
834900	839360	We are going to do a few steps to show how to run Multigo.
839360	844460	So for that, what I'm going to do is once Multigo is open.
844660	850320	Here at the top, you have this big button that you can click and click here on Neo.
850340	852320	Or you can just click on this one.
853100	856940	Let me put the cursor here.
860060	867300	And I was saying here you have Neo or we have here this button.
867300	872740	So when you click here on Neo, you will see that a new graph is being opened.
872740	876720	So you will see that different tabs are being opened here.
877880	882920	So what we have for those who have never seen Multigo.
882920	886220	We will describe a little bit more of the logic behind later.
886240	889120	But here in the left side, you have the Entity Palette.
889140	893020	So what we are going to do is here just to write here a website.
897490	898950	Let me delete this.
899850	905890	And what I'm going to do is put Defcon.org.
906950	912970	So basically to change the name, you just need to double click and right over it.
915070	918990	And what I'm going to do basically is to do right click.
918990	930010	And then here I'm going just to type directly the transform I want to use to IP address.
930110	932610	So you see here to IP address DNS.
937060	938900	And then you will have something like that.
938900	941140	You can put it full screen if you want here.
941140	943160	Just click in here in this icon.
943160	953480	So basically if you have installed Multigo, you have activated it.
953480	956400	And then you open a new graph and you run this.
956400	958440	It means that Multigo is operational.
958620	966620	So you can be sure that from now on you can use Multigo for investigations.
966620	969580	With the transform that comes with Multigo by default.
969580	972000	With the ones that are included by default.
973260	976420	Okay, so here we go.
978320	981300	So these are the four steps I have followed.
981300	983580	The first one is opening a new graph.
983580	986260	Selecting a specific starting point.
986260	988400	In this case was a website.
988700	994120	I set up as a website Defcon.org.
994120	1001320	And then I just run a transform to pivot to move from the website to IP addresses.
1003990	1004990	Cool.
1004990	1011810	So for the part of coding, for those of you who are not familiar with coding.
1011930	1015710	It's highly convenient to install an IDE in your computer.
1015710	1019830	It means that it's an application that will help you during the coding process.
1019830	1023270	With a lot of extensions, with a lot of features.
1023270	1029330	You have something I recommend during my trainings is to use PyCharm Community Edition.
1029330	1034610	You have also, for those who love more Microsoft stuff, you have Visual Studio Code.
1034990	1037510	Or you can just code on the command line.
1037510	1039890	So you can just do it in the way you want.
1044010	1047710	In this workshop we are going to have one lab.
1049610	1059010	That's probably the lab for the people who are not, I would say, comfortable with coding.
1059010	1062230	Probably you won't have the possibility to complete it today.
1062230	1064530	But you have here step-by-step notes.
1064530	1067930	So basically what I did is I prepared this document here.
1067930	1069330	You have the QR code.
1069330	1072210	But if you don't like QR codes, you have the URLs here.
1072350	1077830	That basically is a PDF document I created with Obsidian.
1077830	1080130	That is a common documenting tool.
1080130	1088330	That basically includes step-by-step what to do in order to complete this lab.
1090310	1095130	Okay, so as I told you, this part is about the setup.
1095290	1099030	So from this point on, we have Multigo operational.
1099230	1103950	You should have a coding, and you're competing in a coding environment.
1104030	1110770	And also you have the notes for the lab we are going to complete later.
1111130	1115490	If someone is lost, if someone has not completed all the steps, don't worry.
1115490	1121250	I will go through all the tables later to see if someone needs help.
1121250	1125890	Okay , so let's do a quick Multigo introduction.
1126310	1129730	So today we are going to use Multigo Community Edition.
1129730	1135770	As I told you, it's a free version that we have on Multigo.
1135770	1139510	That is not intended to be used for commercial use.
1139590	1141610	And has some restrictions.
1141610	1145810	Especially the big one is the number of results that you can get per transform.
1146150	1152770	So many of the people in the community are familiar with these two Multigo versions.
1152770	1155070	Multigo Community and Multigo Case File.
1155090	1158410	Multigo Case File, we are not going to show it today.
1158410	1161690	But Multigo Case File is a tool just for documenting.
1161690	1168610	When you want to generate a graph, you can use Multigo Case File to do this process manually.
1168610	1174930	To document any APT, any investigation you want to do, to represent that visually.
1176670	1180790	So the concept behind Multigo is to use link analysis.
1180790	1183250	So what we have are entities.
1183250	1192350	Entities could be a person, could be a social media account, could be a company, could be a website, could be a phone number, could be an email.
1192350	1195370	Anything that we want to investigate is an entity.
1197230	1205070	But how we go from a person to a phone number, how we can go from a person to an email.
1205150	1208230	This is what we call pivoting.
1208230	1211010	That is basically linking data together.
1211010	1217530	So we need to have a data source that is providing us some connections between both things.
1220010	1223190	So where is the data coming from?
1223190	1233890	So probably for those of you who have used Multigo in the past, not in the last three, four years, probably you know that Multigo is connecting to a lot of public data sources.
1234030	1247110	You have infrastructure data, Wikipedia, even some data sources like some providers like VirusTotal that they have public versions, like Sandboxes, many places that are online.
1247390	1248710	Also commercial sources.
1248710	1252630	We are not going to cover this today because we are using the Community Edition.
1252630	1260410	But the important thing that we will cover today is connecting to your own data and tools.
1260410	1272150	Probably many of you, if you are connecting, you work in cyber, you have platforms, you have applications, you have forensic tools, you have whatever.
1272210	1277910	That basically many of these tools, they have APIs or they drop files or they have databases.
1278190	1280090	And this data can be connected.
1280090	1284730	That's one of the powers that Multigo can provide.
1284730	1297210	And I'm going to try to teach you today how to connect these data sources so you can visualize and pivot from this kind of information.
1298330	1303390	So this diagram here is trying to represent what Multigo can do.
1303390	1311810	For those who are not familiar with the transform, at the top, what you have are the data sources.
1311810	1314190	What you have will be the Wayback Machine.
1314190	1317610	In OSINT, the Wayback Machine is keeping a copy of websites.
1317710	1320150	You have cryptocurrency, the blockchain.
1320770	1332510	You have websites like I was showing you, the DEF CON websites, Wikipedia, markets, criminal forums, many, many places that they are waiting for you to connect data.
1333910	1338990	So here in the middle, what we have is different providers, different tools.
1338990	1344370	What they are doing is basically analyzing the information that is online interfacing.
1344370	1353010	For instance, you go, you want to extract the list of friends of a Facebook account or you want to extract the followers of a Twitter account.
1353270	1354990	You need an interface.
1355470	1358410	When you do it manually with the browser, that's okay.
1358410	1367050	But if you want that Multigo or other tool is able to collect this data, you need a piece of code to interface between the social media network and the application.
1367050	1368670	So that's an interface.
1368750	1370810	Archive, data, intelligence.
1370810	1376170	Maybe some of the tools are processing the data for your team or for yourself.
1378170	1380170	We have the data sources.
1380170	1381830	We have the code doing that.
1381830	1383510	So what's Multigo doing?
1383510	1392750	Multigo, what it's doing is collecting the data from the different data sources, merging the data together and mapping the data.
1393370	1397110	And that seems very simple, but that's very important.
1397130	1403670	Because when you have, let's say, a forensic tool, you have a website, every single data source is different.
1403910	1410970	But when we are collecting this data from all these different places into the same one, we need to normalize.
1414290	1418850	Independently of the data source, to map this data to something that is what we call an entity.
1419450	1422130	And, of course, map the information together.
1422130	1424510	Because what we want to do is to have insights.
1424750	1428350	We have some starting points and we want to uncover something.
1428690	1437250	So that process at the end is visualization, analyzing data, collaboration, and also automation that I will show in a few minutes.
1439890	1445510	So I see all the faces, I don't know if you are awake with me, yes?
1445810	1448970	So if anyone has any questions, please stop me.
1448970	1452310	I prefer that you drop anytime you have any questions.
1452310	1455270	I think all the audience will benefit from questions.
1455330	1456990	If not, I will continue.
1457330	1461510	And here I'm going to show how does Multigo work.
1461510	1467110	So in the right side of what you have is the data source, the data set.
1467110	1471090	Could be a database, could be a webpage, could be a social media platform.
1471530	1482150	So if you remember when I was showing you here a few seconds away, I had the DEF CON website and I was able to obtain two IPs.
1482150	1488950	Basically, what was happening is that the Multigo application was sending a request to a remote server.
1488950	1494890	To a server that is on the cloud, and this server is collecting the data.
1494890	1500410	It's running a small piece of Python code and collecting this data for you.
1500590	1504750	So from the point of view of operational security, that protects the investigator.
1504750	1512370	So the Multigo client is not collecting the data directly from the data source, but you have servers in the middle.
1512370	1514870	But also, we are very strong.
1515010	1519270	I mean, Multigo at the moment is based in Germany, the headquarters.
1519650	1527210	And we are applying to the product, even to the community edition, very strong privacy and constraints.
1527210	1529930	We are following GDPR and all the regulations.
1529930	1539670	So it means that Multigo is not inspecting or archiving the queries that the analyst is sending to the internet.
1539670	1547830	So you could imagine that Multigo is like a highway, like pipes, that you query something, we collect it, and we send it back to you.
1547830	1549670	And nothing is kept in the cloud.
1549890	1556190	So we are doing that in remote servers that are located in different places of the internet.
1557310	1560290	But that's one of the ways that can be done.
1560290	1570010	The second way that we are going to show today is that instead of using a remote server, you can just host this code locally on your computer.
1570270	1578770	So instead of relying on the Multigo cloud to collect the data, what you can do is to host the Python code in a Docker container on your computer.
1578850	1585690	And then having your Multigo client connect directly to a data source without using the cloud servers.
1588550	1592570	Okay, so... any questions?
1594430	1595470	Yes.
1597810	1600490	I will go closer because I cannot listen to you.
1617320	1626500	So the gentleman is asking if now we are collecting the data instead of using the Multigo cloud that we are providing for free, even for the community users to use.
1627040	1630860	If you're using locally, then it could be easier to track you down.
1630860	1636260	If you see that you are connecting to a data source, that they can see that you are the one collecting.
1636460	1637480	That's right.
1637480	1640280	But then you can do some additional operational security things.
1640280	1641660	You can use VPNs.
1641660	1642880	You can use proxies.
1642880	1645640	That's something you can configure in Multigo.
1645920	1655180	So we recommend usually for the people who use Multigo to investigate that even if you use the Multigo cloud, you can also put VPN.
1655180	1660900	You can use VPNs or proxies to anonymize everything, even using the Multigo clouds.
1661220	1662640	You're welcome.
1664120	1670560	So if I go back to Multigo, you will see here at the top.
1672420	1675480	This star here looks like a star.
1675480	1679820	When you click on that, you will see that these are all the different...
1680370	1687800	As I told you, Multigo provides some public or free integrations that you can use.
1687940	1689800	And also some of them are commercial.
1689800	1691740	You need the enterprise versions for that.
1691740	1697580	But you have some ones like, as I told you, VirusTotal.
1697580	1698580	So I can click here.
1698580	1699160	Okay.
1699240	1699880	VirusTotal.
1699880	1701900	And I have VirusTotal public.
1701960	1703560	So how does it work?
1703560	1708020	Basically, the way it works is that you need to set up an API key.
1708440	1716540	So it means when you use a data source, it means that you need to go to VirusTotal with your account.
1716540	1725260	Then generate an API key and you go back to Multigo to store and deploy the API key.
1725820	1733120	So basically what is happening behind the scenes is that Multigo goes to the Multigo servers.
1733120	1738900	The Multigo servers goes to VirusTotal, but goes to VirusTotal using your API key.
1739040	1744440	So it's using your identity to collect the data on your behalf and sending the data back to you.
1744700	1746680	So that's the way it works.
1746900	1751340	But if anyone has more questions about the level of detail, I will be happy to answer.
1751340	1752660	There is one question there.
1783720	1800320	So the lady in the back is asking if one potential use case is that you have some e-mails from your company, from your colleagues that have been breached, or you think they could have been breached and you want to verify if they have been breached, how can you do that?
1800960	1804300	Basically, you have different data sources available.
1804360	1805760	Some of them are for free.
1805760	1807440	Some of them are paid providers.
1807440	1810120	For instance, we have IHaveBeenPwned.
1814620	1818340	So we have one data source that is for free that is IHaveBeenPwned.
1818340	1820860	So it means that... let me drop an e-mail.
1821960	1822800	OK.
1822940	1824340	As an example.
1832880	1837540	This is one of my contact e-mails that is later in the presentation.
1838720	1839640	OK.
1841400	1844180	Let me check IHaveBeenPwned here.
1847130	1850550	So you see, get all breaches for that e-mail address.
1857100	1863740	So you see, basically here, this is going to... you probably have heard of this website, IHaveBeenPwned.
1863740	1869880	You can go there, include an e-mail, and it will tell you if you are in a breach.
1870720	1874860	So in this case, I have dropped in the canvas one e-mail.
1874860	1879120	But if you drop 10 e-mails, you could see if they are merging.
1879260	1884320	And see if you have different e-mails from your colleagues, from your company, that they are merging in the same breach.
1884320	1889520	You see here, LinkedIn, or Gravatar, or Adobe, or any of them.
1890500	1892800	So I hope this answers your question.
1893060	1893620	Yes?
1918100	1925640	Yeah, the lady is asking if there is the possibility to know... not using an e-mail, but using a domain.
1925640	1929660	So you can know from the domain if there are e-mails being breached.
1929780	1933760	Yes, you can do it, but for that you need... it's not in the community edition.
1933760	1935120	It's an enterprise feature.
1935860	1941620	And then you need to use a specific provider that can give you this data.
1941620	1944480	I can show a very quick example with my own domain.
1946680	1947980	But this is not included.
1947980	1950240	You cannot repeat this process because it's not a community.
1950240	1956140	But for the sake of understanding this question, maybe use fragoso.eu.
1961380	1962940	Click records.
1963600	1969860	Or in case you have any access to a database, maybe you can just not use this paid provider.
1969860	1972080	You have a database available somewhere.
1972100	1975060	If someone from the community is providing that, maybe you can do it.
1975060	1978620	You see here, that's my...
1978620	1982700	There are different...
1982700	1985760	In my domain, I'm including different breaches.
1985760	1988160	Let me take, I don't know, Adobe, for instance.
1989840	1992240	I can extract from here.
1993660	1996240	Let's see if I have here an e-mail.
1996240	1999060	Or name.
2008300	2009760	So that's it.
2009960	2015080	Basically, you see here that from the domain, I have been able to identify different breaches.
2015080	2020320	In these breaches, if I extract the e-mail, I see that this e-mail has been breached.
2021220	2023340	So I hope this answers your question.
2023620	2031420	If anyone is interested in knowing data sources from the community or paid ones, let me know after the workshop.
2031420	2033660	I will be very happy to answer that.
2035480	2037440	Okay, so let's continue a little bit.
2039380	2041740	So this is what we have included.
2041740	2050420	So it means this is coded either by the Maltego employees, the Maltego engineering team, or by third parties, some of the partners.
2050420	2055840	But we started last year an initiative for the community that is in GitHub.
2055840	2058120	It's called Maltego LTC.
2058120	2060660	That means local transform for the community.
2060960	2063760	And what we started to do is that...
2064640	2069820	I saw in GitHub a lot of people that coded their own Maltego transforms.
2069820	2076680	So what we started to do is to contact them and say, hey, did you know that we want to put all these transforms in the same repository?
2076680	2079580	So we started to collect them here together.
2079660	2081700	But we just started.
2081700	2087860	So it means that there are many other people who coded their own transforms that they are not still in this repository.
2087940	2096640	So we are going to different events like B-Sides here in DEF CON because we want this repository to be well-known so that people from the community can share.
2096640	2104440	Because the goal is that if any of you are investing the effort to code something, it's good to share that with the rest of the community.
2104500	2112480	And we can help to curate and to, let's say, maintain the repository for the rest of the people.
2112480	2114980	So here you have different ones.
2114980	2122700	And I have included some kudos to the guys who already did that, like Turox, Megadose, and many of them.
2122700	2129540	But there are many others you have here, like Osindojo, and many others that already...
2129540	2133300	They have coded Maltico transform, but they are not in the repository yet.
2133300	2134860	But then you can use them.
2136160	2150580	So the idea behind that is that if you have someone, that could be any of you in the future, you code a Maltico transform, we can just create a module.
2150580	2152860	This module goes into this repository.
2153040	2157920	And then all the people from the community can benefit from using it.
2157980	2160200	So that means it's a community initiative.
2160200	2163060	It's completely separate from, let's say, the commercial product.
2164140	2166020	So, yeah.
2166060	2177600	I will show today a couple of examples that have been coded by myself and one of my colleagues that are included already in this repository.
2177600	2183260	And one of them is the hands-on lab that you can do by yourself.
2185320	2186520	Here are the steps.
2186520	2191360	If you want to use this repository, I'm not going to do it right now because it doesn't make sense to do it now.
2191360	2197860	But after this workshop, please take a look at this Maltico LTC.
2197860	2203760	That means cloning the repository, installing the dependencies, and adjusting some configuration files.
2203760	2209240	So once this is completed, you can import the configuration and start using these transforms.
2209320	2212800	But keep in mind, these transforms will not be run in the Maltico cloud.
2212960	2214980	They will be running from your computer.
2214980	2223420	So it means you create the repository, you're downloading code from other people, your computer will be running this code to pivot the data.
2224420	2228860	So, I wanted to show quickly an example.
2229180	2232880	So for that, I wanted to show a little bit of infrastructure investigation.
2232880	2234640	So let me just go to Maltico.
2235160	2237120	And I'm going to open a new graph.
2237540	2239980	And for that, I'm going to drop a domain.
2239980	2242720	Like, for instance, the DEF CON domain.
2245760	2251000	And for that, what I'm going to do is to run what is called a machine.
2251880	2253640	That you have here at the bottom.
2253640	2255000	You see here in red.
2255080	2257040	And you have them here at the top.
2257060	2257780	Machines.
2259420	2263800	That, what we have is, basically, these are macros.
2263800	2271780	These are playbooks that can be reproduced to do the collection process in an automated way.
2271880	2274520	So you see here, for instance, I'm going to use Footprint 1.
2274520	2276040	I'm going to open it quickly.
2278780	2283000	So, basically, what this is doing is to run transforms on your behalf.
2283000	2287240	So, I'm going to have one starting point, what will be the DEF CON domain.
2287720	2290100	And Maltico is going to run all these transforms.
2291900	2293440	And provide you the data.
2293800	2294980	So let me do it now.
2295520	2296560	Right click.
2297560	2300820	I go to Machines.
2301620	2302700	And go to Footprint.
2302700	2304460	I'm going just to do a basic footprint.
2304560	2306500	Because I don't want it to take a lot of time.
2306500	2308960	It will take around a minute.
2310340	2312600	See, when I click on that, you're going to reproduce.
2312600	2315080	It will start to generate a graph.
2315080	2316540	Let me put it fullscreen.
2317700	2331100	So the first step is collecting some DNS names, emails, information in the DNS zone of that of the original domain.
2331100	2332120	But this is still running.
2332120	2334820	You see here at the bottom, running transforms.
2336980	2345080	And basically, right now, it's working with the data that we have found and trying to map to IP addresses.
2345080	2347140	Let me go to PowerPoint.
2347140	2353740	So domain to different information like DNS names, name servers, mail exchange, websites.
2353740	2361800	Then getting the IP addresses, going to the net block, and then going to the AS number.
2361800	2369560	The AS number represents the identifier of the ISP that manages that network block of IPs.
2369940	2372940	So the graph is still ongoing.
2375460	2381800	But it's in the last stage, you see domains, DNS names, IPs.
2382140	2388460	And in a few seconds, you will see that goes to net blocks.
2389840	2393900	And from the net blocks, we will see the autonomous system number.
2395900	2397560	One question here.
2423900	2431680	The gentleman here at the front is asking that this footprint level 2 is not there.
2432460	2433680	I have to double check.
2433680	2436280	Probably we need to install any additional item.
2436280	2438340	So you have it in the community edition.
2440280	2445280	I will check during the break and we will double check.
2445280	2447900	Okay, so that's what we have.
2447900	2457540	One of the things we can do is when we have the IPs, it will be that a potential integration could be Nmap.
2458180	2462860	Because right now what we have done is we have domains, DNS names, we go to IPs.
2463300	2469020	So the natural step when we have IPs is let's try to see which are the services those IPs have.
2469020	2476360	One of them could be go to Shodan because Shodan or Shodan Senses, these platforms are scanning the internet.
2476720	2482100	Some of the bad guys, they filter out Shodan scans.
2482100	2484940	They are actively trying to defend themselves.
2485120	2495300	You can also try to have your own active scans and have your own computer or your own systems scan the IPs that are your targets.
2495300	2498380	As I told you, with the proper operational security things.
2498380	2502280	One of the potential integrations would be just using Nmap.
2503720	2506680	So we'll show that later how to do it.
2508500	2511620	I have something like this that we have created.
2512560	2514680	This is the footprint.
2516120	2522700	As I told you right now, we are going to move this is a quick introduction of what you can do with Maltego.
2524960	2525800	So let me see.
2525800	2530540	I guess I forgot something very quick here also.
2530740	2534100	Not many people are aware of that.
2534500	2538640	The information in link analysis can be represented in different ways.
2538640	2540300	One of them are the layouts.
2540760	2543400	By default, Maltego is using a block layout.
2543400	2548900	It means that the information is grouped, as you see here, in different layers, like in blocks.
2548900	2554000	When you have data, it's being grouped together from the top to the bottom.
2554340	2557000	But this is not the only way to represent the data.
2557060	2569280	So you can just play if you want to play with and for that, if you don't have this graph, what you can do is go here to tools and you can open an example graph.
2570400	2577280	This one example is already generated, so you can use if you want to let me do it with this one.
2577280	2581280	This is a sample graph to play with.
2582740	2584340	You see here layout.
2584340	2590580	As I told you, you have this, but you can also change to a circular layout, a radial layout or circular one.
2591760	2595860	The data is grouped in clusters of data.
2598080	2605760	As I told you, the idea is that you can play with that by yourself and you will see that the data is in the graph.
2605960	2621440	But one of the things is that when you are using, you are visualizing the information as icons well, I mean, it's very fancy to use icons, but when you are analyzing data and you go, let's say you have a lot of data, the icons are not useful at all.
2621440	2627700	Maybe you have here the colors, but what you want to see is how important is the data.
2627700	2630200	So here you have what we call the views.
2630600	2633080	That is here in the left side.
2633080	2635560	Let me put the regular view here.
2635560	2644920	So you can visualize the entities depending on the number of links incoming, outgoing links, or even you can create your custom ones.
2645720	2654140	Let's imagine that you want to see in red all the Russian domains, just picking a random country.
2655120	2659220	Or all the North Korean IPs.
2659220	2662840	You can just code viewlets.
2662840	2667980	That's out of the scope of today's workshop, but in our website there is documentation on how to do that.
2667980	2670360	So in this case I'm just going to use the default ones.
2670380	2684600	You see when I start playing with them, I just start to see that the size of the entities is bigger or smaller depending on the number of incoming or outgoing links.
2684600	2693600	So you just need to select the one that is more convenient for you depending on the use case or the investigation you conduct.
2694800	2701640	So this will be let's say a quick introduction to how to use Multigo.
2701640	2717700	So we have described a little bit of the interface, a little bit of how the transforms works, and we have run some transforms, but now as I told you the goal of this workshop is teaching you how to create your own transforms.
2717700	2726340	Not depending on the transforms that are available in and not just available in Multigo, but you can code your own integrations.
2727440	2742320	So for that what I'm going to show is if I go here to the websites the multigo.com websites you will see here that we have a section called online documentation.
2742420	2753620	When you click here this is like a Google interface, but for all the Multigo documentation everything we have in Multigo is indexed documented here.
2753620	2759360	So all you just type anything here and you will find it.
2759360	2775560	So in this case I'm going to go to development if I put it a little bit bigger you will see that this section is describing it's a section for developers, for people who need to extend the capabilities of Multigo.
2775660	2780940	And for that basically it's talking about a library that I'm going to open right now
2784130	2788150	and it's basically what Multigo provides is an open source library.
2788150	2790830	This library is completely open at the code.
2790830	2795610	You can go to GitHub, you can review it you can extend it if you want.
2795610	2803910	And it's a library that we made for the community and our customers so you don't depend on Multigo to extend the tool you can just do it by yourself.
2804690	2812750	And this is being updated on a very regular basis by our engineers and people as you see here also people from the community.
2814490	2821910	So here in this website you have some guides I'm going to open just one of them
2825830	2847290	that basically defines step by step how to do it so what we are going to show today in a few minutes, you can just read this document that has a full example in how to create an integration so in this case I think there are a couple of examples.
2847290	2853230	One is OpenStreetMap and the other one is about company data, I think.
2853390	2856490	So you have a couple of examples here in this document.
2856490	2858310	So I'm not going to stop here.
2858310	2862570	So I just included here the reference so that you can do it by yourself.
2865370	2874190	Okay, so the first thing is in the right side, in the left side of the screen we have the entity palette.
2874230	2877470	So we have included in Multigo a lot of entities.
2877470	2885730	You can say as I told you, website, DNS, IP address but what happens if you want to create your own entity?
2886050	2898950	Let's say we want to create let's say a person, but it's an employee or you want to create an entity for a goon or you want to create an entity for anything.
2899170	2907530	So we just can go here to entities and click here and create a new entity type.
2908270	2915350	So I'm going to create like a basic one, new entity and I'm going to include here the display name.
2915350	2927590	So maybe Defcon Goon and description a goon that helps people in Defcon.
2927590	2936130	So we need to define then a unique name so let's say dc from Defcon.goon that's the unique name.
2936290	2940690	And then we can create a category so maybe the category will be Defcon.
2942230	2946010	And the important thing is that what happens?
2946010	2953490	You can just create an entity from scratch but a goon is a person also, right?
2953650	2955270	It's a human being.
2955670	2960710	So why as human beings we have something in common that is a full name.
2960710	2974150	So a goon has a full name and at the same time maybe has something else, some other information like when we are an employee we have our full name but as an employee we have the department, we have our email, our phone number in the company.
2974450	2981490	So the idea is that instead of creating everything from scratch we can try to do some what we call inheritance.
2981830	2987510	So it means that we can have, we can take an existing entity and use that.
2987510	3004030	So in this case, let me select you have here the list, a multigo.person you can just go over them but here I'm going directly to the one I know, that is a multigo person and I can also customize the icon.
3004270	3007970	Let me create I have different icons here.
3008210	3009730	This one is nice, a singer.
3010330	3015670	Let's use a custom one I think I downloaded a goon coin or something.
3015970	3016970	Yes, this one.
3021280	3021900	Okay.
3023860	3024740	Okay.
3026100	3030800	Probably it's not the best one but let me click here and let me click here finish.
3031120	3036780	So now I can go to the entity palette and put goon and then I have a Defcon goon.
3037000	3043240	So it's an entity I have created that is custom and that can be anything you want.
3043400	3047040	Any kind of data that you want to represent that doesn't exist.
3047480	3048920	So if I drop it here.
3050200	3058700	So probably I should have picked a better icon because it's not a very nice one but the idea is that you can represent here anything.
3061520	3069700	So as you see here, what we have done is to create something I use a prefix Defcon with the entity name and then what they have is properties.
3069700	3071940	In this case, I have not added any properties.
3071940	3076980	So I'm going to go quickly and add some properties like manage entities.
3079960	3082280	I click here goon.
3083840	3088200	I click here and edit and I can set up additional properties.
3088200	3094260	So maybe I can add a property that could be, I don't know, location .
3094260	3097460	Maybe the goons are assigned to a specific location in the venue.
3097460	3099340	So let me put location.
3101440	3106360	Maybe the country because I want to know which is the country of the goon.
3109280	3112700	So the display name and the technical name, country.
3113960	3116640	And you see they are being added here.
3116640	3122900	We see a goon apart from a full name that comes from a person will have a location, will have a country.
3125500	3130660	So when I close it I drop now the goon and I double click.
3130660	3131820	I go to properties.
3131820	3136960	I see that a goon has a full name location and country.
3136960	3143900	You will see that this is repeated, that this is because when you type it here, it's a compose.
3144260	3148060	So it's just completing the full name based on the first and the last name.
3148060	3149280	But you see here location.
3149340	3157320	Let's say the location is the West building and the country is Yes, from Spain.
3158400	3174300	So you see that there is a goon now in the graph that basically is a person but at the same time includes information from the location of the goon and the location but also the country.
3178160	3182880	So as I told you, I mean, this workshop is only two hours.
3182880	3191160	So this is very summarized because this training could be like one day perfectly, step by step, but I will try to show the most important things.
3191160	3196060	So if anyone needs more detail, let me know just later.
3196960	3209460	So now something fancy we can do is to play a little bit with entity because I mean an icon is nice but we will look to have more visual data.
3210200	3215200	So something we can do, let's go back to manage the entity.
3215640	3217600	I click here in goon.
3219520	3231140	Okay, and now I can go to display settings and here what I can do is I can define what kind of information I want to include in the layout.
3231140	3236540	The layout is basically you see these boxes, these gray boxes, is something you want to display there.
3236540	3240740	That could be an image, could be text, or could be a color.
3241640	3246720	So in this case, let me include, for instance, I want to include the flag of the goon.
3246720	3248980	I want to do it in the northwest position.
3248980	3260480	So let me click here and here I click in country and I will leave here image.
3261960	3267840	Okay, so I click here and we had also the location.
3267840	3271120	So let me put maybe, for instance, the location here at the top.
3271120	3272860	So let me go north.
3273360	3279840	I select location and this is text.
3281380	3282820	I click here.
3282820	3283540	Okay.
3284320	3285160	Okay.
3286480	3289120	Now, let's do it here.
3296240	3298220	Let me drop it and do it again.
3298220	3299280	I think I did.
3304460	3307420	Here, yes, and west.
3308220	3308980	Okay.
3309120	3309800	And that's it.
3309800	3321520	So you see that the information that if I double click on the entity and I just change from west to east and instead of yes, that is the country, I put US.
3323820	3325640	It's going to change the information.
3325640	3333520	You know, what you have displayed here is the location of the goon here in the north and here you have the flag.
3334420	3340760	And that's nice because when you're pulling data from a data source, maybe there is data you want to show visually to the analyst.
3340840	3350360	So if a color because you want to say if something is active or inactive or is malicious or not or you want to show something else.
3350360	3355180	In this case, let's imagine you want to show also the picture of the goon.
3355580	3360000	So what I'm going to do, I go back to manage the entities.
3360000	3361220	I click here again.
3361600	3362560	Goon.
3362640	3368980	I edit and I can add a property here saying I add a property.
3368980	3370640	That could be picture.
3373690	3375210	Okay, so it's here.
3375210	3376030	Picture.
3376990	3383930	And what I'm going to do here is to go here to the section called large image that is here.
3383930	3387390	It's now being occupied by the icon.
3387390	3393250	I can just select and click here in the picture.
3394030	3396450	So what is going to happen?
3397170	3399550	Let me just go basically to the browser.
3403360	3404720	Let's go to Google.
3404720	3407580	Let me pick up maybe this goon.
3408220	3410640	Copy image here.
3410640	3411780	I go back.
3411780	3415000	Double click and I copy and paste.
3417240	3419100	Copy image address.
3421140	3423420	Okay, let me paste it here.
3426210	3435910	And you see basically what is happening is that we are replacing the main icon of the entity now with the picture we want.
3436270	3442790	So that's very nice when we have social media accounts, we have avatars we want to represent, we can replace it.
3444770	3445970	Cool, so
3449940	3454220	questions from these parts about entity creation?
3454280	3455440	I know it's very quick.
3455440	3456880	We have a question here.
3473390	3483410	The gentleman here is mentioning that when we included the flag, I was including an image and include ES or US.
3483410	3487210	That's because by default, Maltego, you don't include like a URL.
3487610	3490850	Basically what is taken is the icons we have by default.
3490910	3497030	So if I go back to Maltego here, we have here manage icons.
3497430	3500330	And you remember that I created an icon for the goon.
3501710	3505270	So basically what you have is all the different icons.
3505270	3506710	So we have here the flags.
3507970	3514230	So it means Albania is AL, Andorra is AD, Armenia is AM.
3514590	3528550	But not only the flags, if I want to maybe I want to use this let's say adult female or adult male or access card, this is the name, access card.
3528750	3542450	So I mean if I select this ID and I go back here and instead of US I put access card you see that it's being replaced.
3543370	3552170	So basically when you select an image if you put the name of the icon, the image that will be included will be that icon.
3555050	3557550	So you can include your icons.
3557550	3565130	I did a custom integration a long time ago for someone that they wanted to have the regions of a country.
3565130	3568050	So they had their own flags instead of the country flags.
3568050	3576170	So you can just import these icons of flags or any your logos, logos of your company, anything.
3578230	3578910	Okay.
3578910	3583710	So we have a gun here that we have created and another question.
3604700	3608140	So the gentleman here in the front is asking about editing the entities.
3608140	3613440	The process that I'm doing all the time here is go to manage entities.
3613440	3617480	Once you have created one and you want to modify, you create manage entities.
3618880	3627220	And here you just type the name of the entity you want to modify like gun and you click here on the three dots and you have here all the tabs.
3627560	3635180	So basic information, the properties that is, you want to change that.
3635180	3637740	You can delete or you can add new ones.
3638400	3643060	So you can just delete here or add new properties that will be added here.
3644040	3649620	So the only thing you need to keep in mind is that you need to do a good design at the beginning.
3649620	3652160	You cannot be changing this every time.
3652220	3660920	Because probably, as we are going to show in a few minutes, we are going to pull data into your entities and if you're modifying the model, you need to remap everything.
3661320	3666260	So it's convenient at the beginning to do a good design, decide which are the fields.
3666360	3675520	Maybe if you decide to add more properties than needed, it's okay because it's not going to have a heavy impact in the storage, basically.
3675700	3680220	So it's by adding different properties you think will be useful and then you populate or not.
3680220	3683560	You can leave them empty if they are not used.
3684580	3704980	I will say the ones that need to be at least full are the ones that is like the main value, that for a person is the full name and the things that you are going to include in the layout because a layout without, I mean, the things are empty, it's kind of strange because you are including that layout because you want to represent that data.
3704980	3708360	So at least it's convenient to have those fields at the beginning.
3711440	3718460	Okay, so in this part I have covered entity creation.
3718460	3722740	What I'm going to do now is to go to the magic of transform.
3722740	3726660	We are going to define how to create a transform.
3726660	3731840	I'm going to show you the process and then we will go to the hands-on part.
3732120	3736640	So these are the steps that are needed to install the Maltico library.
3736640	3742660	So it's basically a Python package called Maltico-trx that is available in the pip repository.
3742800	3745920	So nothing very complicated to install.
3746720	3751960	So the second step is to use this library to create a project.
3752640	3756400	And we will see in a second that we can just list or edit.
3756400	3758620	I will show with one example in a minute.
3762060	3764140	So what are we going to do?
3764160	3770020	Very basic, you know, the first thing you do when you code something is Hello World, right?
3770400	3773480	So let's try to do the Hello World of a Maltico transform.
3773540	3778040	So let's include a person and say, Hey Carlos, nice to meet you.
3778600	3782200	Very basic, but we'll show you the basics in how to code it.
3782200	3785220	Basically, this library has two main functions.
3785220	3789420	One of them is the request and the second thing is the response.
3789680	3790280	Why?
3790580	3794780	Because basically, we have here, as I told you, maybe we have a Goon.
3794780	3798020	So we want to read the name of the Goon, the location of the Goon.
3798300	3803720	So we need to have a request to be able to read the input entity.
3803720	3804960	This is the input.
3805320	3818100	And then, let's imagine that we take the name of the Goon, we go to the DEF CON database and we extract, I don't know, the events that person, that Goon has been already, all the DEF CON events.
3818380	3820840	So then we need a response.
3820840	3828160	That method is going to create as much entities as information is gathered from the data source.
3828360	3830900	So there is no magic here.
3830900	3842800	So the Maltico TRX library is mapping the input in the Maltico graph, a person, an IP, domain, whatever, with something you need to give back to the graph.
3843120	3848860	That if you had an IP, maybe you want to know the country of that IP.
3848860	3853620	You have a person name, maybe you want to know, I don't know, the email of that person.
3853740	3859040	In order for this to happen, there must be a code here, in the middle.
3859140	3861720	Is that the responsibility of the Maltico library?
3861920	3862640	No.
3863020	3865280	You have to code that part.
3865580	3867300	Because that's your application.
3867300	3874920	You are going to a MySQL database, maybe you are going to a file, you might be going to an API, maybe you are scrapping from a website.
3875280	3878660	That's the magic of your code.
3878660	3880580	You need to put something in the middle.
3880580	3884300	The only thing we are going to do is to map an input with an output.
3885100	3889820	I'm going to skip the technical details and go directly to the example.
3890960	3892960	We have something like this.
3892960	3894140	We have a person.
3894140	3898300	I'm going to say, person, nice to meet you.
3899620	3904900	Instead of going here in the slides, what I'm going to do is to do it in the screen.
3906360	3908840	Step by step, so you can see how it works.
3909700	3911580	I'm going to open an IDE.
3913080	3914100	Here.
3914100	3915560	That is PyCharm.
3915560	3921340	You can do it with Visual Studio Code, you can do it on the command line in any way you prefer.
3921560	3923980	What I'm going to do is to open a new project.
3925020	3927260	It will be a Python project.
3929840	3931380	DC32Maltego, maybe.
3931920	3934720	We click here, create.
3944080	3949320	What is happening right now is that the IDE has created a Python virtual environment.
3949320	3957240	It's creating a safe space for all the packages we are going to install for our code.
3958540	3963320	And what we are going to do is just open the terminal here.
3964520	3967300	I'm going to install Maltego TRX.
3978260	3980320	It's already installed.
3981180	3983560	Going back to the slides here.
3986340	3989820	What we have done is this step, install Maltego TRX.
3989820	3992740	Now, what we are going to do is to create the project.
3992740	3997520	I click here, Maltego TRX
4000560	4004560	start project.
4004560	4006540	You can include here any name.
4006540	4010360	I'm including the keyword project, but you can use any word.
4012320	4020140	Basically, what you will see here at the top is that a new folder is being created.
4021220	4029420	This folder, what basically you have here is some Python files that the library is providing to you.
4029460	4036240	And at the same time, what you have is some layouts, some templates, so you don't have to code from scratch.
4036240	4040380	You can just take one of these templates and code your own transform.
4041340	4046160	So for that, what we are going to use is this one called grid-grid-person.
4049340	4052620	Let's change the name and let's put grid-goon.
4053220	4053940	Maybe.
4054240	4057920	So you see we are going to make a custom example here, grid-goon.
4058480	4065500	Basically, you see that what we have is a class called grid-goon.
4066080	4067560	Here , create entities.
4067560	4075080	And basically, you see that we have here the Python code I can put here.
4075080	4078020	Goon name is request.
4078560	4081660	And in this case, what we want to read is the name of the goon.
4081660	4082600	So it's the value.
4082600	4083740	It's the main value.
4087580	4091820	So that's what we are doing is reading from the request.
4093140	4098220	So the transform, when we run the transform, we will be reading the input entity.
4098220	4101920	It could be Carlos, John, any name.
4101920	4103220	And reading the main value.
4103220	4105840	And then, what we are going to do is to create an entity.
4105840	4110060	So it's basically, what you see here, response.addEntity.
4111460	4116880	That's why IDs are good because they are helping us based on the libraries we have.
4116880	4120780	In this case, I'm just going to use this example here.
4121200	4124180	But instead of person name, I'm going to put the new.
4124180	4125400	It's goon name.
4128860	4129640	Oops.
4131020	4131940	Hi.
4133700	4136540	Goon name, thanks for your service.
4138400	4139060	Okay?
4139540	4142880	So I just see that I'm customizing the text that will be returned.
4143060	4147540	And you see, which is the type of entity that we are sending back.
4147580	4153300	It's a phrase that is basically something like this.
4153500	4153980	Oops.
4155700	4156940	My bad.
4157380	4163500	So basically here, what we are returning is a phrase that could be anything.
4163500	4164920	We can return an IP address.
4164920	4166720	We can return a DNS name.
4166900	4169940	In this case, we have a person name.
4169940	4173940	And we are going to say hi to the goon name.
4173940	4176180	So here, let me just save it.
4177920	4178540	Okay.
4178540	4180300	So I have saved the file.
4180660	4182220	Let me change the name.
4182460	4183740	Refactor, rename.
4185760	4186380	Great.
4186380	4187520	Great goon.
4191590	4193710	See here, great goon is the name.
4193710	4196910	Because the name of the file needs to be the same as the name of the class.
4197170	4197810	Okay.
4199130	4201010	So we were here.
4201010	4201230	Okay.
4204110	4206810	So at this point, what have we done?
4207410	4211830	Summing up, we created a custom entity that was a goon.
4212330	4214610	If you remember, a goon was a person.
4216090	4221410	And now we created a piece of code, a Maltego transfer named grid-goon.
4222550	4232030	But then if I go to Maltego and I have a goon and I go and do a right click and I click goon, I don't have anything.
4232610	4233130	Why?
4233130	4236430	Because still I have created the file, but this is still not mapped.
4236950	4238030	I need to map it.
4238290	4239790	And how does it work?
4240190	4241250	And this is documented.
4241250	4243390	You have it in the slides, you have it in our documentation.
4243690	4249090	So I know it's too much information, so just try to understand the concepts and you can go back later to the documentation.
4249310	4253770	So we click in transforms and we have a new local transform.
4253770	4260550	You remember at the beginning when I was showing you some transforms can go to the Maltego cloud and some others can run on your computer.
4260690	4263950	What we have created is something that needs to run on my computer.
4263950	4267810	The grid-goon.py file is my computer.
4268050	4281230	So what I'm going to do is create a new local transform and say, okay, display name, grid-goon DC32 This transforms, grids, a goon.
4281990	4285630	And the transform ID is, let's say, DC32.
4285630	4287810	It's a unique name, grid-goon.
4288130	4290610	The author, myself.
4291010	4293530	What is the input entity type?
4296610	4303270	I think I put Defcon...
4310000	4311460	Defcon-goon.
4312560	4315080	So the input entity is a Defcon-goon.
4315660	4318400	And then I can select this as a category.
4318400	4323120	If I want to classify many transforms in the same group in this case I'm going to leave it empty.
4325220	4326060	Next.
4327000	4330200	What I'm doing now, I only have to do it once.
4330200	4331040	It's the setup.
4331500	4333880	So I don't have to repeat this every time.
4333880	4339020	It's the first time I have coded something I need to map it so Maltego can use it.
4339460	4343700	So the steps I'm doing right now is only during the setup process.
4344820	4346540	What I'm going to run?
4346800	4349380	I need to tell that I'm going to run Python.
4349860	4354300	I can use Python or I can use Perl or I can use the language you prefer.
4354300	4355800	In this case I'm going to use Python.
4356500	4359040	You remember we were here in this project.
4360980	4365200	So basically we have here a virtual environment.
4365200	4366540	We have here the binary.
4367760	4369260	Python 3.
4369260	4370280	That's here.
4370300	4372800	So I'm copying and pasting this folder.
4373080	4375020	Which is the command we are going to execute.
4375680	4377320	Python 3.
4380300	4383140	What are we going to execute?
4383960	4389960	You remember when we installed Delivery I told you here we have some files.
4389960	4392520	One of them is called Project PI.
4392520	4398100	This is the piece of code that will receive the input and will go to your code.
4398200	4399620	This is like a grabber.
4399620	4401600	It's like a piece that goes in front.
4401600	4404900	So here what I'm going to do is Project PI.
4404980	4406880	Sorry, too much zoom here.
4406880	4408020	Project PI.
4408020	4409120	Local transform.
4409120	4411260	And what's the name of the transform?
4413660	4424580	So basically it's saying when an analyst yourself is running a transform when you click on that transform, basically what happens is I'm going to Python.
4424880	4426960	Python is going to execute this.
4426960	4428460	Project PI Local Grid Gun.
4428460	4431280	And this piece of code is going to your code.
4431320	4433400	And execute whatever is needed.
4434540	4437920	I have to set up the directory where the transforms are located.
4437920	4439240	So let me go here.
4441360	4442400	Projects.
4443540	4446360	This is the folder where the transforms are located.
4446360	4448720	So just copy and paste here.
4449300	4451020	The working directory.
4452320	4455720	This is the folder where the Project PI file is located.
4456560	4460600	And you see basically what is going to be executed is what you have at the bottom.
4460800	4468540	So basically this is the full command line that Maltego will throw when you click on a transform.
4470300	4472320	Okay, we're getting to the end.
4472960	4474280	Stay with me.
4474860	4476360	I click finish.
4477200	4480220	So now I do right click.
4481240	4483960	And then you see here, I can do it in two ways.
4483960	4486460	One of them is clicking in local transforms.
4487200	4489000	And see I have Grid Gun.
4489080	4490540	Or you can just type it.
4490540	4492560	Grid Gun.
4492820	4494660	Okay, Grid Gun DC 32.
4495340	4497540	So the magic is going to happen now.
4497540	4499080	I click here.
4503720	4506400	The motion is going to work or not.
4507260	4508060	Yes.
4508520	4512640	And you see basically, Hi John Doe, thanks for your service.
4513860	4522160	If I change and I drop another Gun and I just change the name, Carlos, and I run it, Grid Gun.
4523280	4526360	You see, Hi Carlos, thanks for your service.
4526360	4529540	So you see the piece of code I made in front of you is not fake.
4529540	4531500	I did it in real time.
4531760	4533400	It's what is running.
4533400	4535040	And even you can debug it.
4535040	4539300	Because at the bottom, basically, what you can see is a debug window.
4539300	4541280	So when you run something, there are errors.
4541280	4542720	You will see them here.
4542900	4544880	So you have even a debug.
4544980	4548640	If something is not running, you will have it here.
4550780	4553660	So, very quickly.
4553660	4557400	This is a high-level summary of what we have done.
4558760	4561060	Number one, I drop a Gun.
4561080	4562880	I create it as a custom entity.
4562880	4564800	I click in Grid Gun.
4564800	4571280	When I click on that, Maldigo was going to Python, Project PI Local, Grid Gun.
4571760	4575960	So it's basically jumping to the piece of code we have created from the templates.
4576080	4578540	It's executing what we have here.
4578760	4585120	And then the response is Hi, Carlos, nice to meet you.
4585120	4586480	So this goes back.
4586480	4588600	And it's being displayed with a link.
4588940	4590840	Because we have an input.
4590840	4591720	We have a response.
4591720	4596320	And the magic of link analysis is because we are giving a result because they are connected.
4597300	4598520	But let me add something.
4598520	4601300	You see that we can return anything.
4601300	4603980	So let me put here response at entity
4609180	4614080	Maldigo.Person And here I can include here
4617380	4619940	Hello Let's put a domain.
4624740	4629600	Defcon.EU Okay.
4629700	4630900	Save it.
4631180	4632380	And let me run it again.
4632380	4635540	So you see that I can return more than one result.
4637300	4638500	Grid Gun again.
4639720	4641360	And you see right now.
4642160	4645600	I have, sorry, I'm jumping too quickly.
4645600	4646920	I have two lines of code.
4646920	4647780	Two responses.
4647780	4649640	One response is a Maldigo phrase.
4649660	4651400	The second response is a domain.
4652160	4653920	And in this case it's hard-coded.
4653920	4656460	I have hard-coded the answer.
4657220	4661000	But what you see here is that I have returned not only one result.
4661180	4665680	So as you know, when you are coding you will have a loop probably.
4665680	4667060	So you will go to a database.
4667060	4668420	You will go to a file.
4668420	4672700	You will have a for loop for every result returning an entity.
4673420	4675660	And those entities can be of different types.
4675660	4677680	They don't need to be exactly the same entity.
4677760	4682880	In this case I returned a phrase that could be a domain, an email, or anything.
4686220	4687180	Okay.
4688460	4691780	So I wanted, this is a very basic example.
4691780	4692620	Hello world.
4693000	4693640	Okay.
4693640	4700100	I wanted to provide you an example I did myself of an integration with Wiggle.
4700100	4702680	How many people know Wiggle here?
4702900	4711040	Wiggle is a Wi-Fi, now Bluetooth and cellular network platform that can be connected with an API.
4711160	4714500	So I'm going to show in the next slides that example.
4714640	4720300	And then after that example I will leave the rest of the time we have to start the hands-on.
4720300	4727540	So if someone wants to play with the hello world example or you want to do the more advanced example by yourself I will stay around to help.
4728440	4731240	But I wanted to show one example.
4731240	4731860	So Wiggle.
4731860	4733340	You go to the Wiggle website.
4733340	4734420	They are very nice.
4734640	4741760	And basically what they provide you is a map that you can search based on different things.
4741760	4747540	You can search based on locations or you can search based on an SSID.
4747540	4753960	Or the MAC address of the access point known as infrastructure SSID.
4754920	4756500	So if I go...
4756500	4758620	Let me go quickly to Wiggle.
4767860	4771020	API also is here.
4774450	4783610	So basically many of the platforms when you connect them what you have is different things you can ask the API.
4783610	4788030	In this case probably the thing we want to do is to search for a network.
4788830	4792330	So here you see the different things that you can use.
4792330	4794550	We see here geocode, detail, whatever.
4794550	4796310	So we click here maybe in search.
4798150	4807130	And you see here all the different fields that can be used in that API query.
4808370	4811170	And usually they provide you one example.
4811170	4816110	So here you see one example if you were running that by yourself.
4818830	4822210	So what are the entities that are needed when you
4826130	4827450	use Wiggle?
4827990	4830390	One of them could be an SSID.
4832170	4834930	Okay, so we have some sound in the back.
4835110	4841690	So an SSID, one of them could be a location and another thing would be the wireless access point.
4842310	4853210	Because maybe what we want to do, okay, I want to see if I have an SSID I want to search all the access points that Wiggle know in the world that have this SSID.
4855810	4862090	And then from the access point maybe I want to extract locations or I want to extract where are those access points located.
4862810	4868450	So what I did basically, you remember when I was showing the API, I showed here different fields.
4868550	4874090	You have SSID, the different coordinates, so the different type of data.
4874090	4881170	So what I did here is to create access point entity with all these fields.
4881250	4889890	SSID, security, channels, country, latitude, longitude, all the different things that the API will be giving back to me.
4890470	4893070	And some of them what they did is to map in a layout.
4893070	4909990	So you see the access point, I see here the channel, the channel of the access point, then the SSID, the MAC address, you know in the SSID can be repeated because you have many access points using the same SSID.
4910090	4914550	But the BSSID, the MAC address of the access point is supposed to be unique.
4914690	4919590	So that's the main value of the access point of the access point entity.
4920750	4926650	So I consider the main value is the MAC address and the secondary value is the SSID.
4926650	4927990	You see here at the top.
4929490	4931810	So what they did here is a design.
4931810	4941510	So basically before coding probably that's a common best common practice, don't start coding first.
4941510	4942730	Think first.
4942730	4950630	So you can go just to Maldigo and try to drop entities, create the entities and try to drop them here in a graph to understand how to pivot.
4951130	4961810	Because you want to understand, okay, I want to go from a phrase to an SSID, from the SSID I want to go to an access point, from the access point I want to go to a location, from the location I want to go to the country.
4962530	4964810	Maybe from a location I want to go to the access point.
4964810	4968590	So this is like defining high level design of what you want to do.
4969550	4974510	So every single link you have here, you see that I have a link, will be a piece of Python code.
4974510	4982990	So if I want to go from SSID to an access point, it means SSID to wireless access point.
4983230	4990010	So basically it's mapping every link, every pivoting point to what is needed.
4991070	4994150	And how difficult was for me to code that?
4994150	4995770	I don't consider myself...
4995770	4998710	I studied computer science, I finished 2000.
4999050	5006190	I have been mostly a blue teamer, so coding scripts, but not really coding applications myself.
5007470	5011250	I feel comfortable doing small things, but not big ones.
5011350	5015170	When you code things nowadays, there are a lot of smart people out there.
5015230	5018590	So you don't need to start a project from scratch.
5018910	5021950	So literally it took me 10 minutes to code this.
5022110	5022850	Why?
5023070	5025150	Well, maybe that's too short.
5025150	5032450	I want to say probably half an hour, but it's more time for understanding the library than really doing the work.
5032510	5039510	Because what I did is I went to Google and I searched, is there any library for connecting Wiggle using Python?
5039930	5040530	Yes.
5040530	5047310	There is a library called Piggle that basically is a library that someone already made to connect to the Wiggle API.
5047310	5050690	So I don't have to map to an API myself manually.
5050690	5054810	So I can use Piggle and you see it's an import, so I use the Piggle library.
5054810	5058970	And also when you use a library, there are many people doing examples.
5059150	5064450	I know nowadays you have ChatGPT and many other things that probably you can use also.
5064530	5065350	Copilots.
5065350	5073990	But here basically, I just found out this website is a blog from someone saying how to map networks with Wiggle and Python.
5075070	5080450	And the only thing I have to do is to find a small piece of code of using Piggle.
5081230	5086770	So you see here basically is the lines of code is importing Piggle.
5087570	5092590	SSID is the request because it's the request for the piece of code SSID.
5092590	5095010	I want to see access points based on the SSID.
5095610	5097910	So what I do is network search.
5098570	5099430	And that's very basic.
5099430	5108950	It's basically using the Piggle library, network.search the name of the SSID and this creates a list of access points.
5109870	5119650	So what I need to do is a loop here and for every access point in that list what I did is to generate a response for Maldigo.
5119650	5122830	Response at entity and Maldigo access point.
5123050	5124190	And I set up all the properties.
5124190	5128870	The network ID SSID, channels, encryption, the different types.
5130070	5133030	And as I told you, this is quite simple.
5133030	5136230	You can just extrapolate this example to anything.
5136230	5139670	You want to do search in the blockchain cryptocurrencies.
5139830	5142090	Don't go directly to that.
5142090	5150350	You can use a library someone made in Python to go to the blockchain and get the, I don't know, the status of a wallet.
5150490	5153170	So that's possible and you don't need to do it from scratch.
5154030	5162630	And that's an example of the... I wanted to do it live but I have a problem right now in my computer so I cannot run it live.
5162630	5168790	But basically you have SSID, I mean the phrase I generated different SSIDs.
5168790	5171930	Maldigo, Maldigo staff, Maldigo corporate, different names.
5172590	5180450	Because when you are doing reconnaissance, as we are in the reconnaissance village, you use the company name, you are not going to use just Maldigo.
5180450	5185050	So let's use Maldigo staff, Maldigo corporate, Maldigo office, Maldigo whatever.
5185050	5191730	So I generate a transform that generates different SSIDs to brute force the access points.
5192510	5200270	I don't have to go to any data source, it's just a small transform to generate a list based on a keyword.
5201050	5203370	That's what they call a helper, a helper transform.
5203370	5223330	So the second part is okay, I go take the SSID and then what I did is to obtain all the access points here and then what I was using is Google Maps because Maldigo has a connector to Google Maps so what I did is to extract the GPS location and I normalized the location.
5223330	5227030	And you see there are many access points that are located in Munich.
5227430	5229810	That is the headquarters, I mean that's public.
5229810	5233250	You go to the Maldigo website, you see the address of the headquarters.
5233910	5248030	But it was funny because I found all the Maldigo access points in the US, in residential sites, because maybe someone loves the Maldigo keyword and you are using that in your residential Wi-Fi.
5250730	5255810	Cool, so that's one example as I told you.
5256310	5262730	You can just go to the Maldigo LTC repository I told you and you have here the code.
5262730	5265150	So no magic, here I go.
5265330	5268110	You remember the repository I told you, Maldigo LTC.
5269610	5270790	We go.
5272130	5276310	My code is shared here, so SSID to wireless access point.
5277670	5279930	That's the code, nothing else.
5279930	5291230	I mean it's a half page of code that is basically the transform that I was... so in order to use that transform you need to import it in your computer, map it and use it.
5293150	5310430	Cool, so the challenge for you, for those of you who want to try it now, in the next minutes or you want to do it on your free time, because I know DEF CON is only a few days, so probably you want to do other things during today, you can do it on your free time.
5310450	5313490	Is to map an OSINT tool.
5313490	5315230	This OSINT tool is called Holoher.
5315430	5317190	I don't know if you heard of this tool.
5317590	5318090	But basically
5324500	5330040	this is an OSINT tool that if I find here, maybe even we have a...
5331160	5334540	I think I can run it in my computer also.
5334740	5337000	But let's not lose time.
5337000	5339940	Basically what you do is you put an email address.
5339940	5342640	I think, sorry, I have it in the slides, it's here.
5343020	5357360	So basically you put an email address and this OSINT tool is connecting to many websites to verify that email has been used, it's available, it has been signed up in that website.
5357360	5365600	So basically you have, if the email has been used, not used, or the webpage is rate limiting.
5365600	5368660	So you don't know for sure if it's available or not.
5372300	5376000	Okay, so I will leave that for you.
5376000	5378060	So we still have 20 minutes.
5378260	5382600	So probably we can invest the last times of this workshop to handle questions.
5382860	5393460	And for those of you who want to stay there until 12, because afterwards there is another workshop, so I cannot stay more here.
5395980	5398740	You can just try to start doing that by yourself.
5398740	5401160	The Hello World example I did or
5405520	5407780	this integration for that.
5407940	5409220	Let me go quickly here.
5409220	5414800	You have these lab notes, as I told you, that is a step-by-step in how to do it.
5414800	5420040	So you have this documentation I provided at the beginning, so you can do that by yourself.
5422020	5424140	Okay, so I'm talking too much.
5425100	5426060	I'm a Spaniard.
5426060	5427860	It's normally on us.
5430200	5433500	Any questions, comments, pains?
5436560	5437560	Okay.
5438380	5439580	No, thanks for you.
5439580	5444820	I really like being inside the community, being close to all of you.
5444880	5448700	So my contact details, by the way, are here.
5448700	5451960	I don't include my corporate ones because I'm in a community event.
5452480	5462680	So you have here my... I'm usually in the social media networks like in Twitter, in other platforms with Cifragoso or that's my email if you want to reach me out.
5465280	5467200	And thank you for coming.
5467200	5471820	So enjoy DEF CON, enjoy Vegas, and hopefully see you very soon.
5471820	5472380	Thanks.
