Attack Surface
Summary
A network's attack surface includes every point where an attacker could interact with it, at every layer. Analyzing it layer by layer and separating external from internal exposure shows where controls are missing. Common architectural weaknesses include single points of failure and overreliance on the perimeter.
In plain words
The network attack surface is every point where someone could get access to hosts and services: physical ports and Wi-Fi (layers 1–2), network addressing (layer 3), and open ports and application services (layers 4–7). Defense in depth puts controls at every layer. Common architectural weaknesses include single points of failure, complex dependencies, shortcuts that favour availability, missing documentation, and relying only on the perimeter.
Detailed explanation
By layer
- Layers 1 and 2: Unauthorized physical or wireless connection to the network; countered with port security, 802.1X and wireless security.
- Layer 3: Reaching hosts by IP address; countered with segmentation, ACLs and firewalls.
- Layers 4 to 7: Connecting to listening services and applications; countered with closing unneeded ports, patching, authentication and application firewalls.
- External attack surface: What is reachable from the internet, such as web servers, VPN gateways and cloud services.
- Internal attack surface: What an insider or compromised device inside the network can reach.
Common weaknesses
- Single point of failure: A component whose failure stops the whole service.
- Complex dependencies: Services that rely on many others, so one failure spreads.
- Availability favored over security: Shortcuts taken to keep systems running that weaken confidentiality or integrity.
- Poor documentation and change control: Undocumented changes create unknown exposure.
- Overdependence on the perimeter: A "hard shell, soft center" network where one breach exposes everything.
Important terms
taken from the text above- Layers 1 and 2
- Unauthorized physical or wireless connection to the network; countered with port security, 802.1X and wireless security.
- Layer 3
- Reaching hosts by IP address; countered with segmentation, ACLs and firewalls.
- Layers 4 to 7
- Connecting to listening services and applications; countered with closing unneeded ports, patching, authentication and application firewalls.
- External attack surface
- What is reachable from the internet, such as web servers, VPN gateways and cloud services.
- Internal attack surface
- What an insider or compromised device inside the network can reach.
- Single point of failure
- A component whose failure stops the whole service.
- Complex dependencies
- Services that rely on many others, so one failure spreads.
- Availability favored over security
- Shortcuts taken to keep systems running that weaken confidentiality or integrity.
- Poor documentation and change control
- Undocumented changes create unknown exposure.
- Overdependence on the perimeter
- A "hard shell, soft center" network where one breach exposes everything.
Examples & real-world scenarios
- An open wall port in a meeting room (layer 1/2 exposure).
- An unneeded service listening on a server (layer 4/7 exposure).
- A flat network where one compromised laptop can reach every server.
Scenario
An organization has a strong edge firewall but no internal segmentation. Once one phishing victim's PC is compromised, the attacker can move anywhere. That's overdependence on perimeter security.
Common mistakes
- Counting only Internet-facing systems. There's an internal attack surface too.
- Treating defense in depth as more of the same control, when it means different controls at each layer.
Practical skills
- List the attack surface of a small network by OSI layer.
- Spot common architectural weaknesses in a diagram.
What I should remember
- Defense in depth: Layered controls so one failure doesn't expose everything.
- External attack surface: Internet-reachable systems.
- Single point of failure: Eliminate it with redundancy.
- Perimeter overreliance: Insiders and breached hosts bypass a perimeter-only design.