Microsegmentation in Cloud Security: A Core Control for Preventing Lateral Movement

Why Broad Cloud Segmentation Creates a False Sense of Security

Most cloud security architectures start with broad segmentation: separate AWS accounts or Azure subscriptions for dev and production, VPCs and virtual networks that isolate application tiers, security groups and network security groups that control ingress and egress. These are real controls. Account-level isolation is meaningful. Subnet-level separation provides structure.

The problem is that these controls are often where segmentation stops. Once an attacker gains a foothold inside a VPC — via a misconfigured IAM role, a vulnerable public-facing workload, or a compromised developer credential — they can typically move laterally between workloads in the same network segment with minimal restriction. The segmentation that looked adequate on the architecture diagram has almost no internal enforcement.

CyberOne’s network security architecture assessments consistently find the same pattern: strong perimeter controls, flat internal network, wide-open east-west traffic between workloads that have no legitimate reason to communicate.

What Microsegmentation Actually Is

Microsegmentation enforces network policy at the individual workload level — per container, per VM, per service — rather than at the subnet or VPC boundary. Every workload has an explicit policy that defines which other workloads it can initiate or accept connections from, what ports and protocols are allowed, and what behavior is blocked by default. Workloads in the same subnet with no legitimate communication reason can’t reach each other.

The architectural principle is zero trust applied to internal network communications: never assume that traffic inside the network boundary is safe, verify every connection against explicit policy, deny anything that isn’t explicitly permitted.

How Microsegmentation Works in AWS and Azure

In AWS, the primary microsegmentation mechanisms are:

  • Security groups: Instance-level virtual firewalls that control inbound and outbound traffic per-EC2 instance or per-Elastic Network Interface. The key is using security group references (allow traffic from this security group, not from this CIDR range) to enforce workload-identity-based policy rather than IP-range policy that breaks when workloads scale.
  • VPC endpoint policies: Control which AWS services and which principals can use private endpoints, preventing lateral movement via AWS service APIs.
  • AWS Network Firewall: Stateful firewall for VPC-level enforcement with domain filtering and intrusion prevention capabilities.

In Azure:

  • Network Security Groups (NSGs): Applied at the subnet or NIC level. NSG rules use Application Security Groups (ASGs) to tag VMs by role and write policy in terms of workload identity rather than IP addresses — the correct approach for dynamic cloud environments where IP addresses change.
  • Azure Firewall: Centralized stateful firewall for hub-spoke architectures, with FQDN filtering and threat intelligence-based deny rules.
  • Private Link / Private Endpoints: Restrict PaaS service access to specific virtual networks, preventing exposure of storage accounts, databases, and other services to the public internet or unauthorized VNets.

CyberOne’s Zero Trust Architecture implementations use these native cloud controls as the microsegmentation layer, avoiding the need for third-party agents on workloads where native controls are sufficient.

The East-West Traffic Problem in Kubernetes

Container environments add a microsegmentation challenge that VPC-level controls don’t address. In Kubernetes, pods in the same namespace (or across namespaces, depending on your NetworkPolicy configuration) can communicate freely by default. A compromised container can reach any other container in the cluster without traversing a perimeter firewall.

Kubernetes NetworkPolicies enforce ingress and egress policy at the pod level, but they require an explicit allow model — by default, no NetworkPolicies means all traffic is allowed. Getting to a least-privilege network model in a Kubernetes cluster requires inventorying legitimate service-to-service communication, writing NetworkPolicy resources that permit only those flows, and deploying them in a way that doesn’t break application functionality.

Service mesh technologies (Istio, Linkerd, Cilium) extend microsegmentation in Kubernetes with mutual TLS between services (all service-to-service communication encrypted and authenticated), L7 policy enforcement (policy based on HTTP method and path, not just port), and observability into inter-service traffic. For organizations running microservices at scale, service mesh provides the observability needed to write accurate NetworkPolicies in the first place.

Attack Path Reduction: Why Microsegmentation Matters for Breach Containment

