๐ก๏ธ Azure Network Subnet without Network Security Group๐ข
- Contextual name: ๐ก๏ธ Network Subnet without Network Security Group๐ข
- ID:
/ce/ca/azure/virtual-network/subnet-without-security-group - Tags:
- ๐ข Policy with categories
- ๐ข Policy with type
- ๐ข Production policy
- Policy Type:
COMPLIANCE_POLICY - Policy Categories:
SECURITY
Statsโ
not available
Logicโ
- ๐ง prod.logic.yaml๐ ๐ข
- ๐ Azure Network Subnet
- ๐งช test-data.json
Similar Policiesโ
- Internal:
dec-x-3653594a
Similar Internal Rulesโ
| Rule | Policies | Flags |
|---|---|---|
| โ๏ธ dec-x-3653594a | 1 |
Descriptionโ
Descriptionโ
This policy identifies Azure Network Subnets that do not have any associated network security groups. Protect subnet resources by ensuring subnets are associated with NSGs, which can filter inbound and outbound traffic using security rules.
Rationaleโ
Unprotected subnets can expose resources to unauthorized access.
Impactโ
Minor administrative effort is required to ensure subnets are associated with network security groups. There is no cost to create or use network security groups.
Auditโ
This policy flags an Azure Network Subnet as
INCOMPLIANTif it has no associatedNetwork Security Group.Default Valueโ
By default, a subnet is not associated with a network security group.
Referencesโ
Remediationโ
Remediationโ
From Azure Portalโ
- Go to
Virtual networks.- Click the name of a virtual network.
- Under
Settings, clickSubnets.- Click the name of a subnet.
- Under
Security, next toNetwork security group, clickNoneto display the drop-down menu.- Select a network security group.
- Click
Save.- Repeat steps 1-7 for each virtual network and subnet requiring remediation.
From Azure CLIโ
For each subnet requiring remediation, run the following command to associate it with a network security group:
az network vnet subnet update \
--resource-group {{resource-group-name}} \
--vnet-name {{virtual-network-name}} \
--name {{subnet-name}} \
--network-security-group {{network-security-group-name}}