Network security

Cloud Network Segmentation: What It Is, How It Works and How to Design It

Cloud network segmentation splits your cloud into isolated zones with controlled traffic between them, so one compromised workload cannot move freely to the rest.

Cysoro Security TeamPublished · 9 min read
PUBLIC ZONEWeb tier — port 443 only PRIVATE ZONEApp tier — no public IPs DATA ZONEDatabases — app tier only NETWORK SECURITY Cloud networksegmentation Zones that stop a breach spreading.
Quick answer

Cloud network segmentation is the practice of dividing a cloud environment into isolated zones — by VPC, subnet, workload or identity — and allowing only the traffic each zone needs. It limits lateral movement, shrinks the blast radius of a breach, and helps you meet compliance requirements for separating sensitive data from less trusted systems.

Key takeaways

  • Segmentation limits lateral movement: a breach in one zone should not give an attacker free access to the rest of your cloud.
  • Cloud segmentation is identity and policy based as much as network based — use security groups, firewall rules and microsegmentation together.
  • Start from an inventory and a traffic map, segment by data sensitivity and function, then test that the rules actually block what they should.

A flat cloud network is an attacker’s dream. Once they get into one workload, every other workload, database and service is one hop away. Cloud network segmentation breaks that flat network into zones, so a breach stays small instead of becoming a company-wide incident.

What is cloud network segmentation?

Cloud network segmentation is the practice of dividing a cloud environment into isolated zones and controlling the traffic allowed between them, so that a compromise in one zone cannot spread freely to the others.

Each zone holds workloads with similar trust levels and data sensitivity. A public web tier, an application tier and a database tier are the classic example. The web tier can talk to the application tier, the application tier can talk to the database, and the database cannot be reached directly from the internet at all.

Segmentation is not one product. It is a design made from several controls working together: virtual private clouds (VPCs), subnets, security groups, network ACLs, cloud firewalls, private endpoints and, increasingly, identity-based microsegmentation. NIST SP 800-215, the guide to a secure enterprise network landscape, describes microsegmentation as dividing a network into isolated segments so traffic in and out of each segment can be monitored and controlled.

It matters more in the cloud than on premises, because cloud workloads move, scale and change IP addresses constantly. A rule tied to a fixed IP address goes stale fast. Modern segmentation therefore leans on labels, tags, service accounts and identity, not just addresses.

Why does cloud network segmentation matter?

Segmentation matters because it limits lateral movement, which NIST’s zero trust guidance calls one of the biggest challenges organizations face, and it shrinks the damage when — not if — something gets compromised.

Attackers rarely stop at their first foothold. MITRE ATT&CK lists lateral movement through remote services as a standard technique: once inside, they use stolen credentials and legitimate remote-access tools to reach more systems. In a flat network, nothing slows them down. In a segmented one, every hop needs a rule that allows it, and every denied attempt can be logged and alerted on.

Segmentation also helps with compliance and operations. Sensitive data can live in a restricted zone with stricter logging and fewer people who can reach it. A change in one zone is less likely to break another. And when an incident happens, you can isolate one zone without taking the whole business offline.

There is a performance and cost angle too. Clear zones make traffic easier to understand, which makes troubleshooting faster and flow-log analysis far more useful than staring at one undifferentiated stream.

What is the difference between segmentation and microsegmentation?

Segmentation divides a network into broad zones, while microsegmentation applies fine-grained policy to individual workloads or applications, often based on identity rather than network location.

Network segmentationMicrosegmentation
UnitVPC, subnet or zoneWorkload, container, application or service
Based onIP ranges and subnetsIdentity, labels, tags and service accounts
GranularityCoarse — dozens of zonesFine — per-workload rules
EnforcementFirewalls, NACLs, route tablesHost agents, service mesh, cloud-native policy
Survives IP changesPoorly — rules go staleWell — policy follows the workload
Best forSeparating environments and tiersZero trust inside a zone

Most real designs use both. Broad segmentation separates production from development, and public-facing systems from internal ones. Microsegmentation then tightens the rules inside each zone, so even two workloads in the same subnet can only talk if they need to.

Think of it as a building: segmentation is the locked doors between floors, microsegmentation is the locked doors between offices on the same floor. You need both if you want an intruder stopped at the first door they try.

How does cloud network segmentation work?

Cloud network segmentation works by placing workloads in separate zones and enforcing allow-only rules at each boundary, using a mix of network controls and identity-based policy.

A segmented three-tier cloud design InternetOnly port 443 reaches the load balancer Public zone — web tierLoad balancer and web servers Private zone — app tierApplication servers, no public IPs Restricted zone — data tierDatabases, only from the app tier
Traffic flows down through the tiers, never sideways or directly to the database. Illustration by Cysoro.

