π Azure Virtual Network Flow Logs retention period is less than 90 days π’
- Contextual name: π Virtual Network Flow Logs retention period is less than 90 days π’
- ID:
/ce/ca/azure/virtual-network/virtual-network-flow-logs-retention-period-over-90-days
- Located in: π Azure Virtual Network
Flagsβ
- π’ Policy with categories
- π’ Policy with type
- π’ Production policy
Our Metadataβ
- Policy Type:
COMPLIANCE_POLICY
- Policy Category:
SECURITY
RELIABILITY
Logicβ
- π§ prod.logic.yaml π’
Descriptionβ
Descriptionβ
Ensure that virtual network flow logs are retained for greater than or equal to 90 days.
Rationaleβ
Virtual network flow logs provide critical visibility into traffic patterns. Logs can be used to check for anomalies and give insight into suspected breaches.
Impactβ
- Virtual network flow logs are charged per gigabyte of network flow logs collected and come with a free tier of 5 GB/month per subscription.
- If traffic analytics is enabled with virtual network flow logs, traffic analytics pricing applies at per gigabyte processing rates.
- The storage of logs is charged separately, and the cost will depend on the amount of logs and the retention period.
Auditβ
This policy flags an Azure Network Watcher Flow Log for Virtual Networks as
INCOMPLIANT
if any of these conditions are true:
Retention Policy Status
is not set toβ―Enabled.Retention Policy Days
is less thanβ―90 daysβ―and not equal toβ―0β―(unlimited).A Flow Log is marked asΒ
INAPPLICABLE
Β if either:
Log Status
is not set toβ―Enabled.... see more
Remediationβ
Remediationβ
From Azure Portalβ
- Navigate to
Network Watcher
.- Under
Logs
, selectFlow logs
.- Click
Add filter
.- From the
Filter
drop-down menu, selectFlow log type
.- From the
Value
drop-down menu, checkVirtual network
only.- Click
Apply
.- Click the name of a virtual network flow log.
- Under
Storage Account
, setRetention days
to0
,90
, or a number greater than 90. IfRetention days
is set to0
, the logs are retained indefinitely with no retention policy.- Repeat steps 7 and 8 for each virtual network flow log requiring remediation.
From Azure CLIβ
Run the following command update the retention policy for a flow log in a network watcher, setting
retention
to0
,90
, or a number greater than 90:az network watcher flow-log update --location <location> --name <flow-log> --retention <number-of-days>
Repeat for each virtual network flow log requiring remediation.
policy.yamlβ
Linked Framework Sectionsβ
Section | Sub Sections | Internal Rules | Policies | Flags |
---|---|---|---|---|
πΌ CIS Azure v4.0.0 β πΌ 8.8 Ensure that virtual network flow log retention days is set to greater than or equal to 90 (Automated) | 1 | |||
πΌ Cloudaware Framework β πΌ Logging and Monitoring Configuration | 59 |