Wireshark Network Security - podcast episode cover

Wireshark Network Security

Apr 12, 202522 min
--:--
--:--
Download Metacast podcast app
Listen to this episode in Metacast mobile app
Don't just listen to podcasts. Learn from them with transcripts, summaries, and chapters for every episode. Skim, search, and bookmark insights. Learn more

Episode description

The provided Book is the table of contents and introductory material for a book titled Wireshark Network Security. The book aims to teach network administrators and security analysts how to use Wireshark to detect and analyze various network security threats. It covers topics such as analyzing clear-text traffic, sniffing attacks, network reconnaissance, password cracking attempts, and malware traffic inspection. The book also explores using Wireshark's command-line tools and complementary applications for enhanced analysis. Finally, it includes case studies and Capture-The-Flag (CTF) challenges to provide hands-on experience.

You can listen and download our episodes for free on more than 10 different platforms:
https://linktr.ee/cyber_security_summary

Get the Book now from Amazon:
https://www.amazon.com/Wireshark-Network-Security-Piyush-Verma/dp/1784393339?&linkCode=ll1&tag=cvthunderx-20&linkId=661e8206d38c4a744b68961bd1b89fa8&language=en_US&ref_=as_li_ss_tl




Discover our free courses in tech and cybersecurity, Start learning today:
https://linktr.ee/cybercode_academy

Transcript

Speaker 1

All right, let's dive in today. We're going deep into the world of network security with wire Shark. We'll be using wire Shark Network Security by Puche Verma as our guide.

Speaker 2

Oh yeah, ps Verma. He's a pretty sharp guy, a real security pro book.

Speaker 1

Book's got some serious endorsements too, right.

Speaker 2

Yeah, people like David who's a hardware expert over at ARM And then there's Jap he's been a core wire Shark developer for like over two decades.

Speaker 1

Wow. So we're talking about folks who really know their stuff.

Speaker 2

Definitely not your average beginner's guide.

Speaker 1

So the goal today is to give everyone a solid understanding of what wire Shark can do, especially when it comes to sniffing out security threats exactly.

Speaker 2

We're going to go beyond the basics. We'll dig into the tools and the techniques, you know, really get into the nitty gritty.

Speaker 1

Love it. So let's start with the foundation. What is sniffing and why should anyone care?

Speaker 2

Sniffing is basically capturing and then analyzing those little data packets that you know, flow through a network.

Speaker 1

Okay, so it's like listening in on the conversation happening between devices on the network.

Speaker 2

You got it. It's kind of like having a secret listen device. It's super important for both network admins and for security folks.

Speaker 1

So admins use it to like diagnose network problems.

Speaker 2

Yeah yeah, like a doctor using a stethoscope, you know, to listen to a patient's heartbeat. And security analyst while they use sniffing to detect anything suspicious.

Speaker 1

Like a detective analyzing clues at a crime scene.

Speaker 2

Exactly. But there are other tools out there too, right, You've got TCP dump, Naggio's network analyzer, even omnipeak.

Speaker 1

Right, right, So what makes wire sharks stand out from the crowd.

Speaker 2

Well, for starters, it's free and open source, and it's super user friendly. You can use it on pretty much any platform.

Speaker 1

Cross platform always a plus.

Speaker 2

And it supports a huge number of protocols, like a really wide range. Means it can understand pretty much any network conversation out there.

Speaker 1

Okay, that's impressive, But what really sets wireshark apart.

Speaker 2

It's got this incredibly powerful filtering system.

Speaker 1

Filtering like Instagram filters that make you look younger.

Speaker 2

No, not quite like that. With wire Shark. These filters they let you sort through mountains of data and pinpoint exactly what you're looking for. You can filter by IP address, protocol, even specific data patterns.

Speaker 1

Oh wow, So if I'm trying to track down all the traffic going to say a suspicious website, I can do that with wire shark.

Speaker 2

