Skip to content
Black box

Public domains: mapping what a government really exposes

Scenario: A state-level department with more than 120 public subdomains across portals, campaigns and legacy sites.

  • Government
  • 16 days
  • Starting point: domain names

Example engagement, illustrative: a composite scenario based on how we test. The organization, domains and findings are fictional.

Scenario snapshot

Industry
Government
Duration
16 days
Scope
Registered domains
Findings
10
Starting point
Domain names

The question: What is actually visible from the internet, and which parts could harm citizens or public trust if misused?

AI-powered, expert-verified

How WhyXpose AI works on this test

AI-guided recon turned domain names into a ranked host inventory and AI triage cut the noise. Pentesters tested the priority hosts by hand and verified every finding.

  • Verified under the Cyber Verification Programs for Anthropic Claude and OpenAI Codex
  • Self-hosted open-source AI models
See the AI engine
  1. AI-guided recon
  2. AI scanning
  3. AI triage
  4. Expert verification
  5. AI-drafted report
Timeline

The engagement, phase by phase

The inventory was built in WhyXpose first, then testing was ranked by risk.

  1. PHASE 01 · 1 DAY

    Scope

    Domains, rules, contacts

  2. PHASE 02 · 4 DAYS

    Discovery

    Subdomains, hosts, services

  3. PHASE 03 · 6 DAYS

    Testing

    Priority hosts, by hand

  4. PHASE 04 · 2 DAYS

    Validate

    Confirm, score

  5. PHASE 05 · 1 DAY

    Report

    Findings, fixes

  6. PHASE 06 · 2 DAYS

    Retest

    Verify the fixes

16 days in this scenario, from kickoff to retest.

Findings

10 findings, scored with CVSS 3.1

AI triage filtered out false positives, then a pentester reproduced and scored every finding before it was reported. Status shows where each one stood after the retest.

Findings with ID, severity, CVSS 3.1 score, title and status after retest
ID Severity CVSS Finding After retest
GV-01 Critical 9.8 Outdated CMS component allows remote code execution Resolved
GV-02 High 7.2 Dangling DNS record allows subdomain takeover Resolved
GV-03 High 7.5 Database backup file downloadable from web root Resolved
GV-04 High 7.5 Directory listing exposes citizen-submitted documents Resolved
GV-05 Medium 6.1 Reflected XSS in site search Resolved
GV-06 Medium 5.3 Administrator login pages reachable from the internet Retesting
GV-07 Low 3.7 Obsolete TLS 1.0 and 1.1 still enabled Resolved
GV-08 Low 3.1 Session cookies missing Secure and HttpOnly flags Resolved
GV-09 Info – Security headers missing on most subdomains Accepted
GV-10 Info – Email domain has no enforced DMARC policy Retesting
Spotlight

The findings that mattered most

  • GV-01 Critical · 9.8

    Outdated CMS component on a legacy subdomain

    CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

    What we found
    Fingerprinting showed a forgotten service running a content-management component several years behind on security updates, with a publicly documented critical weakness.
    Impact
    A full compromise of the server would put the department’s public presence and any data it holds at risk, and could damage public trust.
    Fix
    Retire the legacy site or upgrade the component now. Add every public host to the asset inventory so nothing is left unpatched.
  • GV-02 High · 7.2

    Dangling DNS record points to a service nobody owns

    CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N

    What we found
    Subdomain discovery found a record still pointing at a cloud service whose account had been closed after a past campaign.
    Impact
    A third party could host content on an official government address, enabling convincing phishing or misinformation.
    Fix
    Remove stale DNS records, review all subdomains quarterly and tie each record to a named owner.
  • GV-03 High · 7.5

    Database backup file reachable from the public web root

    CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

    What we found
    A routine check for leftover files found a compressed backup stored alongside the website files.
    Impact
    Backups can contain citizen records and credentials, so exposure is a data-protection incident in its own right.
    Fix
    Remove the file, store backups outside the web root, rotate any credentials it may hold and block common backup extensions.
Attack path

From attack surface to findings

Most of the work is deciding where to look. The department’s own list held 58 hosts.

  1. STEP 01

    134

    Subdomains discovered

  2. STEP 02

    97

    Responding to requests

  3. STEP 03

    31

    Running software of concern

  4. STEP 04

    10

    Confirmed findings

Techniques

How we tested

  • Certificate and DNS records
  • Subdomain discovery
  • Service fingerprinting
  • Configuration review
  • TLS and email checks
  • CVSS 3.1 scoring

New to this approach? Read about black-box penetration testing.

Scenario outcome

What changed after the retest

The critical host was taken offline within 48 hours, and the department has its first complete asset inventory: 134 hosts, each with an owner. It now runs a discovery check in WhyXpose every month, and the report goes to its security officer.

Most attack paths cross more than one target. Test them together under one scope and one report.

  • Discover your domains, subdomains and live hosts, then let our pentesters test the assets attackers see first.

  • Hands-on testing of your web apps for broken access control, injection, session flaws and business-logic abuse.

  • Network penetration testing

    External testing of everything the internet can reach, and internal testing of what an intruder could do next.

See what your public domains really expose