# What is an external attack surface, and how do you map it?

> Your external attack surface is everything your organisation exposes to the internet. We explain what it consists of, why it grows and how it is mapped.

Source: https://fmcybersecurity.com/en/insights/appsec/what-is-an-external-attack-surface/
Locale: English
Other locale: https://fmcybersecurity.com/innsikt/applikasjonssikkerhet/hva-er-ekstern-angrepsflate/

## Metadata

- Date: 2026-12-01
- Author: fredrik-standahl
- Topic: appsec
- Format: article

**In brief:** Anything your organisation leaves open to the internet can be found by an attacker without logging in anywhere. Keeping a complete list of it yourself is difficult. This article explains what an external attack surface is, why it grows without anyone noticing, and how it is mapped without anything being exploited.

## What is an external attack surface?

Your external attack surface is the sum of everything your organisation exposes to the internet that an attacker could try to use to get in. It covers domains, servers, services, email configuration and information that is openly available.

The US National Institute of Standards and Technology (NIST) defines an attack surface as the set of points on the boundary of a system or an environment where an attacker can try to enter, cause an effect or extract data. The definition is in the [NIST glossary](https://csrc.nist.gov/glossary/term/attack_surface).

The word "external" limits the surface to what can be reached from outside. What is only available from inside the network belongs to the internal attack surface.

## What does the external attack surface consist of?

It consists of the technology you expose and of information about your organisation that is openly available. An attacker can map both without touching your systems.

These are the most common parts:

- **Domains and subdomains:** The main website, customer portals, test environments and old campaign sites.
- **Exposed services and open ports:** Remote access, databases and administration pages that answer from the internet.
- **Certificates:** The certificates that secure traffic to your websites and services.
- **Email configuration:** Whether the domain has SPF and DMARC set up so that others cannot send email in your name.
- **Leaked secrets:** Passwords and keys sitting in public code repositories.
- **Exposed files:** Files such as `.git` and `.env`, which can contain source code and configuration.
- **Software versions:** Versions with known vulnerabilities that can be read from the servers' responses.

SPF is a standard that lets a domain owner state which servers may send email from the domain, described in [RFC 7208](https://datatracker.ietf.org/doc/html/rfc7208). DMARC, described in [RFC 7489](https://datatracker.ietf.org/doc/html/rfc7489), also lets the domain owner say how receivers should handle email that fails the check. Where they are missing, email from your domain is easier to forge.

## Why does the attack surface grow unnoticed?

The attack surface grows because new things go online faster than old ones are taken down. Each change is small, and often nobody is responsible for the overall picture.

A test environment stays up after the project has finished. A campaign site gets its own subdomain and is forgotten. A developer pushes code to a public repository with a key in a configuration file. A department sets up a new cloud service without telling IT.

Acquisitions and changes of supplier have the same effect. Domains and servers come along, and the inventory often does not keep up.

As a result, the organisation's own list of what is exposed easily becomes incomplete. An attacker looks at what actually answers from the internet, whatever your list says.

## How is the attack surface mapped without exploitation?

The attack surface is mapped with passive sources and light checks. The mapping finds and describes what is exposed, and it never tries to break in.

The external attack surface scan in FM CyberTools is one example. FM CyberTools is our own set of tools, which we are launching now, and the scan is the first of them.

Before anything runs, you prove that you own the domains with a DNS record, and you sign the scope. The scan then finds:

- your internet-facing domains and subdomains
- exposed services and risky open ports
- certificates
- gaps in the protection against spoofed email (SPF and DMARC)
- leaked secrets in public code repositories
- exposed files such as `.git` and `.env`
- software versions with known vulnerabilities

The scan involves no exploitation, no login attempts and no brute force. The requests are rate-limited and identify themselves as FM CyberTools, so your operations staff can recognise the traffic in their logs.

A read-only scan of the security posture in Microsoft 365 is in beta. Why ownership and a signed scope come first is explained in our article on [scope and authorisation before a penetration test](/en/insights/appsec/pentest-scope-and-authorisation/).

## How does attack surface mapping differ from a vulnerability scan and a penetration test?

Attack surface mapping shows what you have exposed. A vulnerability scan lists known weaknesses in the systems you point it at. A penetration test examines what an attacker could achieve within an agreed scope.

| | Attack surface mapping | Vulnerability scan | Penetration test |
|---|---|---|---|
| The question it answers | What have we exposed? | Which known weaknesses do our systems have? | What could an attacker achieve? |
| Starting point | Your domains | A list of systems | An agreed scope |
| Approach | Passive sources and light checks | Automated checks | Testers who look for and assess weaknesses |

Mapping and vulnerability scanning overlap to some extent, since both can point to software with known vulnerabilities. The difference is the starting point. Mapping looks for the systems you did not know about, while the scan goes more thoroughly through the ones you have listed. We explain scanning in [What vulnerability scanning finds and how to use the results](/en/insights/exposure/what-vulnerability-scanning-is/).

A penetration test goes deeper than both. With us, you choose whether the test stops at discovery and validation or whether we also try to exploit the findings. There is more on that choice in our article on [penetration testing with or without exploitation](/en/insights/appsec/pentest-with-or-without-exploitation/), and on the test itself in [Penetration testing: what it finds and how to prepare](/en/insights/appsec/what-a-penetration-test-finds-and-how-to-prepare/).

## What do you do with the result?

Use the result to tidy up first and test afterwards. Much of what a mapping finds can be removed without being fixed.

A practical order is this:

1. Take down what is no longer in use, such as old test environments and campaign sites.
2. Replace keys and passwords that have been exposed, and remove them from the repositories.
3. Close ports and services that do not need to be open to the internet.
4. Set up SPF and DMARC for the domains that lack them.
5. Update software with known vulnerabilities.
6. Use the list of what remains as the basis for the scope of your next penetration test.

The surface changes all the time, so the mapping should be repeated. How it fits in between tests is covered in our article on [how often to run a penetration test](/en/insights/appsec/how-often-to-run-a-pentest/).

## Who can you contact?

Fredrik Standahl leads our penetration tests, together with Christian Vik and Kenny Le. They can help you map what your organisation exposes and decide what should be tested further.

Read more about our [penetration testing](/en/services/pentest/) and [vulnerability management](/en/services/exposure-management/) services, or [get in touch](/en/contact/) if you want to know what an attacker can see about your organisation.

---

For the full documentation index, see https://fmcybersecurity.com/llms.txt
For the complete corpus as a single document, see https://fmcybersecurity.com/llms-full.txt