You got it. Or let's say you want to see all the traffic using a specific protocol. You can isolate that too.

Speaker 1

So it's like having a search engine, but specifically for network traffic. That's amazing.

Speaker 2

And for those who prefer the command line, there are tools like t shark, capinfos, edit cap, and merge cap.

Speaker 1

What can those do?

Speaker 2

They give you more specialized control, you know, like t shark it's a command line version of wire shark, perfect for scripting and automation. Capinfos it gives you a quick summary of a capture file. Edit cap lets you modify those files. And merge cap well, that one lets you combine multiple files into one.

Speaker 1

Wow, that's a lot of power at your fingertips. Yeah, okay, so we've got our sniffing two tools ready, But what exactly are we looking for? What kind of threats might be lurking on a network?

Speaker 2

Well, one of the most common and surprisingly dangerous is clear text traffic. Sending sensitive information without encrypting it. It's a huge risk.

Speaker 1

Really, Like, what kind of protocols are we talking about.

Speaker 2

You've got FTP, Telnet, even HTTP. These older protocols, they often send data in plain text, which means anyone sniffing the network could just read that data.

Speaker 1

Oh wow, So it's like sending a postcard with your credit card number written on it.

Speaker 2

Pretty much anyone who handles it can see your info. That's why using HTTPS is so so important. It encrypts the data, keeps it safe from prying eyes, and with wireshark you can actually see the difference between plaintext and encrypted data.

Speaker 1

So plaintext is bad, got it? What else should we be on the lookout for.

Speaker 2

Another common attack is well, actually it's sniffing itself, but done maliciously.

Speaker 1

Wait, I thought all sniffing was bad. We're talking about using it for good here, right.

Speaker 2

But there's a difference between passive sniffing and active sniffing.

Speaker 1

Okay, explain that passive.

Speaker 2

Sniffing is just capturing traffic that's already out there flowing through the network. But active sniffing, well, that's when the attacker is actively trying to intercept traffic that wasn't meant for them.

Speaker 1

Oh I see. So passive sniffing is like overhearing a conversation in a public place, and active sniffing is like tapping someone's phone.

Speaker 2

Yeah, that's a good way to put it, and attackers use all sorts of tricks to do that, like MAC flooding and ARP poisoning.

Speaker 1

Those sound intense. What are they? Exactly?

Speaker 2

Mac flooding it's like overloading a network switch with too many ANGS addresses. That can force the switch to just start broadcasting everything to all ports, which makes it easy for the attacker to grab it all.

Speaker 1

Oh wow, So it's like creating a traffic jam, forcing all the data to go through the attacker's computer.

Speaker 2

Exactly. Now. ARP poisoning that's a bit different. It's about manipulating the ARP table.

Speaker 1

The ARP table, what's that?

Speaker 2

So when your computer wants to send a message to another device, it knows the IP address, but it needs the EMMY address to actually deliver it. The ARP table is like a phone book that maps IP addresses to MC addresses.

Speaker 1

Oh okay, so it translates the IP address into a mac key.

Speaker 2

Address, right, And ARP poisoning it tricks your computer into using the wrong MC address.

Speaker 1

So it's like changing someone's number in your phone, so when you call them, you end up talking to the attacker exactly.

Speaker 2

And wireshark can help you spot these ARP poisoning attacks by showing you those ARP requests and responses, so we.

Speaker 1

Can see if there are any suspicious entries, like a security camera pointed at the ARP table. That's pretty clever. Okay, so we've covered clear text traffic and sniffing attacks.

Speaker 2

What else, Let's talk about reconnaissance. You know, it's like when a thief cases a house before they break in. Attackers use all sorts of tools to gather information about a network, look for weaknesses they can exploit.

Speaker 1

So they do their homework before they strike.

Speaker 2

Makes sense, and one of the most common tactics they use is port scanning. They'll use tools like map to scan for open.

Speaker 1

Ports, so they're checking for unlocked doors yep.

