Internal vs external penetration testing

External testing shows what an internet attacker can reach, internal testing shows what someone already inside can do with that access. Most regulated buyers need both, and this page explains how to scope, buy and combine them.

On this page

When to choose internal, external, or both

A regulated team deciding what to commission this year should start from the question each viewpoint answers. External testing covers the internet-facing perimeter, while internal testing covers what an insider or a user whose account has been compromised can reach. Most regulated programs need both, but they rarely need them in the same order or at the same depth. NIST SP 800-115 says that when both are performed, external testing usually takes place first, so that assessors doing both do not gain insider knowledge an adversary would not have. That sequencing keeps the external result honest.

External testing is usually the right first purchase when the organization has public web applications, VPN or remote access gateways, email, or other services reachable from the internet and has not yet confirmed what those services expose. The work begins with reconnaissance of public registration data and DNS, then moves to discovery and scanning of external hosts and listening services, as described in NIST SP 800-115. Internal testing becomes the better first purchase when the perimeter is already well understood, or when the main concern is lateral movement after a phishing compromise or a flat network. In that case, the tester is typically given access as an ordinary user and tries to escalate privileges, including configuration, authentication, access control and hardening. Internal scanning usually uncovers more vulnerabilities than external scanning, so a team with a large internal estate may see a longer findings list from the internal side. That count does not show that the internal side matters more, and the reader should confirm with the provider how each test's findings will be prioritized.

Combining the two is the norm when the regulator or standard requires both. PCI DSS requirement 11.4.1 defines internal testing from inside the network, including into the cardholder data environment, and external testing of the exposed perimeter and critical systems reachable from public networks. CIS Controls Safeguards 18.2 and 18.5 ask for external and internal penetration tests at least annually, with internal testing allowed as clear box or opaque box. Before you sign, ask the provider which access model it will use for each viewpoint, how it will keep the internal tester from using external findings it should not have, and whether the scope and rules of engagement state both viewpoints clearly.

Internal and external penetration testing side by side

This table compares what each viewpoint is built to test, the access testers start with, and the evidence each one produces for PCI DSS and CIS Controls. Read it as a scoping checklist: the rows that matter most are the starting access, the attacker profile, and the items the buyer must confirm with the provider before signing a statement of work.

FactorExternal penetration testInternal penetration test
GoalFind what an outside attacker can reach on the internet-facing perimeter and critical systems exposed to public networksFind what a user or attacker already inside the network can reach, including the cardholder data environment when in scope
Starting accessNo internal access; begins with public registration data, DNS information and other public sourcesOften network access as a general user; some engagements start with no access, which the buyer must specify
Attacker profile simulatedOutsider with no prior knowledge of the internal networkInsider or an attacker who has already passed the perimeter; confirm which profile the provider assumes
Typical first stepsReconnaissance, then network discovery and scanning to list external hosts and listening servicesHost and service enumeration from the inside, followed by authentication and access control checks
Privilege escalation focusLimited by design; testers pursue a path in from outside, not a higher role on internal systemsCentral focus, for example user to administrator or system administrator to domain administrator, as NIST SP 800-115 describes
Configuration and hardening coverageExposed services, certificates and configuration visible from the internetConfiguration, authentication, access control and hardening across internal systems
Network vantage pointNeutral internet connection without port or service restrictions from the buyer's own provider, per PCI SSC guidanceInside the network, testing the CDE from trusted and untrusted internal networks; PCI SSC asks for a neutral connection unaffected by corporate access controls
PCI DSS 11.4.1 definitionTesting the exposed external perimeter and critical systems reachable from public networksTesting from inside the network, both inside the CDE and into the CDE from internal networks
CIS Safeguard 18.2 and 18.5 mappingSafeguard 18.2 asks for external penetration tests at least annually, based on program requirementsSafeguard 18.5 asks for internal penetration tests at least annually, based on program requirements
Clear box or opaque box optionsConfirm whether the provider receives target lists only or additional documentationSafeguard 18.5 notes internal testing may be clear box or opaque box; confirm which the statement of work uses
Typical findings volumeFewer exposed services than an internal network, per NIST SP 800-115's observation on scanningNIST SP 800-115 notes internal scanning usually uncovers more vulnerabilities than external scanning
Team effort to supportLighter setup, but the buyer must confirm IP ranges, domains and third-party hosting permissions in writingRequires test accounts, network access, a neutral connection and a run book for production-sensitive systems; confirm each with the provider

How external testing starts from the public internet

