Network Security Group
A Network Security Group (NSG) is an access control construct that filters inbound and outbound network traffic for associated cloud resources based on user-defined security rules.
Expanded Explanation
1. Technical Function and Core Characteristics
A NSG enforces stateful packet filtering for IP traffic by evaluating it against ordered allow or deny rules. It typically uses attributes such as source and destination IP address, port, and protocol to decide whether to permit traffic. It retains connection state so return traffic for an allowed flow does not require separate rules.
Network security groups usually operate at the virtual network interface, subnet, or resource level in cloud environments. They often include default rules that provide baseline behavior, which administrators can override or extend with custom rules to meet security and compliance policies.
2. Enterprise Usage and Architectural Context
Enterprises use network security groups within Virtual Private Cloud (VPC) or virtual network architectures to segment applications, enforce least privilege access, and restrict lateral movement. They commonly apply network security groups to workloads such as virtual machines, application tiers, and platform services exposed on the network.
Architects incorporate network security groups as part of a layered defense model that can also include host-based firewalls, web application firewalls, and network virtual appliances. Organizations define NSG rules through Infrastructure-as-Code (IaC) templates, policy frameworks, or centralized management consoles to maintain consistency across environments.
3. Related or Adjacent Technologies
Network security groups relate to virtual firewalls and security groups in public cloud platforms, which provide similar rule-based traffic filtering. They differ from traditional perimeter firewalls by operating closer to individual resources rather than only at network boundaries.
Other adjacent technologies include Network Access Control (NAC) lists, which often provide stateless filtering at subnet or route levels, and microsegmentation tools that enforce granular policy within data centers. Enterprises frequently combine these mechanisms to achieve granular segmentation and compliance with regulatory or internal security requirements.
4. Business and Operational Significance
Network security groups provide a policy mechanism that helps organizations constrain network exposure of cloud workloads. They support compliance with security baselines and regulatory frameworks by restricting access to approved sources, destinations, and ports.
Operational teams use network security groups to adjust access controls without redeploying applications or changing underlying network topology. This supports standardized security governance across multi-tenant, multi-region, or hybrid environments and enables auditable change management for network access policies.