Description:
Network Security Group Flow Logs record IP traffic flowing through NSG rules and are collected by Azure Network Watcher. Sending these logs to a Log Analytics Workspace enables centralized monitoring, advanced analytics, traffic investigations, and threat detection. This control ensures that NSG Flow Logs are enabled for all applicable NSGs and that Log Analytics is selected as the destination to provide full visibility into network activity for security operations and compliance reporting.
Rationale:
If NSG Flow Logs are disabled or not sent to Log Analytics, network traffic data will not be recorded, reducing the ability to detect malicious patterns, investigate incidents, identify misconfigurations, or perform historical analysis. This results in a loss of visibility, weakens threat detection capability, and violates requirements of CIS, NIST, SOC2, and Azure Security Benchmark. Logging NSG traffic into Log Analytics ensures NSG events are captured and available for monitoring, auditing, and forensics.
Impact:
Enables full visibility into NSG network activity
Supports detection of unusual inbound/outbound traffic
Provides data for SIEM and threat-hunting workflows
Helps ensure compliance with network monitoring requirements
Default Value:
By default, NSG Flow Logs are disabled and no destination workspace is configured. The administrator must explicitly enable Flow Logs and configure a Log Analytics Workspace for log ingestion.
Pre-Requisites:
Network Watcher must be enabled in the region
Log Analytics Workspace must exist
RBAC permissions:
Microsoft.Network/networkWatchers/*
Microsoft.OperationalInsights/workspaces/write
Microsoft.Network/networkSecurityGroups/*
Test Plan:
Sign in to the Azure Portal
Search for Network Watcher
Under the logs, Open NSG Flow Log
Select the subscription and region
Review each Network Security Group
Verify Flow Logs are enabled
If Flow Logs are not enabled, follow the implementation steps
Implementation Plan:
Sign in to the Azure Portal
Search for Network Watcher
Open NSG flow logs
Click Add flow log
Select the target Network Security Group
Enable Flow logs
Set Flow log version 2
Select Log Analytics workspace
Choose the workspace
Save the configuration
Backout Plan:
Sign in to the Azure Portal
Search for Network Watcher
Open NSG flow logs
Select the target Network Security Group
Disable Flow logs
Save the configuration
Reference: