What is an attack surface?

Definition

An organization's attack surface is every point where an attacker could try to get in. The external attack surface is the part reachable from the internet, such as domains, subdomains, IP addresses, open ports, web applications and cloud services, including the ones nobody keeps track of.

The term covers everything that could be used as a way in, so it's usually split into parts:

Part What it includes Examples
External (internet-facing) Assets anyone on the internet can reach Websites, subdomains, VPN gateways, mail servers, exposed databases, cloud storage
Internal Systems reachable once someone is inside the network Workstations, file shares, Active Directory, internal apps
Human People who can be tricked or pressured Phishing targets, help desk, suppliers with access
Physical Places and devices someone can touch Offices, server rooms, lost laptops

When security teams talk about attack surface management, they usually mean the external part. It's the one every attacker on the internet can scan without any access at all.

What makes the external attack surface grow

Every new website, cloud service, test environment or SaaS integration adds to it. Most of these are created for good reasons by people outside the security team, and few are ever taken down. Acquisitions add whole sets of domains at once. The result is a perimeter that changes weekly while the documented inventory changes yearly.

How to reduce it

  1. Find it. You can't shrink what you haven't listed, and the unlisted assets are usually the weak ones.
  2. Remove what nobody needs: old campaign sites, forgotten test servers, DNS records pointing at services that were shut down.
  3. Close what doesn't have to be public, like admin panels, databases and remote desktop, or put it behind a VPN.
  4. Patch and harden what has to stay public.
  5. Keep watching. Whatever you clean up this month will have grown back a bit by next month.

External attack surface management is the practice of doing steps 1 and 5 continuously.

Frequently asked questions

What is the difference between the attack surface and attack vectors?

The attack surface is the set of things that could be attacked, such as a login page or an open port. An attack vector is the method used against them, such as phishing, credential stuffing or exploiting a known vulnerability.

What is the external attack surface?

Everything an organization exposes to the internet: domains and subdomains, public IP addresses, open ports and the services behind them, web applications, APIs and cloud services. It's the part of the attack surface an outsider can reach without any prior access.