External testing starts from outside your network, so its first phase is about what an attacker on the public internet can already see. NIST SP 800-115 describes it as reconnaissance of public sources such as registration records and DNS data, followed by network discovery and scanning to enumerate external hosts and the services listening on them. Only after that inventory does the tester attempt to validate exposed weaknesses, such as a vulnerable remote access service or a misconfigured web application. Because this work depends on what is publicly reachable, the buyer's first deliverable is an accurate external inventory of IP ranges, domains and hosts that the tester is authorized to touch.

The PCI SSC guidance adds a practical condition that affects the result. External tests should run from a location without port or service restrictions imposed by the internet provider, so that filtering at the provider does not hide services the test is meant to find. Before the engagement, confirm with your provider and your own perimeter team whether any upstream filtering, DDoS protection or web application firewall will sit in the path, and decide whether the test should cover the perimeter as attackers see it or the origin systems behind it. Record that decision in the scope, because it determines whether a clean result means the services are closed or simply blocked for this one source.

The buyer must supply the written scope list, the IP ranges and domain names in scope, and the rules of engagement modeled on the template in Appendix B of NIST SP 800-115. The rules should name permitted techniques, testing windows, stop conditions, a contact for escalation and how third-party hosting providers and cloud platforms will be handled, since some providers require their own notice before testing. Ask the testing firm to list which inventory sources it used and to confirm that out-of-scope addresses will not be probed, and keep that list with the signed scope so auditors can trace every finding to an authorized target.

What each viewpoint finds and misses

External and internal tests answer different questions about the same estate. Each viewpoint finds a class of weakness the other cannot see, so the blind spots below are the reason both appear on most shortlists.

External findings

External testing starts from public sources such as registration data and DNS, then enumerates hosts and listening services reachable from the internet. Typical findings include exposed administrative interfaces, outdated remote access services, misconfigured perimeter devices and sensitive files on public hosts. Check whether the test covers every public IP range and cloud-hosted name you own, because shadow assets are the usual gap.

Public data exposure

Reconnaissance of public sources can reveal employee names, email formats, leaked credentials and internal hostnames published by accident. An external test shows what an outsider can learn before touching a single system. Ask the provider whether open-source intelligence is in scope, and whether findings will be reported as exposure or only as technical vulnerabilities.

What external testing misses

An external test cannot see segmentation between internal networks, privilege paths from a standard user to an administrator, or abuse by someone who already holds a valid account. A clean perimeter result says little about lateral movement once an attacker gets a foothold. Confirm whether the engagement includes an internal phase or a follow-on test, and who decides that scope.

Internal findings

Internal testers are often given access as a general user and attempt privilege escalation, such as user to local administrator or system administrator to domain administrator. They also check configuration, authentication, access control and hardening across hosts and directory services. Ask for evidence of each escalation path, not only a list of missing patches.

Internal misses

An internal test from the corporate LAN does not reach services that are only exposed to the internet, such as cloud-hosted portals or partner-facing APIs, unless the scope adds them. Testers without a valid external account also miss flaws that appear only after login. Confirm the source network, any NAT or proxy in the path, and whether authenticated testing is scoped.

Both viewpoints matter

NIST SP 800-115 notes that internal scanning usually uncovers more vulnerabilities than external scanning, so a high internal count does not mean the perimeter is safe. Run both viewpoints, and run external testing first so testers do not gain insider knowledge an outside attacker would lack. Ask for a combined report that shows which findings chain together.

What access testers need before the work starts

External testing needs no credentials, because the tester starts from the public internet and works only from the scope the buyer publishes or approves. Before work begins, the buyer should confirm the exact list of public IP addresses, domains and listening services in scope, and whether any third-party hosted assets (such as SaaS tenants or cloud load balancers) are included or must be excluded. NIST SP 800-115 describes external work as beginning with reconnaissance of public registration data and DNS, then discovery and scanning of exposed hosts, so the scope document should name what the tester may touch and what it must leave alone.

Internal testing depends far more on access decisions. NIST SP 800-115 notes that internal testers are often given network access as general users, then attempt privilege escalation, so the buyer must decide which account or machine the tester starts from. CIS Safeguard 18.5 notes that internal tests may be clear box, where testers receive architecture and configuration detail, or opaque box, where they start with little knowledge. Ask the provider which model they propose, how test accounts will be provisioned and disabled, and whether those accounts will be subject to the same logging and multi-factor controls as ordinary staff accounts.

