Showing posts with label networking. Show all posts
Showing posts with label networking. Show all posts

Sunday, January 18, 2026

Modernizing Network Defense: From Firewalls to Microsegmentation

The traditional "castle-and-moat" security approach is no longer effective. With the increasing prevalence of hybrid cloud environments and remote work, it is essential to operate under the assumption that network perimeters may already be compromised in order to effectively safeguard your data.

For many years, network security has been based on the concept of a perimeter defense, likened to a fortified boundary. The network perimeter functioned as a protective barrier, with a firewall serving as the main point of access control. Individuals and devices within this secured perimeter were considered trustworthy, while those outside were viewed as potential threats.

The "perimeter-centric" approach was highly effective when data, applications, and employees were all located within the physical boundaries of corporate headquarters. In the current environment, however, this model is considered not only obsolete but also poses significant risks.

Digital transformation, the rapid growth of cloud computing platforms (such as AWS, Azure, and GCP), the adoption of containerization, and the ongoing shift toward remote work have fundamentally changed the concept of the traditional network perimeter. Applications are now distributed, users frequently access systems from various locations, and data moves seamlessly across hybrid environments.

Despite this, numerous organizations continue to depend on perimeter firewalls as their main security measure. This blog discusses the necessity for change and examines how adopting microsegmentation represents an essential advancement in contemporary network security strategies.

The Failure of the "Flat Network"

Depending only on a perimeter firewall leads to a "flat network" within, which is a basic weakness of this approach.

A flat network typically features a robust perimeter but lacks internal segmentation, resulting in limited barriers once an external defense is compromised—such as via phishing attacks or unpatched VPN vulnerabilities. After breaching the perimeter, attackers may encounter few restrictions within the interior of the network, which permits extensive lateral movement from one system to another.

If an attacker successfully compromises a low-value web server in the DMZ, they may subsequently scan the internal network, access the database server, move laterally to the domain controller, and ultimately distribute ransomware throughout the infrastructure. The perimeter firewall, which primarily monitors "North-South" traffic (traffic entering and exiting the data center), often lacks visibility into "East-West" traffic (server-to-server communication within the data center).

To address this, it is essential to implement a security strategy that operates under the assumption of breach and is designed to contain threats promptly upon detection.

Enter Microsegmentation: The Foundation of Zero Trust

While traditional firewalls focus on securing the perimeter, microsegmentation emphasizes the protection of individual workloads. Microsegmentation is a security approach that divides a data center or cloud environment into separate security segments at the level of specific applications or workloads. Rather than establishing a single broad area of trust, this method enables the creation of numerous small, isolated security zones.

This approach represents the technical implementation of the Zero Trust philosophy: "Never Trust, Always Verify." In a microsegmented environment, even servers located on the same rack or sharing the same hypervisor are unable to communicate unless a specific policy permits such interaction. For instance, if the HR payroll application attempts to access the engineering code repository, the connection will be denied by default due to the absence of a valid business justification.

The Key Benefits of a Microsegmented World

Transitioning from a flat network architecture to a microsegmented environment provides significant and transformative advantages:

1. Drastically Reduced Blast Radius

Microsegmentation significantly mitigates the impact of cyberattacks by transitioning from traditional perimeter-based security to detailed, policy-driven isolation at the level of individual workloads, applications, or containers. By establishing secure enclaves for each asset, it ensures that if a device is compromised, attackers are unable to traverse laterally to other systems.

This approach offers a substantial benefit. In a microsegmented environment, an attacker's access remains confined to the specific segment affected, thereby restricting lateral movement and reducing the risk of unauthorized access to sensitive data or disruption of operations. Consequently, security breaches are contained within a single area, preventing them from developing into more widespread systemic issues.

2. Granular Visibility into "East-West" Traffic

Microsegmentation provides substantial advantages for East-West traffic, or internal network flow, by delivering deep, granular visibility and control. This enables security teams to monitor and manage server-to-server communications that are often overlooked by conventional perimeter firewalls, thereby helping to prevent lateral movement of threats. By enforcing Zero Trust principles, breaches can be contained and compliance efforts simplified through workload isolation and least-privilege access controls. Microsegmentation shifts security from static, implicit measures to dynamic, explicit, identity-based policies, enhancing protection in complex cloud and hybrid environments.

