- Your external attack surface is everything the internet can resolve and reach under your names, not only what your asset register lists.
- Certificate-transparency logs and passive DNS datasets remember names your team has forgotten, and attackers read them first.
- A useful inventory is rebuilt from the outside on a schedule and compared with the previous run, so new exposure shows up as a change.
Ask a security team to list its internet-facing assets and you usually get the important ones: the main website, the customer portal, the API, the VPN gateway, the mail servers. Then run passive enumeration against the same domains and the list usually grows. Certificate-transparency logs keep a public record of the TLS certificates issued for your names. Passive DNS datasets record names that resolved at some point. Search engines and web archives remember pages that nobody links to any more.
Attackers read those sources before they send a single packet to your network. The gap between what you think you expose and what you actually expose is where many intrusions start: an old staging server, a forgotten campaign site, a DNS record that still points at a cloud service nobody pays for.
What counts as your external attack surface
Your external attack surface is the set of assets an outsider can discover and reach from the internet, without credentials. For most organizations it includes:
| Asset | What to record | Why it matters |
|---|---|---|
| Domains and subdomains | Every name under the domains you own, including ones other teams and vendors created | Each name is a way in, and the forgotten ones are the least maintained |
| IP addresses and ports | The hosts behind those names and every service that answers on them | Remote-administration and database ports should rarely face the internet |
| Web apps and APIs | Login pages, admin panels, portals, documentation, old versions still deployed | Their software flaws and misconfigurations are reachable by anyone |
| TLS certificates | Names covered, issuer, expiry date, trust chain | Expired or self-signed certificates on public hosts are findings in themselves |
| Third-party services | Help desks, landing pages, storage and CDNs serving your subdomains | You carry the risk even though a vendor runs them |
| DNS and mail records | Name servers, mail exchangers, SPF and other TXT records | They tell an outsider who hosts what for you |
Two kinds of exposure sit outside your perimeter but still belong on the list: the credentials of your users that leaked from breaches or infected devices (see what to do when infostealer logs leak them), and lookalike domains registered to impersonate you.
Where the unlisted part comes from
Unknown assets rarely come from negligence. They come from normal work that never reached the inventory:
- Staging and test copies. A staging host cloned from production two years ago still runs the framework version it was cloned with.
- Campaign and event sites. Marketing launches a microsite on a hosted CMS for a product launch. The campaign ends; the site stays.
- Acquisitions and rebrands. An acquired company brings its own domains, hosting and certificates, and the old brand keeps resolving long after the new one launches.
- Cloud and SaaS self-service. A team can create a public endpoint, a storage bucket or a SaaS workspace with a custom domain in minutes, without a change ticket.
- Vendor-managed services. Agencies and integrators publish names under your domain for the services they run for you.
- Incomplete decommissioning. The service is deleted, the DNS record is not. Nothing breaks, so nobody notices, and a record that still points at a released cloud resource can be claimed by someone else. That is a subdomain takeover waiting to happen.
Why spreadsheets and CMDBs fall behind
A configuration management database knows what IT bought, deployed through its own process and recorded. The internet knows what resolves. The two drift apart for predictable reasons:
- Records are created by people who never touch the CMDB: developers, marketing teams, vendors.
- A hand-built inventory is accurate on the day it is finished and decays every week after.
- DNS and certificate changes are small and frequent, so they rarely trigger the process that updates an asset register.
- Ownership changes. When a project ends, its hosts lose their owner but keep running.
The fix is not a bigger spreadsheet. It is an inventory rebuilt from the outside, from the same sources an attacker uses, and compared with its previous version.
How an attacker maps you
External reconnaissance follows a predictable order:
- Collect names. Query certificate-transparency logs and passive DNS for every name under your domains, then add names from search engines, web archives and the links in your own pages and scripts.
- Resolve them. Find which names still have DNS records, and where they point: your data center, a cloud provider, a SaaS vendor, or nowhere.
- Probe services. Scan the resulting addresses for open ports and fingerprint web servers for titles, technologies and versions.
- Match weaknesses. Compare versions and responses with known vulnerabilities and default configurations; look for exposed admin panels, files that should be private and dangling records.
- Pick the softest target. The forgotten host is usually the least patched and the least watched.
None of this needs credentials or inside access, and most of it is automated. That is the best argument for defenders running the same steps first. The step-by-step guide to finding every subdomain covers the first two in detail.
An inventory that stays current
- Start from what you own. List your registered domains from registrar accounts and DNS zones, including old brands and acquired companies.
- Enumerate subdomains from passive sources such as certificate-transparency logs and passive DNS.
- Resolve and probe every name: DNS records, live web hosts, open ports, certificates and technologies.
- Keep every run with its date, so you can tell when an asset first appeared.
- Repeat on a schedule and compare each run with the previous one. New names, new open ports and new hosts are the changes worth a look.
- Give every new asset an owner, or decommission it, DNS record included.
Steps two to five are mechanical and should be automated. Step six is a decision, and it needs a person. In CTEM terms this is the discovery stage of the loop; the CTEM overview covers what comes after it.
What to look at first
These exposures tend to matter most, roughly in this order:
- Known vulnerabilities on internet-facing software, critical and high first.
- Remote-administration, database and file-sharing ports that answer from the internet.
- Login pages and admin panels on hosts nobody recognizes.
- Dangling DNS records that point at deleted cloud or SaaS resources.
- Expired, self-signed or mismatched certificates on public hosts.
- Files that should never be public, such as backups, environment files and repository folders.
How Scanbe4 runs this loop
Scanbe4 automates steps two to five for each domain you monitor:
- Subdomains from passive sources, including certificate-transparency logs and passive DNS datasets, merged and deduplicated.
- DNS resolution of every name: A, AAAA, CNAME, MX, TXT, NS and SOA records.
- HTTP probing of every name, with status code, page title, web server and detected technologies.
- The top 1,000 TCP ports on every resolved IP address.
- A certificate inventory that flags expired, untrusted, self-signed and mismatched certificates, and a screenshot of each live web app in a full scan.
Your inventory is not what your CMDB says. It is what the internet can resolve today, and the only way to know that is to keep looking from the outside.
Want to see what this looks like for your own domains? Request a demo and we will walk through a scan with you.
- External attack surface management — what Scanbe4 maps for each domain
- Scans documentation — full and quick scans, schedules, live progress
- Adding domains — targets, approval and authorization
Filed under Attack surface · CTEM