The basic building blocks differ by provider, but the ideas are the same. A VPC or virtual network gives you a private address space. Subnets divide it into smaller ranges, usually one per availability zone and tier. Security groups and firewall rules decide which traffic each resource accepts, and network ACLs add a coarser subnet-level boundary.

On AWS, a security group is a stateful firewall attached to a resource: it only has allow rules, and replies to allowed traffic are permitted automatically. A network ACL is stateless and sits at the subnet edge, with numbered allow and deny rules.

Azure network security groups are stateful, support allow and deny rules, and can attach to subnets or network interfaces. Google Cloud firewall rules apply to the VPC and target instances by tag or service account. AWS documents its own controls in its VPC security documentation.

Private connectivity matters as much as firewalls. Databases and storage should be reached through private endpoints inside your VPC, not over the public internet. Management access should go through a bastion host or a VPN, never through a database port open to the world.

You can check whether your own public services are exposed as expected with our free SSL checker. NIST’s SP 800-215 guide to a secure enterprise network landscape covers the same segmentation principles in depth.

What are the main cloud segmentation models?

The main models are segmentation by environment, by tier, by data sensitivity and by identity, and most organizations combine all four rather than choosing just one.

By environment

Production, staging and development live in separate VPCs or accounts, with no direct traffic between them. This stops a test workload — which often has weaker controls and real-looking data — from reaching production. It also stops a developer mistake in staging from taking down the live service.

By tier

Web, application and data tiers sit in separate subnets, as in the diagram above. Each tier only accepts traffic from the tier above it. This is the oldest model and still the most useful starting point for a typical application.

By data sensitivity

Systems that hold payment data, health records or personal information sit in a restricted zone with tighter rules, stronger logging and fewer administrators. Less sensitive systems stay in a general zone. This is the model auditors look for, because it shows you know where your sensitive data lives and who can reach it.

By identity (zero trust)

Access is granted to a workload or service identity, not to an IP address. A service account or managed identity can reach a database; any other caller cannot, wherever it sits on the network. NIST SP 800-207 states the zero trust principle behind this: no implicit trust is granted to an asset or account based solely on its physical or network location.

How do you design cloud network segmentation?

Design segmentation from real traffic, not from a diagram drawn in isolation: inventory everything, map the flows, group by risk, write allow-only rules, then test before you enforce.

  1. Inventory assets and data. List every workload, database, bucket, API and third-party service, and note what data each one holds. You cannot segment what you have not found, and cloud environments always contain forgotten resources.
  2. Map the traffic. Use VPC flow logs or your cloud provider’s traffic tools to see what actually talks to what, on which ports. Baseline normal traffic for a week or two before you change anything.
  3. Group by function and sensitivity. Put systems with similar trust levels together. Segment by function and data sensitivity, not by department org chart — the org chart is not your attack surface.
  4. Define the zones and the allowed flows. For each pair of zones, write down exactly which protocols and ports are needed, and in which direction. Everything else is denied by default.
  5. Apply the controls as code. Define VPCs, subnets, security groups and firewall rules in Terraform or your provider’s infrastructure-as-code tool, so changes are reviewed and auditable.
  6. Enforce in stages. Start in monitor or log-only mode where the tool supports it, fix the legitimate flows you missed, then switch to deny. A big-bang enforcement on a Friday afternoon is how outages happen.
  7. Test the boundaries. Try to connect from the wrong zone, scan across zone boundaries, and confirm the denied attempts appear in your logs and alerts.

Keep the rule set small enough to understand. A zone with hundreds of one-off exceptions is a flat network with extra steps. When a new flow is requested, ask whether it belongs in the existing design or whether the design needs a new zone.

What are the common mistakes in cloud segmentation?

The most common mistakes are allowing traffic that is far wider than needed, relying on IP addresses that change, and never testing whether the rules actually block anything.

