← All articles

External vs Internal Penetration Testing: Which Do You Need?

The difference in external vs internal penetration testing is where the attacker starts. An external test attacks you from the internet, the way an outsider would. An internal test assumes the attacker is already inside, as an insider or someone who got past the perimeter, and measures how far they can get. Most cloud-native SaaS companies should start with an external test of their applications, APIs and internet-facing cloud resources. Internal testing becomes necessary once you have a meaningful corporate network, a compliance framework that names it (PCI DSS does), or a realistic "compromised laptop" scenario to worry about.

The definitions, from the source

NIST SP 800-115, the Technical Guide to Information Security Testing and Assessment, gives definitions most methodologies reuse:

  • External testing is "conducted from outside the organization's security perimeter," usually as seen from the internet, "with the goal of revealing vulnerabilities that could be exploited by an external attacker." It typically starts with reconnaissance of public registration data, DNS and other public information.
  • Internal testing has assessors "work from the internal network and assume the identity of a trusted insider or an attacker who has penetrated the perimeter defenses." It focuses on system-level security and configuration (authentication, access control, hardening) and on escalating privileges, for example from user to domain administrator.

NIST adds a practical point about ordering: if both are performed, "the external testing usually takes place first." That way the testers don't go into the external test already knowing your internal architecture, which no real outside attacker would.

External vs internal penetration testing, side by side

External penetration testInternal penetration test
Attacker simulatedAnonymous internet attackerMalicious insider, or attacker with a foothold (phished laptop, stolen VPN creds, compromised workload)
Starting pointPublic internet, no accessA host or account inside the network or cloud account
Typical targetsWeb apps, APIs, subdomains, exposed ports and services, VPN/SSO portals, public cloud storage, DNSActive Directory, internal apps and admin panels, file shares, databases, CI/CD runners, cloud IAM roles, segmentation
Common findingsExposed admin panels, outdated services with known CVEs, subdomain takeover, public buckets, injection and auth flaws in appsWeak or reused credentials, over-privileged service accounts, missing segmentation, unpatched internal hosts, lateral movement paths
Question it answers"Can someone get in?""Once they're in, how bad is it?"
What you provideList of domains, IP ranges and apps; authorizationNetwork access (VPN, jump box or on-site device), a standard user account, segmentation details
Typical market priceHackenProof: $5,000–$20,000HackenProof: $7,000–$35,000

What external testing finds

The external surface is where opportunistic attacks start. Verizon's 2025 DBIR reports that exploitation of vulnerabilities as an initial access step grew by 34% and now accounts for 20% of breaches. Those exploits mostly hit internet-facing systems.

An external pentest typically works through:

  1. Discovery. Subdomains from certificate transparency and DNS, IP ranges, cloud endpoints, and forgotten staging or preview environments. You can't test what you haven't found. How to map your external attack surface walks through it.
  2. Service enumeration. Open ports and service versions on each host.
  3. Vulnerability validation. Checking whether that version or that misconfiguration is actually exploitable.
  4. Application testing. The web app and APIs, which for SaaS companies are usually most of the external attack surface.

A basic, non-intrusive look at what one of your own hosts exposes:

# Run only against IPs/hosts you own or are authorized to test
nmap -Pn -sV --top-ports 1000 -oN external-scan.txt app.example.com

Anything on that list that isn't 80/443 deserves a reason. Databases (5432, 3306, 27017), Redis (6379), Elasticsearch (9200) and Kubernetes APIs (6443) show up on internet-facing hosts more often than they should. Our network audit scanner does port scanning with service fingerprinting, and stack discovery flags server versions with possible N-day exploits.

What internal testing finds

Internal tests answer the question the perimeter can't: what happens when something gets through. For a traditional company that usually means Active Directory. A tester starts with a standard domain user and looks for Kerberoastable service accounts, credential reuse, unconstrained delegation and a path to domain admin.

For a cloud-native startup with no office network, "internal" means something different, and the scope should say so explicitly:

  • Inside the VPC. From a compromised container or EC2 instance, what can be reached? The metadata service, other services without auth, databases with default credentials?
  • Inside the cloud account. With one leaked IAM key, what can be read or changed? This overlaps with a cloud configuration review. See the AWS security misconfigurations checklist.
  • Inside the delivery pipeline. CI runners with production secrets, build caches and over-scoped deploy tokens.
  • Employee endpoints. A laptop with saved sessions to the admin panel, the cloud console and the password manager.

