Latest / CyberCode Academy / Course 35 - Footprinting and Reconnaissance | Episode 4: Email and Domain Information Mapping
Transcript
- 0:00Speaker 1: Imagine you are stepping into the shoes of a digital
- 0:03Speaker 1: detective for a second. You know that classic movie trope, right,
- 0:06Speaker 1: the giant corkboard on a wall covered in photos, documents, locations.
- 0:11Speaker 2: Right with all those chaotic red strings connecting everything together.
- 0:14Speaker 1: Exactly. Well, today's mission for our deep dive is to
- 0:17Speaker 1: explore how to build that exact same interconnected web, but
- 0:22Speaker 1: we are doing it entirely digitally using a really powerful
- 0:27Speaker 1: information gathering tool called Maltago.
- 0:30Speaker 2: What's fascinating here is how this tool mimics that human
- 0:33Speaker 2: process of making spatial connections. Because you know, a standard
- 0:36Speaker 2: search engine is great if you just want a single
- 0:39Speaker 2: piece of data, just a linear list of links, right, exactly,
- 0:42Speaker 2: A linear question gets a linear answer. But footprinting tools
- 0:45Speaker 2: like this one actually synthesize that data. They take those
- 0:49Speaker 2: isolated fragments of digital evidence and automatically draw those red
- 0:52Speaker 2: strings for you.
- 0:53Speaker 1: Okay, let's unpack this because the goal here isn't just
- 0:56Speaker 1: to search for information. We want to visually map out
- 0:58Speaker 1: the relationships between different data points. But before we can
- 1:02Speaker 1: start pinning things to our digital corkboard, we need a
- 1:05Speaker 1: safe room to work in.
- 1:06Speaker 2: Yeah, operational security is everything. Here.
- 1:08Speaker 1: So you don't just fire this up on your everyday
- 1:10Speaker 1: local computer. You need a specific operating system, which is
- 1:14Speaker 1: CALLI Linux.
- 1:15Speaker 2: Right, because COLLI is purpose built for digital forensics and
- 1:18Speaker 2: penetration testing. It strips away all that background noise and
- 1:22Speaker 2: telemetry that normal consumer operating systems.
- 1:25Speaker 1: Have, which is crucial. But you don't just install it
- 1:28Speaker 1: as your main system either. You should definitely be running
- 1:31Speaker 1: it on a virtual machine.
- 1:32Speaker 2: Which is basically an operating system running inside your operating system.
- 1:36Speaker 2: It creates a completely isolated environment.
- 1:40Speaker 1: I like to think of it like putting on a
- 1:41Speaker 1: hazmat suit before walking into a laboratory. It creates this
- 1:44Speaker 1: safe bubble so your personal files or your own browser
- 1:47Speaker 1: history do not get mixed up in your reconnaissance work.
- 1:51Speaker 2: And you don't accidentally leak your own identity to a
- 1:54Speaker 2: target network. Once you are safely in that Cali Linnux environment,
- 1:57Speaker 2: you just navigate up to applications, then down to information
- 2:00Speaker 2: gathering and you'll launch the tool.
- 2:03Speaker 1: And for this deep dive, we are focusing on the
- 2:05Speaker 1: community edition exactly.
- 2:07Speaker 2: It is completely free. You just need to do a
- 2:09Speaker 2: simple account registration and verify your email. But there is
- 2:13Speaker 2: a quirk you will notice right away watermark. Yeah, there's
- 2:16Speaker 2: this big for demo use only watermark hovering in the
- 2:20Speaker 2: background of your workspace. It's a constant reminder that this
- 2:24Speaker 2: free version is strictly for learning, not for running a
- 2:27Speaker 2: commercial penetration test.
- 2:29Speaker 1: And it also has some artificial limits on how much
- 2:31Speaker 1: data you can pull at once.
- 2:32Speaker 2: Right, it does. But honestly, those limitations enforce really good
- 2:36Speaker 2: analytical habits. When you can only return a limited number
- 2:40Speaker 2: of results per query, you have to refine your targeting.
- 2:43Speaker 1: You can't just vacuum up the entire Internet exactly.
- 2:46Speaker 2: In a commercial setting without those limits, inexperienced analysts often
- 2:50Speaker 2: suffer from like graph explosion, pulling so much data so
- 2:53Speaker 2: quickly that the visual map just turns into an unreadable
- 2:57Speaker 2: black hole of overlapping lines.
- 2:58Speaker 1: Okay, so we are safe inside the tool, but how
- 3:01Speaker 1: do we actually pull the information? I mean, you open
- 3:03Speaker 1: it up and you are just staring at a blank canvas.
- 3:07Speaker 2: Right, And in the software, that blank canvas is called
- 3:09Speaker 2: a graph. You just click the green plus sign to
- 3:12Speaker 2: open a new one.
- 3:13Speaker 1: Okay, got it, And then you have entities and transforms.
- 3:16Speaker 1: Let's define those because the jargon can get a bit heavy.
- 3:18Speaker 2: Here it really can. So entities are just the items
- 3:22Speaker 2: you're investigating. An email address, a website domain, an IP address.
- 3:26Speaker 2: You literally just drag and drop them onto your.
- 3:28Speaker 1: Graph, and the actions you take on those entities are
- 3:32Speaker 1: the transforms. But wait, let me push it back a
- 3:34Speaker 1: little here. Sure, transforms is a pretty heavy word. Are
- 3:37Speaker 1: these essentially just automated search queries running under the hood.
- 3:41Speaker 2: That is actually a great way to think about it. Yes,
- 3:43Speaker 2: transforms are basically tiny scripts. They go out into the Internet,
- 3:47Speaker 2: ask a very specific question to a specific database, and
- 3:51Speaker 2: then bring the answer back to your graph.
- 3:53Speaker 1: So it just formats the answer into a new entity
- 3:55Speaker 1: on your screen exactly.
- 3:56Speaker 2: It takes the raw data like JSON or x amount
- 4:00Speaker 2: and translates it into native entities that the graph algorithm
- 4:03Speaker 2: can actually apply. That normalization is the secret sauce.
- 4:07Speaker 1: Because it lets the software compute relationships across totally different
- 4:10Speaker 1: data sets.
- 4:11Speaker 2: Right now, some of the really advanced transforms require things
- 4:14Speaker 2: called API keys. You can think of those like VIP
- 4:17Speaker 2: digital passes for commercial paid databases.
- 4:21Speaker 1: But we don't need those to get started.
- 4:22Speaker 2: No, not at all. For this session, we are focusing
- 4:25Speaker 2: entirely on accessible free queries. It lets you get that
- 4:29Speaker 2: hands on practice without the friction of setting up complex
- 4:32Speaker 2: paid accounts.
- 4:33Speaker 1: Which is perfect. All right, So we understand the mechanics.
- 4:36Speaker 1: Now it is time to put a specific target on
- 4:38Speaker 1: the board. We are going to start small with just
- 4:41Speaker 1: a single point of entry, an email address.
- 4:44Speaker 2: This is where it gets fun.
- 4:45Speaker 1: So you go to your menu, you grab an email
- 4:47Speaker 1: address entity and you drag it right onto your blank graph.
- 4:51Speaker 1: Then you just change the text of that entity to
- 4:53Speaker 1: your target. Let's use support at Microsoft dot com.
- 4:57Speaker 2: Okay, so you have this one single node sitting there
- 5:00Speaker 2: the void. Now you need to interrogate it. You navigate
- 5:03Speaker 2: to the transforms menu, usually by right clicking the entity,
- 5:06Speaker 2: and you look for a specific option.
- 5:08Speaker 1: We are looking for the one labeled have I been proned?
- 5:11Speaker 2: Right? Yeah, that is a fantastic starting point. It checks
- 5:15Speaker 2: known data breach databases. So you find that transform and
- 5:18Speaker 2: you run it using the little double erro icon next
- 5:21Speaker 2: to it.
- 5:21Speaker 1: Now here is the reality of tech, and I think
- 5:23Speaker 1: it is important to mention things do not always work
- 5:26Speaker 1: perfectly on the first click.
- 5:28Speaker 2: Oh definitely not.
- 5:28Speaker 1: Sometimes you run that query and it throws a timeout error,
- 5:32Speaker 1: or the servers on the other end just do not
- 5:34Speaker 1: cooperate because they're overloaded.
- 5:36Speaker 2: Right, tool failure is just part of the job. If
- 5:38Speaker 2: that happens, you just pivot, maybe try a different test address,
- 5:42Speaker 2: like a Yahoo email, just to see the mechanics in action.
- 5:45Speaker 1: But assuming it works, what does a successful result actually
- 5:49Speaker 1: look like.
- 5:49Speaker 2: Well, what's fascinating is how immediate it is. Your single
- 5:53Speaker 2: node suddenly sprouts branches. New nodes appear around your original email,
- 5:57Speaker 2: connected by lines.
- 5:58Speaker 1: But it is crucial to under stand what those branches mean, right.
- 6:02Speaker 1: I mean, if support at Microsoft dot Com shows up
- 6:04Speaker 1: in a breach, it doesn't mean you have hacked the
- 6:06Speaker 1: corporate headquarters.
- 6:08Speaker 2: No, not at all. What the graph is doing is
- 6:10Speaker 2: mapping that target email to specific compromised third party websites
- 6:16Speaker 2: or databases where that address has been logged in the past.
- 6:19Speaker 1: It's mapping the digital exhaust exactly.
- 6:22Speaker 2: If an employee use their corporate email to sign up
- 6:25Speaker 2: for a NICHE programming form five years ago and that
- 6:28Speaker 2: forum was breached, you now have a potential vector. You
- 6:32Speaker 2: were finding the weak links in the chain.
- 6:34Speaker 1: Okay, so exploring a single email is a really great microview.
- 6:37Speaker 1: It's very specific. But what happens when you need to
- 6:40Speaker 1: understand the attack surface of an entire organization.
- 6:44Speaker 2: You have to go bigger.
- 6:44Speaker 1: You need the macroview, right, So you clear the board.
- 6:47Speaker 1: You just delete that email entity to keep your workspace clean,
- 6:50Speaker 1: and you drop a new entity onto the graph. But
- 6:52Speaker 1: this time it is a domain entity.
- 6:54Speaker 2: Because an entire organization is going to be anchored by
- 6:57Speaker 2: its domain.
- 6:57Speaker 1: Let's set that domain to Microsoft dot com. Now, instead
- 7:01Speaker 1: of looking for breaches, we run a new transform. This
- 7:04Speaker 1: one is called Paturva CTS.
- 7:05Speaker 2: Yeah. The perturvacts transform is designed to hunt for associated
- 7:09Speaker 2: email addresses in infrastructure that are publicly linked to that
- 7:12Speaker 2: massive domain.
- 7:13Speaker 1: And I have to say the visual feedback here is
- 7:16Speaker 1: incredibly satisfying. When you hit run and the tool successfully
- 7:20Speaker 1: returns results, it automatically generates all these new nodes and
- 7:24Speaker 1: draws the connecting lines in real time.
- 7:27Speaker 2: It really is something to see one central node suddenly
- 7:30Speaker 2: explodes into dozens, sometimes hundreds of connected nodes. You see
- 7:34Speaker 2: the cluster's form instantly.
- 7:36Speaker 1: And this raises an important question, how is this actually
- 7:38Speaker 1: used professionally, like in a real penetration testing engagement.
- 7:42Speaker 2: Well, in a real engagement, you do not just hand
- 7:45Speaker 2: a client a massive, boring spreadsheet of five hundred.
- 7:48Speaker 1: IP addresses, right, that doesn't tell a story exactly.
- 7:51Speaker 2: You hand them this sprawling graph because it visually proves
- 7:55Speaker 2: that a vulnerability in one obscure, forgotten marketing server from
- 7:58Speaker 2: three years ago is directly tied back to their main
- 8:01Speaker 2: corporate domain.
- 8:02Speaker 1: It removes the illusion of a walled garden it does.
- 8:05Speaker 2: It shows them exactly how an attacker could walk right
- 8:08Speaker 2: through the side door. It makes the abstract concept of
- 8:11Speaker 2: an attack surface undeniably real.
- 8:14Speaker 1: Wow. Yeah, So we have mapped out emails and we
- 8:18Speaker 1: have mapped out massive corporate domains, which is you know,
- 8:21Speaker 1: pretty standard technical cybersecurity work. But here is where it
- 8:24Speaker 1: gets really interesting because if you take a step back
- 8:28Speaker 1: and you scroll through the available entities you can drop
- 8:30Speaker 1: onto your graph. It is not just network hardware.
- 8:34Speaker 2: Oh no. It definitely blurs the line between the digital
- 8:37Speaker 2: and physical worlds.
- 8:39Speaker 1: You are expecting to see IP addresses and routing protocols,
- 8:42Speaker 1: but suddenly you find options to map out physical locations, cities, countries,
- 8:47Speaker 1: even specific crime scenes.
- 8:48Speaker 2: And it goes into human structures too. You can map
- 8:51Speaker 2: out affiliations, gangs, organizations, and even churches, which.
- 8:55Speaker 1: Is just wild to see. Sitting right next to a
- 8:58Speaker 1: DNS record and a software menu.
- 9:00Speaker 2: But it reveals the true depth of open source intelligence.
- 9:03Speaker 2: A sophisticated investigation rarely stays confined to digital packets, threat actors, organizations.
- 9:09Speaker 1: They're all human, right, They exist in physical space exactly.
- 9:12Speaker 2: They travel through airports, they form geographical clusters, they register
- 9:16Speaker 2: businesses and specific municipalities, and a tool like this is
- 9:19Speaker 2: capable of pulling all of that incredibly diverse data onto
- 9:23Speaker 2: one unified visual graph.
- 9:25Speaker 1: So the software uses the exact same relational logic to
- 9:28Speaker 1: connect an IP address to a server as it does
- 9:31Speaker 1: to connect a person to a physical building.
- 9:34Speaker 2: Yes, by standardizing physical and human elements into the same
- 9:38Speaker 2: graph theory logic, you can seamlessly bridge the gap between
- 9:41Speaker 2: cyber and physical intelligence.
- 9:43Speaker 1: So you could find an IP address, map that to
- 9:46Speaker 1: a physical data center, map the data center to the
- 9:49Speaker 1: corporate owner, and map the owner to their known associates.
- 9:52Speaker 2: All without ever changing your methodology. It completely challenges the
- 9:56Speaker 2: concept of a separate digital life.
- 9:58Speaker 1: It is incredibly powerful, and it completely reframes how you
- 10:01Speaker 1: look at data.
- 10:03Speaker 2: Okay, let's take a breath and synthesize what we've covered today.
- 10:05Speaker 1: Sound good.
- 10:06Speaker 2: First, we talked about building that secure hazmat suit with
- 10:09Speaker 2: Kelly Linox on a virtual machine to ensure your reconnaissance
- 10:12Speaker 2: leaves no unintended footprints right keeping your environment isolated and safe.
- 10:18Speaker 2: Then we learn the language of the tool, opening a graph,
- 10:21Speaker 2: dropping entities, and running transforms to act as our automated investigators.
- 10:26Speaker 1: We use those to map the footprint of a single
- 10:28Speaker 1: email address, looking for historical data breaches, and.
- 10:31Speaker 2: Then we clear the board and zoomed way out, mapping
- 10:34Speaker 2: massive domains to visualize the true scale of an organization's
- 10:38Speaker 2: attack surface.
- 10:39Speaker 1: Before finally realizing the sheer somewhat terrifying scope of modern
- 10:44Speaker 1: intelligence gathering, which includes physical locations and human networks mapped
- 10:48Speaker 1: right alongside tech infrastructure.
- 10:51Speaker 2: It is a lot to wrap your head.
- 10:52Speaker 1: Around, it really is. So to help reinforce these concepts,
- 10:56Speaker 1: I want to challenge you with a short review exercise.
- 10:58Speaker 1: I want you to mentally play yourself in front of
- 11:00Speaker 1: that blank graph. Think about your own primary digital identity.
- 11:05Speaker 2: Oh, this is a fun exercise in envision dropping your oldest,
- 11:08Speaker 2: most frequently used personal email address right into the center
- 11:11Speaker 2: of that workspace.
- 11:13Speaker 1: Now imagine executing every single available transform against that one node.
- 11:18Speaker 1: If the tool automatically queries every breach database, every domain registry,
- 11:23Speaker 1: every public forum, and every social media api. What do
- 11:28Speaker 1: you think your graph looks like?
- 11:29Speaker 2: It's usually a pretty big shock for people, right.
- 11:32Speaker 1: How many forgotten accounts, defunc websites and unexpected connections do
- 11:36Speaker 1: you think would instantly branch out across the board? How
- 11:39Speaker 1: wide is your personal attack surface?
- 11:42Speaker 2: It really grounds the theory and reality when you apply
- 11:44Speaker 2: it to yourself, and you know it leaves us with
- 11:46Speaker 2: one final thing to ponder. We just talked about how
- 11:48Speaker 2: this digital mapping tool has built in categories for physical things.
- 11:53Speaker 1: Right like crime scenes and churches.
- 11:55Speaker 2: Exactly so, if the underlying data structures of our intelligence
- 11:58Speaker 2: tools no longer distinguish between your digital footprint and your
- 12:01Speaker 2: physical existence, how thin is the line between the two.
- 12:05Speaker 1: Your digital exhaust isn't just a record of what you
- 12:07Speaker 1: do online. It's a structural map of your entire life
- 12:10Speaker 1: waiting to be connected. Keep that in mind the next
- 12:13Speaker 1: time you leave an ode behind