Speaker 2

Basically, they're also looking for specific services running on those ports, which can tell them things like what operating system you're using, maybe what software you're running, and even what vulnerabilities might be present.

Speaker 1

Oh man, So it's like they're peaking in the windows, checking out what valuables you've got inside. Not good, not.

Speaker 2

Good at all. And wireshark can help you detect this port scanning activity.

Speaker 1

Oh really?

Speaker 2

How it shows you those scan requests coming from the attackers machine.

Speaker 1

So like a security system that tells you when someone's jiggling the.

Speaker 2

Doorknobs exactly, and once they find a weakness, they can launch more targeted attacks like trying to crack your passwords.

Speaker 1

Speaking of passwords, what can wire shark tell us about password cracking attempts?

Speaker 2

Quite a bit? Actually, it can show you the usernames and passwords being tried, the techniques being used, even the speed of those attempts.

Speaker 1

So we can see the attackers' keystrokes as they're trying to break in.

Speaker 2

Not literally, but you can see the data being which often includes that username and password being attempted, and the timing can be a big giveaway. Humans can't type that fast, So if.

Speaker 1

We see a bunch of log in attempts in rapid succession with different usernames and passwords, that's a clear sign of a password cracking attack exactly.

Speaker 2

And wireshot can show you which protocol is being targeted, like FTP or POP three or HTTP. This helps understand the attackers' methods.

Speaker 1

Okay, so we've covered a lot of ground here. It's amazing how much wire Shark can reveal about what's happening on a network.

Speaker 2

It's pretty powerful. But we're just getting started. Next time we'll dig into email espionage, see how to uncover secrets and email attachments, and even analyze malware traffic. It's going to get really interesting looking.

Speaker 1

Forward to it. All Right, So before we went on our little break, we were talking about how Wireshark can be used to like spot the suspicious activities happening on our networks. So now let's shift our focus to email, shall we. I mean, it's not just for shopping lists and like cat videos anymore.

Speaker 2

Oh, definitely not. Email is still a prime target for attackers. You know. It's a common way to spread those phishing attacks, malware, even stuff like corporate espionage.

Speaker 1

Espionage huh sounds kind of like a spy movie. So are we talking like secret messages hidden in plain text emails?

Speaker 2

It's not too far off. You see traditional email protocols, things like SMTP, pop three and IMAP. They were designed way back when security wasn't such a big concern, So they often send data in plaintext, which means, you know, if anyone is sniffing the network, well, they could potentially read those emails.

Speaker 1

Wait really, so it's like sending a super confidential letter on a postcard. Not exactly secure. But people aren't still using those old protocols, are they?

Speaker 2

You'd be surprised. While a lot of email providers they do use encryption nowadays by default, but you still have some legacy systems and configurations out there that might be vulnerable. Plus, let's face it, attackers they're always finding new ways to get around those security measures, right, and that's why analyzing email traffic with wiresh it can be so valuable.

Speaker 1

Okay, so what exactly should we be looking for when we're analyzing email traffic with wireshark, Like, what are the red flags that scream, hey, something fishy's going on here?

Speaker 2

Well, one of the most obvious signs is seeing sensitive information, stuff like passwords or financial details being sent in plain text. Right, that's a big no no. But like I said, attackers are getting smarter. They're using all sorts of techniques you know, to hide their tracks, things like encoding messages or hiding data and attachments.

Speaker 1

Encoding messages is that like writing in some kind of secret code, like only the person who's supposed to get the message can decipher it.

Speaker 2

It's similar to that, you see. One method they use is called quoted printable encoding. It's meant to handle special characters and emails, converts them into a format that can be transmitted safely. But attackers can twist that use it to like camouflage their messages, make them harder to spot.

Speaker 1

Okay, so it's like hiding a message in plain sight right now using this code that looks innocent, but really it's got something secret inside. And what about attachments? How can attackers use those to hide data?

Speaker 2

