External Security

How to Assess Your Organisation's Internet Exposure

A practical guide to mapping your Internet-facing footprint: domains, DNS, certificates, IP ranges, exposed services, email records and leaked credentials.

Most organisations have more on the Internet than they think: campaign sites, test servers, SaaS tools on company subdomains and old pages nobody has looked at in years. Each is part of what an attacker sees from the outside. This guide walks through a practical, repeatable way to build that same outside view yourself, starting with steps you can do passively and ending with the parts that need authorised active testing.

Passive versus active: know the line before you start

Before collecting anything, separate two kinds of work:

  • Passive discovery uses information that is already public: domain registration data, DNS, certificate transparency logs, search engines, public code repositories and Internet-wide scan data published by others. You are not sending test traffic to the target systems.
  • Active testing means probing systems directly: port scanning, vulnerability scanning, fuzzing web applications or attempting logins. This interacts with the systems and can affect them.

Passive work on your own organisation is generally low-risk. Active testing must only be done against systems you own or are explicitly authorised in writing to test. That matters more than it seems: a “company” hostname may actually point to a hosting provider, a SaaS platform or a third party whose infrastructure you have no right to scan.

1. Inventory your domains and registrars

Start with the root of everything: the registered domains.

  • List every domain you know about, including country-code variants, old brand names, product names and defensive registrations.
  • Ask finance and procurement for renewal invoices. Registrar bills often reveal domains nobody in IT remembers.
  • Use RDAP (the modern replacement for WHOIS) to check the registrar, expiry date and name servers for each domain.

Record which registrar account holds each domain, who has access to it, and whether registrar lock and multi-factor authentication are enabled. An expired or hijacked domain is one of the most direct ways to lose control of email and web traffic.

2. Review DNS records

DNS tells you where your names actually point. For each domain, pull the main record types:

dig +short example.com A
dig +short example.com AAAA
dig +short example.com MX
dig +short example.com NS
dig +short example.com TXT
dig +short www.example.com CNAME

Look for:

  • Dangling records: CNAMEs pointing to cloud services, storage buckets or SaaS platforms that you no longer use. These can enable subdomain takeover if someone else can claim the target.
  • Records pointing to IP addresses you don’t recognise, which may belong to former providers.
  • Overly revealing TXT records that disclose internal tooling or verification tokens you no longer need.

Also confirm in your own DNS configuration that zone transfers (AXFR) are restricted to your secondary name servers.

3. Search certificate transparency logs

Every publicly trusted TLS certificate is recorded in certificate transparency (CT) logs. Searching those logs for your domains is one of the most effective passive ways to find subdomains, because any host that ever got a public certificate is listed there, including ones that never appeared in documentation.

Search for %.example.com in a public CT search interface and export the results. Expect to find staging environments, VPN gateways, old campaign sites and hosts created by vendors on your behalf. Wildcard certificates hide individual hostnames, so CT will not give you a complete list, but it is an excellent starting point.

4. Map cloud accounts and IP ranges

List the IP space you are responsible for:

  • Netblocks registered to your organisation (check the relevant regional Internet registry).
  • Public IP addresses allocated in each cloud account and region.
  • Addresses assigned by hosting providers, CDNs and colocation facilities.

Cloud endpoints are created and abandoned constantly, so pull this list from the provider’s own inventory or API rather than a hand-maintained spreadsheet.

5. Identify open ports and exposed services

Once you know your IP addresses and hostnames, you need to know what they expose. There are two ways to approach this:

Approach How it works Authorisation needed
Passive Query public Internet-wide scan datasets and search engines for your IPs and hostnames No direct interaction with your systems
Active Run a port and service scan against your own ranges Yes: written authorisation from the asset owner

Pay close attention to remote administration interfaces (RDP, SSH, database ports, management panels), file-sharing services and anything that should only be reachable internally. A service listening on the Internet is not automatically a vulnerability, but each one should have a known owner and a reason to be there.

