Latest / CyberCode Academy / Course 17 - Computer Network Security Protocols And Techniques | Episode 1: Computer Network Security: Foundations, Core Aspects
Transcript
- 0:00Speaker 1: Welcome back to the deep dive. Today, we're jumping into
- 0:03Speaker 1: something that well affects pretty much everyone listening. Computer network security.
- 0:09Speaker 2: It really does. I mean, at its core, a network
- 0:11Speaker 2: is just you know, two or more computers linked together
- 0:14Speaker 2: sharing things.
- 0:15Speaker 1: Super simple concept. But what they're sharing is not so simple.
- 0:20Speaker 1: We're talking about a constant, massive flow of really valuable data.
- 0:25Speaker 2: Oh absolutely, financial data company secrets, your personal information. It's
- 0:29Speaker 2: all zipping across these links every single second. And protecting
- 0:33Speaker 2: that flow.
- 0:34Speaker 1: That's the whole game exactly. And before we get into
- 0:37Speaker 1: all the fancy tech, you know, the firewalls and all that,
- 0:39Speaker 1: we have to go back to the absolute basis first principles. Yeah,
- 0:43Speaker 1: so that this deep dive is all about the four
- 0:46Speaker 1: non negotiable requirements, the pillars that have to be there
- 0:49Speaker 1: for any digital communication to be called truly secure.
- 0:52Speaker 2: It's really the core emution, isn't it. How do we
- 0:55Speaker 2: build trust into a system that's designed to be open.
- 0:57Speaker 2: You have to set some ground rules.
- 0:59Speaker 1: Okay, let's do it. Let's get into these four pillars.
- 1:01Speaker 1: We can start with the one I think most people
- 1:03Speaker 1: immediately think of when they hear the word security.
- 1:07Speaker 2: That would be confidentiality.
- 1:09Speaker 1: Right.
- 1:10Speaker 2: And the principle is pretty straightforward. If a sunder transmits
- 1:13Speaker 2: information to a receiver, well only that specific receiver should
- 1:18Speaker 2: be able to understand it.
- 1:19Speaker 1: So if I send you a message and someone else
- 1:21Speaker 1: gets a hold of the data, it shouldn't look like
- 1:23Speaker 1: a message. You should just look like what random.
- 1:25Speaker 2: Garbage exactly, unintelligible noise. And the way we do that,
- 1:29Speaker 2: the main tool is encryption, and decryption.
- 1:32Speaker 1: You scramble it on one end and scramble it on
- 1:33Speaker 1: the other.
- 1:34Speaker 2: That's the idea. But and this is where it gets
- 1:36Speaker 2: really tricky. The challenge isn't the math behind the encryption.
- 1:41Speaker 2: It's strong. The real problem is key management.
- 1:45Speaker 1: Ah okay, tell me about that.
- 1:46Speaker 2: Well, think about it. If Alice needs to send an
- 1:49Speaker 2: encrypted message to Bob, they both need the same secret
- 1:53Speaker 2: key to lock and unlock it. How do they agree
- 1:56Speaker 2: on that key without an intruder, you know, listening in
- 1:58Speaker 2: on that conversation and just rabbing the key as it
- 2:01Speaker 2: goes by.
- 2:01Speaker 1: So the whole system is only as strong as the
- 2:04Speaker 1: way you share the key. That feels like a huge
- 2:06Speaker 1: vulnerability right there.
- 2:07Speaker 2: It is.
- 2:08Speaker 1: It's a massive challenge, which I guess brings us right
- 2:11Speaker 1: to the second pillar, because keeping a message secret isn't
- 2:15Speaker 1: much good if you don't actually know who you're talking
- 2:18Speaker 1: to precisely.
- 2:19Speaker 2: And that is authentication. This is all about confirming the
- 2:22Speaker 2: identity of everyone involved before you start sending the sensitive stuff.
- 2:26Speaker 1: And this has to be more than just me typing
- 2:28Speaker 1: in a password.
- 2:29Speaker 2: Right, oh way, more, it's about establishing trust. When you
- 2:33Speaker 2: log into your bank, sure, you authenticate yourself with your password,
- 2:36Speaker 2: but at the exact same time, the bank server has
- 2:39Speaker 2: to authenticate itself to your browser to.
- 2:42Speaker 1: Prove it's the real bank and not some fake website.
- 2:45Speaker 2: It's a two way street, a mutual verification. You both
- 2:47Speaker 2: have to prove who you are, okay.
- 2:49Speaker 1: So confidentiality is the lock box. Authentication is the ID
- 2:53Speaker 1: check at the door. But even then, the box still
- 2:56Speaker 1: has to travel from point A to point B, and.
- 2:58Speaker 2: That's a dangerous journey, which leads us straight to our
- 3:01Speaker 2: third pillar, message integrity.
- 3:04Speaker 1: Message integrity this is so critical.
- 3:06Speaker 2: It's the guarantee that the message you received is the
- 3:09Speaker 2: exact same message that was sent, that nothing has been
- 3:12Speaker 2: changed or altered or even added along the way.
- 3:15Speaker 1: Like putting a tamperproof seal on an envelope. You'd know
- 3:18Speaker 1: if someone opened it.
- 3:19Speaker 2: That's a perfect analogy. And we do it with math,
- 3:22Speaker 2: specifically with something called cryptographic hashing.
- 3:26Speaker 1: Okay, how does that work?
- 3:27Speaker 2: The sender takes the message, the whole thing, and runs
- 3:30Speaker 2: it through an algorithm. This creates a unique, fixed length
- 3:34Speaker 2: digital fingerprint hash.
- 3:37Speaker 1: A fingerprint of the data itself.
- 3:39Speaker 2: Yes, and if you change anything in the original message,
- 3:42Speaker 2: even just a single comma, the fingerprint that hash changes completely.
- 3:46Speaker 1: So the center sends the message and this fingerprint correct.
- 3:49Speaker 2: The receiver gets it, runs the same calculation on the
- 3:52Speaker 2: message they received, and compares the two fingerprints. If they match,
- 3:56Speaker 2: the message has integrity. If they don't, you know immediately
- 3:59Speaker 2: it's been tampered with.
- 4:00Speaker 1: That's incredible. It prevents someone from changing a transfer one
- 4:03Speaker 1: hundred dollars command into transfer ten thousand dollars while it's
- 4:07Speaker 1: in transit.
- 4:08Speaker 2: That's exactly the kind of attack it prevents. And that
- 4:11Speaker 2: brings us to the fourth and final pillar. This one's
- 4:14Speaker 2: a little different from the others.
- 4:15Speaker 1: And that is access and availability. Right.
- 4:18Speaker 2: The first three are all about protecting the data. Availability
- 4:22Speaker 2: is about protecting the service itself. It just means that
- 4:25Speaker 2: the services on the network must be available to authorize
- 4:28Speaker 2: users whenever they need them.
- 4:30Speaker 1: So even if a hacker can't steal my data or
- 4:33Speaker 1: change it, if they can just crash the server so
- 4:37Speaker 1: I can't access my own bank account, security has failed.
- 4:40Speaker 1: You got it.
- 4:41Speaker 2: The service has to be usable, and there's a tension there,
- 4:43Speaker 2: you know. Sometimes making things super confidential with lots of
- 4:47Speaker 2: checks can slow a system down, which can hurt availability.
- 4:50Speaker 2: It's all a balancing act.
- 4:51Speaker 1: Okay, I think we have the rules of the game
- 4:53Speaker 1: laid out. Now let's introduce the players. Anyone who's studied
- 4:56Speaker 1: this stuff has heard of Alice, Bob and.
- 4:59Speaker 2: Eve sick archetypes. They just make it easier to talk
- 5:01Speaker 2: about these really complex ideas.
- 5:03Speaker 1: So Alice and Bob, they're the good guys. They just
- 5:06Speaker 1: want to communicate securely, right Alice.
- 5:09Speaker 2: Wants to send some information some packets over a channel
- 5:12Speaker 2: to Bob. They are the legitimate parties.
- 5:15Speaker 1: But it's important to remember they aren't always you know
- 5:17Speaker 1: people are They.
- 5:18Speaker 2: Not at all? And that's a key point. In the
- 5:20Speaker 2: real world, Alice and Bob could be two massive network
- 5:24Speaker 2: routers exchanging routing table.
- 5:26Speaker 1: Updates, and a routing table is like the GPS for
- 5:30Speaker 1: the Internet, telling data where.
- 5:32Speaker 2: To go, a fantastic way to put it, or they
- 5:34Speaker 2: could be two DNS servers or a more every day example.
- 5:38Speaker 2: Alice is you on your laptop buying something online. Bob
- 5:42Speaker 2: is the e commerce websites server.
- 5:44Speaker 1: So Alice and Bob are the honest players. Then there's
- 5:47Speaker 1: Eve I. Eve is the spoiler. She's the intruder, the attacker.
- 5:51Speaker 1: She's hanging out on that channel between Alice and Bob, and.
- 5:53Speaker 2: Her one and only goal is to undermine their communication
- 5:56Speaker 2: by breaking one of our four pillars.
- 5:58Speaker 1: She wants to intercept, chain, or inject her own messages.
- 6:01Speaker 1: So let's get into her playbook. How does she actually
- 6:03Speaker 1: attack these pillars we've just set up?
- 6:05Speaker 2: Okay, let's connect the dots. Her simplest move, the one
- 6:08Speaker 2: that violates confidentiality, is just Eve's drop its.
- 6:11Speaker 1: Listening in Yep, she just drops on the communication. She
- 6:15Speaker 1: might not be able to read it if it's encrypted,
- 6:17Speaker 1: but she has the raw data. Now she's violated that
- 6:19Speaker 1: principle of privacy.
- 6:21Speaker 2: But she's not usually that passive, is she not?
- 6:23Speaker 1: At all? Her next step is to get active. That's
- 6:25Speaker 1: manipulation and insertion, and this is a direct attack on
- 6:29Speaker 1: message integrity.
- 6:30Speaker 2: So she's not just listening, she's changing things.
- 6:32Speaker 1: She's changing message content, the leading parts of it, maybe
- 6:36Speaker 1: even injecting her own fake messages into the stream.
- 6:39Speaker 2: Like in our router example, Alice sends an update to
- 6:42Speaker 2: Bob about a safe route, but Eve intercepts it and
- 6:45Speaker 2: changes the destination to her own malicious server.
- 6:49Speaker 1: A perfect and very dangerous example of what can happen.
- 6:52Speaker 1: But if Eve is really going for it, she aims
- 6:54Speaker 1: for the ultimate power position, the man in the middle exactly.
- 6:58Speaker 1: It's a form of hijacking. She weds herself right in
- 7:00Speaker 1: the middle of the path. Everything from Alice goes to
- 7:03Speaker 1: Eve first. Eve looks at it, maybe changes it, and
- 7:06Speaker 1: then sends it on to Bob, and she does the
- 7:08Speaker 1: same thing in reverse. That's terrifying because now she can
- 7:12Speaker 1: read everything, violating confidentiality, and change everything, violating integrity. But
- 7:18Speaker 1: how does she not get caught? How do Alice and
- 7:20Speaker 1: Bob not realize they're talking through a malicious third party.
- 7:23Speaker 2: Well, that's where she has to violate our second pillar, authentication.
- 7:27Speaker 2: She has to pretend. This is where impersonation and spoofing
- 7:30Speaker 2: come in.
- 7:30Speaker 1: Spoofing, how does that work practically?
- 7:32Speaker 2: So Eve will send a packet to Bob, but she'll
- 7:35Speaker 2: manually change the source address in that packet's header. She'll
- 7:38Speaker 2: put Alice's address there instead of her own.
- 7:41Speaker 1: So when Bob gets the packet, it looks like it
- 7:42Speaker 1: came directly from Alice. His system trusts it.
- 7:46Speaker 2: He's been fooled. The authentication was bypassed, and this lie.
- 7:50Speaker 2: The spoofing is the key ingredient for one of the
- 7:52Speaker 2: most disruptive attacks out there.
- 7:54Speaker 1: The one that attacks our last pillar availability.
- 7:57Speaker 2: You got it. Spoofing is essential for launching denial of
- 8:00Speaker 2: service or DOSS attacks.
- 8:02Speaker 1: Okay, break that down for us. How does she use
- 8:04Speaker 1: a fake address to take a server down?
- 8:07Speaker 2: She uses that spoofing technique to pretend to be Alice
- 8:10Speaker 2: or hundreds of other computers and just floods Bob's server
- 8:14Speaker 2: with a tidal wave of fake requests.
- 8:16Speaker 1: And because all those requests look legitimate, Bob's server tries
- 8:20Speaker 1: to answer every single one.
- 8:21Speaker 2: It tries to but it's resources, it's memory, it's processing power,
- 8:26Speaker 2: they all get completely consumed by this flood of noise.
- 8:29Speaker 2: It's totally overwhelmed.
- 8:30Speaker 1: So then when the real Alice tries to connect, she can't.
- 8:33Speaker 2: Bob is too busy to respond to her legitimate request.
- 8:37Speaker 2: The service is down for all the real users. Availability
- 8:40Speaker 2: has been compromised.
- 8:41Speaker 1: Wow, you can really see how a failure in one
- 8:44Speaker 1: pillar like authentication, can lead directly to a catastrophic failure
- 8:49Speaker 1: in another, like availability. They're all connected.
- 8:52Speaker 2: That's the whole picture. That's the ecosystem of network security.
- 8:55Speaker 2: Every system we build today is designed specifically to defend
- 8:58Speaker 2: against Eve's playbook by reinforcing those four pillars.
- 9:00Speaker 1: So we have the non negotiables confidentiality, authentication, integrity, and availability,
- 9:05Speaker 1: and we have Eve, who is always trying to tear
- 9:07Speaker 1: them down.
- 9:08Speaker 2: It's a constant race. But knowing these fundamentals is your
- 9:11Speaker 2: best defense. If you understand the principles, you can spot
- 9:15Speaker 2: the vulnerabilities.
- 9:16Speaker 1: All right. To leave everyone with something to think about,
- 9:18Speaker 1: let's pose a review question. Imagine this scenario. Eve successfully
- 9:23Speaker 1: pulls off a man in the middle attack. She is
- 9:25Speaker 1: intercepting and changing those critical routing table updates between two routers,
- 9:30Speaker 1: Alice and Bob Okay. Which of the four pillars is
- 9:34Speaker 1: she most directly violating in that moment? Is it confidentiality,
- 9:39Speaker 1: authentication or message integrity?
- 9:42Speaker 2: It's a great question. Think about what's at the core
- 9:45Speaker 2: of the attack. Is she just learning a secret, is
- 9:47Speaker 2: she pretending to be someone else, or is she fundamentally
- 9:50Speaker 2: changing the content of the data itself. The answer tells
- 9:53Speaker 2: you where you'd need to focus your.
- 9:55Speaker 1: Defenses, an excellent way to frame it, and that's it
- 9:58Speaker 1: for this deep dive. We hope this gave you a
- 10:00Speaker 1: much clearer picture of the absolute foundations of digital security.
- 10:04Speaker 1: Keep learning and we'll catch you next time.