Most intrusions that start from the internet do not begin with a clever exploit. They begin with a search. Before an attacker sends a single malicious request, they assemble a picture of what an organisation exposes: domains, hosts, services, software versions, cloud storage, code, people and the relationships between them. Much of that picture can be built from public sources without touching the target at all.
Your external attack surface is everything in that picture that an outsider can reach or learn about. This article walks through how it is discovered, where the real risk tends to sit, and how defenders can see the same view first.
Passive reconnaissance: learning without touching
Passive reconnaissance uses information that is already published. It leaves little or nothing in the target’s logs, which is precisely why attackers like it.
Domains and DNS
A registered domain such as example.com is the starting point. From there, an observer can enumerate related information:
- DNS records. Mail exchangers, name servers and text records reveal which providers an organisation uses for email, hosting and identity. Verification tokens in TXT records often name specific software-as-a-service products.
- Subdomains. Names such as
vpn.example.com,jira.example.comorstaging-api.example.comare frequently discoverable through historical DNS datasets, search engines and brute-force guessing against common names. - Related domains. Registration details, shared name servers and shared hosting can link a primary domain to others owned by the same organisation, including those of acquired companies.
Certificate transparency
Publicly trusted TLS certificates are recorded in certificate transparency logs, which anyone can search. This is good for the web as a whole, because mis-issued certificates can be spotted, but it also means that every hostname placed on a public certificate becomes discoverable. Internal or pre-release names such as new-portal-test.example.com often appear here long before anyone intended them to be found. Wildcard certificates reduce this exposure for individual names, though they bring their own trade-offs.
Internet-wide scan data
Several organisations continuously scan the entire IPv4 address space and publish what they find: open ports, service banners, TLS certificates and page titles. An attacker can search these datasets for an organisation’s certificates or hostnames and immediately see which services answer on which addresses, without scanning anything themselves.
Code, documents and people
Public code repositories sometimes contain configuration files, internal hostnames, API endpoints or, at worst, credentials. Published documents can carry metadata with usernames and software versions. Job postings describe the technology stack in detail. Professional networking profiles reveal team structure and naming conventions for email addresses. None of this is a vulnerability in itself, but it all makes targeting more precise.
Active discovery: confirming what is there
Passive data is a starting point; it can be stale or incomplete. Active discovery confirms it by interacting with the target directly: resolving names, checking which ports answer, fingerprinting services and requesting pages. For an address in a range such as 203.0.113.0/24, an attacker wants to know what is listening, what software and version it runs, and whether it requires authentication.
This activity does reach the target, but at internet scale it blends in with constant background scanning, so it rarely raises an alarm on its own.
Where the risk actually sits
When we map external attack surfaces, the most serious exposures are rarely on the main website, which is usually well maintained. They tend to fall into a few recurring categories.
- Forgotten and unmanaged assets. A marketing microsite from a past campaign, a test environment that was never shut down, infrastructure inherited through an acquisition. These systems often miss patches because no team believes it owns them.
- Exposed administrative interfaces. Management consoles, database administration tools, remote desktop services and network device logins that were meant for internal use only.
- Remote access gateways. VPNs and similar edge devices are high-value targets because they sit at the boundary and, once compromised, provide a foothold inside the network. Keeping them patched and protected with strong multi-factor authentication matters a great deal.
- Development and staging systems. Pre-production environments frequently run with debug features enabled, weaker authentication or copies of production data.
- Cloud storage and services. Storage buckets, serverless functions and managed databases that are reachable from the internet with overly broad permissions.
- Dangling DNS. A DNS record that still points at a cloud resource that has been deleted. If someone else can claim that resource, they can serve content on your subdomain, which is known as subdomain takeover.
- Third-party and supply-chain exposure. Services run by vendors on your behalf, sometimes under your domain, that you do not directly control.
The common thread is visibility. Organisations rarely leave a system exposed on purpose; they leave it exposed because they do not know it exists, or do not know it is reachable.
Building your own outside-in view
Defenders have one advantage: they can look at the same public data with additional context about what should exist. A practical programme has four parts.
1. Discover continuously
Use the same sources an attacker would: DNS, certificate transparency, scan datasets, cloud provider inventories and code repositories. Run discovery on a schedule rather than once a year, because the attack surface changes every time someone deploys a service, issues a certificate or registers a domain.
2. Attribute and assign ownership
For every discovered asset, answer two questions: is this ours, and who is responsible for it? Assets with no owner are the ones most likely to be neglected. Linking assets to business units, applications and cloud accounts makes remediation possible.
3. Assess and prioritise
Not every exposed service is a problem. A public website is supposed to be public. Prioritise by combining several factors: whether the service should be reachable at all, whether it requires authentication, whether it runs software with known exploitable weaknesses, and what data or access it would provide to an attacker. A forgotten administrative login on an outdated system deserves attention before a well-maintained marketing page.
4. Reduce, then monitor
The most effective fix is often removal: decommissioning unused systems, deleting stale DNS records, restricting administrative interfaces to private networks or behind an identity-aware proxy. What remains should be monitored for change, so that a newly opened port or a newly issued certificate for an unexpected hostname generates an alert rather than going unnoticed.
Questions worth asking
- Do we have a current list of every domain and subdomain we own, including those from acquisitions?
- Which of our internet-facing services are administrative, development or remote access interfaces, and should they be public?
- Do we review certificate transparency entries for our domains?
- How quickly would we notice a new internet-facing service that nobody announced?
- Do any DNS records point at cloud resources that no longer exist?
- Which vendors operate services under our domain names?
The point of seeing first
An attacker’s reconnaissance is cheap, quiet and repeatable. The goal of attack surface management is not to make an organisation invisible, which is impossible for anyone who operates online, but to make sure that everything visible is known, owned, intentional and maintained. When defenders see their exposure before an attacker does, the first knock on the door finds nothing that was forgotten.