AP Cybersecurity · Study guide

Exploiting Network Vulnerabilities

AP® Cybersecurity · Unit 3 · Network Security, Firewalls & Detection

Exploiting Network Vulnerabilities

The weaknesses that let adversaries flood, map, spoof, eavesdrop on, or move through a network, and what each one makes possible.

1What adversaries want from a network

A network carries data between devices. Adversaries exploit network weaknesses to steal that data (eavesdropping), disrupt it (denial of service), or destroy or alter it, and to reach more valuable systems. This page walks through the common vulnerabilities and what each lets an adversary do.

Figure 1. Each marker is a weakness from the table below. Some let an adversary in from outside; others let one already inside spread.

2Weak or missing firewalls

A firewall checks traffic going into and out of a network and blocks what is not allowed. Networks without firewalls, or with improperly configured ones, let adversaries send malicious traffic in to:

  • flood the network and create a denial of service;
  • map the internal structure of the network: which devices exist, which addresses they use, which services they run (for example by sending pings and connection attempts and seeing what answers);
  • spoof a legitimate device: pretend to be a trusted machine by faking its address.

3Moving across the LAN

A local area network (LAN) connects the devices in one building or site. Inside a LAN, devices often trust each other more than they trust the internet. Adversaries who compromise one device, say through a phishing email, often use that access to attack other devices on the same LAN. This is why one infected laptop can become a breach of the file server: the laptop becomes the attacker's base inside the network.

4Physical ports and rogue access points

Wall jacks and switch ports are doors into the network. An adversary who physically plugs into a data port can join the LAN through the switch, unless port security is enabled. (Port security is a switch setting that only allows known devices, by MAC address, on each port and shuts the port if an unknown device connects.) From an open port, an adversary can launch DoS attacks or perform MAC flooding or MAC spoofing.

Worse, an adversary can plug a small wireless access point into an open port, creating a rogue access point. They can then connect to the internal network wirelessly, possibly from outside the building, with direct access to the LAN that bypasses the firewall entirely.

Figure 2. Port security and network access control stop an unknown device plugged into a wall port from joining the network.

5Wireless weaknesses

  • Signal leaking outside. An adversary standing outside the physically secure space can pick up the signals and beacon frames of an access point that broadcasts beyond the walls. That lets them gather information about the network and attempt eavesdropping and cryptographic attacks without entering.
  • No authentication. Adversaries try to join networks so they can launch attacks from inside. Networks that do not require devices and users to prove who they are make joining easy.
  • Breakable encryption. Wireless traffic is encrypted to keep eavesdroppers out. Adversaries can try to break weak wireless encryption (older standards and short, guessable Wi-Fi passwords are the usual targets) and then intercept, steal, or tamper with data.

6All seven at a glance

VulnerabilityHow it is exploitedWhat it lets the adversary do
1 No firewall, or a misconfigured oneMalicious traffic sent in from outsideFlood (DoS), map the network, spoof devices
2 Trust between devices on the LANA compromised device attacks its neighborsSpread to more valuable systems
3 Open data port without port securityPlug a device into the switchDoS, MAC flooding, MAC spoofing
4 Wi-Fi signal reaching outsideListen from the parking lotGather information; eavesdrop; attack encryption
5 No device or user authenticationJoin the network freelyLaunch attacks from inside
6 Open port, againPlug in a rogue access pointWireless access to the LAN that bypasses the firewall
7 Weak wireless encryptionBreak the encryptionIntercept, steal, or alter data in transit
The key idea

Every exploit gives the adversary one of three things: a way in, a way to listen, or a way to disrupt. Defenses work by closing the way in (firewalls, port security, authentication), protecting what is heard (encryption), and limiting how far one compromise spreads.

7Worked examples

Worked Example 1 Explain the exploit

The cleaning crew's laptop

After hours, someone plugs a laptop into an unused wall jack in a conference room. The switch has no port security. What can they do?

  1. 1
    Without port security, the switch accepts the unknown device onto the LAN.
  2. 2
    From there, they can flood the switch with fake MAC addresses (MAC flooding) to eavesdrop, spoof another device's MAC address, or launch a DoS attack.
  3. 3
    They are now inside the firewall, so outside defenses never see them.
Answer: Full LAN access from a wall jack. Port security (and turning off unused ports) closes this door.
Worked Example 2 Explain the exploit

The tiny box under the desk

An IT audit finds a small wireless access point plugged into a wall port under a reception desk. Nobody in IT installed it. Why is this dangerous?

  1. 1
    It is a rogue access point: an unauthorized device connected directly to the internal network.
  2. 2
    Anyone within its Wi-Fi range, maybe even outside the building, can connect to it.
  3. 3
    Traffic through it reaches the LAN directly, bypassing the firewall that protects the network's edge.
Answer: It gives wireless, firewall-free access to the internal network. Remove it, check logs for its use, and enable port security.
Worked Example 3 Explain the exploit

From one laptop to the server

An employee's laptop is infected through a phishing email. A week later, the file server is breached, though it was never exposed to the internet. How?

  1. 1
    The compromised laptop sits on the same LAN as the server.
  2. 2
    The adversary uses the laptop as a base to scan the LAN and attack other devices, including the server.
  3. 3
    Devices inside a LAN often trust each other, so the server accepted connections it would block from outside.
Answer: The adversary moved across the LAN from one compromised device. Segmenting the network limits how far this can spread.
Worked Example 4 Explain the exploit

No firewall at the edge

A small office connects its network to the internet with no firewall. What three things can an outside adversary now do?

  1. 1
    Flood the network with traffic to cause a denial of service.
  2. 2
    Map the internal network by probing addresses and seeing which devices and services answer.
  3. 3
    Spoof a legitimate device by sending traffic that pretends to come from a trusted address.
Answer: Flood, map, and spoof. A properly configured firewall blocks unsolicited traffic from outside.
Worked Example 5 Explain the exploit

The café across the street

A company's Wi-Fi uses an outdated encryption standard and a short password, and its signal reaches a café across the street. Describe the risk.

  1. 1
    The adversary can sit in the café, out of sight, within range of the signal.
  2. 2
    They can capture the network's traffic and try to break the weak encryption.
  3. 3
    If they succeed, they can read, steal, or alter data, or join the network.
Answer: Signal leakage plus weak encryption lets an adversary attack the network from outside the building.

8Common mistakes

Common Mistake 1 · Thinking the firewall protects everything

Firewalls guard the network's edge. A rogue access point, an open wall port, or a compromised internal device are already past it.

Common Mistake 2 · Ignoring unused wall jacks

An active jack with no port security is an open door to the LAN. Turn off unused ports and enable port security on the rest.

Common Mistake 3 · Assuming Wi-Fi stops at the walls

Radio signals leak outside. Adversaries can gather information and attack encryption from the parking lot.

Explain an exploit like this

“Because the switch port in the conference room has no port security, an adversary could plug a wireless access point into it, creating a rogue access point. They could then connect to the internal network over Wi-Fi from outside the building, bypassing the firewall, and steal or disrupt network traffic.”

Name the vulnerability, how it is exploited, and what the adversary can then do.