NIST SP 800-115 Appendix B provides a rules of engagement template, and it is the right place to record access, timing and contacts in one signed document. Use it to name the source network segments, the test-machine location, the escalation contacts who can stop testing, the testing windows, and the emergency procedure if a service degrades. The buyer should also confirm network placement and test-machine location with the provider: a tester on a neutral internet connection outside corporate access controls will see a different perimeter than one connected from inside, and PCI SSC guidance addresses this distinction directly, so the results will only be comparable if the placement is written down.

When PCI DSS and CIS Controls require each viewpoint

PCI DSS requirement 11.4.1 defines the two viewpoints in terms of network position. Internal testing covers testing from inside the network, both inside the cardholder data environment (CDE) and into the CDE from trusted and untrusted internal networks. External testing covers the exposed external perimeter and critical systems that can be reached from public networks. The requirement is read together with the PCI SSC guidance, which treats penetration testing as a manual, qualified exercise rather than a scan.

  • Both viewpoints are required: an internal test does not replace an external one, and the reverse holds too.
  • Inside and into the CDE: internal scope includes testing from untrusted internal networks that should not reach card data.
  • Test location matters: PCI SSC guidance says external tests should run from a location without port or service restrictions from the internet provider, and internal testers should use a neutral connection unaffected by corporate access controls.
  • Manual work counts: running an automated tool alone does not satisfy the penetration testing requirement.
  • Scope follows the CDE: the systems to test are defined by the cardholder data environment and its connected networks, so scope changes when the environment changes.

Confirm with your Qualified Security Assessor which networks, segments and public-facing systems fall into your CDE scope, and whether your service provider or merchant level changes the expected test frequency and evidence.

Sequencing external and internal tests in one program

The sequence builds a picture of what an outsider can reach first, then what an insider with ordinary access can do, and finally proves that fixes and detections hold. Timing for each stage is set in the written scope, not in this sequence.

  1. Scope the perimeter and critical systems

    Your team and the testing provider agree which internet-facing addresses, domains and critical systems are in scope for external work, and which internal network segments, applications and data stores are in scope for internal work. The provider documents rules of engagement, including testing windows, contacts and what happens if a critical system is affected. NIST SP 800-115 includes a rules of engagement template in Appendix B that you can use as a starting point. This step is complete when the written scope lists each target, each viewpoint and each named contact.

  2. Run external testing first

    The provider begins with reconnaissance of public registration data, DNS records and other public sources, then uses network discovery and scanning to enumerate external hosts and listening services. Testers attempt to exploit exposed weaknesses from outside the network. NIST SP 800-115 says external testing usually comes first so that testers who later run internal work do not gain insider knowledge an adversary would not have. Confirm that the external testers can work from a neutral internet connection without port or service restrictions, as PCI SSC guidance describes. The step closes with a list of validated external findings and the hosts they affect.

  3. Fix or validate external findings

    Your operations and application owners remediate the confirmed external findings, or document a risk acceptance for any they cannot fix yet. Where a fix is a configuration change, the provider or your team confirms it in the affected system before closing the item. Priority depends on exposure and on what the exploit reached, so ask the provider to state the impact of each validated issue, not only its score. The step is complete when each finding has an owner, a fix or accepted risk, and a validation note.

  4. Scope the internal test with general-user access

    Once external work is closed out, you define the internal engagement: the starting access, usually a standard user account or a network position equivalent to a general user, and the goals, such as moving from user to administrator on a host or from a system administrator to a domain administrator. The scope also covers configuration, authentication, access control and hardening, which NIST SP 800-115 lists as internal test areas. Decide with the provider whether the test is clear box or opaque box, as CIS Safeguard 18.5 describes. The step closes with a signed scope that names the test accounts, their provisioning and removal.

  5. Execute the internal test and report paths

    Testers run the internal work from the agreed starting access, document each privilege escalation path and each system reached, and record the evidence needed to reproduce it. Internal scanning usually uncovers more vulnerabilities than external scanning, so expect a longer list to triage. For in-scope cardholder data environments, PCI DSS requirement 11.4.1 defines the internal and external viewpoints, which the written scope should map to. The step closes with a report that separates confirmed attack paths from individual weaknesses.

  6. Retest after remediation

    After fixes are applied, the provider retests the specific findings and the attack paths that depended on them. The goal is to confirm closure, not to repeat the whole engagement. Your team should check that remediation did not open a new path, especially around accounts, group memberships and firewall rules that changed during the fix. The step is complete when retest results are recorded against each original finding, with any residual risk accepted in writing.

  7. Validate that detections cover the techniques used

    Your security team compares the techniques testers used, both external and internal, against what your monitoring and response tools actually flagged. CIS Safeguard 18.4 asks for security measures to be validated after each test so that detections cover those techniques. Mark each technique as detected, partly detected or missed, and open tickets for gaps in logging, alerting or response. This step is complete when the detection gap list has an owner and a planned follow-up, and the next test scope reflects it.

