WEBVTT

00:27.680 --> 00:33.580
Good morning everyone.

00:35.420 --> 00:39.020
How is day 2 in Vegas going for Defcon?

00:41.840 --> 00:46.680
This being the last day for Defcon today and I'm sure we've got a lot of plans after Defcon.

00:46.840 --> 00:49.300
So let's gear up for the last day and give it our best.

00:49.300 --> 00:51.880
We had a blast yesterday.

00:52.040 --> 00:56.400
There were some amazing talks and almost all of our talks were full house.

00:56.480 --> 01:00.120
We had people peeping in from here, peeping in from the back.

01:00.120 --> 01:02.360
It was overwhelming.

01:03.060 --> 01:08.580
And I'm hoping it's going to be even better today because we've switched gears with a lot of workshops.

01:09.100 --> 01:17.920
Now the first workshop that we've got is the Multigo Community Workshop, which is going to be presented by Carlos Fragoso.

01:17.920 --> 01:27.220
Carlos is an incident response and forensic consultant and also team leader at Security Ninjas.

01:27.220 --> 01:42.820
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.

01:42.820 --> 01:50.140
Carlos has been a frequent speaker of networking and security topics at multiple workshops and conferences.

01:50.300 --> 01:55.400
So we've got someone very resourceful and very intelligent with us over here giving us a workshop today.

01:55.400 --> 02:01.040
He has collaborated with SANS Institute on several advisory boards as well.

02:01.420 --> 02:09.700
And now this workshop aims to describe how to use Multigo CE with the common available transform sets.

02:09.700 --> 02:20.580
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.

02:20.980 --> 02:28.500
So this walkthrough has a lot to offer and there are some demos and Q&A as well.

02:28.500 --> 02:30.600
So please give it up for Carlos.

02:34.240 --> 02:36.260
Good morning, everyone.

02:36.580 --> 02:40.060
Glad to see wake-up faces.

02:40.560 --> 02:45.700
I hope you had a lot of fun yesterday in the event and after the event with your colleagues.

02:47.000 --> 02:53.840
And I'm very honored to be here with all of you today at DEF CON to have this Multigo workshop.

02:54.620 --> 02:57.820
So let's get started then.

02:57.820 --> 03:01.100
I have been already introduced, so I will skip that.

03:01.100 --> 03:05.400
So what's the goal of this workshop today?

03:06.220 --> 03:15.160
The idea is to... I mean, probably some of you have already used Multigo recently or in the past.

03:15.800 --> 03:26.640
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.

03:26.640 --> 03:32.760
I think most of the steps we will follow today, you can follow them after the workshop by yourself.

03:33.280 --> 03:40.760
But anyway, we will try to keep everyone following the content we have today.

03:40.800 --> 03:48.540
And after this quick setup, we will cover a little bit of introduction about Multigo, about the possibilities of the tool.

03:48.540 --> 04:07.660
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.

04:07.660 --> 04:18.700
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.

04:18.700 --> 04:23.860
So we will try to invest some time showing the basics of coding.

04:23.880 --> 04:27.820
This is not a coding workshop, but we will have to code a little bit.

04:27.820 --> 04:38.920
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.

04:40.140 --> 04:42.660
Okay, so let's get started.

04:43.400 --> 04:46.820
So how many people in the room have already used Multigo?

04:47.740 --> 04:49.760
Okay, some of you.

04:49.760 --> 04:50.660
Lovely.

04:51.220 --> 04:55.800
Okay, so which are the requirements for this workshop?

04:56.680 --> 05:03.960
Multigo is a tool that runs in most of the operating systems is completely multi-platform.

05:03.960 --> 05:08.920
So you can run it in Linux, in Mac, in Windows without any problem.

05:09.660 --> 05:14.180
So for those who have probably the quickest way to do it is for those who have Kali Linux.

05:14.180 --> 05:17.440
In case you have it, you can just install it.

05:17.900 --> 05:22.420
If not, we will show you the quickest steps to do it in Linux in a moment.

05:25.420 --> 05:33.340
And apart from that, you will need to register for a Multigo ID.

05:33.340 --> 05:36.060
It means for activating the community edition.

05:36.160 --> 05:39.900
So the tool we are going to use today is not the commercial tool.

05:39.900 --> 05:41.420
It's not the enterprise tool.

05:41.420 --> 05:46.660
That's for companies, enterprises, law enforcement are using this enterprise version.

05:46.660 --> 05:48.160
Today we use the community version.

05:48.160 --> 05:48.900
It is for free.

05:48.900 --> 05:50.800
It's available for all of you.

05:50.800 --> 05:54.700
But in order to use the tool, you need to register with a Multigo ID.

05:54.700 --> 05:58.480
You don't need to give your real data if you don't want.

05:59.080 --> 06:05.580
If you want to follow operational security stuff, you can use just fake data.

06:05.680 --> 06:07.160
Don't tell my colleagues that.

06:09.500 --> 06:11.380
But you can do it that way.

06:11.420 --> 06:22.100
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.

06:22.100 --> 06:24.120
Or if you want to do it just command line.

06:24.700 --> 06:26.060
And that's it.

06:26.960 --> 06:35.600
The steps to start with the setup will be, as I told you, downloading the Multigo.

06:36.020 --> 06:38.620
You can download it from our website.

06:39.260 --> 06:45.980
And complete this registration form in order to have access to Multigo.

06:47.500 --> 06:48.920
So these are the steps.

06:48.920 --> 06:54.340
And as I told you, this presentation will be shared after this workshop.

06:54.340 --> 06:56.080
So you can do it by yourself.

06:56.360 --> 06:59.820
These are exactly the four steps you need if you want to do it in Linux.

06:59.860 --> 07:01.280
Download Multigo.

07:01.760 --> 07:06.220
Install the binary, in case you do it in Linux with a package manager.

07:06.300 --> 07:07.340
Install Java.

07:07.360 --> 07:09.060
Still, Multigo depends on Java.

07:09.060 --> 07:11.500
That's something that will probably change in the near future.

07:11.560 --> 07:14.340
But nowadays, it still runs on Java.

07:14.340 --> 07:16.600
So we need at least Java 17.

07:16.880 --> 07:19.400
And then run the Multigo tool.

07:20.120 --> 07:29.480
So for those who have Kali, you can just open your Kali Linux and do apt install Multigo.

07:29.680 --> 07:33.480
Multigo was installed by default in Kali for many years.

07:33.480 --> 07:36.680
But you know, the Kali Linux was growing and growing.

07:36.680 --> 07:40.060
So some of the packages, Multigo is a little bit, let's say, thick.

07:40.060 --> 07:43.080
From the point of view of use of the hard drive.

07:43.080 --> 07:45.000
So it's not installed by default.

07:45.000 --> 07:49.620
But just installing the package, you will have it because it's in the Kali repository.

07:49.980 --> 07:53.920
And our team customizes that package for Kali.

07:55.000 --> 08:01.440
And last but not least, I wanted to point out that lately, and I have to kudos TechRack.

08:01.440 --> 08:03.800
That is an influencer in YouTube.

08:04.080 --> 08:08.700
There is also an alternate way to run Multigo, if you want, in the browser.

08:09.060 --> 08:11.000
Just by using Docker containers.

08:11.000 --> 08:19.320
For those who are familiar with containers and prefer not to run Multigo in a VM or in your operating system.

08:19.320 --> 08:29.220
You can just deploy Multigo inside a container and open that container with the browser.

08:29.520 --> 08:33.120
So I'm going to show, probably this is something not many people know.

08:33.120 --> 08:35.720
So I'm going to show a quick demo of this part.

08:36.320 --> 08:38.300
Let me open here the browser.

08:43.860 --> 08:45.920
Because there is a demo here, so in case...

08:45.920 --> 08:53.580
The people from KSM, that is the technology to, let's say, put applications inside a container.

08:53.580 --> 08:56.920
They also have a community version, so you don't have to pay for this.

08:57.160 --> 09:01.780
So I'm going to launch and you will see that basically...

09:02.680 --> 09:07.300
This is going to open, you will see in a few seconds, Multigo inside a Docker container.

09:08.760 --> 09:15.560
So basically what they are doing is streaming a Linux environment.

09:16.780 --> 09:18.380
Okay, let's wait a few seconds.

09:18.380 --> 09:20.320
The network is going a little bit slow.

09:20.320 --> 09:22.380
Let's wait a few seconds to see if we can show it.

09:22.380 --> 09:23.840
If not, I will skip it.

09:29.810 --> 09:34.570
Okay, let me go back then to the PPT while it is opening.

09:41.360 --> 09:42.740
So let's see.

09:42.740 --> 09:43.320
Okay.

09:43.800 --> 09:46.740
So now it's opening, it looks like.

09:57.850 --> 10:03.050
And in a second you will see basically Multigo opening in the browser inside this Docker container.

10:03.050 --> 10:03.690
I will skip it.

10:03.690 --> 10:05.550
I don't want to lose a lot of time with that.

10:05.550 --> 10:08.850
You have here instructions, even a YouTube video from this influencer.

10:08.850 --> 10:14.570
So kudos to this guy who was showing an OSINT investigation using Multigo one year ago.

10:14.570 --> 10:18.010
Using this way to deploy Multigo.

10:18.610 --> 10:24.950
Once you have Multigo installed in your computer, you need to activate it.

10:24.950 --> 10:27.470
So basically you will see here Multigo CE.

10:28.390 --> 10:33.850
So the first time you have to do register, that will go to the registration site.

10:35.390 --> 10:37.150
So I will now leave...

10:38.830 --> 10:45.470
I will leave a couple of minutes to make sure all the people have Multigo on their systems.

10:45.470 --> 10:49.630
So for those who already have Multigo, be patient for your colleagues.

10:50.550 --> 10:53.670
So I will go back to these slides.

10:55.670 --> 11:06.250
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.

11:07.630 --> 11:08.030
So...

11:10.660 --> 11:12.380
Here the timer, quickly.

11:22.540 --> 11:27.580
So as I told you, I will leave a couple of minutes for those who don't have Multigo, you want to install it.

11:27.800 --> 11:32.860
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.

11:59.400 --> 12:05.380
The gentleman here was asking about the amount of RAM to allocate for Java, for Multigo.

12:05.380 --> 12:10.700
By default, as far as I know, it's recommending 8GB of RAM.

12:10.800 --> 12:16.500
That is not, let's say, completely necessary, unless you are a heavy user of Multigo.