If none of that infrastructure exists yet, an internal test has little to cover and the money is better spent on the external and application layer.

What compliance actually requires

FrameworkExternalInternalNotes
PCI DSS v4.0.1Required (11.4.3)Required (11.4.2)At least every 12 months and after significant changes; segmentation testing under 11.4.5/11.4.6 (summary)
SOC 2Not prescribedNot prescribedPentesting is a non-binding point of focus under CC4.1 (analysis); auditors look at what your controls describe
ISO 27001Not prescribedNot prescribedDriven by your risk assessment and Statement of Applicability (context)

PCI DSS is the one framework here that clearly requires both. Its methodology requirement (11.4.1) calls for testing from both inside and outside the network, covering application and network layers. If you're in PCI scope, you need both and the decision is made for you.

For SOC 2, most SaaS startups satisfy auditors with an external application pentest of the in-scope product, tested with authentication. That's a scoping question for your auditor, not a rule. Read SOC 2 penetration test: what auditors expect before you commit to a scope.

How to decide between external vs internal penetration testing

Answer these in order:

  1. Do you process card data in a PCI scope? You need both, annually and after significant changes.
  2. Do you have a corporate network with Active Directory, on-prem servers or a shared office LAN? Plan an internal test, ideally after the external one.
  3. Is your product a web app and API running in a public cloud, with employees on SaaS tools? Start with an external test that includes authenticated application testing. Add a cloud configuration review for the "internal" view.
  4. Is an enterprise customer asking for "a pentest"? Ask what they expect. Almost always it's a report on the product they're buying, which means external, application-focused testing. Here's what to send them.
  5. Did something change? New region, merger, new VPN, new office network. Re-evaluate the internal scope.

A common pattern for growing startups: an external and authenticated application test every year, continuous external monitoring in between, and a first internal test once there's a corporate environment worth attacking.

Where SecurityInfinity fits

SecurityInfinity is built for the external side. Our autonomous agents run recon, web, network and secrets checks against domains you've verified you own, and the scans are read-only. IP discovery maps subnets for live hosts, network audit fingerprints exposed services, and cloud misconfiguration checks look for public resources in AWS, Azure and GCP. Every finding comes with evidence and exact remediation, ordered by severity.

When you need a report for a customer or auditor, the Startup Pentest is a one-time external engagement covering your web app, APIs, subdomains and cloud exposure. It starts at $499 per application, and $999 adds authenticated testing across every user role. You get a report and signed attestation letter in 3 business days. We don't offer on-network internal tests such as Active Directory assessments. If you need one, the comparison above should help you scope it with a specialist. To see your external exposure today, start a free scan.

Frequently asked questions

What is the difference between external and internal penetration testing?

External testing attacks your systems from the internet with no prior access, simulating an outside attacker. Internal testing starts from inside your network or cloud environment, usually with a standard user account. It simulates an insider or an attacker who has already breached the perimeter, and measures lateral movement and privilege escalation.

Which should be done first, external or internal?

External, usually. NIST SP 800-115 notes that when both are performed, external testing typically comes first so testers don't carry insider knowledge of your architecture into a test meant to simulate an outsider.

Does SOC 2 require an internal penetration test?

SOC 2 doesn't prescribe either type. Penetration testing appears only as a non-binding point of focus under CC4.1. Most SaaS companies scope an external, authenticated test of the in-scope application, but you should confirm the expected scope with your auditor against your own control descriptions.

Is an internal penetration test necessary for a cloud-only company?

Not always in the traditional Active Directory sense. You should still assess what an attacker could do from inside your VPC, cloud account or CI/CD pipeline, through a scoped "assumed breach" test or a cloud configuration review, once that infrastructure holds sensitive data.

How much do external and internal penetration tests cost?

HackenProof's 2026 guide puts external network tests at $5,000–$20,000 and internal network tests at $7,000–$35,000, driven by the number of hosts, Active Directory scope and segmentation. SecurityInfinity's external Startup Pentest starts at $499 per application.

Find what attackers can see, before they do.

AI pentesting agents test your web app, API and cloud, and every finding comes with evidence and a fix. First report in about 10 minutes.

Stay ahead of attackers.

New vulnerabilities, breach write-ups and practical fixes. A few emails a month.