Attachments? Yeah, they're a popular way to deliver malware or you know, to sneak out stolen data. They might make these malicious files look like harmless documents, you know, like PDFs or spreadsheets, or they might go even further, hiding data within the actual structure of a file, you know, using techniques like steganography.

Speaker 1

Steganography, Wow, that sounds like something straight out of a spine nobyl.

Speaker 2

It is pretty cool. Actually, it's the art of concealing a message like within another message, or a file. Imagine you're embedding a secret message within the pixels of an image. So to the naked eye, the image looks totally normal, right, but that hidden message is there. You just need to know how to extract it.

Speaker 1

That's amazing. It's like something you'd see in a James Bond movie. So wire Shark can actually help us uncover these hidden messages.

Speaker 2

Absolutely. Wireshark can't decrypt encrypted messages, but it can definitely give us those clues. For example, it can tell us the file type of an attachment, you know, even if someone tried to change the file extension to disguise it. And we can also look at the size and structure of the attachment see if it matches what we'd expect.

Speaker 1

So like if we see a file that's supposed to be a PDF but it's like way too big, or if it's structure is all messed up, that's.

Speaker 2

A bad sign exactly, could be a sign that something's hiding in that file. Plus, wireshirt can help us track where that attachment came from, where it's going, any servers it passed through along the way.

Speaker 1

It's like a trail of digital breadcrumbs right leading us back to the source of the attack, or maybe the destination of that stolen data precisely.

Speaker 2

Now, speaking of email espionage, there's a really interesting example in the book Wireshark Network Security. The author he lays out this challenge, calls it corporate espionage, where someone's trying to steal a secret car prototype design and they're using email to do it.

Speaker 1

Oooh, this sounds juicy. How did they try to pull it off?

Speaker 2

Well, they didn't just send the image directly. Yeah, I'd be way too obvious. Instead, they embedded it inside an RTF file, a rich text format file, and attached it to the email. And to make things even trickier, they encoded the email using that quoted printable method we talked about earlier.

Speaker 1

So they made the image look like a harmless document and then scrambled the email itself. Pretty sneaky it is.

Speaker 2

But luckily with wire Shark we can put the pieces together expose their little scheme.

Speaker 1

Okay, I'm hooked, walk me through it. What did wire Shark reveal?

Speaker 2

Well, first off, we looked at the email headers right, those tell you the sender, recipient, subject line, even the encoding method used. So when we saw an attachment with a name like project xdesign DOT or TF and a subject line that said confidential, do not share. Well, that definitely raised a red flag.

Speaker 1

Yeah, not exactly trying to be subtle, are they? What else did you find?

Speaker 2

That quoted printable encoding? That was another clue. Like I said, it's not unusual to use that encoding, but in this context, it was definitely something to look into. And then, of course there's the actual content of the email itself. Once we decoded it, it had instructions on how to get that hidden image out of the RTF file and get this. It even had details about a secret meeting where they were going to hand off the stolen designs.

Speaker 1

Wow, so not only did you catch the spy, but you also busted their entire plan. That's some seriously impressive digital detective work.

Speaker 2

It's pretty satisfying, right, And this is just one example of how wireshark can be used to, you know, investigate email espionage. There are other techniques they used to like SMTP enumeration, relay attack stuff like that.

Speaker 1

SMTP enumeration. It sounds a bit technical, it is.

Speaker 2

It's a technique attackers used to gather intel about an email server and its users. They basically send probes to the server trying to figure out which email addresses are valid. It's kind of like a thief going door to door, you know, checking which houses are occupied.

Speaker 1

Oh okay, so they're basically scoping out the place looking for potential victims.

Speaker 2

Exactly, and wire shirt it can help us detect these probes. We just look for those specific SMTP commands they use, like vrfy, EXPN and RCPC, you know, commands that are typically used to like verify email addresses or expand mailing lists.

Speaker 1