12:16.500 --> 12:20.660
So you are doing a lot of investigations with a lot of data, probably you need a lot of RAM.

12:20.660 --> 12:26.420
But for what we are going to do today, I will say even 4GB of RAM, probably Multigo can run without any problem.

12:26.540 --> 12:29.020
So don't worry about the RAM for this workshop.

12:29.360 --> 12:33.740
Probably if you put 2GB of RAM, it's not going to work, but 4GB should be enough.

12:35.380 --> 12:41.100
So let's wait a few seconds to make sure it's being installed.

12:56.650 --> 13:02.290
I will leave also some time later, but for those who don't complete the steps now.

13:22.880 --> 13:25.400
Okay, so let's continue then.

13:27.100 --> 13:34.140
So once you install Multigo and you create an account, basically you will have the possibility to log in.

13:34.140 --> 13:42.180
And you will see that you have activated your Multigo Community Edition.

13:42.180 --> 13:48.220
And then we will say that Multigo is completely operational to work.

13:48.660 --> 13:54.900
So what we are going to do to make sure that your Multigo client is operational.

13:54.900 --> 13:59.360
We are going to do a few steps to show how to run Multigo.

13:59.360 --> 14:04.460
So for that, what I'm going to do is once Multigo is open.

14:04.660 --> 14:10.320
Here at the top, you have this big button that you can click and click here on Neo.

14:10.340 --> 14:12.320
Or you can just click on this one.

14:13.100 --> 14:16.940
Let me put the cursor here.

14:20.060 --> 14:27.300
And I was saying here you have Neo or we have here this button.

14:27.300 --> 14:32.740
So when you click here on Neo, you will see that a new graph is being opened.

14:32.740 --> 14:36.720
So you will see that different tabs are being opened here.

14:37.880 --> 14:42.920
So what we have for those who have never seen Multigo.

14:42.920 --> 14:46.220
We will describe a little bit more of the logic behind later.

14:46.240 --> 14:49.120
But here in the left side, you have the Entity Palette.

14:49.140 --> 14:53.020
So what we are going to do is here just to write here a website.

14:57.490 --> 14:58.950
Let me delete this.

14:59.850 --> 15:05.890
And what I'm going to do is put Defcon.org.

15:06.950 --> 15:12.970
So basically to change the name, you just need to double click and right over it.

15:15.070 --> 15:18.990
And what I'm going to do basically is to do right click.

15:18.990 --> 15:30.010
And then here I'm going just to type directly the transform I want to use to IP address.

15:30.110 --> 15:32.610
So you see here to IP address DNS.

15:37.060 --> 15:38.900
And then you will have something like that.

15:38.900 --> 15:41.140
You can put it full screen if you want here.

15:41.140 --> 15:43.160
Just click in here in this icon.

15:43.160 --> 15:53.480
So basically if you have installed Multigo, you have activated it.

15:53.480 --> 15:56.400
And then you open a new graph and you run this.

15:56.400 --> 15:58.440
It means that Multigo is operational.

15:58.620 --> 16:06.620
So you can be sure that from now on you can use Multigo for investigations.

16:06.620 --> 16:09.580
With the transform that comes with Multigo by default.

16:09.580 --> 16:12.000
With the ones that are included by default.

16:13.260 --> 16:16.420
Okay, so here we go.

16:18.320 --> 16:21.300
So these are the four steps I have followed.

16:21.300 --> 16:23.580
The first one is opening a new graph.

16:23.580 --> 16:26.260
Selecting a specific starting point.

16:26.260 --> 16:28.400
In this case was a website.

16:28.700 --> 16:34.120
I set up as a website Defcon.org.

16:34.120 --> 16:41.320
And then I just run a transform to pivot to move from the website to IP addresses.

16:43.990 --> 16:44.990
Cool.

16:44.990 --> 16:51.810
So for the part of coding, for those of you who are not familiar with coding.

16:51.930 --> 16:55.710
It's highly convenient to install an IDE in your computer.

16:55.710 --> 16:59.830
It means that it's an application that will help you during the coding process.

16:59.830 --> 17:03.270
With a lot of extensions, with a lot of features.

17:03.270 --> 17:09.330
You have something I recommend during my trainings is to use PyCharm Community Edition.

17:09.330 --> 17:14.610
You have also, for those who love more Microsoft stuff, you have Visual Studio Code.

17:14.990 --> 17:17.510
Or you can just code on the command line.

17:17.510 --> 17:19.890
So you can just do it in the way you want.

17:24.010 --> 17:27.710
In this workshop we are going to have one lab.

17:29.610 --> 17:39.010
That's probably the lab for the people who are not, I would say, comfortable with coding.

17:39.010 --> 17:42.230
Probably you won't have the possibility to complete it today.

17:42.230 --> 17:44.530
But you have here step-by-step notes.

17:44.530 --> 17:47.930
So basically what I did is I prepared this document here.

17:47.930 --> 17:49.330
You have the QR code.

17:49.330 --> 17:52.210
But if you don't like QR codes, you have the URLs here.

17:52.350 --> 17:57.830
That basically is a PDF document I created with Obsidian.

17:57.830 --> 18:00.130
That is a common documenting tool.

18:00.130 --> 18:08.330
That basically includes step-by-step what to do in order to complete this lab.

18:10.310 --> 18:15.130
Okay, so as I told you, this part is about the setup.

18:15.290 --> 18:19.030
So from this point on, we have Multigo operational.

18:19.230 --> 18:23.950
You should have a coding, and you're competing in a coding environment.

18:24.030 --> 18:30.770
And also you have the notes for the lab we are going to complete later.

18:31.130 --> 18:35.490
If someone is lost, if someone has not completed all the steps, don't worry.

18:35.490 --> 18:41.250
I will go through all the tables later to see if someone needs help.

18:41.250 --> 18:45.890
Okay , so let's do a quick Multigo introduction.

18:46.310 --> 18:49.730
So today we are going to use Multigo Community Edition.

18:49.730 --> 18:55.770
As I told you, it's a free version that we have on Multigo.

18:55.770 --> 18:59.510
That is not intended to be used for commercial use.

18:59.590 --> 19:01.610
And has some restrictions.

19:01.610 --> 19:05.810
Especially the big one is the number of results that you can get per transform.

19:06.150 --> 19:12.770
So many of the people in the community are familiar with these two Multigo versions.

19:12.770 --> 19:15.070
Multigo Community and Multigo Case File.

19:15.090 --> 19:18.410
Multigo Case File, we are not going to show it today.

19:18.410 --> 19:21.690
But Multigo Case File is a tool just for documenting.

19:21.690 --> 19:28.610
When you want to generate a graph, you can use Multigo Case File to do this process manually.

19:28.610 --> 19:34.930
To document any APT, any investigation you want to do, to represent that visually.

19:36.670 --> 19:40.790
So the concept behind Multigo is to use link analysis.

19:40.790 --> 19:43.250
So what we have are entities.

19:43.250 --> 19:52.350
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.

19:52.350 --> 19:55.370
Anything that we want to investigate is an entity.

19:57.230 --> 20:05.070
But how we go from a person to a phone number, how we can go from a person to an email.

20:05.150 --> 20:08.230
This is what we call pivoting.

20:08.230 --> 20:11.010
That is basically linking data together.

20:11.010 --> 20:17.530
So we need to have a data source that is providing us some connections between both things.

20:20.010 --> 20:23.190
So where is the data coming from?

20:23.190 --> 20:33.890
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.

20:34.030 --> 20:47.110
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.

20:47.390 --> 20:48.710
Also commercial sources.

20:48.710 --> 20:52.630
We are not going to cover this today because we are using the Community Edition.

20:52.630 --> 21:00.410
But the important thing that we will cover today is connecting to your own data and tools.

21:00.410 --> 21:12.150
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.

21:12.210 --> 21:17.910
That basically many of these tools, they have APIs or they drop files or they have databases.

21:18.190 --> 21:20.090
And this data can be connected.

21:20.090 --> 21:24.730
That's one of the powers that Multigo can provide.

21:24.730 --> 21:37.210
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.

21:38.330 --> 21:43.390
So this diagram here is trying to represent what Multigo can do.

21:43.390 --> 21:51.810
For those who are not familiar with the transform, at the top, what you have are the data sources.

21:51.810 --> 21:54.190
What you have will be the Wayback Machine.

21:54.190 --> 21:57.610
In OSINT, the Wayback Machine is keeping a copy of websites.

21:57.710 --> 22:00.150
You have cryptocurrency, the blockchain.

22:00.770 --> 22:12.510
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.

22:13.910 --> 22:18.990
So here in the middle, what we have is different providers, different tools.

22:18.990 --> 22:24.370
What they are doing is basically analyzing the information that is online interfacing.

22:24.370 --> 22:33.010
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.

22:33.270 --> 22:34.990
You need an interface.

22:35.470 --> 22:38.410
When you do it manually with the browser, that's okay.

22:38.410 --> 22:47.050
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.

22:47.050 --> 22:48.670
So that's an interface.

22:48.750 --> 22:50.810
Archive, data, intelligence.

22:50.810 --> 22:56.170
Maybe some of the tools are processing the data for your team or for yourself.

22:58.170 --> 23:00.170
We have the data sources.

23:00.170 --> 23:01.830
We have the code doing that.

23:01.830 --> 23:03.510
So what's Multigo doing?

23:03.510 --> 23:12.750
Multigo, what it's doing is collecting the data from the different data sources, merging the data together and mapping the data.

23:13.370 --> 23:17.110
And that seems very simple, but that's very important.

23:17.130 --> 23:23.670
Because when you have, let's say, a forensic tool, you have a website, every single data source is different.

23:23.910 --> 23:30.970
But when we are collecting this data from all these different places into the same one, we need to normalize.

23:34.290 --> 23:38.850
Independently of the data source, to map this data to something that is what we call an entity.

23:39.450 --> 23:42.130
And, of course, map the information together.

23:42.130 --> 23:44.510
Because what we want to do is to have insights.

23:44.750 --> 23:48.350
We have some starting points and we want to uncover something.

23:48.690 --> 23:57.250
So that process at the end is visualization, analyzing data, collaboration, and also automation that I will show in a few minutes.

23:59.890 --> 24:05.510
So I see all the faces, I don't know if you are awake with me, yes?

24:05.810 --> 24:08.970
So if anyone has any questions, please stop me.