Five mistakes that undo segmentation 1. 0.0.0.0/0 allow rulesOpen to the whole internet 2. Rules tied to changing IPsGo stale as workloads scale 3. Flat dev and productionTest systems reach live data 4. No logging on denied trafficAttacks go unnoticed 5. Rules never reviewedExceptions pile up forever
Each of these turns a segmented design back into a flat network. Illustration by Cysoro.
  • Overly broad rules. Allowing a whole subnet or the entire internet when only one service needs one port is the single most common failure. Narrow every rule to the smallest source, port and protocol that works.
  • Forgetting egress. Teams lock down inbound traffic and leave outbound wide open, so a compromised workload can call out to an attacker’s server, download tools and exfiltrate data. Restrict egress too, and send it through a NAT gateway or proxy you can log.
  • Public management ports. SSH (22) and RDP (3389) open to the internet invite constant brute-force attempts. Keep them private and use a bastion host, VPN or your provider’s session manager instead. Our guide to securing your Wi-Fi covers the same principle for home networks: management access should never be public.
  • Segmentation without monitoring. A deny rule that nobody watches is only half a control. Send flow logs and firewall denies to your logging system and alert on denied traffic between zones, especially to the data tier.
  • Set and forget. Cloud environments change weekly. Review the rules at least quarterly, remove rules for decommissioned services, and re-check the traffic map after every major launch.
Check your public exposure firstBefore you redesign anything, find out what is already reachable from the internet. A single open database port matters more than a perfect zone diagram.

Cloud segmentation vs firewall vs VPN: what is the difference?

A firewall filters traffic, a VPN encrypts a connection into your network, and segmentation is the overall design that decides which zones exist and what may pass between them.

ControlWhat it doesWhat it does not do
SegmentationDivides the environment into zones with allowed flowsNothing on its own — it needs enforcement controls
Firewall / security groupEnforces allow and deny rules at a boundaryUnderstand workload identity or data sensitivity
VPNGives remote users encrypted accessLimit what a connected user can reach once inside
MicrosegmentationApplies per-workload, identity-based policyReplace broad zone separation

These controls stack. A VPN gets an administrator into the management zone; segmentation decides that the management zone can reach the app tier but not the database directly; a security group enforces that decision on each resource. No single control does the whole job, which is why the layered design matters.

The bottom line

Cloud network segmentation is how you make a breach boring: the attacker gets one zone, not the whole company. Start with an inventory and a traffic map, separate environments and tiers, and write allow-only rules that match real flows.

Then keep it honest — test the boundaries, watch the denied traffic, and review the rules as your cloud changes.

If you want a quick check on what your public services already expose, run your domain through the security headers checker.

Frequently asked questions

What is cloud network segmentation in simple terms?

It is dividing your cloud into separate zones and controlling what can talk to what. A web server, an application server and a database each sit in their own zone, and only the traffic they genuinely need is allowed between them.

What is the difference between network segmentation and microsegmentation?

Network segmentation divides a network into broad zones such as subnets or VPCs. Microsegmentation goes further, applying policy to individual workloads, containers or applications, often based on identity rather than IP address.

Is a VPC the same as network segmentation?

No. A VPC is one boundary that isolates your cloud resources from the internet and from other customers. Segmentation happens inside and across VPCs, using subnets, security groups, firewall rules and identity-based policies.

Do I need segmentation if I already have a firewall?

Yes. A perimeter firewall protects the outside edge, but it does little once an attacker is inside. Segmentation adds internal boundaries, so a compromised workload cannot reach everything else on your network.

What is the difference between a security group and a network ACL?

In AWS, a security group is a stateful firewall attached to a resource that only has allow rules. A network ACL is a stateless firewall at the subnet level with numbered allow and deny rules, and return traffic must be allowed explicitly.

How do you test whether segmentation works?

Try to reach resources from the wrong zone, run a vulnerability scan across zone boundaries, and review flow logs for unexpected traffic. A rule that was never tested is a guess, not a control.

Does segmentation slow down cloud applications?

It should not, if the rules match real traffic. Problems usually come from missing rules that break legitimate flows, which is why you should observe traffic before you enforce deny rules.

Is cloud network segmentation required for compliance?

Many frameworks expect it in practice. PCI DSS requires isolating cardholder data, HIPAA expects access controls around health data, and NIST SP 800-53 control SC-7 covers boundary protection. Check the specific framework that applies to you.

Sources

  1. NIST — SP 800-215, Guide to a Secure Enterprise Network Landscape
  2. NIST — SP 800-207, Zero Trust Architecture
  3. CISA — Zero Trust Maturity Model
  4. MITRE ATT&CK — Technique T1021: Remote Services (lateral movement)
  5. AWS — Security in Amazon VPC
  6. Microsoft Learn — Azure network security groups
Written & fact-checked byCysoro Security Team

The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.

  • Email authentication
  • Phishing & BEC
  • Domain & DNS security
  • Small-business security

Checked against NIST SP 800-215 and SP 800-207, the CISA Zero Trust Maturity Model and AWS and Azure network security documentation.

How we write and fact-check →

Free tools for this topic

No account needed.

See where your domain stands

Free for up to 3 domains. No card, no installs.

Start free