The value of microsegmentation becomes concrete in breach scenarios. In a flat cloud environment, an attacker who compromises one workload can typically reach the most sensitive data stores from that initial foothold — there are no internal network controls preventing them from connecting to the production database, the secrets manager, or the data lake. Lateral movement is limited only by the attacker’s knowledge of what’s accessible.

In a microsegmented environment, the compromised workload can only reach what its explicit policy permits. If a web application server is compromised, it can reach the specific database it needs to serve requests — not every database in the environment. Lateral movement requires finding additional vulnerabilities or misconfigurations to break out of the policy boundary, and each hop creates additional opportunity for detection.

CyberOne’s exposure management program includes attack path analysis that maps which vulnerabilities in your environment create viable paths from external access points to high-value targets. Microsegmentation, properly implemented, reduces the number of viable attack paths more than almost any other single control.

Starting Point: Discover Before You Enforce

The most common microsegmentation implementation failure is deploying enforcement without adequate discovery. Organizations write security group rules based on what they think workloads communicate, enforce them, and then find production applications breaking in ways that take weeks to diagnose.

CyberOne’s recommended sequence: audit current security group and NSG configurations to map what’s actually permitted; deploy flow logging (VPC Flow Logs in AWS, NSG Flow Logs in Azure) and analyze traffic patterns to understand what workloads are actually communicating; build microsegmentation policy based on observed traffic, with exceptions documented; deploy in audit/monitoring mode first; enforce after validating no legitimate traffic is blocked. The discovery phase is not optional — enforcement without it causes outages.

Questions people ask about microsegmentation

How can a firewall prevent lateral movement between cloud workloads?

A firewall prevents lateral movement when its policy is enforced per workload rather than per subnet. In the cloud that takes one of three forms: cloud-native controls such as AWS security groups and Azure network security groups attached to each instance, with default-deny east-west rules that reference other groups by ID instead of by address range; host-based agents (Illumio, Akamai Guardicore, Microsoft Defender) that enforce policy at the workload itself and follow it across on-premises and cloud; or next-generation firewalls inserted on the east-west path through a Gateway Load Balancer or Azure Firewall, where application and identity-aware rules apply between tiers. Whichever form you choose, block management protocols (RDP, SSH, SMB, WinRM) between workloads except from a bastion, and log denied east-west flows, because those denials are the earliest sign that something is trying to move.

What security and operational tradeoffs come with using Amazon VPC security groups for microsegmentation?

Security groups cost nothing, add no latency and need no agents, which is why they should be the first layer. The tradeoffs appear at scale: rules are limited to layer 3 and 4 with no application or identity awareness, there are quotas on rules per group and groups per network interface, cross-account references require VPC peering or shared VPCs, and visibility depends on turning on VPC Flow Logs and analyzing them somewhere. The operational risk is drift: security groups edited by hand in the console diverge from the design within weeks. Manage them as infrastructure as code with automated checks for 0.0.0.0/0 and overly broad group references, and add a host-based or firewall layer where you need application-level or identity-based policy.

Which security group or microsegmentation approaches best prevent default-open cloud exposure and lateral movement?

Default-open exposure and lateral movement are two problems with two answers. Exposure is fixed with guardrails that stop open rules from being created at all: AWS service control policies and Azure Policy that deny internet-facing management ports, plus a cloud security posture tool that flags any that slip through. Lateral movement is fixed with workload-level segmentation as described above, starting with the systems that hold the data an attacker would want and expanding outward. CyberOne’s cloud security risk assessment maps both before any policy is written, so segmentation follows real traffic rather than a diagram.

How does microsegmentation limit lateral movement after a ransomware breach in a hybrid data center?

Ransomware spreads by using the protocols workloads leave open to each other, most often SMB, RDP and remote management, from one compromised host to every host it can reach. Microsegmentation shrinks that reach to the connections each workload needs for its job, so a compromised web server can talk to its database on one port and to nothing else. Identity-based policies that follow the workload apply the same rule whether it runs in the data center or in a cloud region, and most platforms offer a quarantine policy that can be applied to a compromised group in seconds during an incident. The result is a breach measured in a handful of systems rather than an estate.