24:08.970 --> 24:12.310
I prefer that you drop anytime you have any questions.

24:12.310 --> 24:15.270
I think all the audience will benefit from questions.

24:15.330 --> 24:16.990
If not, I will continue.

24:17.330 --> 24:21.510
And here I'm going to show how does Multigo work.

24:21.510 --> 24:27.110
So in the right side of what you have is the data source, the data set.

24:27.110 --> 24:31.090
Could be a database, could be a webpage, could be a social media platform.

24:31.530 --> 24:42.150
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.

24:42.150 --> 24:48.950
Basically, what was happening is that the Multigo application was sending a request to a remote server.

24:48.950 --> 24:54.890
To a server that is on the cloud, and this server is collecting the data.

24:54.890 --> 25:00.410
It's running a small piece of Python code and collecting this data for you.

25:00.590 --> 25:04.750
So from the point of view of operational security, that protects the investigator.

25:04.750 --> 25:12.370
So the Multigo client is not collecting the data directly from the data source, but you have servers in the middle.

25:12.370 --> 25:14.870
But also, we are very strong.

25:15.010 --> 25:19.270
I mean, Multigo at the moment is based in Germany, the headquarters.

25:19.650 --> 25:27.210
And we are applying to the product, even to the community edition, very strong privacy and constraints.

25:27.210 --> 25:29.930
We are following GDPR and all the regulations.

25:29.930 --> 25:39.670
So it means that Multigo is not inspecting or archiving the queries that the analyst is sending to the internet.

25:39.670 --> 25:47.830
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.

25:47.830 --> 25:49.670
And nothing is kept in the cloud.

25:49.890 --> 25:56.190
So we are doing that in remote servers that are located in different places of the internet.

25:57.310 --> 26:00.290
But that's one of the ways that can be done.

26:00.290 --> 26:10.010
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.

26:10.270 --> 26:18.770
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.

26:18.850 --> 26:25.690
And then having your Multigo client connect directly to a data source without using the cloud servers.

26:28.550 --> 26:32.570
Okay, so... any questions?

26:34.430 --> 26:35.470
Yes.

26:37.810 --> 26:40.490
I will go closer because I cannot listen to you.

26:57.320 --> 27:06.500
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.

27:07.040 --> 27:10.860
If you're using locally, then it could be easier to track you down.

27:10.860 --> 27:16.260
If you see that you are connecting to a data source, that they can see that you are the one collecting.

27:16.460 --> 27:17.480
That's right.

27:17.480 --> 27:20.280
But then you can do some additional operational security things.

27:20.280 --> 27:21.660
You can use VPNs.

27:21.660 --> 27:22.880
You can use proxies.

27:22.880 --> 27:25.640
That's something you can configure in Multigo.

27:25.920 --> 27:35.180
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.

27:35.180 --> 27:40.900
You can use VPNs or proxies to anonymize everything, even using the Multigo clouds.

27:41.220 --> 27:42.640
You're welcome.

27:44.120 --> 27:50.560
So if I go back to Multigo, you will see here at the top.

27:52.420 --> 27:55.480
This star here looks like a star.

27:55.480 --> 27:59.820
When you click on that, you will see that these are all the different...

28:00.370 --> 28:07.800
As I told you, Multigo provides some public or free integrations that you can use.

28:07.940 --> 28:09.800
And also some of them are commercial.

28:09.800 --> 28:11.740
You need the enterprise versions for that.

28:11.740 --> 28:17.580
But you have some ones like, as I told you, VirusTotal.

28:17.580 --> 28:18.580
So I can click here.

28:18.580 --> 28:19.160
Okay.

28:19.240 --> 28:19.880
VirusTotal.

28:19.880 --> 28:21.900
And I have VirusTotal public.

28:21.960 --> 28:23.560
So how does it work?

28:23.560 --> 28:28.020
Basically, the way it works is that you need to set up an API key.

28:28.440 --> 28:36.540
So it means when you use a data source, it means that you need to go to VirusTotal with your account.

28:36.540 --> 28:45.260
Then generate an API key and you go back to Multigo to store and deploy the API key.

28:45.820 --> 28:53.120
So basically what is happening behind the scenes is that Multigo goes to the Multigo servers.

28:53.120 --> 28:58.900
The Multigo servers goes to VirusTotal, but goes to VirusTotal using your API key.

28:59.040 --> 29:04.440
So it's using your identity to collect the data on your behalf and sending the data back to you.

29:04.700 --> 29:06.680
So that's the way it works.

29:06.900 --> 29:11.340
But if anyone has more questions about the level of detail, I will be happy to answer.

29:11.340 --> 29:12.660
There is one question there.

29:43.720 --> 30:00.320
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?

30:00.960 --> 30:04.300
Basically, you have different data sources available.

30:04.360 --> 30:05.760
Some of them are for free.

30:05.760 --> 30:07.440
Some of them are paid providers.

30:07.440 --> 30:10.120
For instance, we have IHaveBeenPwned.

30:14.620 --> 30:18.340
So we have one data source that is for free that is IHaveBeenPwned.

30:18.340 --> 30:20.860
So it means that... let me drop an e-mail.

30:21.960 --> 30:22.800
OK.

30:22.940 --> 30:24.340
As an example.

30:32.880 --> 30:37.540
This is one of my contact e-mails that is later in the presentation.

30:38.720 --> 30:39.640
OK.

30:41.400 --> 30:44.180
Let me check IHaveBeenPwned here.

30:47.130 --> 30:50.550
So you see, get all breaches for that e-mail address.

30:57.100 --> 31:03.740
So you see, basically here, this is going to... you probably have heard of this website, IHaveBeenPwned.

31:03.740 --> 31:09.880
You can go there, include an e-mail, and it will tell you if you are in a breach.

31:10.720 --> 31:14.860
So in this case, I have dropped in the canvas one e-mail.

31:14.860 --> 31:19.120
But if you drop 10 e-mails, you could see if they are merging.

31:19.260 --> 31:24.320
And see if you have different e-mails from your colleagues, from your company, that they are merging in the same breach.

31:24.320 --> 31:29.520
You see here, LinkedIn, or Gravatar, or Adobe, or any of them.

31:30.500 --> 31:32.800
So I hope this answers your question.

31:33.060 --> 31:33.620
Yes?

31:58.100 --> 32:05.640
Yeah, the lady is asking if there is the possibility to know... not using an e-mail, but using a domain.

32:05.640 --> 32:09.660
So you can know from the domain if there are e-mails being breached.

32:09.780 --> 32:13.760
Yes, you can do it, but for that you need... it's not in the community edition.

32:13.760 --> 32:15.120
It's an enterprise feature.

32:15.860 --> 32:21.620
And then you need to use a specific provider that can give you this data.

32:21.620 --> 32:24.480
I can show a very quick example with my own domain.

32:26.680 --> 32:27.980
But this is not included.

32:27.980 --> 32:30.240
You cannot repeat this process because it's not a community.

32:30.240 --> 32:36.140
But for the sake of understanding this question, maybe use fragoso.eu.

32:41.380 --> 32:42.940
Click records.

32:43.600 --> 32:49.860
Or in case you have any access to a database, maybe you can just not use this paid provider.

32:49.860 --> 32:52.080
You have a database available somewhere.

32:52.100 --> 32:55.060
If someone from the community is providing that, maybe you can do it.

32:55.060 --> 32:58.620
You see here, that's my...

32:58.620 --> 33:02.700
There are different...

33:02.700 --> 33:05.760
In my domain, I'm including different breaches.

33:05.760 --> 33:08.160
Let me take, I don't know, Adobe, for instance.

33:09.840 --> 33:12.240
I can extract from here.

33:13.660 --> 33:16.240
Let's see if I have here an e-mail.

33:16.240 --> 33:19.060
Or name.

33:28.300 --> 33:29.760
So that's it.

33:29.960 --> 33:35.080
Basically, you see here that from the domain, I have been able to identify different breaches.

33:35.080 --> 33:40.320
In these breaches, if I extract the e-mail, I see that this e-mail has been breached.

33:41.220 --> 33:43.340
So I hope this answers your question.

33:43.620 --> 33:51.420
If anyone is interested in knowing data sources from the community or paid ones, let me know after the workshop.

33:51.420 --> 33:53.660
I will be very happy to answer that.

33:55.480 --> 33:57.440
Okay, so let's continue a little bit.

33:59.380 --> 34:01.740
So this is what we have included.

34:01.740 --> 34:10.420
So it means this is coded either by the Maltego employees, the Maltego engineering team, or by third parties, some of the partners.

34:10.420 --> 34:15.840
But we started last year an initiative for the community that is in GitHub.

34:15.840 --> 34:18.120
It's called Maltego LTC.

34:18.120 --> 34:20.660
That means local transform for the community.

34:20.960 --> 34:23.760
And what we started to do is that...

34:24.640 --> 34:29.820
I saw in GitHub a lot of people that coded their own Maltego transforms.

34:29.820 --> 34:36.680
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?

34:36.680 --> 34:39.580
So we started to collect them here together.

34:39.660 --> 34:41.700
But we just started.

34:41.700 --> 34:47.860
So it means that there are many other people who coded their own transforms that they are not still in this repository.

34:47.940 --> 34:56.640
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.

34:56.640 --> 35:04.440
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.

35:04.500 --> 35:12.480
And we can help to curate and to, let's say, maintain the repository for the rest of the people.

35:12.480 --> 35:14.980
So here you have different ones.

35:14.980 --> 35:22.700
And I have included some kudos to the guys who already did that, like Turox, Megadose, and many of them.

35:22.700 --> 35:29.540
But there are many others you have here, like Osindojo, and many others that already...

35:29.540 --> 35:33.300
They have coded Maltico transform, but they are not in the repository yet.

35:33.300 --> 35:34.860
But then you can use them.

35:36.160 --> 35:50.580
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.

35:50.580 --> 35:52.860
This module goes into this repository.

35:53.040 --> 35:57.920
And then all the people from the community can benefit from using it.

35:57.980 --> 36:00.200
So that means it's a community initiative.

36:00.200 --> 36:03.060
It's completely separate from, let's say, the commercial product.

36:04.140 --> 36:06.020
So, yeah.

36:06.060 --> 36:17.600
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.

36:17.600 --> 36:23.260
And one of them is the hands-on lab that you can do by yourself.

36:25.320 --> 36:26.520
Here are the steps.

36:26.520 --> 36:31.360
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.

