What counts as your external attack surface
Whatever answers on a public address today, including the things nobody remembers standing up. Your asset inventory is only part of it.
Mayank Tripathi · Founder, CyberSpec
2 min read
Your external attack surface is everything that answers a connection from the public internet and can be traced back to you. The inventory spreadsheet, Terraform and the architecture diagram each describe part of it; the surface itself is what answers, today.
Those lists overlap. They are never the same list, and the difference is where incidents come from.
The parts people count
Most teams can name these without help:
- Web applications and APIs on their primary domains.
- The mail, DNS and VPN endpoints published for the company.
- Whatever the cloud load balancers front.
This set is documented, monitored and usually patched. It is also the set an attacker spends the least time on, because everyone else has already looked at it too.
The parts that get missed
Subdomains nobody retired. Staging environments, a demo tenant from a
customer trial, old. and legacy. and test.. DNS records outlive the
infrastructure behind them constantly. When the backing resource is released and
the record is not, someone else can claim it.
Non-standard ports on hosts you do know about. An inventory entry for a web server is not an inventory of what that host is listening on. Management interfaces, metrics endpoints and container control planes live well outside the top 1000 ports. That is why a full-range sweep finds things a quick scan does not, and why some ports should never face the internet.
Cloud resources with their own public addresses. Object storage with a public endpoint, a managed database with public access left enabled, a serverless function URL, a container registry. Each of these gets a public address from the provider without ever passing through the load balancer you think of as "the edge".
IPv6. A host can be firewalled correctly on IPv4 and completely open on IPv6, because the rule was written once, for one address family, years ago.
Acquisitions and second brands. The domains that came with a company you bought are your attack surface from the day the deal closed, whether or not anyone has added them to a scanner.
Third-party hosts on your name. A marketing microsite on someone's agency account, a status page, a documentation host. They carry your domain, and a compromise there is your incident.
Why an inventory cannot be the source of truth
An inventory records intent: what was meant to exist, as understood by whoever last edited it. An external scan records fact: what answers right now. Every process that widens the gap between them (a console change outside Terraform, a rebuilt host in the wrong security group, a contractor's demo box) moves exposure into the space the inventory does not describe.
So the discovery direction matters. Starting from the inventory and checking each entry can only ever confirm or deny things you already listed. Starting from your domains and address ranges and asking what resolves and what answers finds the entries that were never made.
Making the list a live one
A useful external attack surface is a scan result rather than a document: enumerated from your domains and ranges, swept across the full port range and both address families, on a schedule, and compared with last time. A snapshot tells you what is open. Only a comparison tells you that something opened, which is the signal that arrives before anyone knows whether the service behind it is vulnerable.
CyberSpec covers part of that. It runs scheduled external scans against the domains, IPs and CIDR ranges you have verified ownership of, with a full port range on full scans, and records first-seen and last-seen dates per finding, so something new on an asset shows up with a recent first-seen date. It does not discover subdomains for you, so the enumeration is still yours, and a "what changed since the last scan" view is on the roadmap. See network scanning.
- Attack Surface
- Asset Discovery
- Shadow IT
- External Scanning
Related
- How CyberSpec scanning works : scheduled scans, ownership verification, live progress.
- SOC 2, ISO 27001 and PCI DSS coverage : what maps to which control family, and what doesn't.
- Subdomain takeover: the dangling DNS record : A CNAME that outlives the service it pointed at leaves an unclaimed name on your domain, and somebody else can register it.
- Ports that should never face the internet : RDP, database ports and container control planes end up publicly reachable the same handful of ways, almost never by decision.
- NIS2 Article 21: what a vulnerability scan shows : NIS2 Article 21 lists vulnerability handling among its security measures. What that asks of an EU business, and the part an external scan can evidence.