Comprehensive visibility is essential for effective security. Microsegmentation solutions offer detailed insights into application dependencies and inter-server traffic flows, uncovering long-standing technical debt such as unplanned connections, outdated protocols, and potentially risky activities that may not be visible to perimeter-based defenses.

3. Simplified Compliance

Microsegmentation streamlines compliance by narrowing the scope of regulated environments, offering detailed visibility, enforcing robust data access policies—such as Zero Trust—and automating audit processes. This approach facilitates adherence to standards like PCI DSS and HIPAA while reducing both risk and costs associated with breaches. Sensitive data is better secured through workload isolation, control over east-west network traffic, and comprehensive logging, which supports efficient regulatory reporting and accelerates incident response.

Regulations including PCI-DSS, HIPAA, and GDPR mandate stringent isolation of sensitive information. In traditional flat networks, demonstrating scope reduction often necessitates investment in physically separate hardware, complicating compliance efforts. Microsegmentation addresses this challenge by enabling the creation of software-defined boundaries around critical assets, such as the Cardholder Data Environment, regardless of physical infrastructure location, thereby simplifying audits and easing regulatory burdens.

4. Infrastructure Agnostic Security

Microsegmentation delivers infrastructure-agnostic security by establishing granular network zones around workloads, significantly diminishing the attack surface and restricting lateral threat movement—including ransomware—thereby confining breaches to isolated segments. This approach remains effective even within dynamic hybrid and multi-cloud environments. Key advantages include the enforcement of Zero Trust principles, streamlined compliance with regulations such as HIPAA and PCI-DSS through customized policies, improved visibility into east-west network traffic, and the facilitation of automated, adaptable security measures that align with modern, containerized, and transient infrastructures without dependence on IP addresses.

Contemporary microsegmentation is predominantly software-defined and commonly executed via host-based agents or at the hypervisor level. As a result, security policies remain associated with workloads regardless of their location. For instance, whether a virtual machine transitions from an on-premises VMware environment to AWS or a container is instantiated in Kubernetes, the corresponding security policy is immediately applied.


The Roadmap: How to Get from Here to There

One significant factor deterring organizations from implementing microsegmentation is the concern regarding increased complexity. For example, there is apprehension that default blocking measures may disrupt applications. However, such issues typically arise when microsegmentation is implemented hastily. Successfully adopting microsegmentation requires a structured and gradual approach rather than treating it as a simple product installation.

Phase 1: Discovery and Mapping (The "Read-Only" Phase)

Phase 1 of a microsegmentation roadmap, commonly termed the Discovery and Mapping or "Read-Only" phase, is dedicated to establishing comprehensive visibility into network traffic while refraining from any modifications to infrastructure or policy. The objective is to fully understand network composition, application communications, and locations of critical data, thereby informing subsequent segmentation strategies.

This read-only methodology enables security teams to systematically document dependencies and recognize authorized traffic patterns, reducing the likelihood of operational disruptions when future restrictions are implemented.

At this stage, no blocking rules should be applied. Deploy microsegmentation agents in monitoring-only mode and allow continuous observation over an extended period. This process serves to generate an accurate mapping of application dependencies, identifying which servers interact with specific databases and through which ports. Establishing a baseline of "known good" behavior is essential prior to advancing toward enforcement measures.

Phase 2: Grouping and Tagging

After the visibility and discovery phase (Phase 1), Phase 2 of a microsegmentation roadmap is all about grouping and tagging assets according to their roles, application layers, or how sensitive their data is. At this point, raw network information gets organized into logical groups, enabling security teams to shift from simply observing activity to actively applying policies and controls.

It’s important not to rely on IP addresses, as they’re constantly changing in today’s cloud environments. Instead, modern microsegmentation leverages metadata. Organize your assets with tags like "Production," "Web-Tier," "Finance-App," or "PCI-Scope." This makes it possible to create simple, natural language policies such as: "Allow Web-Tier to communicate with App-Tier on Port 443."

Phase 3: Policy Creation and Testing

Phase 3 of the microsegmentation roadmap, Policy Creation and Testing, is dedicated to translating visibility data collected in earlier phases into effective security policies and validating them in a "monitor-only" mode to avoid any operational impact. This phase is essential for transitioning from broad network segmentation to precise, workload-specific controls while ensuring application uptime is maintained.