36:31.360 --> 36:37.860
But after this workshop, please take a look at this Maltico LTC.

36:37.860 --> 36:43.760
That means cloning the repository, installing the dependencies, and adjusting some configuration files.

36:43.760 --> 36:49.240
So once this is completed, you can import the configuration and start using these transforms.

36:49.320 --> 36:52.800
But keep in mind, these transforms will not be run in the Maltico cloud.

36:52.960 --> 36:54.980
They will be running from your computer.

36:54.980 --> 37:03.420
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.

37:04.420 --> 37:08.860
So, I wanted to show quickly an example.

37:09.180 --> 37:12.880
So for that, I wanted to show a little bit of infrastructure investigation.

37:12.880 --> 37:14.640
So let me just go to Maltico.

37:15.160 --> 37:17.120
And I'm going to open a new graph.

37:17.540 --> 37:19.980
And for that, I'm going to drop a domain.

37:19.980 --> 37:22.720
Like, for instance, the DEF CON domain.

37:25.760 --> 37:31.000
And for that, what I'm going to do is to run what is called a machine.

37:31.880 --> 37:33.640
That you have here at the bottom.

37:33.640 --> 37:35.000
You see here in red.

37:35.080 --> 37:37.040
And you have them here at the top.

37:37.060 --> 37:37.780
Machines.

37:39.420 --> 37:43.800
That, what we have is, basically, these are macros.

37:43.800 --> 37:51.780
These are playbooks that can be reproduced to do the collection process in an automated way.

37:51.880 --> 37:54.520
So you see here, for instance, I'm going to use Footprint 1.

37:54.520 --> 37:56.040
I'm going to open it quickly.

37:58.780 --> 38:03.000
So, basically, what this is doing is to run transforms on your behalf.

38:03.000 --> 38:07.240
So, I'm going to have one starting point, what will be the DEF CON domain.

38:07.720 --> 38:10.100
And Maltico is going to run all these transforms.

38:11.900 --> 38:13.440
And provide you the data.

38:13.800 --> 38:14.980
So let me do it now.

38:15.520 --> 38:16.560
Right click.

38:17.560 --> 38:20.820
I go to Machines.

38:21.620 --> 38:22.700
And go to Footprint.

38:22.700 --> 38:24.460
I'm going just to do a basic footprint.

38:24.560 --> 38:26.500
Because I don't want it to take a lot of time.

38:26.500 --> 38:28.960
It will take around a minute.

38:30.340 --> 38:32.600
See, when I click on that, you're going to reproduce.

38:32.600 --> 38:35.080
It will start to generate a graph.

38:35.080 --> 38:36.540
Let me put it fullscreen.

38:37.700 --> 38:51.100
So the first step is collecting some DNS names, emails, information in the DNS zone of that of the original domain.

38:51.100 --> 38:52.120
But this is still running.

38:52.120 --> 38:54.820
You see here at the bottom, running transforms.

38:56.980 --> 39:05.080
And basically, right now, it's working with the data that we have found and trying to map to IP addresses.

39:05.080 --> 39:07.140
Let me go to PowerPoint.

39:07.140 --> 39:13.740
So domain to different information like DNS names, name servers, mail exchange, websites.

39:13.740 --> 39:21.800
Then getting the IP addresses, going to the net block, and then going to the AS number.

39:21.800 --> 39:29.560
The AS number represents the identifier of the ISP that manages that network block of IPs.

39:29.940 --> 39:32.940
So the graph is still ongoing.

39:35.460 --> 39:41.800
But it's in the last stage, you see domains, DNS names, IPs.

39:42.140 --> 39:48.460
And in a few seconds, you will see that goes to net blocks.

39:49.840 --> 39:53.900
And from the net blocks, we will see the autonomous system number.

39:55.900 --> 39:57.560
One question here.

40:23.900 --> 40:31.680
The gentleman here at the front is asking that this footprint level 2 is not there.

40:32.460 --> 40:33.680
I have to double check.

40:33.680 --> 40:36.280
Probably we need to install any additional item.

40:36.280 --> 40:38.340
So you have it in the community edition.

40:40.280 --> 40:45.280
I will check during the break and we will double check.

40:45.280 --> 40:47.900
Okay, so that's what we have.

40:47.900 --> 40:57.540
One of the things we can do is when we have the IPs, it will be that a potential integration could be Nmap.

40:58.180 --> 41:02.860
Because right now what we have done is we have domains, DNS names, we go to IPs.

41:03.300 --> 41:09.020
So the natural step when we have IPs is let's try to see which are the services those IPs have.

41:09.020 --> 41:16.360
One of them could be go to Shodan because Shodan or Shodan Senses, these platforms are scanning the internet.

41:16.720 --> 41:22.100
Some of the bad guys, they filter out Shodan scans.

41:22.100 --> 41:24.940
They are actively trying to defend themselves.

41:25.120 --> 41:35.300
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.

41:35.300 --> 41:38.380
As I told you, with the proper operational security things.

41:38.380 --> 41:42.280
One of the potential integrations would be just using Nmap.

41:43.720 --> 41:46.680
So we'll show that later how to do it.

41:48.500 --> 41:51.620
I have something like this that we have created.

41:52.560 --> 41:54.680
This is the footprint.

41:56.120 --> 42:02.700
As I told you right now, we are going to move this is a quick introduction of what you can do with Maltego.

42:04.960 --> 42:05.800
So let me see.

42:05.800 --> 42:10.540
I guess I forgot something very quick here also.

42:10.740 --> 42:14.100
Not many people are aware of that.

42:14.500 --> 42:18.640
The information in link analysis can be represented in different ways.

42:18.640 --> 42:20.300
One of them are the layouts.

42:20.760 --> 42:23.400
By default, Maltego is using a block layout.

42:23.400 --> 42:28.900
It means that the information is grouped, as you see here, in different layers, like in blocks.

42:28.900 --> 42:34.000
When you have data, it's being grouped together from the top to the bottom.

42:34.340 --> 42:37.000
But this is not the only way to represent the data.

42:37.060 --> 42:49.280
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.

42:50.400 --> 42:57.280
This one example is already generated, so you can use if you want to let me do it with this one.

42:57.280 --> 43:01.280
This is a sample graph to play with.

43:02.740 --> 43:04.340
You see here layout.

43:04.340 --> 43:10.580
As I told you, you have this, but you can also change to a circular layout, a radial layout or circular one.

43:11.760 --> 43:15.860
The data is grouped in clusters of data.

43:18.080 --> 43:25.760
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.

43:25.960 --> 43:41.440
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.

43:41.440 --> 43:47.700
Maybe you have here the colors, but what you want to see is how important is the data.

43:47.700 --> 43:50.200
So here you have what we call the views.

43:50.600 --> 43:53.080
That is here in the left side.

43:53.080 --> 43:55.560
Let me put the regular view here.

43:55.560 --> 44:04.920
So you can visualize the entities depending on the number of links incoming, outgoing links, or even you can create your custom ones.

44:05.720 --> 44:14.140
Let's imagine that you want to see in red all the Russian domains, just picking a random country.

44:15.120 --> 44:19.220
Or all the North Korean IPs.

44:19.220 --> 44:22.840
You can just code viewlets.

44:22.840 --> 44:27.980
That's out of the scope of today's workshop, but in our website there is documentation on how to do that.

44:27.980 --> 44:30.360
So in this case I'm just going to use the default ones.

44:30.380 --> 44:44.600
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.

44:44.600 --> 44:53.600
So you just need to select the one that is more convenient for you depending on the use case or the investigation you conduct.

44:54.800 --> 45:01.640
So this will be let's say a quick introduction to how to use Multigo.

45:01.640 --> 45:17.700
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.

45:17.700 --> 45:26.340
Not depending on the transforms that are available in and not just available in Multigo, but you can code your own integrations.

45:27.440 --> 45:42.320
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.

45:42.420 --> 45:53.620
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.

45:53.620 --> 45:59.360
So all you just type anything here and you will find it.

45:59.360 --> 46:15.560
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.

46:15.660 --> 46:20.940
And for that basically it's talking about a library that I'm going to open right now

46:24.130 --> 46:28.150
and it's basically what Multigo provides is an open source library.

46:28.150 --> 46:30.830
This library is completely open at the code.

46:30.830 --> 46:35.610
You can go to GitHub, you can review it you can extend it if you want.

46:35.610 --> 46:43.910
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.

46:44.690 --> 46:52.750
And this is being updated on a very regular basis by our engineers and people as you see here also people from the community.

46:54.490 --> 47:01.910
So here in this website you have some guides I'm going to open just one of them

47:05.830 --> 47:27.290
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.

47:27.290 --> 47:33.230
One is OpenStreetMap and the other one is about company data, I think.

47:33.390 --> 47:36.490
So you have a couple of examples here in this document.

47:36.490 --> 47:38.310
So I'm not going to stop here.

47:38.310 --> 47:42.570
So I just included here the reference so that you can do it by yourself.

47:45.370 --> 47:54.190
Okay, so the first thing is in the right side, in the left side of the screen we have the entity palette.

47:54.230 --> 47:57.470
So we have included in Multigo a lot of entities.

47:57.470 --> 48:05.730
You can say as I told you, website, DNS, IP address but what happens if you want to create your own entity?

48:06.050 --> 48:18.950
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.

48:19.170 --> 48:27.530
So we just can go here to entities and click here and create a new entity type.

48:28.270 --> 48:35.350
So I'm going to create like a basic one, new entity and I'm going to include here the display name.

48:35.350 --> 48:47.590
So maybe Defcon Goon and description a goon that helps people in Defcon.

48:47.590 --> 48:56.130
So we need to define then a unique name so let's say dc from Defcon.goon that's the unique name.

48:56.290 --> 49:00.690
And then we can create a category so maybe the category will be Defcon.

49:02.230 --> 49:06.010
And the important thing is that what happens?

49:06.010 --> 49:13.490
You can just create an entity from scratch but a goon is a person also, right?

49:13.650 --> 49:15.270
It's a human being.

49:15.670 --> 49:20.710
So why as human beings we have something in common that is a full name.

49:20.710 --> 49:34.150
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.

49:34.450 --> 49:41.490
So the idea is that instead of creating everything from scratch we can try to do some what we call inheritance.

49:41.830 --> 49:47.510
So it means that we can have, we can take an existing entity and use that.

49:47.510 --> 50:04.030
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.

50:04.270 --> 50:07.970
Let me create I have different icons here.

