easm.chUnderstanding your external attack surface

The external attack surface

What anyone on the internet can find out about your domains, servers and services – and why you should know it first.

2 min read · in plain words and for experts

Diagram
  1. Your domain
  2. Subdomains, servers, mail
  3. Publicly visible
  4. Attacker scans automatically

Definition and scope

External Attack Surface Management (EASM) is the continuous discovery, inventory and assessment of all of an organisation's internet-facing assets: domains and subdomains, IP addresses, web applications, mail servers, certificates and services. Unlike a penetration test, EASM is continuous, broad rather than deep and non-invasive by default. Unlike an internal vulnerability scan, EASM only has the outside view – no credentials and no agent.

Discovery

  • Certificate Transparency (CT): every publicly trusted TLS certificate is logged in CT logs. Queries via services such as Cert Spotter or crt.sh reveal subdomains, including long-forgotten ones.
  • DNS: MX, NS, SPF include, CNAME chains, SRV and resolution of common names (wordlist, with wildcard detection).
  • Web: links and redirects to own hosts.

Passive and active

TypeExamplesRequirement at eam.ch
PassiveDNS queries, CT logs, a normal HTTPS request, TLS handshake on port 443, STARTTLS to the mail serverDomain registered; for suppliers without their involvement
ActivePort check (TCP), enumeration of TLS versions and ciphers, admin paths, zone transfer (AXFR), wordlistProof of domain ownership (DNS TXT or file) and approval per target

In Switzerland, active checks without permission may fall under Art. 143bis SCC (unauthorised access to a data processing system) if they go beyond merely looking, and they usually breach hosting providers' terms of use. eam.ch therefore re-verifies the proof on every active run and excludes CDN and third-party addresses.

Limits of the outside view

  • Versions are derived from visible identifiers (banners, headers) – see Backports.
  • A service behind a firewall with an exception for certain addresses looks closed from outside.
  • If the scanner checks a server it runs on itself, the connection bypasses the firewall. Such addresses must be checked from a second location.

Relation to standards

Asset inventory and vulnerability management are required, among others, by the Swiss federal ICT minimum standard (Identify, ID.AM; Protect, PR.IP-12), ISO/IEC 27001:2022 Annex A 5.9 and 8.8, and NIS2 Art. 21(2)(e). An external check provides continuous, documented evidence for this.

In short

  • The external attack surface is everything your company exposes on the internet.
  • Attackers search for gaps automatically – every company is found.
  • Passive checks disturb nothing; active ones only with proof and permission.
  • Suppliers are part of your own attack surface.

Check it yourself

Commands to verify on Linux or macOS. Replace ihre-domain.ch with your domain and only check your own systems.

curl -s 'https://crt.sh/?q=%25.ihre-domain.ch&output=json' | jq -r '.[].name_value' | sort -u
dig +short www.ihre-domain.ch