What each viewpoint delivers to the buyer

Each viewpoint produces different evidence, and the exact deliverables depend on the written scope agreed before testing starts. The four cards below list what to ask for from external work, internal work, validated findings and retesting, so that the report can be checked against the scope.

Asset inventory and exposed services

For external work, ask for the list of internet-facing hosts, domains and listening services the testers discovered, starting from public registration and DNS data. The inventory shows what an outsider can see before any exploit is tried. Check that every address in the agreed scope is accounted for, and that anything found outside scope is flagged rather than tested silently. Confirm whether the list includes services on cloud addresses you did not know were exposed.

Attack paths and privilege escalation

For internal work, ask for the attack paths that connect a standard user account to higher privilege, such as moving from user to local administrator or from a system administrator to a domain administrator. Each path should name the starting access, each step taken and the configuration, authentication or access control weakness that enabled it. Ask whether the testers were given a general user account or a privileged one, because that choice changes which paths are reachable.

Validated findings with reproduction steps

Every finding should show that it was confirmed, not just detected by a scanner. Ask for reproduction steps, the affected system, the evidence captured and the impact the tester demonstrated. PCI SSC guidance describes penetration testing as essentially a manual process and says that simply running an automated tool does not satisfy the requirement, so ask the provider to state which findings were exploited by hand and which came from tools alone.

Retest results and closure evidence

A report without retesting shows what was wrong on the test day, not what was fixed. Ask for a retest plan that states which findings will be checked, by which viewpoint, and whether the retest covers both external and internal scope when both were tested. Ask for a record of each finding's status after retesting. CIS Safeguard 18.4 asks that security measures be validated after each test so that detections cover the techniques the testers used, so also ask whether the report lists which techniques should appear in monitoring.

Questions buyers ask about internal and external testing

Does one penetration test cover both internal and external viewpoints?

Not by default. An external test and an internal test look at different parts of the environment, so a single engagement covers both only when its scope names both viewpoints. PCI DSS requirement 11.4.1 defines internal testing as testing from inside the network, including into the cardholder data environment from trusted and untrusted internal networks, and external testing as testing the exposed perimeter and critical systems reachable from public networks. CIS Controls v8.1 Safeguards 18.2 and 18.5 ask for both kinds of test at least annually, based on program requirements. Ask the provider to write both viewpoints, the networks in each, and the access level for each into the statement of work so neither side is assumed.

Should external testing run first, and why?

Usually yes. NIST SP 800-115 says that when both are performed, external testing normally happens first so that testers doing both do not gain insider knowledge an adversary would not have. External work starts from public sources such as registration and DNS data, then moves to discovery and scanning of exposed hosts and listening services. Internal testing then shows what an attacker could reach after getting past the perimeter. Running it in the other order can make the external results less representative, which matters if the report is used as evidence of the outside view.

What does internal testing need from the client before it starts?

Internal testing needs a defined starting point and a clear access model. NIST SP 800-115 describes internal testers often beginning as ordinary network users and then attempting privilege escalation, for example from a user account to an administrator or from a system administrator to a domain administrator. CIS Safeguard 18.5 notes that internal testing may be clear box or opaque box, so the client must decide which. Prepare test accounts for each relevant role, a written rules of engagement covering hosts and data that are off limits, a named contact for stopping the test, and a neutral network path where PCI SSC guidance applies. Confirm these items with the provider, since the exact list depends on the environment.

Can our own team run the internal test instead of an outside firm?

Your team can run internal tests in some cases, but independence and skill are the questions to settle first. PCI DSS, NIST SP 800-53 and DORA each shape when testers must be independent of the people who run the systems, and some regulators expect external testers for certain exercises. Internal staff know the environment, which speeds up work and lowers the cost of context, but they may be less objective about their own controls and may lack current offensive skills. Ask any assessor for their qualifications, the independence arrangement, and how findings are reviewed before a report goes to an auditor.

How long does each test take, and what sets the duration?

No duration figure is supplied for this comparison, so confirm estimates in writing for your own environment. The main drivers are the number of networks and hosts in scope, the number of application roles and authenticated paths to test, whether testing runs in production or staging, and how many retests are needed after fixes. External tests are often shorter when the exposed footprint is small, while internal tests grow with segmentation complexity and the number of access levels. Ask the provider to break the schedule into reconnaissance, testing, reporting and retest phases so you can see which one moves.