50:08.210 --> 50:09.730
This one is nice, a singer.

50:10.330 --> 50:15.670
Let's use a custom one I think I downloaded a goon coin or something.

50:15.970 --> 50:16.970
Yes, this one.

50:21.280 --> 50:21.900
Okay.

50:23.860 --> 50:24.740
Okay.

50:26.100 --> 50:30.800
Probably it's not the best one but let me click here and let me click here finish.

50:31.120 --> 50:36.780
So now I can go to the entity palette and put goon and then I have a Defcon goon.

50:37.000 --> 50:43.240
So it's an entity I have created that is custom and that can be anything you want.

50:43.400 --> 50:47.040
Any kind of data that you want to represent that doesn't exist.

50:47.480 --> 50:48.920
So if I drop it here.

50:50.200 --> 50:58.700
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.

51:01.520 --> 51:09.700
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.

51:09.700 --> 51:11.940
In this case, I have not added any properties.

51:11.940 --> 51:16.980
So I'm going to go quickly and add some properties like manage entities.

51:19.960 --> 51:22.280
I click here goon.

51:23.840 --> 51:28.200
I click here and edit and I can set up additional properties.

51:28.200 --> 51:34.260
So maybe I can add a property that could be, I don't know, location .

51:34.260 --> 51:37.460
Maybe the goons are assigned to a specific location in the venue.

51:37.460 --> 51:39.340
So let me put location.

51:41.440 --> 51:46.360
Maybe the country because I want to know which is the country of the goon.

51:49.280 --> 51:52.700
So the display name and the technical name, country.

51:53.960 --> 51:56.640
And you see they are being added here.

51:56.640 --> 52:02.900
We see a goon apart from a full name that comes from a person will have a location, will have a country.

52:05.500 --> 52:10.660
So when I close it I drop now the goon and I double click.

52:10.660 --> 52:11.820
I go to properties.

52:11.820 --> 52:16.960
I see that a goon has a full name location and country.

52:16.960 --> 52:23.900
You will see that this is repeated, that this is because when you type it here, it's a compose.

52:24.260 --> 52:28.060
So it's just completing the full name based on the first and the last name.

52:28.060 --> 52:29.280
But you see here location.

52:29.340 --> 52:37.320
Let's say the location is the West building and the country is Yes, from Spain.

52:38.400 --> 52:54.300
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.

52:58.160 --> 53:02.880
So as I told you, I mean, this workshop is only two hours.

53:02.880 --> 53:11.160
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.

53:11.160 --> 53:16.060
So if anyone needs more detail, let me know just later.

53:16.960 --> 53:29.460
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.

53:30.200 --> 53:35.200
So something we can do, let's go back to manage the entity.

53:35.640 --> 53:37.600
I click here in goon.

53:39.520 --> 53:51.140
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.

53:51.140 --> 53:56.540
The layout is basically you see these boxes, these gray boxes, is something you want to display there.

53:56.540 --> 54:00.740
That could be an image, could be text, or could be a color.

54:01.640 --> 54:06.720
So in this case, let me include, for instance, I want to include the flag of the goon.

54:06.720 --> 54:08.980
I want to do it in the northwest position.

54:08.980 --> 54:20.480
So let me click here and here I click in country and I will leave here image.

54:21.960 --> 54:27.840
Okay, so I click here and we had also the location.

54:27.840 --> 54:31.120
So let me put maybe, for instance, the location here at the top.

54:31.120 --> 54:32.860
So let me go north.

54:33.360 --> 54:39.840
I select location and this is text.

54:41.380 --> 54:42.820
I click here.

54:42.820 --> 54:43.540
Okay.

54:44.320 --> 54:45.160
Okay.

54:46.480 --> 54:49.120
Now, let's do it here.

54:56.240 --> 54:58.220
Let me drop it and do it again.

54:58.220 --> 54:59.280
I think I did.

55:04.460 --> 55:07.420
Here, yes, and west.

55:08.220 --> 55:08.980
Okay.

55:09.120 --> 55:09.800
And that's it.

55:09.800 --> 55:21.520
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.

55:23.820 --> 55:25.640
It's going to change the information.

55:25.640 --> 55:33.520
You know, what you have displayed here is the location of the goon here in the north and here you have the flag.

55:34.420 --> 55:40.760
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.

55:40.840 --> 55:50.360
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.

55:50.360 --> 55:55.180
In this case, let's imagine you want to show also the picture of the goon.

55:55.580 --> 56:00.000
So what I'm going to do, I go back to manage the entities.

56:00.000 --> 56:01.220
I click here again.

56:01.600 --> 56:02.560
Goon.

56:02.640 --> 56:08.980
I edit and I can add a property here saying I add a property.

56:08.980 --> 56:10.640
That could be picture.

56:13.690 --> 56:15.210
Okay, so it's here.

56:15.210 --> 56:16.030
Picture.

56:16.990 --> 56:23.930
And what I'm going to do here is to go here to the section called large image that is here.

56:23.930 --> 56:27.390
It's now being occupied by the icon.

56:27.390 --> 56:33.250
I can just select and click here in the picture.

56:34.030 --> 56:36.450
So what is going to happen?

56:37.170 --> 56:39.550
Let me just go basically to the browser.

56:43.360 --> 56:44.720
Let's go to Google.

56:44.720 --> 56:47.580
Let me pick up maybe this goon.

56:48.220 --> 56:50.640
Copy image here.

56:50.640 --> 56:51.780
I go back.

56:51.780 --> 56:55.000
Double click and I copy and paste.

56:57.240 --> 56:59.100
Copy image address.

57:01.140 --> 57:03.420
Okay, let me paste it here.

57:06.210 --> 57:15.910
And you see basically what is happening is that we are replacing the main icon of the entity now with the picture we want.

57:16.270 --> 57:22.790
So that's very nice when we have social media accounts, we have avatars we want to represent, we can replace it.

57:24.770 --> 57:25.970
Cool, so

57:29.940 --> 57:34.220
questions from these parts about entity creation?

57:34.280 --> 57:35.440
I know it's very quick.

57:35.440 --> 57:36.880
We have a question here.

57:53.390 --> 58:03.410
The gentleman here is mentioning that when we included the flag, I was including an image and include ES or US.

58:03.410 --> 58:07.210
That's because by default, Maltego, you don't include like a URL.

58:07.610 --> 58:10.850
Basically what is taken is the icons we have by default.

58:10.910 --> 58:17.030
So if I go back to Maltego here, we have here manage icons.

58:17.430 --> 58:20.330
And you remember that I created an icon for the goon.

58:21.710 --> 58:25.270
So basically what you have is all the different icons.

58:25.270 --> 58:26.710
So we have here the flags.

58:27.970 --> 58:34.230
So it means Albania is AL, Andorra is AD, Armenia is AM.

58:34.590 --> 58:48.550
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.

58:48.750 --> 59:02.450
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.

59:03.370 --> 59:12.170
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.

59:15.050 --> 59:17.550
So you can include your icons.

59:17.550 --> 59:25.130
I did a custom integration a long time ago for someone that they wanted to have the regions of a country.

59:25.130 --> 59:28.050
So they had their own flags instead of the country flags.

59:28.050 --> 59:36.170
So you can just import these icons of flags or any your logos, logos of your company, anything.

59:38.230 --> 59:38.910
Okay.

59:38.910 --> 59:43.710
So we have a gun here that we have created and another question.

01:00:04.700 --> 01:00:08.140
So the gentleman here in the front is asking about editing the entities.

01:00:08.140 --> 01:00:13.440
The process that I'm doing all the time here is go to manage entities.

01:00:13.440 --> 01:00:17.480
Once you have created one and you want to modify, you create manage entities.

01:00:18.880 --> 01:00:27.220
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.

01:00:27.560 --> 01:00:35.180
So basic information, the properties that is, you want to change that.

01:00:35.180 --> 01:00:37.740
You can delete or you can add new ones.

01:00:38.400 --> 01:00:43.060
So you can just delete here or add new properties that will be added here.

01:00:44.040 --> 01:00:49.620
So the only thing you need to keep in mind is that you need to do a good design at the beginning.

01:00:49.620 --> 01:00:52.160
You cannot be changing this every time.

01:00:52.220 --> 01:01:00.920
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.

01:01:01.320 --> 01:01:06.260
So it's convenient at the beginning to do a good design, decide which are the fields.

01:01:06.360 --> 01:01:15.520
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.

01:01:15.700 --> 01:01:20.220
So it's by adding different properties you think will be useful and then you populate or not.

01:01:20.220 --> 01:01:23.560
You can leave them empty if they are not used.

01:01:24.580 --> 01:01:44.980
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.

01:01:44.980 --> 01:01:48.360
So at least it's convenient to have those fields at the beginning.

01:01:51.440 --> 01:01:58.460
Okay, so in this part I have covered entity creation.

01:01:58.460 --> 01:02:02.740
What I'm going to do now is to go to the magic of transform.

01:02:02.740 --> 01:02:06.660
We are going to define how to create a transform.

01:02:06.660 --> 01:02:11.840
I'm going to show you the process and then we will go to the hands-on part.

01:02:12.120 --> 01:02:16.640
So these are the steps that are needed to install the Maltico library.

01:02:16.640 --> 01:02:22.660
So it's basically a Python package called Maltico-trx that is available in the pip repository.

01:02:22.800 --> 01:02:25.920
So nothing very complicated to install.

01:02:26.720 --> 01:02:31.960
So the second step is to use this library to create a project.

01:02:32.640 --> 01:02:36.400
And we will see in a second that we can just list or edit.

01:02:36.400 --> 01:02:38.620
I will show with one example in a minute.

01:02:42.060 --> 01:02:44.140
So what are we going to do?

01:02:44.160 --> 01:02:50.020
Very basic, you know, the first thing you do when you code something is Hello World, right?

01:02:50.400 --> 01:02:53.480
So let's try to do the Hello World of a Maltico transform.

01:02:53.540 --> 01:02:58.040
So let's include a person and say, Hey Carlos, nice to meet you.

01:02:58.600 --> 01:03:02.200
Very basic, but we'll show you the basics in how to code it.

01:03:02.200 --> 01:03:05.220
Basically, this library has two main functions.

01:03:05.220 --> 01:03:09.420
One of them is the request and the second thing is the response.

01:03:09.680 --> 01:03:10.280
Why?

01:03:10.580 --> 01:03:14.780
Because basically, we have here, as I told you, maybe we have a Goon.

