Latest / CyberCode Academy / Course 13 - Network Forensics | Episode 6: Wireless Network Analysis, Standards, and Security Forensics
Transcript
- 0:00Speaker 1: Welcome back to the deep dive. Today, we're plunging into
- 0:03Speaker 1: something that's all around us, but basically invisible wireless communication
- 0:08Speaker 1: and security. Right now, if you're in corporate security, you
- 0:11Speaker 1: might think my focus is the firewall, the wired network.
- 0:14Speaker 1: So why do we need to get into the weeds
- 0:16Speaker 1: with Wi Fi?
- 0:17Speaker 2: Because the perimeter isn't what it used to be. It's
- 0:20Speaker 2: all about context and what we call perimeter bleed.
- 0:25Speaker 1: Perimeter bleed.
- 0:26Speaker 2: Yeah, the big corporate compromises we see in the news,
- 0:29Speaker 2: they don't always start on the company's internal.
- 0:31Speaker 1: Network, right, not anymore.
- 0:32Speaker 2: It's that traveling executive who connects their laptop to the
- 0:36Speaker 2: free airport WiFi or that coffee shop hot.
- 0:39Speaker 1: Spot, the classic scenario exactly.
- 0:41Speaker 2: And if you, the security professional, don't understand how that
- 0:45Speaker 2: connection was made, how it was secured, and where the
- 0:47Speaker 2: evidence might be, you're missing half the story. Yeah, the
- 0:50Speaker 2: logs from that wireless connection are critical.
- 0:53Speaker 1: So that's our mission today. We're going to move past
- 0:55Speaker 1: just punching in a password and really understand the mechanics,
- 0:59Speaker 1: the fundamentals, and the security flaws that well still inform
- 1:03Speaker 1: a lot of what we do today. Let's do it, Okay,
- 1:05Speaker 1: let's start with the absolute basics, the hardware. If you're
- 1:08Speaker 1: building a Wi Fi network from scratch, what are those say,
- 1:12Speaker 1: three non negotiable components.
- 1:14Speaker 2: It's like the trinity of wireless really. First you have
- 1:16Speaker 2: the access point, the AP that's your central hub, the
- 1:19Speaker 2: traffic controller. Okay, Second you need the clients, laptops, phones, whatever.
- 1:25Speaker 2: They each have a wireless network interface card a WNIC.
- 1:29Speaker 2: And the third antennas. They're the part that actually does
- 1:32Speaker 2: the work of turning electricity into radio waves and back again.
- 1:35Speaker 1: When I think of antennas, I picture those big directional
- 1:38Speaker 1: yogi or parabolic ones, the kind you'd use to say
- 1:41Speaker 1: link to buildings.
- 1:43Speaker 2: Sure to point connections, but for general coverage, the ones
- 1:47Speaker 2: on your home router or hidden in the ceiling at
- 1:49Speaker 2: the office. Those are almost always on the direction.
- 1:52Speaker 1: And they just blast the signal out everywhere.
- 1:54Speaker 2: In a three hundred and sixty degree sphere. Yeah, the
- 1:57Speaker 2: whole point is to maximize coverage in a room or
- 2:00Speaker 2: on a floor. It's all about reach, not precision.
- 2:03Speaker 1: And that reach happens across a specific part of the spectrum.
- 2:06Speaker 1: For Wi Fi. For the eight to two point one
- 2:08Speaker 1: to one standards, we're talking about the free or unlicensed band, right.
- 2:12Speaker 2: That's it mostly from two point four gigaherds up to
- 2:16Speaker 2: about five point eight gigaherds. But it's important to remember
- 2:19Speaker 2: that wireless isn't just radio waves.
- 2:21Speaker 1: Oh good point.
- 2:22Speaker 2: I mean you still have infrared for really short range stuff,
- 2:26Speaker 2: and microwave, which people used to think of for just
- 2:28Speaker 2: you know, simple data backbones, right, just text. But now
- 2:31Speaker 2: global microwave links carry massive amounts of rich content. There
- 2:35Speaker 2: are a much bigger piece of the global connectivity puzzle
- 2:38Speaker 2: than they used to be.
- 2:39Speaker 1: Let's go back to that two point four gigahertz band
- 2:42Speaker 1: because historically that's been a huge source of pain. It
- 2:45Speaker 1: is just so crowded, it's a mess.
- 2:48Speaker 2: You've got bluetooth, old cordless phones, and the big one
- 2:52Speaker 2: microwave ovens. They all operate right there.
- 2:54Speaker 1: So to deal with all that noise, that interference, the
- 2:57Speaker 1: early Wi Fi standards had to get clever something called
- 3:00Speaker 1: spread spectrum modulation.
- 3:02Speaker 2: Exactly, and that gave us two foundational techniques. The first
- 3:05Speaker 2: was frequency hopping spread spectrum or FAHSS.
- 3:08Speaker 1: Okay, so how does that work?
- 3:09Speaker 2: It's actually pretty elegant solution instead of just trying to
- 3:12Speaker 2: shout over the noise on one channel, it hops. It
- 3:15Speaker 2: jumps between a whole set of frequencies dozens of times
- 3:18Speaker 2: a second.
- 3:18Speaker 1: So as long as the sender and receiver know the
- 3:21Speaker 1: secret handshake the hopping pattern, they stay in sync.
- 3:24Speaker 2: And if a microwave turns on and blasts one frequency
- 3:27Speaker 2: with noise, it only knocks out a tiny fraction of
- 3:30Speaker 2: the data, not the whole conversation.
- 3:32Speaker 1: And I think it's important to stress this wasn't a
- 3:34Speaker 1: security feature.
- 3:35Speaker 2: Not at all. It was purely for resilience. It was
- 3:38Speaker 2: about making the network usable in a noisy environment.
- 3:41Speaker 1: But then we evolved to direct sequence spread spectrum or DSSs.
- 3:47Speaker 1: That changed the game. How did that handle interference Differently?
- 3:50Speaker 2: DSSs is a lot more complex. Instead of hopping, it
- 3:55Speaker 2: takes the data and spreads it across a wider band simultaneously,
- 4:00Speaker 2: using something called a chipping sequence.
- 4:01Speaker 1: So you're building a redundancy.
- 4:03Speaker 2: Precisely, you're spreading the information out, so even if a
- 4:05Speaker 2: trunk of that band gets hit with interference, the receiver
- 4:08Speaker 2: can still piece together the original data from the other parts.
- 4:12Speaker 1: And that, I assume is what let us get more
- 4:14Speaker 1: performance and start using channels that were closer together.
- 4:17Speaker 2: That's the key. It laid the groundwork for higher speeds
- 4:20Speaker 2: and better efficiency.
- 4:21Speaker 1: Speaking of channels, the constraints there are so important, especially
- 4:25Speaker 1: in older networks with eight oh two point one, one,
- 4:28Speaker 1: B and G. In that two point four gigahertz band,
- 4:31Speaker 1: the way DSS worked meant you had to keep networks
- 4:34Speaker 1: spaced out.
- 4:34Speaker 2: Oh yeah. That led directly to the famous one six
- 4:36Speaker 2: to eleven rule. Right If you had say, three access
- 4:40Speaker 2: points in the same area and you didn't want them
- 4:43Speaker 2: interfering with each other, you pretty much had to use
- 4:45Speaker 2: channels one, six and eleven.
- 4:47Speaker 1: That was it, which is a huge limitation on how
- 4:50Speaker 1: dense you can make.
- 4:50Speaker 2: Your network, a massive limitation. But then we jumped to
- 4:53Speaker 2: the five point eight gigahertz band with standards like eight
- 4:56Speaker 2: oh two point one point one in a later and
- 4:58Speaker 2: everything changed chan pannels for one more channels and much
- 5:02Speaker 2: better encoding. Suddenly you could have ten access points in
- 5:05Speaker 2: the same room running on adjacent channels one through ten
- 5:08Speaker 2: with almost no interference. It was a whole different world.
- 5:10Speaker 1: No beyond just the advertised speeds which are always theoretical.
- 5:13Speaker 2: Always, you'd never get fifty four megabits per second, not
- 5:15Speaker 2: after TCP overhead and encryption right.
- 5:18Speaker 1: The amendments to the standards brought some really interesting architectural changes.
- 5:22Speaker 1: Let's talk about eight h two point one month c
- 5:25Speaker 1: MS bridging. What problem was that trying to.
- 5:28Speaker 2: Solve it was a physical problem. Imagine you have two
- 5:31Speaker 2: buildings across the street and you need to connect their networks.
- 5:34Speaker 2: Laying fiber is incredibly.
- 5:36Speaker 1: Expensive, so you bridge them wirelessly.
- 5:38Speaker 2: Exactly, You'd set up four access points, two to serve
- 5:42Speaker 2: lines in each building, and two on the rooftops pointed
- 5:44Speaker 2: at each other, acting as a dedicated wireless bridge. They
- 5:48Speaker 2: just talked to each other using their m maas addresses.
- 5:50Speaker 1: That's a clever hack, But what's the immediate security concern there?
- 5:53Speaker 2: You've just extended your network perimeter and into the open air.
- 5:56Speaker 2: You have two more radio hops, and if someone can
- 5:59Speaker 2: get physical access to one of those bridge aps on
- 6:01Speaker 2: the roof, they have a potential way onto your entire
- 6:04Speaker 2: corporate network. It requires a lot more monitoring.
- 6:06Speaker 1: Then we got ATO two point one to one E
- 6:09Speaker 1: quality of service. Simple idea, but absolutely essential for what
- 6:12Speaker 1: we do now.
- 6:13Speaker 2: Without it, video calls and audio over Wi Fi would
- 6:15Speaker 2: be a disaster. It's what tells the network. Hey, this
- 6:18Speaker 2: VOYP call is more important than that giant file download,
- 6:22Speaker 2: so prioritize the call and.
- 6:23Speaker 1: Then a two point one on f roaming. Great for users,
- 6:28Speaker 1: but for a security investigator a total nightmare. Yeah.
- 6:30Speaker 2: Functionally it's brilliant. Your laptop seamlessly hands off between a
- 6:34Speaker 2: dozen aps as you walk through a building. Forensically, though,
- 6:38Speaker 2: if an attacker moves across those ten aps, the logs
- 6:42Speaker 2: tracking their activity are now scattered across ten different devices.
- 6:45Speaker 1: So correlating that data during an investigation just became ten
- 6:48Speaker 1: times harder.
- 6:49Speaker 2: At least, it adds a huge layer of complexity.
- 6:51Speaker 1: And finally, the big one for security ATO two point
- 6:55Speaker 1: one to one I this was.
- 6:56Speaker 2: The real leap. This is what gave us the full
- 6:58Speaker 2: WPA two standard and killed off the fatally flawed WEP
- 7:03Speaker 2: which we'll.
- 7:03Speaker 1: Get to, and specifically WPA two enterprise.
- 7:06Speaker 2: Yes, this moved us beyond just a simple shared password.
- 7:09Speaker 2: It meant you could use things like radius servers, smart cards,
- 7:12Speaker 2: and certificates to authenticate every single user and device individually
- 7:16Speaker 2: at the port level. That's real enterprise security.
- 7:19Speaker 1: So when a device tries to connect to one of
- 7:21Speaker 1: these secure networks, it's a two step process right.
- 7:23Speaker 2: Correct versus authentication. The device has to prove it is
- 7:26Speaker 2: who it says it is, password, certificate, whatever. If that works.
- 7:30Speaker 2: Step two is association.
- 7:32Speaker 1: Okay, association the.
- 7:33Speaker 2: Access point adds that device's MS address to its official list,
- 7:37Speaker 2: its association table. Only. Then once you're associated, can you
- 7:40Speaker 2: actually start sending data.
- 7:42Speaker 1: Now we've been talking about the standard setup infrastructure mode
- 7:45Speaker 1: with an AP, but there's also ad hoc mode, right.
- 7:49Speaker 2: The Independent Basic Service Set or IBS AS. That's just
- 7:52Speaker 2: direct peer to peer, two laptops talking directly to each
- 7:55Speaker 2: other without an AP in the middle.
- 7:57Speaker 1: How does that even work?
- 7:58Speaker 2: The first device to start the AP network basically just
- 8:01Speaker 2: makes up a fake MS address to serve as the
- 8:04Speaker 2: network name, and the other devices connect to that.
- 8:06Speaker 1: This brings us to a really key difference between wired
- 8:09Speaker 1: and wireless networks down at layer two. Wired ethernet uses CSMAD.
- 8:14Speaker 2: Carrier Sense multiple access with.
- 8:16Speaker 1: Collision detection, right, but wireless uses CSM MECHAA.
- 8:20Speaker 2: Collision avoidance, And that's a huge difference. On a wired network.
- 8:24Speaker 2: If two devices talk at the same time, they detect
- 8:27Speaker 2: the collision, they both stop, wait a random amount of time,
- 8:30Speaker 2: and try again.
- 8:31Speaker 1: But you can't really do that over the air.
- 8:33Speaker 2: No, It's almost impossible to hear a collision when you're
- 8:36Speaker 2: also talking. It's called the hidden node problem. So wireless
- 8:40Speaker 2: has to be more polite. It avoids collisions in the
- 8:42Speaker 2: first place. Devices listen for silence and sometimes they'll send
- 8:46Speaker 2: a little request to send signal and wait for a
- 8:49Speaker 2: clear descend from the AP before they transmit their data.
- 8:52Speaker 1: Okay, here's where it gets really interesting for security folks.
- 8:55Speaker 1: Let's talk about the myth of hiding your SSID your
- 8:58Speaker 1: network name. People still do this all the time, thinking
- 9:01Speaker 1: it makes them secure.
- 9:03Speaker 2: It's pure security theater. It offers maybe a tiny tiny
- 9:07Speaker 2: bit of inconvenience to the laziest possible attacker, but zero
- 9:11Speaker 2: real security.
- 9:12Speaker 1: Why not If you can't see the network name, you
- 9:14Speaker 1: can't connect right.
- 9:15Speaker 2: Wrong, because the SSID is never truly hidden. For the
- 9:19Speaker 2: network to work, it has to be transmitted in clear
- 9:22Speaker 2: text inside of management frames.
- 9:24Speaker 1: Man.
- 9:24Speaker 2: Yeah, the non data traffic that controls the network. When
- 9:27Speaker 2: a device associates or disassociates, those frames contain the SSID
- 9:32Speaker 2: in plain text for everyone to see.
- 9:34Speaker 1: So an attacker can just wait.
- 9:36Speaker 2: They can just passively sniff the air with a tool
- 9:39Speaker 2: like kismet or net stumbler, and if the network is quiet,
- 9:43Speaker 2: they can even force a device to disconnect, which makes
- 9:45Speaker 2: it immediately try to reconnect, broadcasting that hidden SSID for
- 9:49Speaker 2: them to capture. It's trivial, defined.
- 9:52Speaker 1: That's a myth, thoroughly busted. Now, just quickly looking at
- 9:54Speaker 1: the data packets themselves. An a too two point one
- 9:57Speaker 1: to one frame has four address fields. Why so many?
- 10:00Speaker 2: It's because the access point acts as a middleman, a proxy.
- 10:03Speaker 2: The packet's ultimate destination on the Internet might be different
- 10:06Speaker 2: from the immediate receiver, which is the AP, so you
- 10:08Speaker 2: need addresses to track the original sender, the AP, the
- 10:11Speaker 2: next top and the final destination. It has to bridge
- 10:14Speaker 2: the wireless and wired worlds.
- 10:16Speaker 1: Let's turn to history because the lessons here are critical.
- 10:19Speaker 1: We've said hiding your SSID is useless. MC filtering is
- 10:22Speaker 1: also useless, right, you just spoof a as side address
- 10:25Speaker 1: for real. The biggest historical failure, though, has to be.
- 10:28Speaker 2: Wep OH Wired Equivalent Privacy. It failed spectacularly to live
- 10:33Speaker 2: up to its name. It was built on the RC
- 10:35Speaker 2: four streaming cipher, but the real problem wasn't just the cipher.
- 10:39Speaker 2: It was a deeply flawed implementation of something called the
- 10:42Speaker 2: initialization vector or four.
- 10:44Speaker 1: So WEP was sold as sixty four bit encryption, but
- 10:48Speaker 1: that wasn't the truth. It was really only forty bit.
- 10:51Speaker 1: What happened to the other twenty four bits?
- 10:52Speaker 2: That was the poison pill. Those twenty four bits were
- 10:55Speaker 2: the IV, and for reasons of hardware simplicity, they were
- 10:59Speaker 2: sent in clear text right alongside the encrypted data.
- 11:02Speaker 1: So twenty four bits of your key were never secret.
- 11:05Speaker 2: Never and worse, the IV was only pseudorandom. A twenty
- 11:09Speaker 2: four bit space is not very large, and on a
- 11:11Speaker 2: busy network you'd run out of unique ivs in just
- 11:14Speaker 2: a few.
- 11:14Speaker 1: Hours, which leads to IV reuse collisions, and that's.
- 11:17Speaker 2: The kill shot. If an attacker can capture two different
- 11:20Speaker 2: packets that were encrypted using the exact same IV, they
- 11:22Speaker 2: can use statistical attacks to reverse engineer the keystream and
- 11:25Speaker 2: recover the permanent WEP key.
- 11:27Speaker 1: And they could speed this up.
- 11:28Speaker 2: Yeah, tools like aircraft could inject packets into the network,
- 11:31Speaker 2: forcing it to get busy, generate more traffic, and burn
- 11:35Speaker 2: through those ivs faster, which created the collisions the attacker needed.
- 11:39Speaker 2: You could crack a wepkey in.
- 11:41Speaker 1: Minutes, So the immediate fix for this disaster was WPA.
- 11:45Speaker 2: WPA was the stop gap. The first thing it did
- 11:47Speaker 2: was increase the IV size from twenty four bits to
- 11:50Speaker 2: forty eight bits, which is a vastly larger space. That
- 11:53Speaker 2: alone stopped the collision attack in its tracks.
- 11:55Speaker 1: And it changed how keys.
- 11:56Speaker 2: Were handled right. It moved away from wop's single STATF
- 12:00Speaker 2: key to using dynamic keys with something called t cappy
- 12:03Speaker 2: the Temple key Integrity protocol keys were now changing automatically.
- 12:07Speaker 1: So shifting to threats that are still very much alive today,
- 12:10Speaker 1: the road access point.
- 12:12Speaker 2: This is a classic man in the middle attack. Let's
- 12:14Speaker 2: say your corporate network is called Gloria. An attacker sets
- 12:17Speaker 2: up their own malicious ap also called Gloria, right nearby.
- 12:20Speaker 1: And they just boost their signal.
- 12:22Speaker 2: They use a device sometimes called a wireless Pineapple to
- 12:25Speaker 2: make their signal much stronger than the real one. Your laptop,
- 12:29Speaker 2: which is designed to connect to the strongest signal for
- 12:31Speaker 2: a known network, automatically connects to the attacker.
- 12:35Speaker 1: And you, the user, have no idea you're actually sending
- 12:38Speaker 1: all your traffic through the attacker's laptop.
- 12:40Speaker 2: None. And this gets back to a fundamental limitation. We
- 12:43Speaker 2: have to remember wireless security is link encryption. It's only
- 12:48Speaker 2: antenna to antenna.
- 12:49Speaker 1: What do you mean by that.
- 12:50Speaker 2: It means your data is encrypted from your laptop's antenna
- 12:53Speaker 2: to the access points antenna, but as soon as it
- 12:56Speaker 2: hits the AP, it's decrypted to be put on the
- 12:59Speaker 2: wired network.
- 13:00Speaker 1: So there's a point where it exists in the clear exactly.
- 13:03Speaker 2: It's hop by hop security, not true into end security.
- 13:05Speaker 2: If that AP is a rogue device, the attacker sees
- 13:09Speaker 2: everything in plain text.
- 13:10Speaker 1: And this weakness is the root of so many common
- 13:12Speaker 1: attacks eavesdropping, war driving to find weak networks, denial of service.
- 13:17Speaker 2: DNS, poisoning to redirect you from your banking site to
- 13:21Speaker 2: a fake one, even short range bluetooth attacks like blue
- 13:24Speaker 2: jacking and blue snarfing. They all exploit a moment where
- 13:28Speaker 2: your data is vulnerable or your device could be tricked.
- 13:30Speaker 1: So we've gone from the invisible hardware, through the standards
- 13:33Speaker 1: that make modern Wi Fi possible and into the huge
- 13:36Speaker 1: historical flaws like WP's IV problem that really shaped the
- 13:41Speaker 1: security we have today.
- 13:42Speaker 2: And the one thing to really take away is that
- 13:44Speaker 2: protocol structure, this idea that wireless security is link encryption
- 13:48Speaker 2: antenna to antenna, that data is decrypted at each hop.
- 13:51Speaker 2: It's not a flaw, it's a necessary design feature for
- 13:55Speaker 2: the network to function, but it's a feature with major
- 13:57Speaker 2: security implications.
- 13:59Speaker 1: All right. To make sure you've really connect to these ideas,
- 14:01Speaker 1: here's a final thought exercise for you. We just established
- 14:04Speaker 1: that wireless link encryption decrypts traffic at each hop. So
- 14:08Speaker 1: how does that fundamental design feature create a perfect opportunity
- 14:11Speaker 1: for a man in the middle attack, Even if you're
- 14:13Speaker 1: using strong WPA two encryption between your device and the
- 14:17Speaker 1: access point.
- 14:18Speaker 2: If you can pinpoint that moment of vulnerability, that brief
- 14:21Speaker 2: period where the data is in the clear inside the infrastructure,
- 14:26Speaker 2: you'll understand why monitoring your network and physically securing your
- 14:29Speaker 2: access points is just as important as having a strong password.
- 14:33Speaker 1: An excellent point to end on. Think about that and
- 14:36Speaker 1: how you view the security of the networks you use
- 14:38Speaker 1: every day. That's all the time we have for this
- 14:40Speaker 1: deep dive. We catch you next time.