---
title: "Attack Surface Mapping Data for OEMs and MSSPs"
slug: "/solutions/attack-surface-mapping"
description: "Build attack surface mapping into your product or MSSP service with WhoisFreaks data: reverse WHOIS, 6.8B+ hostnames, 19.4B+ DNS records, SSL and ASN."
---

New

[How to Tell if a Website Is Legit or a ScamRead Now](https://whoisfreaks.com/resources/blog/how-to-tell-if-a-website-is-legit)

[Domain Reputation API](https://whoisfreaks.com/products/domain-reputation-api)[Contact Sales](https://whoisfreaks.com/calendar)

![](https://whoisfreaks.com/images/hero/api-hero-wave-left.svg)

NewSolutions › Attack Surface Mapping

# Attack Surface Mapping Data for OEMs and MSSPs

Find the domains, subdomains, DNS records, IP networks and certificates that belong to an organization, using WhoisFreaks data inside your own security product or managed service. Prototype on the APIs, then load the database files into your own infrastructure as your volume grows.

keyAccess is by trial, enabled on request. Contact us to start a trial and get pricing for your volume.

[Request a Trialarrow_forward](https://whoisfreaks.com/contact)[View API Documentationdescription](https://whoisfreaks.com/documentation)

- 6.8B+: Hostnames Indexed
- 19.4B+: DNS Records
- 4.6B+: WHOIS Records
- 7,851+: TLDs and SLDs

- 6.8B+: Hostnames Indexed
- 19.4B+: DNS Records
- 4.6B+: WHOIS Records
- 7,851+: TLDs and SLDs
- 6.8B+: Hostnames Indexed
- 19.4B+: DNS Records
- 4.6B+: WHOIS Records
- 7,851+: TLDs and SLDs- 6.8B+: Hostnames Indexed
- 19.4B+: DNS Records
- 4.6B+: WHOIS Records
- 7,851+: TLDs and SLDs
- 6.8B+: Hostnames Indexed
- 19.4B+: DNS Records
- 4.6B+: WHOIS Records
- 7,851+: TLDs and SLDs

## What Is Attack Surface Mapping?

Attack surface mapping is the process of finding every internet-facing asset an organization owns: its registered domains, the subdomains under them, the IP addresses and networks those hosts resolve to, and the TLS certificates they present. The map changes whenever a team launches a site, adds a cloud service or forgets an old one, so security products and service providers rebuild it on a schedule.

searchSeen by one DNS query

*   checkThe domain you already know
*   checkHosts that resolve today

Where a single DNS query stops

travel_exploreFound with WhoisFreaks data

*   mail
    
    Campaign domains registered under a subsidiary's email
    
    `Reverse WHOIS`
*   search_off
    
    Subdomains that stopped resolving last year
    
    `first_seen, last_seen`
*   flag
    
    Regional sites on country-code domains such as .de or .co.uk
    
    `ccTLD WHOIS`
*   lan
    
    IP addresses and networks the hosts resolve to
    
    `IP and ASN WHOIS`
*   verified
    
    TLS certificates the hosts present
    
    `SSL Certificate Lookup`

The map changes whenever a teamlaunches a sitearrow_forwardadds a cloud servicearrow_forwardforgets an old onearrow_forwardautorenewRebuild on a schedule

**A map is only as complete as the data behind it.** A campaign domain registered under a subsidiary's email, or a subdomain that stopped resolving last year, will not show up from a single DNS query. WhoisFreaks supplies the registration, subdomain, DNS, network and certificate data that discovery pipelines run on, so your engineers work on findings and scoring instead of collectors.

## Data for Teams That Deliver Attack Surface Mapping

This solution is for companies that sell attack surface mapping to their own customers. You build the product or run the service, and WhoisFreaks supplies the data underneath it.

extensionYou build the product

### Security Product Vendors (OEMs)

EASM, CTEM, security ratings, third-party risk and pentest platforms that need discovery data inside the product. Use WhoisFreaks data instead of building your own WHOIS collectors, DNS resolvers and subdomain index.

your-platform

*   travel_exploreEASM
*   autorenewCTEM
*   starSecurity ratings
*   hubThird-party risk
*   bug_reportPentest

Instead of building your own

*   closeWHOIS collectors
*   closeDNS resolvers
*   closeSubdomain index

securityYou run the service

### MSSPs and MSPs

Providers that map each client's external footprint at onboarding and at every review. Run the same lookups for every client from one account, and use first_seen and last_seen dates to show each client what changed.

Client onboardingPeriodic reviews

Client AMapped+ first_seen: new host

Client BMapped− last_seen: retired host

Client CMapped+ first_seen: new host− last_seen: retired host

keyOne account for every client

storageWhoisFreaks data underneath

*   domain_addRegistration
*   account_treeSubdomain
*   dnsDNS
*   lanNetwork
*   verifiedCertificate

infoMapping only your own organization? The Subdomain Finder API and Reverse WHOIS API are self-serve, with 500 free credits on signup.

## From One Seed Domain to a Full External Asset Map

Discovery starts from something your customer gives you: a primary domain, a registrant email or a company name. Each step below expands that seed with a different WhoisFreaks dataset, and each step's output is the next step's input.

*   Main line: seed to owners and ASNs
*   Branch: hosts to certificates
*   Loop: new domains back into the map

Seed

Start from

*   Primary domain
*   Registrant email
*   Company name

1.  01Seed → DomainsReverse WHOIS API
    
    ### Find Related Domains with Reverse WHOIS
    
    Search WHOIS records by registrant email (including patterns such as *@company.com), company name, registrant name or a keyword in the domain. The [Reverse WHOIS API](https://whoisfreaks.com/products/reverse-whois-api) searches 4.6B+ WHOIS records dating back to 1986, including historical records, so domains registered before GDPR redaction hid the owner still come back.
    
2.  02Domains → HostsSubdomain Finder API
    
    ### Enumerate Subdomains
    
    Pull every known subdomain of each domain, active and inactive, from an index of 6.8B+ hostnames. The [Subdomain Finder API](https://whoisfreaks.com/products/subdomains-api) returns first_seen and last_seen dates for each host, filters by status and date range, and answers in 200 ms at the median.
    
3.  03Hosts → IP addressesDNS Lookup API, DNS Database
    
    ### Resolve Hosts to Infrastructure
    
    Resolve each host to its A, AAAA, MX, NS, TXT, SOA and CNAME records in one call with the [DNS Lookup API](https://whoisfreaks.com/products/dns-checker-api), or match a full host list against the DNS Database, where 19.4B+ records are stored with the date each one resolved. WhoisFreaks crawlers build that database from DNS nodes in several locations, so a record blocked in one region can still be fetched from another.
    
4.  04IP addresses → Owners and ASNsIP WHOIS API, ASN WHOIS
    
    ### Attribute IPs and Networks
    
    Find who owns each IP address and where abuse reports go with the [IP WHOIS API](https://whoisfreaks.com/products/ip-whois-api). ASN WHOIS data adds the network's organization, BGP route objects, IP prefixes, and upstream, downstream and peer ASNs, so you can tell a customer's own address space from a hosting or CDN provider.
    
5.  05Hosts → CertificatesSSL Certificate Lookup API
    
    ### Check the Certificate on Every Host
    
    Fetch the live certificate chain for each host with the [SSL Certificate Lookup API](https://whoisfreaks.com/products/ssl-certificate-api): issuer, validity dates and the end-user, intermediate and root certificates. Lookups run live with no caching, so expiry and self-signed findings reflect the certificate the host presents today.
    
6.  06Registrant → New domainsRegistrant Monitoring
    
    ### Catch New Registrations Between Runs
    
    [Registrant Monitoring](https://whoisfreaks.com/products/registrant-monitoring) sends a daily alert when a registrant email, name or company you track registers another domain, so new domains reach the map before your next full run.
    

## Build the First Pass of a Map in Python

This script chains three APIs: Reverse WHOIS for a company's domains, the Subdomain Finder API for each domain's active hosts, and the SSL Certificate Lookup API for each host's certificate expiry. Run it with the API key issued for your trial. Request parameters and response fields are in the [API documentation](https://whoisfreaks.com/documentation).

[Request a Trial](https://whoisfreaks.com/contact)[View API Documentation](https://whoisfreaks.com/documentation)

map_attack_surface.py

1234

```python
import requests

API = "https://api.whoisfreaks.com"
KEY = "YOUR_API_KEY"
```

Your trial key

Run it with the API key issued for your trial.

7891011121314151617181920

```python
def related_domains(company):
    """Current and historical domains whose WHOIS records name this company."""
    domains, page = set(), 1
    while True:
        data = requests.get(
            f"{API}/v2.0/whois/reverse",
            params={"apiKey": KEY, "company": company, "exact": "true", "page": page},
            timeout=30,
        ).json()
        for record in data.get("whois_domains_historical", []):
            domains.add(record["domain_name"])
        if page >= data.get("total_Pages", 1):
            return domains
        page += 1
```

Reverse WHOIS

GET /v2.0/whois/reverse

Current and historical domains whose WHOIS records name this company.

Sends`company``exact``page`

Reads`whois_domains_historical``domain_name`

23242526272829303132333435

```python
def active_subdomains(domain):
    """Active subdomains of one domain, with first_seen and last_seen dates."""
    hosts, page = [], 1
    while True:
        data = requests.get(
            f"{API}/v1.0/subdomains",
            params={"apiKey": KEY, "domain": domain, "status": "active", "page": page},
            timeout=30,
        ).json()
        hosts += data.get("subdomains", [])
        if page >= data.get("total_pages", 1):
            return hosts
        page += 1
```

Subdomain Finder

GET /v1.0/subdomains

Active subdomains of one domain, with first_seen and last_seen dates.

Sends`domain``status=active``page`

Reads`subdomains``first_seen`

38394041424344454647

```python
def certificate_expiry(host):
    """Expiry date of the certificate the host presents right now."""
    data = requests.get(
        f"{API}/v1.0/ssl/live",
        params={"apiKey": KEY, "domainName": host, "chain": "true"},
        timeout=30,
    ).json()
    for cert in data.get("sslCertificates", []):
        if cert.get("chainOrder") == "end-user":
            return cert.get("validityEndDate")
```

SSL Certificate Lookup

GET /v1.0/ssl/live

Expiry date of the certificate the host presents right now.

Sends`domainName``chain=true`

Reads`chainOrder``validityEndDate`

50515253

```python
for domain in sorted(related_domains("Example Corp")):
    for sub in active_subdomains(domain):
        host = sub["subdomain"]
        print(domain, host, sub["first_seen"], certificate_expiry(host))
```

Output

One line per active host: its domain, the host, its first_seen date and its certificate expiry.

## Start on the APIs, Move to Database Files at Volume

apiOn demand

### APIs for On-Demand Discovery

Call the APIs when a customer adds a domain or an analyst opens a case. Responses come back as JSON or XML, and official Python and Go SDKs are available. Median response time is 200 ms for subdomain lookups and 178 ms for SSL lookups.

Subdomain lookups, median

200 ms

SSL lookups, median

178 ms

Response formats

JSON, XML

2.  A customer adds a domainGET /v1.0/subdomains · 200 ms
3.  An analyst opens a caseGET /v1.0/ssl/live · 178 ms

A customer adds a domainGET /v1.0/subdomains · 200 ms

An analyst opens a caseGET /v1.0/ssl/live · 178 ms

trending_upMove here when you map many organizations on a schedule

storageAt volume

### Database Files for Scheduled Mapping

The [DNS Database](https://whoisfreaks.com/products/dns-database) ships as a full download plus daily update files. The Subdomains Database offers daily, weekly or monthly updates, and the ASN WHOIS Database ships a daily snapshot. Lookups then run against your own copy of the data.

DNS Database update files

Daily

Subdomains Database updates

Daily to monthly

ASN WHOIS snapshot

Daily

2.  Full download
3.  Daily update files
4.  storageLookups run against your own copy

Full downloadDaily update filesstorageLookups run against your own copy

descriptionDownload free sample files from the [Subdomains Database](https://whoisfreaks.com/products/subdomains-database) and DNS Database pages before you buy.

## What WhoisFreaks Data Adds to Your Discovery

What your team can check during a trial, starting with how WhoisFreaks collects WHOIS for country-code domains.

### Registry-Level WHOIS, Including Country-Code Domains

Subsidiaries and regional sites often sit under country-code extensions such as .de or .co.uk, so an attack surface map needs WHOIS beyond .com. The [WHOIS Database](https://whoisfreaks.com/products/whois-database) is collected from 1,200+ registry and registrar WHOIS servers and RDAP endpoints for gTLDs, and through private integrations with 200+ country-code registries. It covers every major gTLD, 370+ ccTLDs and 6,322 second-level domains such as .co.uk and .com.au.

Live lookups through the [WHOIS API](https://whoisfreaks.com/products/whois-api) can draw on four sources: WHOIS on port 43, RDAP, in-house scrapers that extend TLD coverage, and proprietary feeds. When one source is rate-limited or returns a stub record, the next fills the gap. Each response also carries the registry's own record next to the registrar's copy, so you can cross-check dates, registrar and status.

subdirectory_arrow_rightWhen one source is rate-limited or returns a stub record, the next fills the gap.

apiOne live WHOIS API lookup

2.  1WHOIS on port 43closerate-limited
3.  2RDAPclosestub record
4.  3In-house scraperscheckfills the gap
5.  4Proprietary feedsnext in line

One response

RegistryRegistrardatescheckcheckregistrarcheckcheckstatuscheckcheck

swap_horizRegistry record next to the registrar copy

gTLDs

Every major gTLD1,200+ registry and registrar WHOIS servers and RDAP endpoints

ccTLDs

370+Private integrations with 200+ country-code registries

Second-level domains

6,322Such as .co.uk and .com.au

check_circleTrial checklist· 8 items

*   Ownership History Since 1986
    
    Reverse WHOIS covers historical records, including registrations made before GDPR redaction hid the owner.
    
    `pre-GDPR records`
*   Normalized WHOIS Fields
    
    Registrar names are normalized, addresses are parsed and geocoded, and every date comes back as YYYY-MM-DD.
    
    `YYYY-MM-DD`
*   Live Lookups With Fallback
    
    If a WHOIS server does not answer, the API returns the last known record with status 210 instead of a blank.
    
    `status 210`
*   ccTLD Data by Country
    
    Buy WHOIS data for [one ccTLD](https://whoisfreaks.com/products/whois-database/tld) or registrant country, such as .de or the UK, without the full global database.
    
    `one ccTLD or country`
*   Dated DNS Records
    
    Each DNS record is stored with the date it resolved, so you can show when a host moved to a new provider.
    
    `date resolved`
*   Active and Inactive Hosts
    
    Subdomain records carry first_seen and last_seen dates, so you can separate retired hosts from live ones.
    
    `first_seen · last_seen`
*   99.9% Uptime SLA
    
    The WHOIS API carries a 99.9% uptime SLA, with live uptime and response times published on a [status page](https://status.whois.whoisfreaks.com/).
    
    `99.9% SLA`
*   Trial Before You Sign
    
    Trials are enabled on request, with public documentation and free database samples to review before a call.
    
    `free samples`

## How OEM and MSSP Access Works

1.  ### 1. Request a Trial
    
    Contact us to start a trial, then run your own seed domains through the APIs and check coverage in the free database samples.
    
2.  ### 2. Agree Volume and Licensing
    
    Talk to sales about request volume, database delivery and how WhoisFreaks data can appear inside your product or client reports.
    
3.  ### 3. Integrate
    
    Ship on the APIs with the [Python SDK](https://whoisfreaks.com/integrations/sdk/python) or the Go SDK, or load the database files into your own storage and run lookups locally.
    

MSSPs that resell WhoisFreaks access to clients can also join the [Reseller and Affiliate Program](https://whoisfreaks.com/resellers-and-affiliates).

## Attack Surface Mapping Data FAQs

Questions OEM and MSSP teams ask before they build on WhoisFreaks data.

<details>
<summary><strong>What data do you need for attack surface mapping?</strong></summary>

You need the domains an organization owns, the subdomains under them, the DNS records those hosts resolve to, the IP addresses and networks behind them, and the certificates they serve. WhoisFreaks provides each of these through APIs, and WHOIS, subdomain, DNS and ASN data are also available as downloadable databases.
</details>

<details>
<summary><strong>Do you cover WHOIS for ccTLDs?</strong></summary>

Yes. WhoisFreaks covers 370+ ccTLDs and 6,322 second-level domains such as .co.uk and .com.au. Records come from registry and registrar WHOIS servers, RDAP endpoints and private integrations with 200+ country-code registries, and WHOIS data for a single ccTLD or registrant country can be bought on its own.
</details>

<details>
<summary><strong>Can we build WhoisFreaks data into our own product?</strong></summary>

Yes. OEMs call the APIs from their product or load the database files into their own infrastructure. Volume pricing and licensing terms are agreed with sales.
</details>

<details>
<summary><strong>How do MSSPs use WhoisFreaks across many clients?</strong></summary>

Run the same pipeline for each client's seed domains and store the results per client. Subdomain first_seen and last_seen dates show which hosts are new or gone since the previous review, and Registrant Monitoring flags new domains registered by a tracked email or company. MSSPs that resell access can join the Reseller and Affiliate Program.
</details>

<details>
<summary><strong>Should we use the APIs or the database downloads?</strong></summary>

Use the APIs for on-demand lookups, such as when a customer adds a domain or an analyst investigates a host. Move to the database files when you map many organizations on a schedule and want lookups to run against your own copy of the data.
</details>

<details>
<summary><strong>How often is the data updated?</strong></summary>

SSL lookups run live. WHOIS data refreshes 35M+ records a day. The DNS Database ships daily update files, the Subdomains Database offers daily, weekly or monthly updates, and the ASN WHOIS Database ships a daily snapshot.
</details>

<details>
<summary><strong>Does discovery send traffic to the target organization's hosts?</strong></summary>

Reverse WHOIS, Subdomain Finder API and DNS Database lookups query WhoisFreaks' own data, so nothing is sent to the target's hosts. The SSL Certificate Lookup API connects to the host to read its live certificate, the same way a browser does.
</details>

<details>
<summary><strong>Does WhoisFreaks scan for vulnerabilities?</strong></summary>

No. WhoisFreaks supplies discovery and attribution data. Port scanning and vulnerability checks stay in your product or service.
</details>

<details>
<summary><strong>How do we get access and test the data?</strong></summary>

Access is by trial, enabled on request. Contact us and we will turn on a trial for your team, then agree pricing and licensing after the trial. The Subdomains Database and DNS Database also have free sample files you can download now.
</details>

login-verify[.]example

## Talk to Sales About OEM and MSSP Access

Tell us what you are building, how many organizations you map and how often. We will enable a trial and recommend API volume or database delivery to match.

[Request a Trial](https://whoisfreaks.com/contact)[Talk to Sales](https://whoisfreaks.com/calendar)

Want to check coverage first? Download free sample files from the [Subdomains Database](https://whoisfreaks.com/products/subdomains-database) page.
