Compliance

Phase 1, Phase 2, then keep it running

A fixed-price gap analysis, remediation through to your audit, and upkeep after it. All in a workspace you keep.

All compliance
Security

Find it before a buyer does

Testing, assessments and security leadership, run by the researcher who found the Mirai botnet kill switch.

All security
Industries

Prove you are secure

To the people you sell to, raise from or answer to.

All industries
Resources

Learn the space

Original research, free tools and plain-language guides, from a published security researcher.

Read the blog
Security

Attack Surface Mapping for Early-Stage Startups: Building Your First Map

On this page, 7 sections
  1. Why map your attack surface this early
  2. Build the first map from the inside
  3. What to record for each item
  4. Decide what stays exposed
  5. Keep the map current
  6. How the map feeds everything else
  7. Common questions

Attack surface mapping for an early-stage startup means building one list of everything your company exposes to the internet, with an owner and a purpose for each item: domains and subdomains, the web app and its APIs, cloud services with public endpoints, storage, third-party hosted pages and leftovers from earlier experiments. Then you close what should not be public and keep the list current as the product changes.

Most startups have never written this list down. The product grew quickly, several engineers or contractors set things up along the way, and nobody owns the full picture. This guide covers how to build the first map from the inside, using the records you already control, how to decide what stays exposed, and how to keep the map from going stale. For the outside-in view, how an attacker finds your assets and how continuous monitoring works, see our guide to external attack surface management.

Why map your attack surface this early

At a company of ten or twenty people, the attack surface feels small. It rarely is. Every feature, test environment, marketing page and SaaS tool adds something to it, and the people who added it may no longer be at the company.

In our fractional CISO engagement with an early-stage aviation marketplace, mapping everything the company exposed to the internet was part of the monitoring work: domains and subdomains, the web application and its APIs, cloud services with public endpoints, and anything left behind from earlier experiments. At an early-stage company, a map like that almost always finds something forgotten: a test environment still reachable, a storage location more open than intended or a subdomain pointing somewhere it no longer should.

The map is cheap to build and it is the foundation for everything else. A vulnerability scan only covers what you point it at. A penetration test is scoped from what you know you have. An investor or partner asking how you protect customer data is really asking whether you know what you expose.

Build the first map from the inside

Outside-in discovery tools are useful, but at a startup the fastest and most complete starting point is the set of records you already own. Work through each source and add every public-facing item to one spreadsheet.

DNS and domains

  • List every domain the company has registered, including old brand names and campaign domains.
  • Export the DNS records for each one. Every A, AAAA and CNAME record is a potential entry point.
  • Note where each record points: your cloud, a SaaS provider, a hosting company or nowhere at all.

A CNAME pointing at a service you no longer use is the classic subdomain takeover risk. If the target can be claimed by someone else, they can serve content on your domain.

Your cloud account

On Google Cloud, the Cloud Asset Inventory can list resources across every project. On any cloud, look for:

  • Virtual machines with external IP addresses.
  • Load balancers and their front ends.
  • Serverless services that allow unauthenticated access, such as Cloud Run services or Cloud Functions open to all users.
  • Storage buckets with public access, or granted to all users.
  • Databases with public IP addresses.
  • Firebase projects and their security rules, if the mobile or web app uses Firebase.
  • Projects nobody recognizes. Old projects are where forgotten things live.

The application and its APIs

  • The main web app and any separate admin interface.
  • Public APIs, partner APIs and the API your mobile app uses. Mobile app APIs are public even if they are undocumented.
  • API documentation pages, especially ones that let anyone try requests.
  • Webhooks your app exposes for payment, messaging or verification providers.

For a marketplace, list the endpoints for each side separately. Buyer and provider endpoints often have different authentication paths, and the map is a good moment to check that every one of them has authentication at all. Our API security guide covers what to check.

Third-party hosted surfaces

  • Help desk, status page, documentation site, blog and landing page builders.
  • Forms and booking pages hosted by SaaS tools.
  • Anything on a subdomain of yours that a vendor runs.

