What segmentation testing is
Segmentation testing answers one question: can a system that is supposed to be cut off from a protected network actually reach it? A tester sits in each network that should have no access and tries to connect to the protected one. If nothing gets through, the separation works.
The term comes mainly from the Payment Card Industry Data Security Standard (PCI DSS). Companies that handle card payments keep those systems in a cardholder data environment (CDE). PCI DSS applies to the CDE and to everything that can affect its security. To keep that set small, companies use firewalls and network rules to wall the CDE off from the rest of the business. Systems behind the wall are then out of scope.
That saving depends entirely on the wall holding. Segmentation testing is how you prove that it does. If the separation fails, the networks that were assumed to be out of scope are in scope after all.
What PCI DSS requires
PCI DSS does not force anyone to segment their network. But if segmentation is used to reduce scope, the standard requires that it be tested.
- Requirement 11.4.5 applies to every organization that relies on segmentation. The controls must be penetration tested at least once every 12 months and after any change to them. The test must cover all segmentation methods in use and confirm that they work and that they isolate the CDE from all out-of-scope systems.
- Requirement 11.4.6 applies to service providers. They must run the same test at least once every six months and after any change.
The tester must be qualified and independent of the people who manage the controls. This can be an internal team or an outside firm. See PCI DSS for the wider standard.
How the test is done
- List the networks. Start from the network diagram and identify every out-of-scope segment: office networks, guest wireless, development and test environments, other cloud accounts, partner connections.
- Place a test machine in each one. The test must run from inside each segment, because firewall rules differ by source.
- Scan toward the CDE. From each position, probe every CDE address across all TCP ports and the relevant UDP ports, and try other protocols such as ICMP.
- Investigate anything that answers. An open port may be a documented, permitted connection or a gap. Each one is checked against the approved rules.
- Test the reverse direction where relevant, from the CDE outward to out-of-scope networks.
- Check other paths. Shared management interfaces, jump hosts, virtual private network links and cloud network peering can bridge two segments without passing through the firewall.
In cloud environments, the "firewall" is often a set of security groups, network policies and routing tables. The principle is unchanged: test what can really connect, not what the configuration appears to say.
What the evidence looks like
An assessor wants to see where the test ran from, what was targeted, and the result for each pair. An invented summary:
| Tested from | Target | Result |
|---|---|---|
| Office network, 10.20.0.0/16 | CDE, 10.50.0.0/24 | No ports reachable |
| Guest wireless, 10.30.0.0/24 | CDE, 10.50.0.0/24 | No ports reachable |
| Development, 10.40.0.0/16 | CDE, 10.50.0.0/24 | TCP 5432 reachable on one database host. Finding raised |
| CDE, 10.50.0.0/24 | Office network | No ports reachable |
The report should also record the date, the tools and scan settings used, and who performed the test. A failed result, like the third row, has to be fixed and tested again. Until then, the development network belongs in scope.
Common misunderstandings
- "Reviewing the firewall rules is the same thing." A rule review reads the configuration. A segmentation test sends real traffic. Rule sets are long, order matters, and a single broad rule can undo the rest. Only a test shows the actual behavior.
- "It is a full penetration test." It is narrower. It checks reachability across a boundary. It does not look for weaknesses in the applications inside the CDE, which is the job of the wider tests described in internal vs external penetration testing.