Latest / CyberCode Academy / Course 8 - Penetration Testing OSINT Gathering with Recon-ng | Episode 4: Recon-ng Results: Comprehensive Reporting Formats and Strategic
Transcript
- 0:00Speaker 1: Okay, let's unpack this. We talk a lot about reconnaissance
- 0:03Speaker 1: and cybersecurity, you know, gathering just mountains of information, oh
- 0:08Speaker 1: a ton of it, the digital goodies exactly. You fill
- 0:10Speaker 1: your databases to the absolute brim. But here's the thing,
- 0:14Speaker 1: here's the roadblock. You can have all that data, but
- 0:17Speaker 1: if you can't present it in a way that actually,
- 0:20Speaker 1: you know, facilitates.
- 0:21Speaker 2: Change, it's useless. It's just noise.
- 0:23Speaker 1: It's just noise.
- 0:24Speaker 2: Yeah, that's really the hardest part getting from all that
- 0:27Speaker 2: data accumulation to a strategic decision. And our deep dive
- 0:32Speaker 2: today is all about bridging that exact gap.
- 0:35Speaker 1: So how do we do it? How do we take
- 0:36Speaker 1: something from a terminal screen and get it to the
- 0:39Speaker 1: people who actually need to fix things.
- 0:41Speaker 2: It's all about organization and context. You have to build
- 0:44Speaker 2: a narrative.
- 0:45Speaker 1: Our mission then is to really dig into the reporting
- 0:48Speaker 1: tools that turn that huge technical data stack into something clear,
- 0:52Speaker 1: digestible and well rich with content.
- 0:55Speaker 2: Yeah. Moving from the auditor's notebook to the executive brief.
- 0:58Speaker 1: Love that.
- 0:59Speaker 2: So when you the security pro are first looking at
- 1:02Speaker 2: the raw data, you're probably just going to check the
- 1:04Speaker 2: summary review right the dashboard if you run a command
- 1:06Speaker 2: like show dashboard. It gives you an instant snapshot of
- 1:11Speaker 2: what modules you've run, how many records are in your tables,
- 1:14Speaker 2: all for the workspace you're in.
- 1:16Speaker 1: It's a great internal log for us. It helps you
- 1:18Speaker 1: keep track of your own progress. But you're right, if
- 1:20Speaker 1: I hand that.
- 1:20Speaker 2: To my boss, they're just going to see tables and numbers.
- 1:23Speaker 1: Yeah, not risked exactly.
- 1:24Speaker 2: It's too technical, too focused on raw counts. We need
- 1:27Speaker 2: to use the dedicated reporting category to structure it all.
- 1:32Speaker 2: If you search for the reporting modules available, you'll see
- 1:34Speaker 2: a bunch of options designed specifically for this.
- 1:37Speaker 1: Okay, But before we get into standard exports, what about visualization?
- 1:41Speaker 1: Is there ever a time where, like seeing the data
- 1:44Speaker 1: on a map is the most important thing?
- 1:46Speaker 2: Absolutely? Geographical context can be huge. There are specialized modules
- 1:51Speaker 2: for that, like the pushpin module pushpin That sounds kind
- 1:54Speaker 2: of fun. It is pretty cool. Huh. We aren't generating
- 1:57Speaker 2: a map right now, but it's a perfect example of
- 1:59Speaker 2: turning stack data into something visual and aware of its location.
- 2:03Speaker 1: So how does that work in practice?
- 2:05Speaker 2: Well, let's say your recon data has physical locations tied
- 2:08Speaker 2: to it, maybe office addresses or something. You just input
- 2:11Speaker 2: the latitude, longitude or radius and the pushpin module spits
- 2:15Speaker 2: out a local HTML file. You open it and boom,
- 2:18Speaker 2: all your data points are overlaid on a Google map.
- 2:21Speaker 1: Wow, so I can see if all my most vulnerable
- 2:23Speaker 1: assets are like clustered in one single geographic area. That's
- 2:28Speaker 1: that's not just data, that's intelligence.
- 2:30Speaker 2: That's intelligence exactly. But look, most of the time decision
- 2:34Speaker 2: makers need formats they can sort and filter and share,
- 2:37Speaker 2: and that means standardization, right, and for.
- 2:40Speaker 1: Almost any manager that means spreadsheets.
- 2:42Speaker 2: Which brings us to the workhorse. Yeah, the CSV module
- 2:45Speaker 2: you can find it under reporting CSV. It just creates
- 2:48Speaker 2: a simple comma separated value file any database table you
- 2:52Speaker 2: pointed at.
- 2:53Speaker 1: So if you have I don't know, hundreds of thousands
- 2:55Speaker 1: of hosts in your host's table, using the CSF module
- 2:59Speaker 1: seems easy. But doesn't that create its own problems? Like
- 3:02Speaker 1: exporting that much data seems slow and maybe not that
- 3:04Speaker 1: secure compared to just queering the database directly. Why even
- 3:08Speaker 1: do it?
- 3:09Speaker 2: That is a critical question, and it really highlights the
- 3:12Speaker 2: difference between an auditor's tool and a manager's tool. Ah,
- 3:15Speaker 2: we would prefer to query of the database, sure, but
- 3:18Speaker 2: the manager needs that data in Excel or Libra office
- 3:22Speaker 2: to run their own pivot tables or merge it with
- 3:25Speaker 2: budget data.
- 3:26Speaker 1: So we export because the client needs it to be accessible.
- 3:29Speaker 2: It's the necessary compromise. The module defaults to the host's
- 3:33Speaker 2: table and saves it as results do CSV. It gets
- 3:37Speaker 2: the findings into the hands of the people who pay
- 3:39Speaker 2: the bills.
- 3:40Speaker 1: That makes perfect sense, But what about for other systems,
- 3:42Speaker 1: I mean def teams or automated tools that need to
- 3:45Speaker 1: consume this data. CSV is well, it's not great for that,
- 3:50Speaker 1: not at all.
- 3:50Speaker 2: And for that kind of structured data interchange, we turn
- 3:53Speaker 2: to JSON or XML. You've got reporting modules for each
- 3:56Speaker 2: of them, and it's the same idea. You just use
- 3:58Speaker 2: the set command to list the tables you want it
- 4:00Speaker 2: separated by.
- 4:00Speaker 1: Commas and I guess JSON is more for modern APIs,
- 4:03Speaker 1: but XML is still around in older enterprise systems.
- 4:06Speaker 2: You got it. The point is you have tools for
- 4:09Speaker 2: both human consumption and machine consumption.
- 4:11Speaker 1: Okay, so we've handled the big exports the whole database
- 4:14Speaker 1: for managers and machines, but what if you just need
- 4:18Speaker 1: one specific thing. A CISO doesn't want the whole haystack.
- 4:22Speaker 1: They just want the needle.
- 4:24Speaker 2: Right and that's where we get granular. For those really
- 4:27Speaker 2: specific data points. Maybe you just want a list of
- 4:30Speaker 2: email addresses you found, we use the reporting list's module.
- 4:34Speaker 1: Okay, so that just pulls one column. How do I
- 4:36Speaker 1: even know what columns are available in a table?
- 4:38Speaker 2: You just run a command like show hosts and it'll
- 4:41Speaker 2: list them all out for you. The reporting lists module,
- 4:44Speaker 2: by default just pulls the IP address column from the
- 4:46Speaker 2: host table. It's usually the most basic piece of info.
- 4:49Speaker 1: But if we're focused on, say social engineering, we'd want
- 4:52Speaker 1: something else. Like what if we want to pull just
- 4:54Speaker 1: the regions where employees.
- 4:55Speaker 2: Are simple, you would just run said colin region.
- 4:58Speaker 1: That's it.
- 4:58Speaker 2: That's it. It saves the output as list dot txt
- 5:01Speaker 2: in your workspace, and that clean, single column text file
- 5:05Speaker 2: is perfect for feeding into another tool without you having
- 5:08Speaker 2: to manually clean up a spreadsheet first.
- 5:10Speaker 1: That is great for the technical workflow. So now the
- 5:14Speaker 1: final product, the big one, the report that goes straight
- 5:17Speaker 1: to the client.
- 5:18Speaker 2: The HTML module dot reporting TML. This thing doesn't just
- 5:22Speaker 2: dump data, it organizes it into a cohesive story. It
- 5:27Speaker 2: generates one HTML file with a summary page, an index,
- 5:32Speaker 2: and structured sections for every single table that has data
- 5:35Speaker 2: in it.
- 5:35Speaker 1: And this is where we make it look official.
- 5:37Speaker 2: We can brand it absolutely. Customizing it is what turns
- 5:40Speaker 2: it from a log file into a strategic document. You
- 5:43Speaker 2: use the set creator command to put your company's name
- 5:45Speaker 2: at the bottom.
- 5:46Speaker 1: Establishes the chain of custody for the data exactly.
- 5:49Speaker 2: And critically, you use the set customer command for the
- 5:51Speaker 2: client's name. If your client was say the BBC, their
- 5:55Speaker 2: name goes right at the top. It signals who it's
- 5:57Speaker 2: for and what its purpose is.
- 5:58Speaker 1: Immediately, and once it's done, you load in a browser
- 6:01Speaker 1: and you have this clean, shareable report that gives management
- 6:04Speaker 1: maximum impact.
- 6:05Speaker 2: Yes, but we've talked about how to extract the data.
- 6:09Speaker 2: The most critical step is still ahead, the human analysis.
- 6:12Speaker 2: Right Without that thinking step, all of these reports are just,
- 6:14Speaker 2: you know, expensive paperweights.
- 6:16Speaker 1: This is where we stop talking about the tools and
- 6:18Speaker 1: start asking the really hard questions about what we found.
- 6:21Speaker 2: Precisely. Let's say you used a tool like builtwith and
- 6:25Speaker 2: you found they're running an old, unsupported web framework. Okay,
- 6:28Speaker 2: your analysis can't just say they're using an old framework.
- 6:31Speaker 2: You have to detail the specific exploits that are public
- 6:34Speaker 2: for that version. That's what turns a finding into a prioritized.
- 6:37Speaker 1: Threat and what about something like public contact information? The
- 6:40Speaker 1: risk there becomes all about social engineering, doesn't it?
- 6:43Speaker 2: It's huge. The first critical implication is can a bad
- 6:47Speaker 2: actor combine that contact data with the technology data we
- 6:50Speaker 2: found to launch a super targeted.
- 6:52Speaker 1: Attack like pretending to be it support for an employee
- 6:55Speaker 1: in a specific region and referencing the exact software they
- 6:59Speaker 1: know that person uses.
- 7:00Speaker 2: That's the nightmare scenario, and your analysis has to lead
- 7:04Speaker 2: to policy change, not just a technical patch. Well, the
- 7:07Speaker 2: second implication is policy. You have to ask how much
- 7:11Speaker 2: of this exposed info can we even scrub from the Internet?
- 7:15Speaker 2: And more importantly, is our current company policy causing this exposure?
- 7:20Speaker 1: Ah? So do we need to rethink how employees work
- 7:24Speaker 1: or how we manage our vendors?
- 7:26Speaker 2: Exactly? These reports should force management to rewrite their security
- 7:30Speaker 2: policies from the ground up.
- 7:32Speaker 1: So it moves from a simple vulnerability list to a
- 7:35Speaker 1: whole business strategy conversation. So, once that analysis is done,
- 7:40Speaker 1: what's the next technical step for the security pro.
- 7:43Speaker 2: Then you move into active testing. You start with vulnerability assessment,
- 7:47Speaker 2: scanning the infrastructure to confirm the risks you found, and
- 7:50Speaker 2: then maybe you run actual exploits to demonstrate the real
- 7:54Speaker 2: world impact. The recon findings become the target list for
- 7:57Speaker 2: your exploit.
- 7:58Speaker 1: Face and for anyone listening who wants to go deeper
- 8:00Speaker 1: on that. There are great specialized courses out there from
- 8:03Speaker 1: providers like plural Site that can guide you through those
- 8:06Speaker 1: advanced stages.
- 8:07Speaker 2: Yeah, and if we connect this all to the big picture,
- 8:10Speaker 2: the real value of recon isn't just knowing what's exposed.
- 8:13Speaker 2: It's understanding the entire chain of vulnerabilities that exposure.
- 8:17Speaker 1: Creates and using these reports to clearly show how to
- 8:20Speaker 1: break that chain.
- 8:21Speaker 2: That's the goal.
- 8:22Speaker 1: So what does this all mean for you the learner?
- 8:25Speaker 1: You now have the blueprints for turning that raw technical
- 8:28Speaker 1: data into strategic documents that actually drive real change in
- 8:32Speaker 1: an organization.
- 8:34Speaker 2: Which raises an important question for you to think about.
- 8:36Speaker 2: Based on everything we've.
- 8:37Speaker 1: Just discussed, Imagine you use that reporting list module to
- 8:40Speaker 1: pull all the employee region data you could find. If
- 8:43Speaker 1: your analysis found that, say eighty percent of all staff
- 8:46Speaker 1: with access to critical systems were located in one single
- 8:49Speaker 1: geographical region, what specific policy changes or security mitigations would
- 8:54Speaker 1: you immediately recommend to management to address the centralization risk
- 8:58Speaker 1: that data implies thingspecify about disaster recovery and physical security.