Latest / CyberCode Academy / Course 14 - Wi-Fi Pentesting | Episode 11: Securing Wireless Networks: Countermeasures and Configuration
Transcript
- 0:00Speaker 1: Welcome back to the deep dive. Today, we are moving
- 0:02Speaker 1: past that basic idea that you know, a simple password
- 0:06Speaker 1: is all you need for your network. We're going to
- 0:08Speaker 1: build a configuration that's actually designed to stand up to
- 0:11Speaker 1: some pretty sophisticated modern attacks.
- 0:14Speaker 2: Which is so essential because for most people Wi Fi security,
- 0:18Speaker 2: it's just it stops at that one pass where they
- 0:21Speaker 2: probably entered what six years ago exactly, But the threats
- 0:24Speaker 2: are layered now. We have to think about everything, protocol flaws,
- 0:28Speaker 2: brute force cracking, and even social engineering, the Evil Twin
- 0:32Speaker 2: kind of stuff.
- 0:33Speaker 1: So our mission today is to distill those expert steps
- 0:36Speaker 1: you need to go from just you know, vulnerable convenience
- 0:39Speaker 1: to actual network resilience. This isn't just about a strong password. No,
- 0:43Speaker 1: it's about security on through levels, the encryption protocols, the
- 0:47Speaker 1: hardware settings in your router, and maybe the biggest wildcard,
- 0:50Speaker 1: the people using the network.
- 0:51Speaker 2: That's it. When any one of those fails, the whole
- 0:53Speaker 2: network is compromised.
- 0:54Speaker 1: Okay, let's start at the foundation, then the absolute non
- 0:57Speaker 1: negotiable weak links, and the first one it feels like
- 1:01Speaker 1: a relic, but we still have to say it WEP.
- 1:04Speaker 2: WEP wired equivalent privacy. You should, honestly, you should just
- 1:08Speaker 2: treat it as if it doesn't exist in a modern
- 1:10Speaker 2: security setup.
- 1:11Speaker 1: So if you see it, just run run.
- 1:13Speaker 2: If your network is using it, I don't care how
- 1:15Speaker 2: complex your password is, change it immediately. It is fundamentally broken.
- 1:20Speaker 2: The initialization vector is predictable, the key size is tiny.
- 1:26Speaker 1: So it's easy to crack.
- 1:27Speaker 2: Trivial we're talking minutes, especially with flaws like in shared
- 1:31Speaker 2: key authentication. It's just it's an open door.
- 1:33Speaker 1: Okay, So WEP is the antique threw out. The second
- 1:36Speaker 1: major vulnerability is well, it's way more common. It's hiding
- 1:40Speaker 1: on almost every modern router WPS.
- 1:44Speaker 2: Wi Fi protected setup. It really is a hidden back door.
- 1:47Speaker 1: It was meant to be simple, right, push a button
- 1:49Speaker 1: and you're connected.
- 1:50Speaker 2: Exactly, but the mechanism for that pion authentication is a disaster.
- 1:55Speaker 2: The PI is eight digits, but and this is the key.
- 1:59Speaker 2: The system validates the first four digits and then the
- 2:02Speaker 2: last four separately, so.
- 2:03Speaker 1: It's not actually checking an eight digit number, it's checking
- 2:06Speaker 1: two four digit.
- 2:07Speaker 2: Numbers precisely, which just craters the number of combinations an
- 2:10Speaker 2: attacker has to test. It's dramatically reduced.
- 2:12Speaker 1: And There are tools right like reaver that just automate
- 2:15Speaker 1: that whole process.
- 2:16Speaker 2: Yeah, they just hammer that tiny search space, force the
- 2:19Speaker 2: router to give up the pin, and then that pin
- 2:22Speaker 2: unlocks the full encryption key.
- 2:24Speaker 1: So what's the solution.
- 2:26Speaker 2: The only secure solution is to disable it completely. Go
- 2:29Speaker 2: into your router's admin page and turn WPS off. I mean,
- 2:33Speaker 2: even if your router tries to slow down attacks, the
- 2:37Speaker 2: flaw still there. Just shut it off. Those attacks become
- 2:40Speaker 2: completely useless.
- 2:41Speaker 1: That's great advice for a home user. But what about
- 2:44Speaker 1: say public Wi Fi. We see captive portals everywhere coffee shops, airports,
- 2:51Speaker 1: you connect, a browser, window pops up. Why are those
- 2:54Speaker 1: so insecure?
- 2:55Speaker 2: Because they're based on trust, not on cryptography. When you
- 2:59Speaker 2: first connect, before that portal even loads, the network is
- 3:02Speaker 2: often unencrypted. Oh wow, So anyone sniffing the airways can
- 3:05Speaker 2: see what you're doing, and they're easy to bypass if
- 3:07Speaker 2: you know how to say spoof a massy address.
- 3:10Speaker 1: So if a business needs that kind of control, monitoring users,
- 3:13Speaker 1: setting time limits, but also needs real security, what's the
- 3:16Speaker 1: professional lay to do it?
- 3:17Speaker 2: WPA Enterprise, that's the answer. You pair it with something
- 3:20Speaker 2: called a radius server. Okay, it gives the business all
- 3:23Speaker 2: that centralized control. They want individual logins, logging, denying connections,
- 3:28Speaker 2: but it forces the connection through the secure WPA or
- 3:32Speaker 2: WPA two procedure.
- 3:34Speaker 1: And the big advantage there is that you get rid
- 3:36Speaker 1: of the shared password right exactly.
- 3:37Speaker 2: Instead of everyone knowing the one network password, each person
- 3:41Speaker 2: has their own unique log in that the radius server
- 3:43Speaker 2: checks and employee leaves, you just disable their account. You
- 3:46Speaker 2: don't have to change the password for the entire company.
- 3:49Speaker 2: The data is encrypted from moment one.
- 3:51Speaker 1: That is so much more robust. Okay, so let's assume
- 3:54Speaker 1: we've done all that. WP is gone, WPS is disabled,
- 3:56Speaker 1: We're on WPA two. What's the last remaining attack vector?
- 4:01Speaker 2: Now you're in the realm of brute force. If all
- 4:03Speaker 2: those easy doors are locked, the only path left for
- 4:06Speaker 2: an attacker is a wordless attack against the WPA handshake.
- 4:09Speaker 1: Okay, let's explain that handshake, because it's so critical. An
- 4:12Speaker 1: attacker needs it to crack the password, right, even if
- 4:15Speaker 1: they can't connect.
- 4:15Speaker 2: That's right, when your device connects to the Wi Fi,
- 4:18Speaker 2: the router and the device exchange four messages. That's the handshake.
- 4:23Speaker 2: An attacker just needs to be nearby, sniffing the traffic
- 4:27Speaker 2: to capture.
- 4:27Speaker 1: That exchange, and once they have it, they.
- 4:29Speaker 2: Take it offline and on their own powerful computer, usually
- 4:33Speaker 2: with high end GPS. They just start guessing the password
- 4:35Speaker 2: against that captured file until they get a match.
- 4:38Speaker 1: And these wordless attacks are scary fast. Now huge dictionaries,
- 4:41Speaker 1: they can save their progress.
- 4:43Speaker 2: And the GP is just accelerated exponentially. The key thing
- 4:47Speaker 2: to understand is this, for the attack to work, the
- 4:50Speaker 2: key must be in the attacker's word list. Soh the
- 4:53Speaker 2: only defense is password complexity and length. The longer and
- 4:57Speaker 2: more random of your key, the more mathematically improbable it
- 4:59Speaker 2: becomes that anyone will ever guess it.
- 5:01Speaker 1: Okay, so give us the specifics. What's the rule?
- 5:03Speaker 2: A bare minimum of sixteen characters sixteen non negotiable, and
- 5:07Speaker 2: it has to have high entropy mix in letters, numbers, symbols,
- 5:11Speaker 2: weird capitalization. At that length, even with GPU cracking, the
- 5:15Speaker 2: time it would take to guess it jumps into the centuries.
- 5:17Speaker 1: That's a great defense and a quick technical point. On
- 5:21Speaker 1: WPA two, you sometimes see two options for encryption TKOPA
- 5:25Speaker 1: and AES. Does that matter?
- 5:26Speaker 2: It matters immensely. You must set WPA two to use
- 5:30Speaker 2: as encryption, not t COP Why not? TAP is an older,
- 5:34Speaker 2: weaker standard. It's basically a patch on top of WEP
- 5:38Speaker 2: and it has known vulnerabilities. It should be considered deprecated.
- 5:41Speaker 2: AES is the current robust.
- 5:43Speaker 1: Standard, and ideally WPA three if your router supports it.
- 5:47Speaker 2: Ideally, yes, WPA three offers even stronger protection against these
- 5:51Speaker 2: dictionary attacks. But WPA two with AES is the absolute
- 5:55Speaker 2: minimum baseline for security today.
- 5:57Speaker 1: Excellent. So protocols are secure is a fortress. The math
- 6:01Speaker 1: is against the attacker. Where do they go? Now, what's
- 6:03Speaker 1: the path of least resistance?
- 6:05Speaker 2: They go after the human and that brings us to social.
- 6:07Speaker 1: Engineering, the famous evil twin attack. And this works even
- 6:10Speaker 1: if you have a super strong password. How does it
- 6:12Speaker 1: rely on human error?
- 6:14Speaker 2: The attacker banks on you trusting what you see. They
- 6:16Speaker 2: set up a fake access point with the exact same
- 6:18Speaker 2: name the SSID as your real network. Then this is
- 6:21Speaker 2: a crucial part. They use a de authentication attack to
- 6:24Speaker 2: force you off the real network.
- 6:25Speaker 1: Okay, let's pause on that. A de'd authentication attack? What
- 6:29Speaker 1: is that? Exactly?
- 6:30Speaker 2: It's an exploit in the core Wi Fi standard. Wi
- 6:33Speaker 2: Fi devices send these little unauthenticated messages called management frames.
- 6:38Speaker 2: An attacker could just send a flood of death frames
- 6:41Speaker 2: that tell your laptop you've been disconnected and tells the
- 6:44Speaker 2: router this laptop wants to disconnect.
- 6:47Speaker 1: And they don't need the password to do that.
- 6:48Speaker 2: They don't need the password, just the network name and
- 6:52Speaker 2: your device's m massy address. They can just force you offline.
- 6:56Speaker 1: That's wild. So they knock you offline and then their
- 6:59Speaker 1: fake network is just sitting there waiting for you to
- 7:01Speaker 1: reconnect exactly.
- 7:02Speaker 2: You see, you're disconnected, You try to reconnect. You see
- 7:05Speaker 2: the network name you trust, You click it, and you've
- 7:07Speaker 2: connected to the evil twin. Then they'll pop up a
- 7:09Speaker 2: fake web page something that looks official, asking you to
- 7:14Speaker 2: re enter your Wi Fi password to confirm service.
- 7:16Speaker 1: And you type in your complex sixteen character password and
- 7:19Speaker 1: just hand it over.
- 7:19Speaker 2: You hand over the keys at that point, your firewalls,
- 7:22Speaker 2: your encryption, none of it can help you. The only
- 7:25Speaker 2: defense is user education.
- 7:26Speaker 1: It's the only defense.
- 7:27Speaker 2: Absolutely. Yeah, we have to hammer home these points for
- 7:30Speaker 2: everyone who uses the network.
- 7:32Speaker 1: Okay, so let's lay out the rules. How do you
- 7:34Speaker 1: stop this attack dead in its tracks?
- 7:36Speaker 2: Rule one. If you suddenly get disconnected. When you go
- 7:39Speaker 2: to reconnect, you have to verify two things, one that
- 7:42Speaker 2: it's the right network name, and two that the network
- 7:46Speaker 2: is actually using encryption. If it suddenly shows up as
- 7:48Speaker 2: an open network, that is a huge red flag.
- 7:51Speaker 1: And what's the most crucial rule, the one about the
- 7:53Speaker 1: password itself.
- 7:54Speaker 2: Never, ever, under any circumstances, enter your network password into
- 7:59Speaker 2: a way browser interface. Your operating system handles the connection,
- 8:03Speaker 2: not a website. If you've connected before, you should never
- 8:06Speaker 2: be asked for the key again unless you manually told
- 8:09Speaker 2: your device to forget the network.
- 8:10Speaker 1: So any browser pop up asking for the Wi Fi
- 8:13Speaker 1: key is an.
- 8:13Speaker 2: Attack, almost certainly an evil twin.
- 8:15Speaker 1: Yes, that is just so actionable. Okay, Now the practical side.
- 8:20Speaker 1: We know to change disabled WPS, set aes, create a
- 8:24Speaker 1: monster key. How do you actually get into the router?
- 8:27Speaker 2: To do it, you need to find its IP address,
- 8:29Speaker 2: what's called the default gateway. The first step is to
- 8:31Speaker 2: find your own device's IP address, and once you have that,
- 8:35Speaker 2: the router's IP is almost always the first address in
- 8:38Speaker 2: that range. So if your computer is say one to
- 8:41Speaker 2: ninety two point one six eight point one by fifty,
- 8:43Speaker 2: the router will probably be one ninety two point one
- 8:46Speaker 2: sixty eight point.
- 8:47Speaker 1: One by p Type that into your browser bar exactly.
- 8:50Speaker 2: And that takes you to the login screen, And the
- 8:52Speaker 2: first thing you do there before anything else.
- 8:55Speaker 1: Change the default username and password immediately.
- 8:58Speaker 2: Routers ship with defaults like admin and password that are
- 9:01Speaker 2: easily found online, change them to something unique, leaving them
- 9:05Speaker 2: as is. Oh, it's just inviting trouble.
- 9:07Speaker 1: Okay, But what if I'm trying to do this and
- 9:09Speaker 1: an attacker is right now running one of those do
- 9:12Speaker 1: authentication attacks kicking me off the Wi Fi?
- 9:14Speaker 2: Ah? Good question. You have to bypass the wireless completely.
- 9:17Speaker 2: You find an Ethernet cable and you physically plug your
- 9:20Speaker 2: computer directly into the.
- 9:21Speaker 1: Router AAH a hardline connection.
- 9:24Speaker 2: Right when you're connected by a wire the death attack
- 9:26Speaker 2: has no effect. It only targets the Wi fi frames
- 9:29Speaker 2: that lets you log in securely and apply all the fixes.
- 9:32Speaker 1: Perfect. So, once we're logged in, the menus might look different,
- 9:35Speaker 1: but we're looking for wireless settings or security.
- 9:37Speaker 2: Yes, and you're just confirming those three key things we
- 9:40Speaker 2: talked about. One, WPA two or WPA three is selected.
- 9:44Speaker 2: Two encryption is set to AES not tip, and three
- 9:49Speaker 2: you find that WPS page and make sure it's completely disabled.
- 9:52Speaker 1: Okay, let's talk about one final powerful layer, access control
- 9:56Speaker 1: or MAC address filtering. It can lock things down, but well,
- 10:02Speaker 1: a lot of security experts criticize it.
- 10:04Speaker 2: It is an optional high security measure, and yeah, it
- 10:06Speaker 2: needs a little qualification. You can set up an allow policy,
- 10:09Speaker 2: which is a white list. Only devices whose unique MAC
- 10:12Speaker 2: addresses you've put on that list can connect.
- 10:14Speaker 1: But wait, can't an attacker just spoof an MC address?
- 10:17Speaker 1: I mean, if they're sniffing the network anyway, can't they
- 10:19Speaker 1: just copy a MAMBSS address is already allowed.
- 10:21Speaker 2: That is a very valid point, and that's why it's
- 10:24Speaker 2: an extra layer, not the primary defense. It's a hurdle,
- 10:27Speaker 2: not a wall. For an attacker to bypass it, they
- 10:29Speaker 2: have to first find a valid MAA, then spoof it,
- 10:32Speaker 2: and then run their attack. It just raises the bar.
- 10:35Speaker 2: It adds time and complexity, and it will stop a
- 10:37Speaker 2: lot of casual attackers or automated tools cold. So yes,
- 10:40Speaker 2: it can be spoofed, but it is still a great
- 10:43Speaker 2: way to ensure only your known devices are connecting.
- 10:45Speaker 1: That makes perfect sense. It's about making the attackers job harder. Okay,
- 10:49Speaker 1: this has been incredibly thorough. Let's finish with the five
- 10:52Speaker 1: crucial actions everyone should take.
- 10:54Speaker 2: One, get rid of WVP and tkokibee. Use WPA two
- 10:59Speaker 2: with a or even better WPA three.
- 11:02Speaker 1: Two disabled WPS on your router, no exceptions.
- 11:05Speaker 2: Three for user control, use WPA enterprise with a radius server.
- 11:09Speaker 2: Don't rely on captive portals.
- 11:11Speaker 1: Four use a long, complex password for WPA two at
- 11:14Speaker 1: least sixteen characters. Mix it all up.
- 11:16Speaker 2: And five this is the big one. Educate your users.
- 11:19Speaker 2: Teach them about evil twin attacks. Make sure they know
- 11:22Speaker 2: never ever to type their Wi Fi password into a browser.
- 11:25Speaker 1: Fantastic summary, which brings us to our final thought for
- 11:28Speaker 1: you to take away from this deep dive.
- 11:29Speaker 2: Okay, so think about this. We know an attacker can
- 11:32Speaker 2: knock any of your devices offline with a death attack
- 11:35Speaker 2: without the password, and we know a determined attacker can
- 11:38Speaker 2: spoof a MAC address. So beyond the five things we
- 11:42Speaker 2: just listed, what's a practical operational step you would implement
- 11:45Speaker 2: to confirm the identity of a device that suddenly tries
- 11:48Speaker 2: to rejoin your network, say after a power outage? How
- 11:52Speaker 2: can you be more proactive about spotting a threat?
- 11:55Speaker 1: A great challenge that really gets you thinking about operational
- 11:57Speaker 1: security and not just settings. Thank you for dive deep
- 12:00Speaker 1: with us today. We hope you feel empowered to go
- 12:02Speaker 1: lock down those wireless networks. We'll catch you on the
- 12:04Speaker 1: next deep dive.