Network Security Basics: Why Layer 2 Attacks Still Matter in the AI Era
By OpenVPN Team
|
The short answer: Network security basics start with the local network, where devices recognize each other by easily faked identifiers. Attacks like replay attacks, CAM table overflows, MAC spoofing, and the 2026 AirSnitch techniques work at this layer, and AI makes them easier to run. Three defenses cover most of the risk: segment the network, encrypt traffic with a VPN, and authenticate devices with certificates instead of passwords or MAC addresses. |
Most of the attention at OpenVPN [Con]nected 2026 was on AI agents and cloud workloads. Then Micah Spady of SecureW2 took the conversation back down the stack.
His point: attackers are still happy to work at Layer 2, right on your local network. And AI is making those old attacks easier, not obsolete.
"AI makes it even easier to do some of these networking attacks that were difficult to do in the past. AI makes it easier to go through packets, to do reconnaissance, to escalate privileges." — Micah Spady, SecureW2
If you've ever assumed your office network is safe just because it's yours, here's the refresher.
What is Layer 2, and why does it matter?
Networks are often described in layers. Layer 2, the data link layer, is where devices on the same local network (a switch, an office Wi-Fi, a coffee shop hotspot) find and talk to each other using MAC addresses. Layer 3 handles IP addressing and routing between networks, and the layers above that carry applications.
The problem is that Layer 2 was built for convenience, not trust. Devices largely believe what other devices tell them about who they are. Anyone who gets onto the local network, by plugging in a cable or joining the Wi-Fi, starts with a lot of reach.
Three classic attacks every IT team should know
Replay attacks
A replay attack captures legitimate network traffic and sends it again later. As Micah explained, replaying captured packets can let an attacker impersonate someone, sit in the middle of a conversation, or spread malware and ransomware across a network.
Basic defense: use protocols with fresh session keys, timestamps, or sequence numbers, so an old packet is rejected. Modern VPN protocols, including OpenVPN, include replay protection.
CAM table overflow attacks
A CAM table overflow attack happens when a bad actor floods, or overflows, network equipment with a large number of MAC addresses. The goal is to force it to broadcast traffic like a hub, enabling traffic sniffing or session hijacking. It's another way someone on your network could reroute traffic, inspect what's happening on the network, and prevent it from working as it should.
Basic defense: enable port security on switches to limit how many MAC addresses each port can learn.
MAC spoofing
MAC spoofing is when a device copies another device's MAC address to impersonate it. It's trivial to do on most operating systems, which is why MAC-based allowlists aren't real access control.
Basic defense: authenticate devices with 802.1X and certificates instead of trusting MAC addresses (more on that below).
What changed in 2026: AirSnitch
Micah said network attacks "really changed at the beginning of the year," and the reason is AirSnitch.
AirSnitch is a set of techniques presented by researchers from UC Riverside and KU Leuven at the NDSS Symposium in February 2026. It bypasses Wi-Fi client isolation, the feature that's supposed to stop devices on the same guest or shared network from reaching each other. According to SecurityWeek's coverage, every router and network the researchers tested was vulnerable to at least one of the attacks. One technique combines MAC spoofing with other methods to achieve a full machine-in-the-middle position.
The root cause, the researchers argue, is that client isolation was never standardized, so vendors implemented it inconsistently (read the paper). The practical takeaway: client isolation is a convenience, not a security boundary. Treat any shared Wi-Fi, including your own guest network, as untrusted.
Three defenses that cover most of the risk
Micah's remediation advice came down to three layers that work together.
1. Solid switching and segmentation
Segment the network so one compromised device can't reach everything else. Put guests, IoT devices, and corporate endpoints on separate VLANs, and limit what can talk across them. At the access layer, Zero Trust takes this further by granting each user or device access to specific applications rather than whole subnets. (See Zero Trust Segmentation for SMBs.)
2. Encrypt traffic above Layer 2 with a VPN
If an attacker gets into the middle of a local connection, encryption decides what they can see. A VPN encrypts traffic between the device and your network, so local tricks like AirSnitch or a spoofed gateway expose only ciphertext. That's why a VPN remains a basic control for anyone working from shared or public Wi-Fi. Access Server gives you a self-hosted option, and CloudConnexa delivers it as a cloud service with Zero Trust access controls built in.
3. Certificate-based authentication
This was Micah's core message. Passwords can be phished, and MAC addresses can be spoofed. Certificates are much harder to steal:
"Certificates can't be stolen over the air, and they very critically provide device trust. They are locked on the hardware of the device, and now you are greatly mitigating the risk of someone using phished or stolen credentials to impersonate someone." — Micah Spady, SecureW2
For Wi-Fi and wired networks, that means 802.1X with EAP-TLS, where each device proves its identity with a certificate before it gets on the network. Micah also described tying certificates to endpoint posture through tools like CrowdStrike, Jamf, Intune, and Okta, so a device that falls out of compliance loses access.
The same principle applies to remote access. Access Server supports certificate-based VPN authentication and can use SecureW2 as an external PKI, so SecureW2 issues, renews, and revokes the certificates. Learn more in OpenVPN and SecureW2 Partner for Stronger, Simpler PKI or follow the external PKI tutorial. In CloudConnexa, Device Identity Verification and Enforcement locks a user's certificate to a specific device.
A network security basics checklist
- Don't rely on MAC addresses or client isolation for access control.
- Segment guests, IoT, and corporate devices, and limit traffic between segments.
- Require encryption (VPN) for remote and shared-network access.
- Move from shared Wi-Fi passwords to 802.1X with certificates.
- Tie access to device health, not just a login.
- Audit regularly. Our network security audit checklist walks through it.
Frequently asked questions
What are the basics of network security?
The basics are controlling who and what can join your network, segmenting it so a compromise stays contained, encrypting traffic, keeping systems patched, and monitoring for unusual activity.
What is a Layer 2 attack?
A Layer 2 attack targets the data link layer, where devices on a local network communicate using MAC addresses. Examples include MAC spoofing, ARP spoofing, and attacks that bypass Wi-Fi client isolation.
What is a replay attack?
A replay attack captures valid network traffic and resends it to impersonate a user or repeat a transaction. Protocols with session keys, timestamps, or sequence numbers prevent it.
Does a VPN protect against AirSnitch?
A VPN doesn't stop an attacker from bypassing client isolation, but it encrypts your traffic so an attacker in the middle can't read or tamper with it.
Why is certificate-based authentication more secure than passwords?
Certificates are bound to a device and can't be phished or typed into a fake login page. They also let you revoke a single device's access without resetting everyone's password.
Watch Micah's session
Watch "2026 Network Layer Attacks & Remediation" and the rest of the event on the [Con]nected 2026 replays page.
Watch the Replays![Watch the OpenVPN [Con]nected 2026 session replays](https://blog.openvpn.net/hs-fs/hubfs/OPENVPN_Connected2026_Blog_CTA_Replays_1200x400.png?width=1200&height=400&name=OPENVPN_Connected2026_Blog_CTA_Replays_1200x400.png)