01:03:14.780 --> 01:03:18.020
So we want to read the name of the Goon, the location of the Goon.

01:03:18.300 --> 01:03:23.720
So we need to have a request to be able to read the input entity.

01:03:23.720 --> 01:03:24.960
This is the input.

01:03:25.320 --> 01:03:38.100
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.

01:03:38.380 --> 01:03:40.840
So then we need a response.

01:03:40.840 --> 01:03:48.160
That method is going to create as much entities as information is gathered from the data source.

01:03:48.360 --> 01:03:50.900
So there is no magic here.

01:03:50.900 --> 01:04:02.800
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.

01:04:03.120 --> 01:04:08.860
That if you had an IP, maybe you want to know the country of that IP.

01:04:08.860 --> 01:04:13.620
You have a person name, maybe you want to know, I don't know, the email of that person.

01:04:13.740 --> 01:04:19.040
In order for this to happen, there must be a code here, in the middle.

01:04:19.140 --> 01:04:21.720
Is that the responsibility of the Maltico library?

01:04:21.920 --> 01:04:22.640
No.

01:04:23.020 --> 01:04:25.280
You have to code that part.

01:04:25.580 --> 01:04:27.300
Because that's your application.

01:04:27.300 --> 01:04:34.920
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.

01:04:35.280 --> 01:04:38.660
That's the magic of your code.

01:04:38.660 --> 01:04:40.580
You need to put something in the middle.

01:04:40.580 --> 01:04:44.300
The only thing we are going to do is to map an input with an output.

01:04:45.100 --> 01:04:49.820
I'm going to skip the technical details and go directly to the example.

01:04:50.960 --> 01:04:52.960
We have something like this.

01:04:52.960 --> 01:04:54.140
We have a person.

01:04:54.140 --> 01:04:58.300
I'm going to say, person, nice to meet you.

01:04:59.620 --> 01:05:04.900
Instead of going here in the slides, what I'm going to do is to do it in the screen.

01:05:06.360 --> 01:05:08.840
Step by step, so you can see how it works.

01:05:09.700 --> 01:05:11.580
I'm going to open an IDE.

01:05:13.080 --> 01:05:14.100
Here.

01:05:14.100 --> 01:05:15.560
That is PyCharm.

01:05:15.560 --> 01:05:21.340
You can do it with Visual Studio Code, you can do it on the command line in any way you prefer.

01:05:21.560 --> 01:05:23.980
What I'm going to do is to open a new project.

01:05:25.020 --> 01:05:27.260
It will be a Python project.

01:05:29.840 --> 01:05:31.380
DC32Maltego, maybe.

01:05:31.920 --> 01:05:34.720
We click here, create.

01:05:44.080 --> 01:05:49.320
What is happening right now is that the IDE has created a Python virtual environment.

01:05:49.320 --> 01:05:57.240
It's creating a safe space for all the packages we are going to install for our code.

01:05:58.540 --> 01:06:03.320
And what we are going to do is just open the terminal here.

01:06:04.520 --> 01:06:07.300
I'm going to install Maltego TRX.

01:06:18.260 --> 01:06:20.320
It's already installed.

01:06:21.180 --> 01:06:23.560
Going back to the slides here.

01:06:26.340 --> 01:06:29.820
What we have done is this step, install Maltego TRX.

01:06:29.820 --> 01:06:32.740
Now, what we are going to do is to create the project.

01:06:32.740 --> 01:06:37.520
I click here, Maltego TRX

01:06:40.560 --> 01:06:44.560
start project.

01:06:44.560 --> 01:06:46.540
You can include here any name.

01:06:46.540 --> 01:06:50.360
I'm including the keyword project, but you can use any word.

01:06:52.320 --> 01:07:00.140
Basically, what you will see here at the top is that a new folder is being created.

01:07:01.220 --> 01:07:09.420
This folder, what basically you have here is some Python files that the library is providing to you.

01:07:09.460 --> 01:07:16.240
And at the same time, what you have is some layouts, some templates, so you don't have to code from scratch.

01:07:16.240 --> 01:07:20.380
You can just take one of these templates and code your own transform.

01:07:21.340 --> 01:07:26.160
So for that, what we are going to use is this one called grid-grid-person.

01:07:29.340 --> 01:07:32.620
Let's change the name and let's put grid-goon.

01:07:33.220 --> 01:07:33.940
Maybe.

01:07:34.240 --> 01:07:37.920
So you see we are going to make a custom example here, grid-goon.

01:07:38.480 --> 01:07:45.500
Basically, you see that what we have is a class called grid-goon.

01:07:46.080 --> 01:07:47.560
Here , create entities.

01:07:47.560 --> 01:07:55.080
And basically, you see that we have here the Python code I can put here.

01:07:55.080 --> 01:07:58.020
Goon name is request.

01:07:58.560 --> 01:08:01.660
And in this case, what we want to read is the name of the goon.

01:08:01.660 --> 01:08:02.600
So it's the value.

01:08:02.600 --> 01:08:03.740
It's the main value.

01:08:07.580 --> 01:08:11.820
So that's what we are doing is reading from the request.

01:08:13.140 --> 01:08:18.220
So the transform, when we run the transform, we will be reading the input entity.

01:08:18.220 --> 01:08:21.920
It could be Carlos, John, any name.

01:08:21.920 --> 01:08:23.220
And reading the main value.

01:08:23.220 --> 01:08:25.840
And then, what we are going to do is to create an entity.

01:08:25.840 --> 01:08:30.060
So it's basically, what you see here, response.addEntity.

01:08:31.460 --> 01:08:36.880
That's why IDs are good because they are helping us based on the libraries we have.

01:08:36.880 --> 01:08:40.780
In this case, I'm just going to use this example here.

01:08:41.200 --> 01:08:44.180
But instead of person name, I'm going to put the new.

01:08:44.180 --> 01:08:45.400
It's goon name.

01:08:48.860 --> 01:08:49.640
Oops.

01:08:51.020 --> 01:08:51.940
Hi.

01:08:53.700 --> 01:08:56.540
Goon name, thanks for your service.

01:08:58.400 --> 01:08:59.060
Okay?

01:08:59.540 --> 01:09:02.880
So I just see that I'm customizing the text that will be returned.

01:09:03.060 --> 01:09:07.540
And you see, which is the type of entity that we are sending back.

01:09:07.580 --> 01:09:13.300
It's a phrase that is basically something like this.

01:09:13.500 --> 01:09:13.980
Oops.

01:09:15.700 --> 01:09:16.940
My bad.

01:09:17.380 --> 01:09:23.500
So basically here, what we are returning is a phrase that could be anything.

01:09:23.500 --> 01:09:24.920
We can return an IP address.

01:09:24.920 --> 01:09:26.720
We can return a DNS name.

01:09:26.900 --> 01:09:29.940
In this case, we have a person name.

01:09:29.940 --> 01:09:33.940
And we are going to say hi to the goon name.

01:09:33.940 --> 01:09:36.180
So here, let me just save it.

01:09:37.920 --> 01:09:38.540
Okay.

01:09:38.540 --> 01:09:40.300
So I have saved the file.

01:09:40.660 --> 01:09:42.220
Let me change the name.

01:09:42.460 --> 01:09:43.740
Refactor, rename.

01:09:45.760 --> 01:09:46.380
Great.

01:09:46.380 --> 01:09:47.520
Great goon.

01:09:51.590 --> 01:09:53.710
See here, great goon is the name.

01:09:53.710 --> 01:09:56.910
Because the name of the file needs to be the same as the name of the class.

01:09:57.170 --> 01:09:57.810
Okay.

01:09:59.130 --> 01:10:01.010
So we were here.

01:10:01.010 --> 01:10:01.230
Okay.

01:10:04.110 --> 01:10:06.810
So at this point, what have we done?

01:10:07.410 --> 01:10:11.830
Summing up, we created a custom entity that was a goon.

01:10:12.330 --> 01:10:14.610
If you remember, a goon was a person.

01:10:16.090 --> 01:10:21.410
And now we created a piece of code, a Maltego transfer named grid-goon.

01:10:22.550 --> 01:10:32.030
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.

01:10:32.610 --> 01:10:33.130
Why?

01:10:33.130 --> 01:10:36.430
Because still I have created the file, but this is still not mapped.

01:10:36.950 --> 01:10:38.030
I need to map it.

01:10:38.290 --> 01:10:39.790
And how does it work?

01:10:40.190 --> 01:10:41.250
And this is documented.

01:10:41.250 --> 01:10:43.390
You have it in the slides, you have it in our documentation.

01:10:43.690 --> 01:10:49.090
So I know it's too much information, so just try to understand the concepts and you can go back later to the documentation.

01:10:49.310 --> 01:10:53.770
So we click in transforms and we have a new local transform.

01:10:53.770 --> 01:11:00.550
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.

01:11:00.690 --> 01:11:03.950
What we have created is something that needs to run on my computer.

01:11:03.950 --> 01:11:07.810
The grid-goon.py file is my computer.

01:11:08.050 --> 01:11:21.230
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.

01:11:21.990 --> 01:11:25.630
And the transform ID is, let's say, DC32.

01:11:25.630 --> 01:11:27.810
It's a unique name, grid-goon.

01:11:28.130 --> 01:11:30.610
The author, myself.

01:11:31.010 --> 01:11:33.530
What is the input entity type?

01:11:36.610 --> 01:11:43.270
I think I put Defcon...

01:11:50.000 --> 01:11:51.460
Defcon-goon.

01:11:52.560 --> 01:11:55.080
So the input entity is a Defcon-goon.

01:11:55.660 --> 01:11:58.400
And then I can select this as a category.

01:11:58.400 --> 01:12:03.120
If I want to classify many transforms in the same group in this case I'm going to leave it empty.

01:12:05.220 --> 01:12:06.060
Next.

01:12:07.000 --> 01:12:10.200
What I'm doing now, I only have to do it once.

01:12:10.200 --> 01:12:11.040
It's the setup.

01:12:11.500 --> 01:12:13.880
So I don't have to repeat this every time.

01:12:13.880 --> 01:12:19.020
It's the first time I have coded something I need to map it so Maltego can use it.

01:12:19.460 --> 01:12:23.700
So the steps I'm doing right now is only during the setup process.

01:12:24.820 --> 01:12:26.540
What I'm going to run?

01:12:26.800 --> 01:12:29.380
I need to tell that I'm going to run Python.