Code and credentials

  • Public repositories under your organization or under engineers' and contractors' personal accounts.
  • Published packages or container images.
  • Mobile app builds, which can contain API keys and endpoint addresses.

What to record for each item

For every row in the spreadsheet, record:

  • What it is and its address.
  • Who owns it inside the company.
  • Why it is public.
  • What data it touches.
  • Whether it requires authentication.
  • When it was last reviewed.

Items with no owner and no purpose are the ones to look at first.

Free weekly email

Get The Compliance Brief every Tuesday

One email a week from Jacob Masse: the security and compliance stories that changed something that week, and what each one means if you sell software to enterprise buyers. Five stories, a take on each, five minutes to read.

Free. Unsubscribe in one click, and replies reach Jacob directly. Read the latest issue or browse the archive.

Decide what stays exposed

Go through the list and give each item one of three outcomes:

  • Keep, and confirm it is protected. The production app, its API, the marketing site. Check that authentication, TLS and current software are in place.
  • Restrict. Things that need to exist but not for everyone: admin panels, staging environments, internal tools. Put them behind your identity provider or remove public access.
  • Remove. Old campaigns, abandoned test environments, DNS records pointing at cancelled services, public buckets that should never have been public.

Staging and test environments deserve a specific check. They are often reachable, less protected than production, and sometimes hold copies of real customer data. Separating production from development, and keeping production data out of test, removes most of that risk.

Keep the map current

A map that is right on the day it is built and wrong three months later gives false comfort. In the aviation engagement, the map was kept current as the product changed, so a new public endpoint was noticed when it appeared rather than when somebody else found it.

Practical ways to keep it current at a small company:

  • Add "does this create anything public?" to the pre-release checklist for every feature.
  • Watch certificate transparency logs for new certificates issued on your domains. Every new subdomain with TLS shows up there.
  • Re-run the cloud inventory monthly and compare it with the last run.
  • Review DNS whenever a vendor is added or removed.
  • Remove contractor-created resources as part of offboarding.

If you would rather not run this yourself, our attack surface monitoring watches for changes continuously.

How the map feeds everything else

  • Vulnerability scanning: the map is the target list. Anything missing from it is not scanned. See our guide on building a software inventory for patching for the internal side.
  • Penetration testing: the map defines scope, so the test covers what you actually expose. See the penetration testing guide for startups.
  • Security reviews: when a partner or investor asks what you expose and how it is protected, the map is the answer. In the aviation engagement, the attack surface map was part of the evidence behind passing partner and investor security reviews.

Common questions

What is the difference between attack surface mapping and a vulnerability scan?

Mapping finds what you have. Scanning checks what you point it at for known weaknesses. A scan cannot cover an asset that is missing from its target list, so mapping comes first.

How long does a first attack surface map take at a startup?

For a company with one product, a handful of domains and one cloud provider, a first pass from internal records usually fits in a day or two. The longer part is tracking down owners for the items nobody recognizes.

What do early-stage companies usually find?

Test environments that are still reachable, storage more open than intended, subdomains pointing at services that have been cancelled, and admin interfaces without single sign-on. Most are quick to fix once found.

Do we need an attack surface management tool?

Not to start. A spreadsheet built from DNS, your cloud inventory and your vendor list is enough for the first map. A monitoring service becomes worth it when the product changes often enough that manual checks fall behind.

If you are not sure what your startup exposes to the internet, book a free call and we will help you build the first map.

Want someone to map and watch what you expose? Our fractional CISO service starts from $2,500 a month.

See the fractional CISO serviceOr book a free call

Before you go

Want the rest of this by email?

If this was useful, I send a few short notes on security posture. Unsubscribe in one click, and replies reach me directly.

From Jacob Masse, Principal of TrazTech: the files by email, then a few short notes over the next month. No spam, unsubscribe in one click.