AI pentesting guides / What to test

External exposure

External attack surface testing

External attack surface testing is the discovery of everything an organisation exposes to the internet, followed by active testing to prove which of those exposures an attacker could actually exploit. It answers two questions in order: what do we have out there, and which of it is dangerous?

It overlaps with attack surface management (ASM), but ASM products mostly inventory and monitor. A test goes further and attempts exploitation, so a forgotten staging host is reported as, for example, an unauthenticated admin panel with a known remote code execution flaw, not just an extra subdomain.

Discovery

  • Subdomain enumeration from certificate transparency logs, passive DNS and brute force.
  • DNS resolution and port scanning to find live services, not just names.
  • HTTP probing and fingerprinting to identify technologies, versions and WAFs.
  • Historical URLs and crawling to find forgotten paths on known hosts.
  • Secrets exposure in public repositories linked to the organisation.

From exposure to proof

Each live service is then tested in proportion to its risk. Edge devices such as VPN gateways, file-transfer servers and load balancers deserve priority because known critical CVEs in them are mass-exploited within days of disclosure. Proof should be non-destructive: a version fingerprint plus a safe check that confirms the vulnerable code path, rather than running a weaponised exploit against production.

Prioritising what you find

Rank findings by exploitability and exposure, not by CVSS alone. A medium-severity issue on an unauthenticated internet-facing login is often more urgent than a high-severity one behind VPN. Check findings against the CISA Known Exploited Vulnerabilities catalogue to see which are being used in the wild.

Fixing external exposure

Decommission what you do not need, put the rest behind authentication or a VPN where possible, patch edge devices on an emergency timeline, and remove dangling DNS records. Feed discovered assets back into your inventory so they are monitored afterwards.

With Pentest-Swarm

How Pentest-Swarm tests the external attack surface

Pentest-Swarm's external-asm playbook chains discovery into exploitation, and every request is checked against a fail-closed scope so the swarm never strays onto assets you did not name.

  • Discovery with subfinder, amass, dnsx, naabu, nmap, httpx and whatweb, plus wafw00f for WAF detection.
  • Safe, non-weaponised verify chains for widely exploited edge CVEs, including Citrix Bleed, Ivanti Connect Secure, PAN-OS GlobalProtect, FortiOS and MOVEit Transfer.
  • Broader CVE coverage through nuclei's community templates.
  • Secrets exposure checks with gitleaks and trufflehog.

Where it falls short

Pentest-Swarm tests the scope you authorise; it is not a continuous internet-wide discovery service, and it does not currently prove subdomain takeover automatically. If you mainly need ongoing inventory and alerting across a large, changing estate, a dedicated ASM product is a better primary tool, with targeted testing on what it finds. Armur's managed platform verifies that you own each asset before testing.

Questions

What is the difference between ASM and external pentesting?

ASM continuously discovers and monitors exposed assets. An external pentest actively attempts to exploit them and proves impact. Many teams use both.

Is external attack surface testing safe for production?

It can be, if checks are non-destructive, rate-limited and restricted to authorised assets. Avoid weaponised exploits against production edge devices.

How often should the external surface be tested?

Continuously or at least monthly for discovery, and promptly whenever a critical CVE affects an edge product you run.

Sources

  1. CISA Known Exploited Vulnerabilities Catalog