01:12:29.860 --> 01:12:34.300
I can use Python or I can use Perl or I can use the language you prefer.

01:12:34.300 --> 01:12:35.800
In this case I'm going to use Python.

01:12:36.500 --> 01:12:39.040
You remember we were here in this project.

01:12:40.980 --> 01:12:45.200
So basically we have here a virtual environment.

01:12:45.200 --> 01:12:46.540
We have here the binary.

01:12:47.760 --> 01:12:49.260
Python 3.

01:12:49.260 --> 01:12:50.280
That's here.

01:12:50.300 --> 01:12:52.800
So I'm copying and pasting this folder.

01:12:53.080 --> 01:12:55.020
Which is the command we are going to execute.

01:12:55.680 --> 01:12:57.320
Python 3.

01:13:00.300 --> 01:13:03.140
What are we going to execute?

01:13:03.960 --> 01:13:09.960
You remember when we installed Delivery I told you here we have some files.

01:13:09.960 --> 01:13:12.520
One of them is called Project PI.

01:13:12.520 --> 01:13:18.100
This is the piece of code that will receive the input and will go to your code.

01:13:18.200 --> 01:13:19.620
This is like a grabber.

01:13:19.620 --> 01:13:21.600
It's like a piece that goes in front.

01:13:21.600 --> 01:13:24.900
So here what I'm going to do is Project PI.

01:13:24.980 --> 01:13:26.880
Sorry, too much zoom here.

01:13:26.880 --> 01:13:28.020
Project PI.

01:13:28.020 --> 01:13:29.120
Local transform.

01:13:29.120 --> 01:13:31.260
And what's the name of the transform?

01:13:33.660 --> 01:13:44.580
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.

01:13:44.880 --> 01:13:46.960
Python is going to execute this.

01:13:46.960 --> 01:13:48.460
Project PI Local Grid Gun.

01:13:48.460 --> 01:13:51.280
And this piece of code is going to your code.

01:13:51.320 --> 01:13:53.400
And execute whatever is needed.

01:13:54.540 --> 01:13:57.920
I have to set up the directory where the transforms are located.

01:13:57.920 --> 01:13:59.240
So let me go here.

01:14:01.360 --> 01:14:02.400
Projects.

01:14:03.540 --> 01:14:06.360
This is the folder where the transforms are located.

01:14:06.360 --> 01:14:08.720
So just copy and paste here.

01:14:09.300 --> 01:14:11.020
The working directory.

01:14:12.320 --> 01:14:15.720
This is the folder where the Project PI file is located.

01:14:16.560 --> 01:14:20.600
And you see basically what is going to be executed is what you have at the bottom.

01:14:20.800 --> 01:14:28.540
So basically this is the full command line that Maltego will throw when you click on a transform.

01:14:30.300 --> 01:14:32.320
Okay, we're getting to the end.

01:14:32.960 --> 01:14:34.280
Stay with me.

01:14:34.860 --> 01:14:36.360
I click finish.

01:14:37.200 --> 01:14:40.220
So now I do right click.

01:14:41.240 --> 01:14:43.960
And then you see here, I can do it in two ways.

01:14:43.960 --> 01:14:46.460
One of them is clicking in local transforms.

01:14:47.200 --> 01:14:49.000
And see I have Grid Gun.

01:14:49.080 --> 01:14:50.540
Or you can just type it.

01:14:50.540 --> 01:14:52.560
Grid Gun.

01:14:52.820 --> 01:14:54.660
Okay, Grid Gun DC 32.

01:14:55.340 --> 01:14:57.540
So the magic is going to happen now.

01:14:57.540 --> 01:14:59.080
I click here.

01:15:03.720 --> 01:15:06.400
The motion is going to work or not.

01:15:07.260 --> 01:15:08.060
Yes.

01:15:08.520 --> 01:15:12.640
And you see basically, Hi John Doe, thanks for your service.

01:15:13.860 --> 01:15:22.160
If I change and I drop another Gun and I just change the name, Carlos, and I run it, Grid Gun.

01:15:23.280 --> 01:15:26.360
You see, Hi Carlos, thanks for your service.

01:15:26.360 --> 01:15:29.540
So you see the piece of code I made in front of you is not fake.

01:15:29.540 --> 01:15:31.500
I did it in real time.

01:15:31.760 --> 01:15:33.400
It's what is running.

01:15:33.400 --> 01:15:35.040
And even you can debug it.

01:15:35.040 --> 01:15:39.300
Because at the bottom, basically, what you can see is a debug window.

01:15:39.300 --> 01:15:41.280
So when you run something, there are errors.

01:15:41.280 --> 01:15:42.720
You will see them here.

01:15:42.900 --> 01:15:44.880
So you have even a debug.

01:15:44.980 --> 01:15:48.640
If something is not running, you will have it here.

01:15:50.780 --> 01:15:53.660
So, very quickly.

01:15:53.660 --> 01:15:57.400
This is a high-level summary of what we have done.

01:15:58.760 --> 01:16:01.060
Number one, I drop a Gun.

01:16:01.080 --> 01:16:02.880
I create it as a custom entity.

01:16:02.880 --> 01:16:04.800
I click in Grid Gun.

01:16:04.800 --> 01:16:11.280
When I click on that, Maldigo was going to Python, Project PI Local, Grid Gun.

01:16:11.760 --> 01:16:15.960
So it's basically jumping to the piece of code we have created from the templates.

01:16:16.080 --> 01:16:18.540
It's executing what we have here.

01:16:18.760 --> 01:16:25.120
And then the response is Hi, Carlos, nice to meet you.

01:16:25.120 --> 01:16:26.480
So this goes back.

01:16:26.480 --> 01:16:28.600
And it's being displayed with a link.

01:16:28.940 --> 01:16:30.840
Because we have an input.

01:16:30.840 --> 01:16:31.720
We have a response.

01:16:31.720 --> 01:16:36.320
And the magic of link analysis is because we are giving a result because they are connected.

01:16:37.300 --> 01:16:38.520
But let me add something.

01:16:38.520 --> 01:16:41.300
You see that we can return anything.

01:16:41.300 --> 01:16:43.980
So let me put here response at entity

01:16:49.180 --> 01:16:54.080
Maldigo.Person And here I can include here

01:16:57.380 --> 01:16:59.940
Hello Let's put a domain.

01:17:04.740 --> 01:17:09.600
Defcon.EU Okay.

01:17:09.700 --> 01:17:10.900
Save it.

01:17:11.180 --> 01:17:12.380
And let me run it again.

01:17:12.380 --> 01:17:15.540
So you see that I can return more than one result.

01:17:17.300 --> 01:17:18.500
Grid Gun again.

01:17:19.720 --> 01:17:21.360
And you see right now.

01:17:22.160 --> 01:17:25.600
I have, sorry, I'm jumping too quickly.

01:17:25.600 --> 01:17:26.920
I have two lines of code.

01:17:26.920 --> 01:17:27.780
Two responses.

01:17:27.780 --> 01:17:29.640
One response is a Maldigo phrase.

01:17:29.660 --> 01:17:31.400
The second response is a domain.

01:17:32.160 --> 01:17:33.920
And in this case it's hard-coded.

01:17:33.920 --> 01:17:36.460
I have hard-coded the answer.

01:17:37.220 --> 01:17:41.000
But what you see here is that I have returned not only one result.

01:17:41.180 --> 01:17:45.680
So as you know, when you are coding you will have a loop probably.

01:17:45.680 --> 01:17:47.060
So you will go to a database.

01:17:47.060 --> 01:17:48.420
You will go to a file.

01:17:48.420 --> 01:17:52.700
You will have a for loop for every result returning an entity.

01:17:53.420 --> 01:17:55.660
And those entities can be of different types.

01:17:55.660 --> 01:17:57.680
They don't need to be exactly the same entity.

01:17:57.760 --> 01:18:02.880
In this case I returned a phrase that could be a domain, an email, or anything.

01:18:06.220 --> 01:18:07.180
Okay.

01:18:08.460 --> 01:18:11.780
So I wanted, this is a very basic example.

01:18:11.780 --> 01:18:12.620
Hello world.

01:18:13.000 --> 01:18:13.640
Okay.

01:18:13.640 --> 01:18:20.100
I wanted to provide you an example I did myself of an integration with Wiggle.

01:18:20.100 --> 01:18:22.680
How many people know Wiggle here?

01:18:22.900 --> 01:18:31.040
Wiggle is a Wi-Fi, now Bluetooth and cellular network platform that can be connected with an API.

01:18:31.160 --> 01:18:34.500
So I'm going to show in the next slides that example.

01:18:34.640 --> 01:18:40.300
And then after that example I will leave the rest of the time we have to start the hands-on.

01:18:40.300 --> 01:18:47.540
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.

01:18:48.440 --> 01:18:51.240
But I wanted to show one example.

01:18:51.240 --> 01:18:51.860
So Wiggle.

01:18:51.860 --> 01:18:53.340
You go to the Wiggle website.

01:18:53.340 --> 01:18:54.420
They are very nice.

01:18:54.640 --> 01:19:01.760
And basically what they provide you is a map that you can search based on different things.

01:19:01.760 --> 01:19:07.540
You can search based on locations or you can search based on an SSID.

01:19:07.540 --> 01:19:13.960
Or the MAC address of the access point known as infrastructure SSID.

01:19:14.920 --> 01:19:16.500
So if I go...

01:19:16.500 --> 01:19:18.620
Let me go quickly to Wiggle.

01:19:27.860 --> 01:19:31.020
API also is here.

01:19:34.450 --> 01:19:43.610
So basically many of the platforms when you connect them what you have is different things you can ask the API.

01:19:43.610 --> 01:19:48.030
In this case probably the thing we want to do is to search for a network.

01:19:48.830 --> 01:19:52.330
So here you see the different things that you can use.

01:19:52.330 --> 01:19:54.550
We see here geocode, detail, whatever.

01:19:54.550 --> 01:19:56.310
So we click here maybe in search.

01:19:58.150 --> 01:20:07.130
And you see here all the different fields that can be used in that API query.

01:20:08.370 --> 01:20:11.170
And usually they provide you one example.

01:20:11.170 --> 01:20:16.110
So here you see one example if you were running that by yourself.

01:20:18.830 --> 01:20:22.210
So what are the entities that are needed when you

01:20:26.130 --> 01:20:27.450
use Wiggle?