This is where a structured Attack Surface Assessment helps: it consolidates domains, IPs, exposed services and public information into one inventory without actively scanning every asset.

6. Hunt for forgotten and staging hosts

The hosts that cause the most trouble are often the ones nobody remembers. Look for names containing words such as dev, test, staging, uat, old, backup, demo or beta. Typical problems include:

  • Staging copies of production with real data and weaker access controls.
  • Outdated CMS installations or admin panels left reachable.
  • Debug pages, directory listings or default installation pages.

For each one, decide: decommission it, restrict it behind VPN or IP allow-listing, or bring it under normal patching and monitoring.

7. Account for your third-party and SaaS footprint

Your exposure includes services you don’t host. Help desks, marketing platforms, status pages, file-sharing tools and identity providers often live under your subdomains or carry your brand. Build a list of:

  • SaaS platforms that use your domains (check CNAME and TXT verification records).
  • Who administers each account and whether it uses single sign-on.
  • What data each service holds.

You cannot scan a vendor’s infrastructure without their permission, but you can control the configuration of your own tenant and make sure accounts are closed when contracts end.

8. Check email security records

Email is one of the most abused external channels. Review three records for every domain, including domains that do not send email:

  • SPF (TXT on the domain) lists which servers may send mail for it. Check that it ends in -all or ~all and stays under the DNS lookup limit.
  • DKIM (TXT on selector._domainkey.example.com) publishes the keys used to sign outgoing mail. Remove selectors for services you no longer use.
  • DMARC (TXT on _dmarc.example.com) tells receivers what to do with mail that fails checks, and where to send reports.
dig +short _dmarc.example.com TXT

Parked domains should publish an SPF record of v=spf1 -all and a DMARC policy of p=reject so they cannot easily be used to spoof you.

9. Look for leaked credentials and breach exposure

Check whether corporate email addresses appear in publicly known breach datasets, using reputable breach-notification services that let you verify domain ownership. Exposure of an address does not mean a current password is compromised, but it does indicate risk of credential stuffing and phishing. Use the results to enforce password resets where needed, confirm multi-factor authentication coverage and review accounts that should no longer exist.

10. Review public code repositories

Search public code hosting platforms for your domains, internal hostnames, product names and email formats. Look for:

  • API keys, tokens and passwords committed to public repositories.
  • Configuration files that reveal internal infrastructure.
  • Forks or personal repositories created by employees or contractors.

If you find a secret, revoke and rotate it first. Deleting the file is not enough, because it remains in the repository history and may already have been copied.

11. Document and assign ownership

An inventory with no owners is just a list. For every asset, record at least:

Field Example
Asset staging.example.com
Type Web application
Hosting Cloud provider, region
Business owner Product team
Technical owner Named engineer or team
Exposure HTTPS, SSH
Decision Keep, restrict or decommission
Last reviewed Date

Anything without an owner should be treated as a priority until someone claims it or it is shut down.

12. Move from discovery to authorised testing

Passive discovery tells you what is out there. It does not tell you whether those systems have exploitable weaknesses. That requires active testing, and active testing requires written authorisation from whoever owns each system. Agree the scope (IP ranges, hostnames, applications), testing windows and contacts before any scan starts.

An External Vulnerability Assessment covers this step: active scanning of agreed systems for known vulnerabilities, outdated software, misconfigurations and TLS issues, followed by analysis and prioritisation of the results. If WordPress is a significant part of your web presence, a dedicated WordPress Security Assessment looks at it in more depth.

13. Repeat on a schedule

Your exposure changes every time someone deploys a service, adds a DNS record or signs up for a new tool. A one-off exercise goes out of date quickly. A sensible baseline is:

  • Continuous or frequent monitoring of certificate transparency and DNS changes.
  • A full passive review at least quarterly.
  • Authorised active testing after significant changes and on a regular cycle agreed with system owners.

Getting an outside view

Working through this list yourself is worth doing even if you later bring in help. If you would rather have an independent team map your exposure and test the systems that matter, you can request an assessment and we will help you define a scope that fits your organisation.