Latest / CyberCode Academy / Course 10 - Network Security Fundamentals | Episode 4: VPNs, Tunneling, and Secure Remote Access Technologies
Transcript
- 0:00Speaker 1: Okay, so imagine this for a second. You're not in
- 0:03Speaker 1: the office. You could be anywhere, really working from home,
- 0:06Speaker 1: sitting in a coffee shop, maybe just using your phone
- 0:08Speaker 1: on the go, and you need to access some really
- 0:10Speaker 1: sensitive company data. How do we make sure that information
- 0:13Speaker 1: stays completely secure from the second it leaves the company
- 0:18Speaker 1: server to the moment it hits your screen.
- 0:20Speaker 2: That is the absolute core question, isn't it? And the
- 0:23Speaker 2: answer really is a virtual private network a VPN. Today
- 0:27Speaker 2: we're going deep into the tech that makes all of
- 0:29Speaker 2: this secure remote work actually possible. And that word virtual
- 0:34Speaker 2: is key. This isn't a physical cable, It's a conceptual connection,
- 0:37Speaker 2: a secure tunnel that can stretch across the entire planet.
- 0:40Speaker 1: Okay, let's unpack that. I think for this deep dive,
- 0:43Speaker 1: our mission should be to get past the ads you
- 0:45Speaker 1: see everywhere and really understand three things. First, what a
- 0:48Speaker 1: VPN actually does, Second, how it does it this idea
- 0:51Speaker 1: of tunneling, and third the security protocols that make it
- 0:54Speaker 1: all work that guarantee our data is safe. This stuff
- 0:57Speaker 1: is essential for everyone now, not just big corporations.
- 1:00Speaker 2: Right. The whole point of a VPN is to basically
- 1:03Speaker 2: stretch your private, secure network over a public and frankly
- 1:07Speaker 2: insecure one like the Internet. It creates that virtual link
- 1:10Speaker 2: allowing secure communication between well any two points, and.
- 1:14Speaker 1: We rely on them so much because they deliver on
- 1:16Speaker 1: those two fundamental promises of security we always come back
- 1:19Speaker 1: to precisely.
- 1:20Speaker 2: First up is confidentiality. That's your secrecy. It's achieved with
- 1:25Speaker 2: strong encryption, which just scrambles the data so it's unreadable
- 1:29Speaker 2: to anyone who might be snooping. Then you have integrity.
- 1:32Speaker 2: We use something called hashing for that. It creates a
- 1:35Speaker 2: unique digital fingerprint for the data. If even a single
- 1:38Speaker 2: bit of that data gets changed in transit, the fingerprint
- 1:41Speaker 2: won't match, and you know it's been tampered with. A
- 1:43Speaker 2: VPN has to do both.
- 1:45Speaker 1: Which is exactly why just logging into a Wi Fi
- 1:47Speaker 1: network with a password, you know, like WPA two, it's
- 1:51Speaker 1: just not enough. People think that little lock icon means
- 1:53Speaker 1: they're safe.
- 1:54Speaker 2: It's a really dangerous assumption. Even on a password protected network,
- 1:58Speaker 2: the administrator or any clever person on that same network
- 2:02Speaker 2: could potentially sniff your traffic if it's not encrypted. A
- 2:06Speaker 2: VPN gives you that end to end guarantee. It makes
- 2:09Speaker 2: the network you're on almost irrelevant.
- 2:11Speaker 1: And this is where things have gotten really interesting lately.
- 2:14Speaker 1: It's not just for corporate road warriors anymore. We're seeing
- 2:17Speaker 1: this huge surge in regular people, private citizens using VPNs
- 2:22Speaker 1: for just basic privacy and anonymity. I mean, the ads
- 2:25Speaker 1: are everywhere.
- 2:26Speaker 2: It shows that people are finally waking up to the
- 2:28Speaker 2: threats and honestly, even on a network you think is safe,
- 2:31Speaker 2: like your cellular connection from a big carrier like Verizon
- 2:34Speaker 2: or AT and T, you're not completely immused.
- 2:36Speaker 1: Well that's a big one. Most people totally overlook the
- 2:39Speaker 1: risk on their cell phone. They think five G is
- 2:41Speaker 1: just inherently secure.
- 2:42Speaker 2: Not entirely. We still have to worry about threats like
- 2:45Speaker 2: IMSI attacks. That's where an attacker sets up a fake
- 2:48Speaker 2: cell tower sometimes called a sting ray, and tricks your
- 2:51Speaker 2: phone into connecting to it. If your data isn't in
- 2:54Speaker 2: a VPN tunnel, they can just siphon it all up.
- 2:57Speaker 2: So the advice now for any organization is to have
- 3:00Speaker 2: VPNs on by default on all devices, laptops, phones, everything.
- 3:04Speaker 1: Okay, so let's get into the mechanics. How does the
- 3:06Speaker 1: VPN actually build this punnel to carry our data? Right?
- 3:10Speaker 2: So the mechanism is called tunneling, and it basically uses
- 3:13Speaker 2: the existing rules of the Internet, the TCPIP stack to
- 3:16Speaker 2: encapsulate packets. Think of it like taking your data, putting
- 3:20Speaker 2: it in a locked box and then putting that lock
- 3:22Speaker 2: box inside an armored truck for delivery. And because the
- 3:25Speaker 2: Internet protocol has different layers, we can actually choose which
- 3:28Speaker 2: layer to apply that security. It's really flexible.
- 3:31Speaker 1: So for applying security at different layers. What are the
- 3:33Speaker 1: main ways we see this done in the real world?
- 3:36Speaker 1: What are the big protocols?
- 3:37Speaker 2: We really lean on two major approaches today. The first
- 3:40Speaker 2: is the tlsssl VPN now till US Transport Layer Security
- 3:46Speaker 2: is the modern version that replaced the older SSL. This
- 3:49Speaker 2: one works at layer four, the transport layer. It's often
- 3:52Speaker 2: the kind you access through a web browser or a
- 3:54Speaker 2: little app and it uses the same security that protects
- 3:56Speaker 2: you on banking websites.
- 3:58Speaker 1: That sounds super convenient, but I know there's a huge
- 4:00Speaker 1: catch if you don't manage it right.
- 4:01Speaker 2: Well. Absolutely, Because these VPNs are often exposed directly to
- 4:04Speaker 2: the Internet and use a simple username and password, they
- 4:08Speaker 2: are a massive target for brute force attacks. An attacker
- 4:11Speaker 2: can just sit there and try millions of password combinations,
- 4:15Speaker 2: which is why you must have an account lockout policy.
- 4:18Speaker 2: You know, after three or five bad password attempts, so
- 4:21Speaker 2: the account is locked. It's non negotiable.
- 4:23Speaker 1: Makes sense. Okay, So what's the second major approach, the
- 4:26Speaker 1: one that's more of a combo deal.
- 4:27Speaker 2: That would be the combination of LTTP and ip SC.
- 4:31Speaker 2: And this is really cool because it uses different layers
- 4:33Speaker 2: for different jobs. LGTP the layer two tunneling protocol that
- 4:36Speaker 2: I honestually just bills the tunnel. It creates that point
- 4:38Speaker 2: to point connection. And then ip SC Internet Protocol Security
- 4:42Speaker 2: comes in at layer three and provides all the encryption
- 4:45Speaker 2: and the heavy duty security.
- 4:47Speaker 1: I want to pause on ip SEC because this is
- 4:49Speaker 1: where it gets really interesting. It's not just about keeping
- 4:51Speaker 1: things secret, it's about it's about creating a paper trail
- 4:54Speaker 1: right for accountability.
- 4:56Speaker 2: You absolutely hit the nail on the head. iPSC is
- 4:58Speaker 2: brilliant because it splits its duties into two parts. First,
- 5:01Speaker 2: you have the Authentication header or H. This part handles
- 5:06Speaker 2: authentication authorization and the really important one, non repudiation.
- 5:11Speaker 1: Non repudiation I love that word. It just means a
- 5:14Speaker 1: user can't turn around and deny they did something on
- 5:16Speaker 1: the network exactly.
- 5:17Speaker 2: The system can prove where the data came from and
- 5:20Speaker 2: that it hasn't been changed. So if someone deletes a
- 5:22Speaker 2: critical database and then says wasn't me, the logs backed
- 5:26Speaker 2: by AH provide very strong evidence to the contrary.
- 5:30Speaker 1: So AH is the integrity check the auditor. What about
- 5:33Speaker 1: the secrecy part.
- 5:34Speaker 2: That's the second piece, the ESP or encapsulating security payload.
- 5:39Speaker 2: This part's job is simple encrypt the data. It scrambles
- 5:43Speaker 2: the content, so even if someone intercepts the traffic, all
- 5:45Speaker 2: they see is gibberish. It's the combination of AH for
- 5:48Speaker 2: integrity and ESP for confidentiality that makes ip SC so powerful.
- 5:54Speaker 1: Okay, it's easy to get lost in all these layers,
- 5:56Speaker 1: but let's bring it back up. What does all this
- 5:59Speaker 1: tech mean for the person trying to manage a remote workforce?
- 6:02Speaker 1: How do you go from a secure protocol to a
- 6:05Speaker 1: successful real world strategy.
- 6:07Speaker 2: That's the million dollar question. You have to move from
- 6:09Speaker 2: just technology to policy. A good remote access strategy really
- 6:12Speaker 2: stands on three pillars. Connectivity, strong encryption, which we've covered,
- 6:17Speaker 2: and really solid exhalation, authentication, authorization and accounting.
- 6:21Speaker 1: Or triple A connectivity speed feels like a small thing,
- 6:24Speaker 1: but I've heard stories where it just completely tanks productivity.
- 6:27Speaker 2: It can be the biggest hurdle. I remember at case
- 6:30Speaker 2: years ago with a user trying to connect from a
- 6:32Speaker 2: super remote part of Alaska. Their pay time the latency
- 6:37Speaker 2: was over two seconds. They were just constantly getting timed out.
- 6:41Speaker 2: So your policies have to account for people on slow
- 6:43Speaker 2: or unreliable Internet connections, and not just slow but sometimes
- 6:48Speaker 2: restricted right depending on where in the world they are. Precisely,
- 6:51Speaker 2: if you have employees traveling, say behind the Great Firewall
- 6:54Speaker 2: of China, their VPN traffic might get slowed down or
- 6:57Speaker 2: even blocked completely. Your security team to have backup plans
- 7:01Speaker 2: for that.
- 7:01Speaker 1: Okay, so let's talk about that third pillar triple A.
- 7:04Speaker 1: You mentioned non repudiation, which tells me you need one
- 7:07Speaker 1: central system managing who is who and logging everything.
- 7:11Speaker 2: Absolutely, you cannot have identity managed in a scattered way.
- 7:14Speaker 2: We use centralized systems things like Radius or it's newer,
- 7:17Speaker 2: more capable successor diameter Diameter. Yeah, I know, geometry jokes
- 7:21Speaker 2: and cybersecurity, but these systems, or even single sign on
- 7:24Speaker 2: like active directory, give you that one single source of
- 7:27Speaker 2: truth for who logged in, when and from where. Auditibility
- 7:31Speaker 2: is everything.
- 7:32Speaker 1: And beyond the tech, there's the human side, the day
- 7:35Speaker 1: to day logistics that it has to deal with that
- 7:38Speaker 1: needs a policy too, right, it's.
- 7:40Speaker 2: Not negotiable who supports these remote users. What happens if
- 7:43Speaker 2: an employee's monitor breaks at their home office? Does it
- 7:46Speaker 2: ship them a new one? You have to define all
- 7:48Speaker 2: of this beforehand, and maybe most importantly, you have to
- 7:52Speaker 2: define what level of access they're even allowed.
- 7:54Speaker 1: That's a huge point. You don't want to give someone
- 7:56Speaker 1: full remote control of a critical server just so they
- 7:59Speaker 1: can check.
- 7:59Speaker 2: Their email exactly. Does the user just need access to
- 8:03Speaker 2: Outlook or do they need to control a whole computer
- 8:06Speaker 2: with software like RDP Team Viewer or Citrix. The more
- 8:09Speaker 2: limited the access, the smaller the risk.
- 8:11Speaker 1: Which brings us to a final and pretty urgent warning
- 8:16Speaker 1: about all this remote access software tatching. It cannot be
- 8:19Speaker 1: said enough. Every one of these remote access tools is
- 8:22Speaker 1: a potential doorway for an attacker. We've seen major attacks
- 8:25Speaker 1: targeting things like VNC recently. If you use this software,
- 8:29Speaker 1: keeping it patched and up to date is probably the
- 8:32Speaker 1: single most important security task you have for your remote environment.
- 8:36Speaker 1: So to wrap up our deep dive, VPNs are really
- 8:38Speaker 1: the backbone of modern remote work. They create secure encrypted
- 8:42Speaker 1: tunnels using protocols like l twotpip sec or TLS, and
- 8:46Speaker 1: the guarantee both the confidentiality and the integrity of your data,
- 8:49Speaker 1: whether you're a huge company or just someone trying to
- 8:51Speaker 1: stay safe online.
- 8:52Speaker 2: And remember, your firewall is usually the device that manages
- 8:55Speaker 2: these connections, so check the documentation, configure it properly, and
- 8:59Speaker 2: make sure you enable those critical security controls like account
- 9:02Speaker 2: lockouts to protect your entire network from attack.
- 9:06Speaker 1: And that leaves us with a final thought for you
- 9:08Speaker 1: to chew on. We talked about how ip SX authentication
- 9:11Speaker 1: header enforces non repudiation. Now, considering a remote user is
- 9:15Speaker 1: by definition in an untrusted location, what's the one key
- 9:19Speaker 1: action your monitoring system has to take during that VPN
- 9:22Speaker 1: session to create a truly undeniable, legally sound record of
- 9:26Speaker 1: what that user did. The answer is in how you
- 9:28Speaker 1: connect those technical logs to your formal official company policies.
- 9:32Speaker 1: Think about what it takes to turnal line and log
- 9:34Speaker 1: file into evidence.