01:20:27.990 --> 01:20:30.390
One of them could be an SSID.

01:20:32.170 --> 01:20:34.930
Okay, so we have some sound in the back.

01:20:35.110 --> 01:20:41.690
So an SSID, one of them could be a location and another thing would be the wireless access point.

01:20:42.310 --> 01:20:53.210
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.

01:20:55.810 --> 01:21:02.090
And then from the access point maybe I want to extract locations or I want to extract where are those access points located.

01:21:02.810 --> 01:21:08.450
So what I did basically, you remember when I was showing the API, I showed here different fields.

01:21:08.550 --> 01:21:14.090
You have SSID, the different coordinates, so the different type of data.

01:21:14.090 --> 01:21:21.170
So what I did here is to create access point entity with all these fields.

01:21:21.250 --> 01:21:29.890
SSID, security, channels, country, latitude, longitude, all the different things that the API will be giving back to me.

01:21:30.470 --> 01:21:33.070
And some of them what they did is to map in a layout.

01:21:33.070 --> 01:21:49.990
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.

01:21:50.090 --> 01:21:54.550
But the BSSID, the MAC address of the access point is supposed to be unique.

01:21:54.690 --> 01:21:59.590
So that's the main value of the access point of the access point entity.

01:22:00.750 --> 01:22:06.650
So I consider the main value is the MAC address and the secondary value is the SSID.

01:22:06.650 --> 01:22:07.990
You see here at the top.

01:22:09.490 --> 01:22:11.810
So what they did here is a design.

01:22:11.810 --> 01:22:21.510
So basically before coding probably that's a common best common practice, don't start coding first.

01:22:21.510 --> 01:22:22.730
Think first.

01:22:22.730 --> 01:22:30.630
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.

01:22:31.130 --> 01:22:41.810
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.

01:22:42.530 --> 01:22:44.810
Maybe from a location I want to go to the access point.

01:22:44.810 --> 01:22:48.590
So this is like defining high level design of what you want to do.

01:22:49.550 --> 01:22:54.510
So every single link you have here, you see that I have a link, will be a piece of Python code.

01:22:54.510 --> 01:23:02.990
So if I want to go from SSID to an access point, it means SSID to wireless access point.

01:23:03.230 --> 01:23:10.010
So basically it's mapping every link, every pivoting point to what is needed.

01:23:11.070 --> 01:23:14.150
And how difficult was for me to code that?

01:23:14.150 --> 01:23:15.770
I don't consider myself...

01:23:15.770 --> 01:23:18.710
I studied computer science, I finished 2000.

01:23:19.050 --> 01:23:26.190
I have been mostly a blue teamer, so coding scripts, but not really coding applications myself.

01:23:27.470 --> 01:23:31.250
I feel comfortable doing small things, but not big ones.

01:23:31.350 --> 01:23:35.170
When you code things nowadays, there are a lot of smart people out there.

01:23:35.230 --> 01:23:38.590
So you don't need to start a project from scratch.

01:23:38.910 --> 01:23:41.950
So literally it took me 10 minutes to code this.

01:23:42.110 --> 01:23:42.850
Why?

01:23:43.070 --> 01:23:45.150
Well, maybe that's too short.

01:23:45.150 --> 01:23:52.450
I want to say probably half an hour, but it's more time for understanding the library than really doing the work.

01:23:52.510 --> 01:23:59.510
Because what I did is I went to Google and I searched, is there any library for connecting Wiggle using Python?

01:23:59.930 --> 01:24:00.530
Yes.

01:24:00.530 --> 01:24:07.310
There is a library called Piggle that basically is a library that someone already made to connect to the Wiggle API.

01:24:07.310 --> 01:24:10.690
So I don't have to map to an API myself manually.

01:24:10.690 --> 01:24:14.810
So I can use Piggle and you see it's an import, so I use the Piggle library.

01:24:14.810 --> 01:24:18.970
And also when you use a library, there are many people doing examples.

01:24:19.150 --> 01:24:24.450
I know nowadays you have ChatGPT and many other things that probably you can use also.

01:24:24.530 --> 01:24:25.350
Copilots.

01:24:25.350 --> 01:24:33.990
But here basically, I just found out this website is a blog from someone saying how to map networks with Wiggle and Python.

01:24:35.070 --> 01:24:40.450
And the only thing I have to do is to find a small piece of code of using Piggle.

01:24:41.230 --> 01:24:46.770
So you see here basically is the lines of code is importing Piggle.

01:24:47.570 --> 01:24:52.590
SSID is the request because it's the request for the piece of code SSID.

01:24:52.590 --> 01:24:55.010
I want to see access points based on the SSID.

01:24:55.610 --> 01:24:57.910
So what I do is network search.

01:24:58.570 --> 01:24:59.430
And that's very basic.

01:24:59.430 --> 01:25:08.950
It's basically using the Piggle library, network.search the name of the SSID and this creates a list of access points.

01:25:09.870 --> 01:25:19.650
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.

01:25:19.650 --> 01:25:22.830
Response at entity and Maldigo access point.

01:25:23.050 --> 01:25:24.190
And I set up all the properties.

01:25:24.190 --> 01:25:28.870
The network ID SSID, channels, encryption, the different types.

01:25:30.070 --> 01:25:33.030
And as I told you, this is quite simple.

01:25:33.030 --> 01:25:36.230
You can just extrapolate this example to anything.

01:25:36.230 --> 01:25:39.670
You want to do search in the blockchain cryptocurrencies.

01:25:39.830 --> 01:25:42.090
Don't go directly to that.

01:25:42.090 --> 01:25:50.350
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.

01:25:50.490 --> 01:25:53.170
So that's possible and you don't need to do it from scratch.

01:25:54.030 --> 01:26:02.630
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.

01:26:02.630 --> 01:26:08.790
But basically you have SSID, I mean the phrase I generated different SSIDs.

01:26:08.790 --> 01:26:11.930
Maldigo, Maldigo staff, Maldigo corporate, different names.

01:26:12.590 --> 01:26:20.450
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.

01:26:20.450 --> 01:26:25.050
So let's use Maldigo staff, Maldigo corporate, Maldigo office, Maldigo whatever.

01:26:25.050 --> 01:26:31.730
So I generate a transform that generates different SSIDs to brute force the access points.

01:26:32.510 --> 01:26:40.270
I don't have to go to any data source, it's just a small transform to generate a list based on a keyword.

01:26:41.050 --> 01:26:43.370
That's what they call a helper, a helper transform.

01:26:43.370 --> 01:27:03.330
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.

01:27:03.330 --> 01:27:07.030
And you see there are many access points that are located in Munich.

01:27:07.430 --> 01:27:09.810
That is the headquarters, I mean that's public.

01:27:09.810 --> 01:27:13.250
You go to the Maldigo website, you see the address of the headquarters.

01:27:13.910 --> 01:27:28.030
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.

01:27:30.730 --> 01:27:35.810
Cool, so that's one example as I told you.

01:27:36.310 --> 01:27:42.730
You can just go to the Maldigo LTC repository I told you and you have here the code.

01:27:42.730 --> 01:27:45.150
So no magic, here I go.

01:27:45.330 --> 01:27:48.110
You remember the repository I told you, Maldigo LTC.

01:27:49.610 --> 01:27:50.790
We go.

01:27:52.130 --> 01:27:56.310
My code is shared here, so SSID to wireless access point.

01:27:57.670 --> 01:27:59.930
That's the code, nothing else.

01:27:59.930 --> 01:28:11.230
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.

01:28:13.150 --> 01:28:30.430
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.

01:28:30.450 --> 01:28:33.490
Is to map an OSINT tool.

01:28:33.490 --> 01:28:35.230
This OSINT tool is called Holoher.

01:28:35.430 --> 01:28:37.190
I don't know if you heard of this tool.

01:28:37.590 --> 01:28:38.090
But basically

01:28:44.500 --> 01:28:50.040
this is an OSINT tool that if I find here, maybe even we have a...

01:28:51.160 --> 01:28:54.540
I think I can run it in my computer also.

01:28:54.740 --> 01:28:57.000
But let's not lose time.

01:28:57.000 --> 01:28:59.940
Basically what you do is you put an email address.

01:28:59.940 --> 01:29:02.640
I think, sorry, I have it in the slides, it's here.

01:29:03.020 --> 01:29:17.360
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.

01:29:17.360 --> 01:29:25.600
So basically you have, if the email has been used, not used, or the webpage is rate limiting.

01:29:25.600 --> 01:29:28.660
So you don't know for sure if it's available or not.

01:29:32.300 --> 01:29:36.000
Okay, so I will leave that for you.

01:29:36.000 --> 01:29:38.060
So we still have 20 minutes.

01:29:38.260 --> 01:29:42.600
So probably we can invest the last times of this workshop to handle questions.

01:29:42.860 --> 01:29:53.460
And for those of you who want to stay there until 12, because afterwards there is another workshop, so I cannot stay more here.

01:29:55.980 --> 01:29:58.740
You can just try to start doing that by yourself.

01:29:58.740 --> 01:30:01.160
The Hello World example I did or

01:30:05.520 --> 01:30:07.780
this integration for that.

01:30:07.940 --> 01:30:09.220
Let me go quickly here.

01:30:09.220 --> 01:30:14.800
You have these lab notes, as I told you, that is a step-by-step in how to do it.

01:30:14.800 --> 01:30:20.040
So you have this documentation I provided at the beginning, so you can do that by yourself.

01:30:22.020 --> 01:30:24.140
Okay, so I'm talking too much.

01:30:25.100 --> 01:30:26.060
I'm a Spaniard.

01:30:26.060 --> 01:30:27.860
It's normally on us.

01:30:30.200 --> 01:30:33.500
Any questions, comments, pains?

01:30:36.560 --> 01:30:37.560
Okay.

01:30:38.380 --> 01:30:39.580
No, thanks for you.

01:30:39.580 --> 01:30:44.820
I really like being inside the community, being close to all of you.

01:30:44.880 --> 01:30:48.700
So my contact details, by the way, are here.

01:30:48.700 --> 01:30:51.960
I don't include my corporate ones because I'm in a community event.

01:30:52.480 --> 01:31:02.680
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.

01:31:05.280 --> 01:31:07.200
And thank you for coming.

01:31:07.200 --> 01:31:11.820
So enjoy DEF CON, enjoy Vegas, and hopefully see you very soon.

01:31:11.820 --> 01:31:12.380
Thanks.

