lacework-global-631
Capture Network Security Group (NSG) Flow logs and send to Log Analytics (Manual)
Profile Applicability
• Level 2
Description
Capture network flow logs and feed them into a central log analytics workspace.
Rationale
Network Flow Logs provide valuable insight into the flow of traffic around your network and feed into both Azure Monitor and Azure Sentinel (if in use), permitting the generation of visual flow diagrams to aid with analyzing for lateral movement, etc.
Impact
The impact of configuring NSG Flow logs is primarily one of cost and configuration. If deployed, it will create storage accounts that hold minimal amounts of data on a 5-day lifecycle before feeding to Log Analytics Workspace. This will increase the amount of data stored and used by Azure Monitor.
Audit
From Azure Portal
- Navigate to the
Azure Monitor
Blade - Select
Networks
- Select the
Network Watcher
option - Then
NSG Flow Logs
- For each log you wish to audit select it from this view.
Remediation
From Azure Portal
- Navigate to Network Watcher.
- Select NSG flow logs.
- Select + Create.
- Select the desired Subscription.
- Select + Select NSG.
- Select a network security group.
- Click Confirm selection.
- Select or create a new Storage Account.
- Input the retention in days to retain the log.
- Click Next.
- Under Configuration, select Version 2.
- If you require rich analytics, select Enable Traffic Analytics, a processing interval, and a Log Analytics Workspace.
- Select Next.
- Optionally add Tags.
- Select Review + create.
- Select Create.
Warning The remediation policy creates remediation deployment and names them by concatenating the subscription name and the resource group name. The MAXIMUM permitted length of a deployment name is 64 characters. Exceeding this causes the remediation task to fail.
References
https://docs.microsoft.com/en-us/azure/network-watcher/network-watcher-nsg-flow-logging-portal
https://docs.microsoft.com/en-us/security/benchmark/azure/security-controls-v3-logging-threat-detection#lt-4-enable-network-logging-for-security-investigation