Does the cost of internal and external testing depend on scope?

Yes. Cost follows the scope in the written agreement, because the provider is paid for tester time, reporting, and any retesting, and those scale with the systems and access levels involved. Internal tests with several network zones and privilege levels usually cost more to plan and run than a small external perimeter, though the exact difference depends on the environment. One-time costs include scoping, testing and the first report. Recurring costs come from the annual cadence that PCI DSS and CIS Controls expect. Ask for a quote that lists each viewpoint, each access level, each retest round and the expected deliverables separately.

Does a passing external vulnerability scan replace an external penetration test?

No. A passing external scan does not replace a penetration test. PCI SSC guidance says that simply running an automated tool does not satisfy the penetration testing requirement, because penetration testing is essentially a manual process that validates how weaknesses can be chained. Scans and penetration tests answer different questions, and NIST SP 800-115 recommends regular scanning interspersed with periodic penetration testing. Treat the scan as frequent coverage and the external penetration test as the deeper, scheduled check of the same perimeter.

Combining viewpoints without wasting a test

Organizations combine techniques to reach an in-depth assessment at an acceptable level of risk, and NIST SP 800-115 describes exactly this approach. For internal versus external work, the practical question is sequencing. Run external testing first, as the guide recommends, so that the testers who later work from the inside do not start with knowledge an outside attacker would not have. Then pair the viewpoints with a cadence: NIST SP 800-115 suggests regularly scheduled network and vulnerability scanning interspersed with periodic penetration testing. Scans catch drift between tests, while the penetration test validates whether exposed weaknesses can actually be chained into access. Ask your provider to show how each engagement's findings feed the next scan schedule, and confirm who owns that handoff in your organization.

Retesting is where many programs lose value. A finding closed in a ticket is not closed until a tester has checked the fix from the same viewpoint that found it, and an external fix should be verified from outside as well as inside. Agree the retest window and whether retests are included in the original scope before work starts, since many quotes treat them as separate work. Also ask whether validated fixes are reflected in your detection rules. CIS Controls Safeguard 18.4 asks for security measures to be validated after each test so that detections cover the techniques the testers used, which means the retest should confirm that monitoring still fires, not only that the vulnerable component was patched.

Two adjacent topics affect how you combine viewpoints, and each deserves its own review. Segmentation testing checks whether networks out of scope can reach the cardholder data environment, which is a narrower question than a full internal test, and PCI DSS requirement 11.4.5 and 11.4.6 set frequencies you should confirm against your own assessor's expectations. Red teaming goes further than either viewpoint by emulating an adversary's objectives and testing detection and response. Most organizations build the internal and external layers first. Treat red teaming as a later decision, and confirm with your provider whether an internal test's findings are a sound starting point for it.

How DeployOpen scopes and runs internal and external penetration tests

DeployOpen runs security testing as part of self-hosted platform work inside the client's own cloud accounts, data centers or air-gapped networks. For internal and external penetration tests, we agree the viewpoint, access and rules in writing before any testing starts, then document and hand over the results.

How we scope

  • Written scope names each viewpoint, the address ranges or external hosts in play, and the systems reachable from public networks.
  • For internal tests, the scope records which access level testers start with, such as a standard user account or a network position.
  • Engagements are fixed-scope, so deliverables and timelines are agreed in writing before work begins.
  • Ask for the rules of engagement to state testing windows, escalation contacts and what happens if a critical system is affected.

How we build

  • Testing is planned so external work runs first, keeping insider knowledge out of the outside-in view.
  • Internal testing covers configuration, authentication, access control and hardening alongside privilege escalation paths.
  • Testers validate findings manually, using automated scanning only as a starting point for exploitation work.
  • Where the client needs a neutral test location, the scope states the network path and connection the testers will use.

How we hand over

  • Reports separate external perimeter findings from internal findings, with evidence and steps to reproduce each one.
  • Remediation guidance is written for the owners of each system so fixes can be assigned and retested.
  • Documentation includes the scope, access used, test dates and any systems excluded, for use in your own assessment records.
  • Results are handed over in a form your security and compliance teams can file, retest against and track.

How we support

  • After handover, we can retest fixed findings to confirm remediation before the report is closed.
  • Ongoing support, upgrades and continuous testing are available as retainers, which can cover recurring internal and external tests.
  • Ask us to confirm how detections in your monitoring stack respond to the techniques testers used, so gaps are documented.
  • Scheduling of recurring tests can follow the cadence your program, regulator or standard requires, confirmed in the written scope.

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.