So it's like those footprints in the sand, right, revealing that someone's been snooping around where they shouldn't be. Okay, so what about those relay attacks you mentioned?

Speaker 2

Ah, yes, SMTP relay attacks. That's when they exploit a mail server to send out spam or malware. You know, they trick the server into relaying their messages so it looks like those messages are coming from a legit source.

Speaker 1

So like sending a letter with a fake return address, right, tricking people into thinking it's from someone they trust.

Speaker 2

Exactly, and wire shark it can help us spop these attext. We look for unusual sending patterns like a sudden increase in emails from a single IP address or mismatches between the sender's address and you know the actual source of the email.

Speaker 1

So whether it's spying, phishing, or spamming, wire Shark gives us the power to like break down those email conversations and see what's really going on. But what about malware? How can wire Shark help us fight against those malicious programs?

Speaker 2

Ah, malware, That's a great question, and that's exactly what we'll be diving into next.

Speaker 1

So let's talk about malware. I mean, it's basically the like the Boogeyman of the digital world, isn't it always lurking in the shadows waiting to, you know, pounce.

Speaker 2

Yeah, malware is a serious threat for sure, but you know, the more we learn about how it works, the better we can defend against it. That's where wire Shark comes in. It's like having a microscope, you know, for your network traffic. You can examine these these little malicious programs in detail, so we.

Speaker 1

Can actually see this malware like crawling around in our networks. That's kind of freaky but also pretty cool. What can wire shark tell us about like malware infections?

Speaker 2

Well, we can analyze the traffic pattern, see how the malware is communicating, you know, maybe with its command and control servers. We can see what files its downloading or uploading. We can even figure out which vulnerabilities it's exploiting.

Speaker 1

So it's like having a security camera that shows us not just the break in, but also what the burglar did, what they took everything exactly.

Speaker 2

And there's this really interesting case study in the book wire Shark Network Security. It's about the black Hole exploit kit, which was notorious for how effective it was at compromising systems.

Speaker 1

Sploit kits just the name sounds scary. What are they? Exactly?

Speaker 2

Imagine a toolkit for hackers, ready made with all sorts of exploits, you know, designed to target specific vulnerabilities, could be in software, web browsers, operating systems, you name it. It's like a master key that can unlock any door, but for hackers.

Speaker 1

So instead of having to create their own exploits, they can just buy one of these kits and start hacking. That's unsettling. So how does wire Shark help us deal with these exploit kits?

Speaker 2

Wire Shark was crucial in figuring out how black Hole worked and then you know, developing ways to stop it. By analyzing the network traffic, we can actually see the kit in action. We can see that exploit code being delivered, see which vulnerabilities are targeted, even see those malicious payloads being installed.

Speaker 1

Okay, so walk me through that analysis. What kind of clues did wire shark uncover.

Speaker 2

First we find the IP address of the infected you know, that's usually where the suspicious requests are coming from. Then we look for any any unusual port numbers. Malware often uses non standard ports to talk to its command and control server, so that's a big red flag.

Speaker 1

So like finding a secret door behind a bookshelf, Right, something's not quite right exactly.

Speaker 2

We also look for any signs that a website's been compromised. A lot of times malware infections start with visiting a website that's been hacked. You know, it's like walking into a store that looks normal, but it's actually a front for something shady.

Speaker 1

So it's all about noticing the things that don't add up. Yeah, those little inconsistencies in the network traffic exactly.

Speaker 2

And then of course there's the malware itself. With wireshark, we can pull those malicious files right out of the network traffic, so we can analyze them. It's like catching the burglar with the stolen goods, you know, solid evidence.

Speaker 1

And in this black hole case, what did you find?

Speaker 2

We found that Java exploit file, the one used in the initial attack, and we also found three different executable payloads that were downloaded and installed on the victims machine. Those payloads, they contain the actual malware that would carry out the attack, you know, steal data, spy on the user, launch other attacks.

Speaker 1

