Scan before attackers do.·Powered by silentwolf.io
DocsSupportContactLogin

Your Attack Surface Is Bigger Than You Think

Your external attack surface includes forgotten subdomains, old staging hosts and dangling DNS. Where hidden exposure comes from and how to keep it mapped.

Published Updated 7 min readBy the Scanbe4 teamAttack surfaceCTEM
In short
  • 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:

AssetWhat to recordWhy it matters
Domains and subdomainsEvery name under the domains you own, including ones other teams and vendors createdEach name is a way in, and the forgotten ones are the least maintained
IP addresses and portsThe hosts behind those names and every service that answers on themRemote-administration and database ports should rarely face the internet
Web apps and APIsLogin pages, admin panels, portals, documentation, old versions still deployedTheir software flaws and misconfigurations are reachable by anyone
TLS certificatesNames covered, issuer, expiry date, trust chainExpired or self-signed certificates on public hosts are findings in themselves
Third-party servicesHelp desks, landing pages, storage and CDNs serving your subdomainsYou carry the risk even though a vendor runs them
DNS and mail recordsName servers, mail exchangers, SPF and other TXT recordsThey 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:

  1. 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.
  2. Resolve them. Find which names still have DNS records, and where they point: your data center, a cloud provider, a SaaS vendor, or nowhere.
  3. Probe services. Scan the resulting addresses for open ports and fingerprint web servers for titles, technologies and versions.
  4. 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.
  5. 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

  1. Start from what you own. List your registered domains from registrar accounts and DNS zones, including old brands and acquired companies.
  2. Enumerate subdomains from passive sources such as certificate-transparency logs and passive DNS.
  3. Resolve and probe every name: DNS records, live web hosts, open ports, certificates and technologies.
  4. Keep every run with its date, so you can tell when an asset first appeared.
  5. 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.
  6. 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.
Schedules and change lists
Scheduled scans are opt-in per domain (daily, weekly or monthly), and every scan is kept with its date. From the second completed scan, Alerts › Changes since previous scan lists the new subdomains, live hosts, IP addresses, open ports and findings, and a scheduled scan also raises alerts for new subdomains, new IP addresses and newly detected critical or high vulnerabilities. The first scan has no baseline, so it shows no changes. Each domain is reviewed and approved by the Scanbe4 team before it is scanned, and because port scanning and probing are active, only add domains you own or are authorized to test.

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.

Where to go next

Want to see what this looks like for your own domains? Request a demo and we will walk through a scan with you.

Filed under Attack surface · CTEM

Related articles

Talk to the team

Scan before
attackers do.

Book a walkthrough and we will run Scanbe4 against your own domains with you.

Request a demoSee pricing

Quoted per organization · Set up with our team