Latest / CyberCode Academy / Course 6 - Network Traffic Analysis for Incident Response | Episode 3: Wireshark Alternatives: Network Miner, Terminal Shark, and CloudShark
Transcript
- 0:00Speaker 1: So for those of us who you know, live and
- 0:02Speaker 1: breathe network packets, wire shark is it's just indispensable, right,
- 0:08Speaker 1: It's the microscopey years.
- 0:09Speaker 2: Absolutely, it's the default.
- 0:10Speaker 1: But let's be honest. If you've ever tried to open
- 0:13Speaker 1: say a ten gigabyte pcapp file, or you needed to
- 0:17Speaker 1: automate one thousand repetitive checks, oh yeah, wire shark can
- 0:20Speaker 1: start to feel less like a tool and well more
- 0:23Speaker 1: like an anchor.
- 0:24Speaker 2: That's the perfect way to put it. Wire Shark is
- 0:26Speaker 2: fantastic for that deep, manual, one off inspection, but the
- 0:30Speaker 2: second you need speed, or scale or even collaboration, you
- 0:34Speaker 2: hit a wall, very real wall. So our mission today
- 0:37Speaker 2: is to show you that there are these highly specialized
- 0:39Speaker 2: alternatives bill for exactly those tasks. We need to stop
- 0:42Speaker 2: treating wire sharks the only hammer we own the right
- 0:45Speaker 2: tool for the job, exactly. The right tool always depends
- 0:48Speaker 2: on the specific job you need done. Okay, so let's
- 0:51Speaker 2: unpack this.
- 0:52Speaker 1: Let's start with a veteran application, one with some seriously
- 0:55Speaker 1: unique capabilities that I mean they almost feel like cheating
- 0:57Speaker 1: network minor m H. Now, when you first open it up,
- 1:01Speaker 1: it looks a little well dated, It's not the sleekest
- 1:04Speaker 1: interface out there.
- 1:05Speaker 2: Not at all, but you really should not let that
- 1:07Speaker 2: minimalist look fool you. It can capture live traffic or
- 1:11Speaker 2: open existing packet files just fine.
- 1:13Speaker 1: And what's immediately fascinating is its focus on passive host intelligence.
- 1:18Speaker 2: Yes, you feed it a capture file and without running
- 1:21Speaker 2: a single active scan network minor just it automatically breaks
- 1:27Speaker 2: down the entire capture based on the hosts it sees.
- 1:30Speaker 1: It's pulling a massive amount of intelligence just by by listening, just.
- 1:35Speaker 2: By observing the conversations happening in the traffic, that's all.
- 1:37Speaker 1: And the detail it extracts is kind of surprising. We're
- 1:40Speaker 1: talking IP and MA addresses.
- 1:41Speaker 2: Oh it gets better. It'll show you the vendor of
- 1:44Speaker 2: the network card and crucially, operating system details.
- 1:47Speaker 1: It can actually tell if a machine is running say
- 1:50Speaker 1: red Hat, Linux or Windows for example.
- 1:52Speaker 2: Yes, Plus it gives you a list of all the
- 1:54Speaker 2: observed TCP ports for that host.
- 1:56Speaker 1: That passive deduction is so powerful.
- 1:58Speaker 2: It is so Imagine you see a host communicating on
- 2:01Speaker 2: TCP port eighty. Then you look at the traffic ratio
- 2:04Speaker 2: and it's showing ten incoming sessions for every well for
- 2:08Speaker 2: zero outgoing ah okay.
- 2:09Speaker 1: So that instantly tells you this is probably a web server.
- 2:12Speaker 2: This is likely a web server. And even better, Network
- 2:15Speaker 2: Minor is often able to pull the server banner, revealing
- 2:18Speaker 2: specifics like apatche two point zero point four zero on
- 2:22Speaker 2: red hat Linux.
- 2:23Speaker 1: So you just achieved total visibility into that machine's identity
- 2:28Speaker 1: purely through passive recon.
- 2:29Speaker 2: Hold on, you're telling me it can deduce the exact
- 2:32Speaker 2: flavor of Linux just from watching traffic without sending a
- 2:35Speaker 2: single active probe.
- 2:37Speaker 1: It absolutely can. Wow, that changes how I think about
- 2:40Speaker 1: network visibility.
- 2:41Speaker 2: It should, and beyond that host intelligence. Network Minor is
- 2:45Speaker 2: famous for its automated file extraction. People call it data.
- 2:48Speaker 1: Carving, which is critical and forensics so critical.
- 2:52Speaker 2: It doesn't just show you that a file was sent.
- 2:54Speaker 2: It literally reconstructs the actual file from the raw packet
- 2:57Speaker 2: streams and saves it locally for you.
- 2:59Speaker 1: So if I was viewing a huge web capture, it's
- 3:01Speaker 1: not just dumping raw data on me. It's intelligently reorganizing it.
- 3:05Speaker 2: Precisely if you captured HTTP traffic, it maintains the file structure.
- 3:09Speaker 2: You might find an index dot html, file, specific JPEGs,
- 3:12Speaker 2: and maybe even a folder labeled Cworld photos because that's
- 3:15Speaker 2: how it was served.
- 3:16Speaker 1: So it does the reconstruction and the organization for you, which.
- 3:19Speaker 2: Is a huge time saver in any forensic investigation.
- 3:23Speaker 1: And I see it dedicates an entire tab to credentials.
- 3:26Speaker 2: It does though it's using a well, it's a pretty
- 3:28Speaker 2: broad definition. It'll flag things like HTTP cookies because if
- 3:32Speaker 2: you can access a session cookie.
- 3:33Speaker 1: You can log in as that user without a password exactly.
- 3:36Speaker 2: But where it's a critical security reminder is its ability
- 3:39Speaker 2: to instantly pull actual usernames and passwords from clear text protocols. Yeah,
- 3:44Speaker 2: that good, not good at all. If someone sends an
- 3:47Speaker 2: email over SMTP without using TLS encryption, Network Minor will
- 3:51Speaker 2: just extract that unprotected username and password. We've seen it
- 3:55Speaker 2: pull things like gartap at Patriots dot in and password
- 3:58Speaker 2: punjab at one hundred and twenty three and seconds.
- 4:00Speaker 1: Wow.
- 4:01Speaker 2: It is a very, very stark reminder of why encryption matters.
- 4:04Speaker 1: Okay, so we've covered Network Minor. It's clearly the master
- 4:08Speaker 1: of passive GUI based forensics and carving. But sometimes you
- 4:12Speaker 1: don't need visibility, you need pure bruse speed. And that
- 4:16Speaker 1: brings us to our second essential alternative terminal Shark, or
- 4:20Speaker 1: as most people know at t.
- 4:21Speaker 2: Shark, developed by the same group that made wire Shark,
- 4:23Speaker 2: but they ditched the GUI entirely. It's all command line.
- 4:27Speaker 1: And it's optimized for automation right for speed in scripting.
- 4:31Speaker 2: Think about the last time wire Shark just crashed trying
- 4:34Speaker 2: to open a ten gigabyte or even a terabyte sized
- 4:37Speaker 2: PC cap.
- 4:38Speaker 1: I try not to think about that.
- 4:39Speaker 2: Well, T shark just laughs at that file size because
- 4:42Speaker 2: it's not trying to render a massive graphical interface. It's
- 4:45Speaker 2: just raw processing power.
- 4:46Speaker 1: But okay, if I'm not some Linux wizard, is T
- 4:49Speaker 1: Shark's steep learning curve really worth it over just using
- 4:53Speaker 1: the wire shark GUI.
- 4:54Speaker 2: See, that's the thing. It is absolutely worth it because
- 4:57Speaker 2: the barrier to entry is surprisingly low. Really, t shark
- 5:01Speaker 2: uses the exact same powerful display filter syntax as wider shark.
- 5:05Speaker 2: You don't learn a new language, you just change the
- 5:07Speaker 2: environment you're working in.
- 5:08Speaker 1: Okay, here's where it gets really interesting.
- 5:10Speaker 2: Let's look at two key commands. First, for just a
- 5:13Speaker 2: basic review, you can read a file say http dot
- 5:17Speaker 2: cap using the ashar flag, and then you use the
- 5:20Speaker 2: standard wire shark filter syntax with the Bier's wi flag,
- 5:24Speaker 2: so you could filter for just HTTP. In an instant
- 5:28Speaker 2: you can cut down forty three packets to maybe four
- 5:31Speaker 2: relevant results. The buyer flag is great for quick, human
- 5:35Speaker 2: readable output.
- 5:36Speaker 1: But the true power comes in the next step, right, Yeah,
- 5:39Speaker 1: when you want to feed that output into another tool.
- 5:41Speaker 2: Exactly when you need highly specific, machine readable output, you
- 5:46Speaker 2: use the nice T fields flags. Okay, so instead of
- 5:48Speaker 2: getting a cluttered packet dump, you tell t shark, I
- 5:51Speaker 2: only want the HTCP dot host field, and the output
- 5:54Speaker 2: is just that got structured.
- 5:57Speaker 1: And now you have a clean list of every single
- 5:59Speaker 1: domain that was contacted in that capture file.
- 6:01Speaker 2: Right, And because you're in the command line, you can
- 6:03Speaker 2: instantly pipe that output send it to another script.
- 6:06Speaker 1: You could check every single one of those hosts against
- 6:09Speaker 1: a known blacklist of malicious domains.
- 6:11Speaker 2: And you've just built a rapid detective solution right there.
- 6:14Speaker 1: On the spot. Or you could refine it.
- 6:15Speaker 2: You could refine it instead of the host names. You
- 6:17Speaker 2: could change the output field to IP dot S or
- 6:19Speaker 2: car daughter. Now you instantly identify the exact internal machine
- 6:23Speaker 2: making those suspicious calls.
- 6:25Speaker 1: T shark lets you implement really complex, powerful detective work
- 6:29Speaker 1: just by chaining together simple fast command line utilities.
- 6:33Speaker 2: That's its superpower.
- 6:34Speaker 1: Okay, so we've covered local GUI analysis and local command
- 6:37Speaker 1: line automation. For our third alternative, we're moving entirely into
- 6:41Speaker 1: the browser for visualization and collaboration with cloud Shark.
- 6:44Speaker 2: This is a web based service. They offer a basic
- 6:47Speaker 2: free account, which is great for getting started and for.
- 6:50Speaker 1: Anyone who knows wireshark. The interface is I mean, it's
- 6:54Speaker 1: immediately recognizable. It's extremely similar.
- 6:57Speaker 2: Very similar. It has the colorization, the familiar packet breakdown views,
- 7:01Speaker 2: and it's completely complementary. You can upload your pcks to
- 7:05Speaker 2: cloud shark for analysis and then download them later to
- 7:08Speaker 2: open back up and wire shark if you need that
- 7:10Speaker 2: deep local dive.
- 7:12Speaker 1: But its main strength is obviously collaboration. It's incredibly easy
- 7:15Speaker 1: to share your findings with just a.
- 7:16Speaker 2: Link, and more importantly, you can annotate specific packets. You
- 7:20Speaker 2: can tag a packet with a comment like dns query
- 7:23Speaker 2: for suspicious domain, which makes your finding so much easier
- 7:26Speaker 2: to share or revisit or hand off to a colleague.
- 7:29Speaker 1: And the visualization is just it's far superior to what
- 7:34Speaker 1: you get in the desktop app.
- 7:35Speaker 2: Oh way better. They have these powerful time series graphs
- 7:38Speaker 2: that show traffic distribution over time. You can use these
- 7:42Speaker 2: interactive sliders to immediately zoom in on a spike or
- 7:45Speaker 2: a dip in traffic that you think looks suspicious.
- 7:47Speaker 1: They also generate more advanced visuals like ladder.
- 7:50Speaker 2: Diagrams, which are fantastic for visualizing the flow of packets
- 7:53Speaker 2: between specific hosts. Really useful when you're troubleshooting complex problems
- 7:58Speaker 2: across multiple network segments.
- 8:00Speaker 1: And that visualization can lead you directly to spotting anomalies
- 8:04Speaker 1: for sure.
- 8:04Speaker 2: For example, you could filter the traffic to show only
- 8:08Speaker 2: HTTP response traffic and then you watch the graph for
- 8:11Speaker 2: bite size over time. Okay, if you see a sudden,
- 8:15Speaker 2: massive spike in the size of the data being sent
- 8:17Speaker 2: out from a web server, that could be a critical
- 8:19Speaker 2: indicator of an exfiltration.
- 8:21Speaker 1: Event, like a successful sequel injection that's pulling a huge
- 8:24Speaker 1: amount of sensitive data.
- 8:25Speaker 2: Exactly, it makes those kinds of events visually pop out.
- 8:28Speaker 1: Wait, I have to ask the obvious question here. If
- 8:31Speaker 1: I have highly sensitive government or corporate data, is uploading
- 8:37Speaker 1: a capture file to a web based service actually practical
- 8:40Speaker 1: or secure?
- 8:41Speaker 2: That is a critical question, and for highly sensitive regulated environments,
- 8:45Speaker 2: the answers often know you'd likely use an on premise
- 8:48Speaker 2: or privately hosted version of a similar tool. However, for
- 8:53Speaker 2: incident response teams dealing with nonsensitive captures, or for labs
- 8:57Speaker 2: training and open source intelligence gathering, cloud Shark is perfect.
- 9:01Speaker 2: It reduces friction instantly, there's no need to install or
- 9:04Speaker 2: maintain local software.
- 9:06Speaker 1: It's all about knowing your data's classification and your organization's
- 9:09Speaker 1: trust boundaries.
- 9:10Speaker 2: You've got it.
- 9:11Speaker 1: This has been a fantastic deep dive. So we've established
- 9:14Speaker 1: that network Minor is the tool for passive intelligence and
- 9:16Speaker 1: rapid data carving. T Shark is the specialist for pure
- 9:19Speaker 1: automation and high speed processing of massive files.
- 9:22Speaker 2: The command line Hero and.
- 9:24Speaker 1: Cloud Shark excels at visualization, collaboration, and easy sharing through
- 9:28Speaker 1: the web.
- 9:28Speaker 2: So the key takeaway here is that you're no longer
- 9:31Speaker 2: limited to a general purpose UI that might crash or
- 9:34Speaker 2: slow you down. Knowing these tools lets you select the
- 9:37Speaker 2: precise instrument for the specific analysis.
- 9:40Speaker 1: Job, which gives you speed, accuracy.
- 9:43Speaker 2: And deeper insight than ever before. It's really about choosing
- 9:46Speaker 2: precision over ubiquity.
- 9:48Speaker 1: So at the end of the day, what does this
- 9:50Speaker 1: all mean.
- 9:50Speaker 2: It means you save time and get better answers, and.
- 9:53Speaker 1: That leads us to our final provocative thought for you
- 9:56Speaker 1: to consider. If you are tasked with monitoring a network
- 10:00Speaker 1: using an existing massive capture file, and you needed to
- 10:03Speaker 1: quickly identify every internal machine attempting to contact a specific
- 10:07Speaker 1: known malicious domain, which tools approach DATO carving, command line scripting,
- 10:12Speaker 1: or web visualization, Which you choose to get the job
- 10:14Speaker 1: done fastest, and why we'll catch you on the next
- 10:17Speaker 1: deep dive.