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:

  1. Sign in to the Azure Portal

  2. Search for Network Watcher

  3. Under the logs, Open NSG Flow Log

  4. Select the subscription and region

  5. Review each Network Security Group

  6. Verify Flow Logs are enabled

  1. If Flow Logs are not enabled, follow the implementation steps


Implementation Plan:

  1. Sign in to the Azure Portal

  2. Search for Network Watcher

                    

  1. Open NSG flow logs

  2. Click Add flow log

  3. Select the target Network Security Group

  4. Enable Flow logs

  5. Set Flow log version 2

  6. Select Log Analytics workspace

  7. Choose the workspace

  8. Save the configuration


Backout Plan:

  1. Sign in to the Azure Portal

  2. Search for Network Watcher

  3. Open NSG flow logs

  4. Select the target Network Security Group

  5. Disable Flow logs

  6. Save the configuration

Reference: