Read a sample: 1. Attack Surface Reduction as a Working Practice
A small organization can have a surprisingly large public footprint. Its main website may be easy to name, but a customer portal, a forgotten campaign domain, a remote-access gateway, a vendor-hosted support page, and an old test environment may also be reachable from the internet. Some are essential. Some are no longer needed. Others have a purpose that nobody can explain without further investigation.
The difficulty is not simply finding things that respond. It is deciding what those things are, who is responsible for them, why they remain available, and what would happen if their availability changed.
Attack surface reduction is the ongoing practice of making those decisions and carrying them through. It includes discovering public-facing assets, determining their purpose and ownership, reducing unnecessary exposure, and documenting what remains. It also includes declining to make a change when the available evidence is not good enough.
A successful program does not require every public service to disappear. An organization may need a website, an application programming interface, or a customer portal to do its work. The objective is to make exposure deliberate: necessary services have accountable owners and appropriate safeguards, unnecessary services are retired or restricted through a controlled process, and unresolved questions are visible rather than forgotten.
This chapter establishes the terms and working boundaries for the rest of the book. It also introduces a fictional organization and a baseline exercise that will help you decide what an inventory needs to support.
An attack surface is the collection of places where a system or organization can be reached or influenced by a potential attacker. For this book, the primary concern is the public-facing attack surface: assets and entry points that can be reached from the internet, whether directly or through a third-party platform.
A public-facing asset might be:
- A registered domain or subdomain used by the organization.
- A website, customer portal, or web application.
- A public application programming interface, often called an API.
- A remote-access service.
- An internet-facing server or cloud-hosted application.
- A vendor-hosted service operating on the organization’s behalf.
- A public entry point that redirects users to another service.
These categories overlap. A domain name may point to a service hosted by a vendor, and that service may depend on an internal system. The domain, service, hosting arrangement, and dependency each answer a different question. Treating them as one undifferentiated asset can make a later change harder to plan.
A public-facing asset does not have to contain sensitive data or offer a login page to matter. A forgotten domain can still be used in links, email addresses, documents, or integrations. A simple redirect can support a business process. Conversely, an asset’s presence in a registrar account or an old spreadsheet does not prove that a working service is currently reachable through it.
The distinction is important: an asset is something you track; exposure describes how it can be reached or affected. A single service may have several exposures, such as a public website and a separate administrative interface. A single domain may be associated with multiple services. An inventory must be able to represent those relationships without assuming that every name, address, and application is a separate business system.
An exposure is an opportunity for interaction with an asset. For example, a public login page exposes an authentication entry point to internet users. A public website exposes the pages and functions it serves. An API exposes operations that other systems can call.
Exposure is not automatically a defect. It may be the reason the service exists. A customer cannot use an online portal if the portal is inaccessible to customers.
A vulnerability, by contrast, is a weakness that could be exploited. An exposed service may have known weaknesses, unknown weaknesses, or no identified weakness at the time of review. Its exposure still matters because the organization must operate and maintain it, and because its availability creates opportunities for interaction.
Consider two fictional services:
- A supported customer portal is intentionally public, has a named owner, and is needed every day.
- An old demonstration site is also public, but its business purpose and technical owner are unclear.
The second service may be a better candidate for reduction, even if no specific vulnerability has been established. That does not mean the portal should be ignored or the demonstration site should be shut down immediately. It means each requires a different decision, supported by different evidence.
Attack surface reduction asks a practical set of questions: Does this entry point need to be available to this audience? Does it need to exist in its current form? If it remains, who will maintain it? If it changes, who or what may be affected?
Removing an unnecessary service is one way to reduce exposure, but it is not the only way. Depending on the business need and the technical arrangement, an organization might:
- Retire an application that has been confirmed unnecessary.
- Restrict an administrative interface to an approved network or access method.
- Consolidate several overlapping services into one supported service.
- Remove an obsolete public entry point while retaining a necessary internal function.
- Continue operating a public service with documented safeguards and ownership.
Each option has tradeoffs. Restricting access can interrupt users whose needs were not identified. Consolidation can introduce dependencies on the remaining service. Removing a domain or changing its registration can…