The recommended approach begins with coarse segmentation, such as separating production and development environments, then incrementally refining these segments. Many solutions provide a "test mode," enabling teams to simulate policy enforcement by showing which activities would have been blocked had the rule been active. This feature enables thorough validation of policies without interrupting business operations.

Phase 4: Enforcement (The Zero Trust Shift)

Phase 4 of the microsegmentation roadmap, Enforcement (The Zero Trust Shift), represents a pivotal transition from passive monitoring to proactive protection, during which established security policies are implemented to restrict network traffic and mitigate lateral movement risks. This phase signifies the adoption of a "never trust, always verify" approach by enforcing granular, context-sensitive rules throughout the environment.

Following a thorough validation of your application dependency map and policy testing, proceed to enforcement mode. Begin with low-risk applications and incrementally advance to critical systems. At this stage, the network posture transitions from "default allow" to "default deny," enhancing the overall security framework.

Conclusion: The Inevitable Evolution

While perimeter firewalls remain relevant, their function has evolved. They no longer serve as the sole line of defense for organizational data but act instead as an initial layer of security at the network's boundary. Contemporary network security requires an acceptance that breaches are possible. Evaluating a strong security posture today involves not only assessing preventive measures, but also the organization's ability to contain and mitigate damage should a breach occur. Microsegmentation has transitioned from being a luxury for advanced technology firms to becoming a fundamental component of network architecture for any organization committed to resilience in today's threat environment.

Thursday, August 28, 2014

Architectural Security aspects of BGP/MPLS

The inherent benefits of the MPLS (Multi Protocol Label Switching), is gaining widespread use for providing IP VPN services. With the emerging trend of connected systems, a global enterprise today is well connected with their partners, with MPLS being the preferred choice. Border Gateway Routing Protocol (BGP) is used to interconnect such autonomous systems by exchanging the routing informaiton across such systems. The emergence of Multiprotocol Extension, and other variations of BGP Protocol, has furthered the choice of MPLS VPNs. On the same lines, the security concerns on using such a network is also on the rise. The specific demands of customers in terms of security is also emerging as they experience issues of data breaches and security incidents.

The objective of this blog is not to explain about the BGP / MPLS as such and instead let us examine how the BGP / MPLS addresses the typical security requirements in this blog. The following sections of this blog have been extracted from the RFC 4381 published by Internet Engineering Task Force (IETF) in 2006.


Address Space, Routing, and Traffic Separation

BGP/MPLS allows distinct IP VPNs to use the same address space, which can also be private address space. This is achieved by adding a 64-bit Route Distinguisher (RD) to each IPv4 route, making VPN-unique addresses also unique in the MPLS core. This "extended" address is also called a "VPN-IPv4 address". Thus, customers of a BGP/MPLS IP VPN service do not need to change their current addressing plan. The address space on the CE-PE link (including the peering PE address) is considered part of the VPN address space. Since address space can overlap between VPNs, the CE-PE link addresses can overlap between VPNs. For practical management considerations, SPs typically address CE-PE links from a global pool, maintaining uniqueness across the core.

On the data plane, traffic separation is achieved by the ingress PE pre-pending a VPN-specific label to the packets. The packets with the VPN labels are sent through the core to the egress PE, where the VPN label is used to select the egress VRF. Given the addressing, routing, and traffic separation across an BGP/ MPLS IP VPN core network, it can be assumed that this architecture offers in this respect the same security as a layer-2 VPN. It is not possible to intrude from a VPN or the core into another VPN unless this has been explicitly configured. If and when confidentiality is required, it can be achieved in BGP/ MPLS IP VPNs by overlaying encryption services over the network. However, encryption is not a standard service on BGP/MPLS IP VPNs.

Hiding of the BGP/MPLS IP VPN Core Infrastructure

Service providers and end-customers do not normally want their network topology revealed to the outside. This makes attacks more difficult to execute: If an attacker doesn't know the address of a victim, he can only guess the IP addresses to attack. Since most DoS attacks don't provide direct feedback to the attacker it would be difficult to attack the network. It has to be mentioned specifically that information hiding as such does not provide security. However, in the market this is a perceived requirement. 