So wire sharks like a detective, gathering evidence, helping us understand the attacker's methods and the damage they've done. That's incredible.

Speaker 2

It is a powerful tool, and that information is crucial for you know, patching those vulnerabilities and preventing future attacks.

Speaker 1

Okay, now let's shift gears a bit. Let's talk about botnets. I always think of them as these like armies of zombie computers botnets.

Speaker 2

Yeah, yeah, sounds scary. Can you explain, like what they are exactly and how they use our computers against us.

Speaker 1

A botnet is a network of compromised computers called bots. They're all controlled remotely by an attacker, often without the owner even realizing it your computer basically becomes a zombie, you know, following orders from this malicious mastermind.

Speaker 2

That's a creepy thought. And you mentioned earlier that IRC is often used in these botnet operations, right right.

Speaker 1

IRC Internet Relay Chat. It's communication channel, and it's commonly used by botnets. It's like a back channel for the attacker to send commands to the bot army and receive data that's been stolen. So like a secret meeting place where the criminals hangout, plan their next move and swap stolen goods.

Speaker 2

A perfect analogy. And with wire Shark, we can listen in on those IRC conversations. We can see those commands, the stolen data, even identify the botmaster, the one in control.

Speaker 1

Wait, so we can actually find out who these cyber criminals are, where they're located.

Speaker 2

Potentially, Yes, we can see what kind of attacks the botnet is launching, what they're stealing, who they're targeting, even maybe even the geographical location of the botmaster. This is super valuable information for law enforcement and security researchers, you know, those trying to take down these botnets and catch the criminals.

Speaker 1

It's like having a spy on the inside, giving US intel on the enemy. That's amazing.

Speaker 2

And with wire Shark, we can also analyze the botnets, traffic patterns, see which machines are infected, see how they talk to each other into those command and control servers. It's fascinating stuff.

Speaker 1

So it's not just about catching the bad guys, it's about understanding how they operate so we can disrupt.

Speaker 2

Them, stop them exactly. And this brings up a really important point. You know, we've been talking about security threats, but wire Shark isn't just for cybersecurity experts. It's also really useful for troubleshooting those everyday network performance issues. You know, things like can be just as frustrating as a cyber attech.

Speaker 1

Oh yeah, totally. So like wire Shark can help me figure out why my internet slow, why downloads take forever, why my video calls keep dropping.

Speaker 2

Absolutely, it can pinpoint those bottlenecks, see if you're losing packets, analyze those latency issues, diagnose all sorts of problems that slow things down. It's like having a diagnostic tool for your network.

Speaker 1

Like a mechanic for my network. I like that. So the book mentioned some real world examples of this.

Speaker 2

Right, it does there's one about slow Internet speeds caused by too much bit torrent traffic, and another one about sluggish downloads because because of some misconfigured devices.

Speaker 1

So wire Shark's kind of like a Swiss army knife for network analysis. You can help us with all kinds of problems, big or small.

Speaker 2

I like that analogy, and you know, the key takeaway here is that anyone can use wire shark, no matter their technical skill level. Whether you're a network admin, security pro, or just someone curious about how their network works. Wire Shark gives you the power to analyze traffic, diagnose problems, and make your network more secure and reliable.

Speaker 1

It's like having a superpower, you know, being able to see what's normally invisible, to understand all that digital chatter going on around us, and with that knowledge we can protect ourselves and our networks. We're not just sitting ducks.

Speaker 2

Anymore, well said. I encourage everyone to check out wire Shark. The official website's got tons of resources like sample capture files, tutorials, even a community forum where you can connect with other users.

Speaker 1

Who knows you might just discover some mysteries lurking in your own network traffic. Wire Shark gives you the key to unlock those secrets. Well that's about it for our deep dive into the world of wire Shark. Thanks for joining us, and until next time, stay curious, stay safe, and happy networking.

Transcript source: Provided by creator in RSS feed: download file
For the best experience, listen in Metacast app for iOS or Android