Skip to content
cloudgrip

$ cat blog/internal-vs-external-penetration-testing.md

//Penetration testing

Internal vs. external penetration testing: where the tester stands

External tests attack from the internet. Internal tests start inside. What each one finds, how they differ, and what internal means in a cloud-only company.

  • Oct 29, 2026
  • 6 min read
  • Cloudgrip team

The difference between an internal and an external penetration test is where the tester stands when the test begins. In an external test, they start on the internet with no access, like any stranger. In an internal test, they start inside your network, as if an attacker had already got past the perimeter.

The two answer different questions. An external test asks how hard it is to get in. An internal test asks how much damage someone can do once they are in. A good result on one says very little about the other.

This post covers what each test looks at, how they compare, and how the idea of "internal" changes for companies that run everything in the cloud.

External: testing what the internet can see

An external test targets everything you expose to the public internet. That usually means websites and APIs, VPN and remote access gateways, mail servers, DNS, cloud storage with public addresses, and any administrative interface that is reachable from outside.

Typical findings include:

  • Systems nobody knew were public, such as an old staging server or a database port left open after a migration.
  • Remote access services running software with known flaws.
  • Login pages with no limit on password guessing, or accounts with no second factor.
  • Subdomains that still point at a cloud service the company no longer controls.

External tests are often run black-box, with the tester given only a company name or a list of domains. The discovery work is a result in its own right, because you cannot protect systems you do not know you have.

Internal: assuming someone is already inside

An internal test begins from a position inside the network. The usual model is called assumed breach. The tester is given what a successful phishing email would give an attacker: a standard employee laptop or an ordinary user account, with no special privileges.

The reasoning is practical. Sooner or later someone clicks a link or reuses a password. Spending a week of testing time to prove that teaches little. Starting from the foothold lets the whole test go on what happens next.

What happens next usually runs through two ideas. Lateral movement is going from the first machine to others. Privilege escalation is turning a normal account into a more powerful one. In networks built around Microsoft's Active Directory, the directory service that controls who can log in to what, the end goal is often domain administrator, which is control of every joined machine.

Here is how a short path can look. The tester, as a normal user, finds a shared folder every employee can read. Inside is an old deployment script containing the password of a service account. That account turns out to have administrator rights on a file server. A domain administrator logged in to that server last week, and their credentials are still in memory. Three steps, none of them involving a software flaw in the usual sense.

Typical internal findings include:

  • Passwords stored in scripts, shared folders and wikis.
  • The same local administrator password on many machines.
  • Service accounts with far more rights than their job needs.
  • Flat networks, where a laptop in the sales team can talk directly to database servers.
  • Internal systems that never get patched because "they are not exposed".

Side by side

External test Internal test
Starting point The internet, no access Inside the network, usually as a normal user
Attacker being simulated An outsider Someone with a foothold: a phished employee, a compromised device, a malicious insider
Question answered How hard is it to get in How far an intruder can go
Main targets Public websites, APIs, remote access, mail, DNS Directory services, file shares, internal applications, servers, network segments
Typical weaknesses Exposed services, outdated software, weak logins Excess privileges, stored credentials, poor segmentation
What a good result means The perimeter held during the test One compromised user does not mean a compromised company

The two tests rarely find the same things. External findings are mostly about exposure. Internal findings are mostly about trust, meaning which accounts and machines are allowed to do more than they should.

What "internal" means without an office network

The classic picture of an internal test assumes an office, a corporate network and a Windows domain. Many software companies have none of these. Staff work remotely, sign in through an identity provider, and the product runs in a cloud account.

The question behind internal testing still applies. It has different starting points.

  • A compromised workload. The tester starts with the access one application server or container has, and checks what its cloud role allows. Reading every storage bucket in the account from a single web server is the cloud version of a flat network.
  • A compromised employee identity. The tester starts with one engineer's session and looks at what it reaches: the cloud console, the code repository, the deployment pipeline, the customer support tool.
  • A compromised build pipeline. The tester starts inside the system that builds and deploys code and checks which secrets it holds and what it can push to production.
  • Inside the cluster. The tester starts in one container and checks whether it can reach other services, other customers' data or the cluster's control interface.

The names differ, but the findings rhyme with the classic ones: stored secrets, roles with too many permissions, and no barriers between things that should be separate.

Which to run, and when you need both

If you can only do one, pick the one that matches where your risk is.

Start with external if you have never had a test, if you are unsure what you expose, or if you have just gone through a migration or acquisition. Its findings are the ones any passing attacker can also discover.

Start with internal if you have a large workforce, an on-premises directory, or critical data on internal systems. Ransomware intrusions typically follow the internal path: one foothold, lateral movement, escalation, then everything at once. An internal test is the closest rehearsal.

Some rules ask for both. PCI DSS, the security standard for organizations that handle payment card data, requires internal and external penetration testing of the card data environment at least once every 12 months and after significant changes, along with testing of the segmentation that separates card systems from everything else.

For most organizations past the early stage, the answer is both, run on a cadence that fits how fast each side changes. More on cadence in is one penetration test a year still enough, and a compact definition of the two tests is in the glossary.

Key takeaways

  • External tests start from the internet and measure how hard it is to get in. Internal tests start inside and measure how far an intruder can go.
  • Internal tests usually assume a breach has already happened, starting from an ordinary user's access.
  • External findings are about exposure. Internal findings are about excess trust: stored credentials, broad privileges and weak segmentation.
  • In a cloud-only company, "internal" means starting from a compromised workload, identity or pipeline.
  • Neither test substitutes for the other, and PCI DSS expects both.

See what an attacker would find.

Give us a URL and two test logins. If there’s something to find, your first exploited findings land within 24 hours.

You talk to the people who build Hydra and Cerberus. No sales script.

or write to founders@cloudgrip.ai