With a known IP address, a potential attacker can launch a DoS attack more easily against that device. Therefore, the ideal is to not reveal any information about the internal network to the outside world. This applies to the customer network and the core. A number of additional security measures also have to be taken: most of all, extensive packet filtering. For security reasons, it is recommended for any core network to filter packets from the "outside" (Internet or connected VPNs) destined to the core infrastructure. This makes it very hard to attack the core, although some functionality such as pinging core routers will be lost. Traceroute across the core will still work, since it addresses a destination outside the core.

Being reachable from the Internet automatically exposes a customer network to additional security threats. Appropriate security mechanisms have to be deployed such as firewalls and intrusion detection systems. This is true for any Internet access, over MPLS or direct. A BGP/MPLS IP VPN network with no interconnections to the Internet has security equal to that of FR or ATM VPN networks. With an Internet access from the MPLS cloud, the service provider has to reveal at least one IP address (of the peering PE router) to the next provider, and thus to the outside world.

Resistance to Attacks

To attack an element of a BGP/MPLS IP VPN network, it is first necessary to know the address of the element. The addressing structure of the BGP/MPLS IP VPN core is hidden from the outside world. Thus, an attacker cannot know the IP address of any router in the core to attack. The attacker could guess addresses and send packets to these addresses. However, due to the address separation of MPLS each incoming packet will be treated as belonging to the address space of the customer. Thus, it is impossible to reach an internal router, even by guessing IP addresses.

In the case of a static route that points to an interface, the CE router doesn't need to know any IP addresses of the core network or even of the PE router. This has the disadvantage of needing a more extensive (static) configuration, but is the most secure option. In this case, it is also possible to configure packet filters on the PE interface to deny any packet to the PE interface. This protects the router and the whole core from attack. In all other cases, each CE router needs to know at least the router ID (RID, i.e., peer IP address) of the PE router in the core, and thus has a potential destination for an attack.

A potential attack could be to send an extensive number of routes, or to flood the PE router with routing updates. Both could lead to a DoS, however, not to unauthorised access. To reduce this risk, it is necessary to configure the routing protocol on the PE router to operate as securely as possible. This can be done in various ways: 

  • By accepting only routing protocol packets, and only from the CE router. The inbound ACL on each CE interface of the PE router should allow only routing protocol packets from the CE to the PE. 
  • By configuring MD5 authentication for routing protocols. This is available for BGP (RFC 2385 [6]), OSPF (RFC 2154 [4]), and RIP2 (RFC 2082 [3]), for example. 

This avoids packets being spoofed from other parts of the customer network than the CE router. It requires the service provider and customer to agree on a shared secret between all CE and PE routers. It is necessary to do this for all VPN customers. It is not sufficient to do this only for the customer with the highest security requirements.

It is theoretically possible to attack the routing protocol port to execute a DoS attack against the PE router. This in turn might have a negative impact on other VPNs on this PE router. For this reason, PE routers must be extremely well secured, especially on their interfaces to CE routers. ACLs must be configured to limit access only to the port(s) of the routing protocol, and only from the CE router.

Label Spoofing

Similar to IP spoofing attacks, where an attacker fakes the source IP address of a packet, it is also theoretically possible to spoof the label of an MPLS packet. For security reasons, a PE router should never accept a packet with a label from a CE router. RFC 3031 [9] specifies: "Therefore, when a labeled packet is received with an invalid incoming label, it MUST be discarded, UNLESS it is determined by some means that forwarding it unlabeled cannot cause any harm."

There remains the possibility to spoof the IP address of a packet being sent to the MPLS core. Since there is strict address separation within the PE router, and each VPN has its own VRF, this can only harm the VPN the spoofed packet originated from; that is, a VPN customer can attack only himself. MPLS doesn't add any security risk here. The Inter-AS and Carrier's Carrier cases are special cases, since on the interfaces between providers typically packets with labels are exchanged. See section 4 for an analysis of these architectures.


There are a number of precautionary measures outlined above that a service provider can use to tighten security of the core, but the security of the BGP/MPLS IP VPN architecture depends on the security of the service provider. If the service provider is not trusted, the only way to fully secure a VPN against attacks from the "inside" of the VPN service is to run IPsec on top, from the CE devices or beyond. This document discussed many aspects of BGP/MPLS IP VPN security. It has to be noted that the overall security of this architecture depends on all components and is determined by the security of the weakest part of the solution.