L1BIO 12.04.01ISO A.12.4.1CIS Windows - Firewall log size
Intune: Windows Firewall Domain Log Size (16MB+)
π 2025-10-30
β’
β±οΈ 3 minuten lezen
β’
π’ Should-Have
πΌ Management Samenvatting
Windows Firewall Domain log max size = 16MB+ (CIS: 16384 KB minimum) - adequate retention voor incident investigation.
Aanbeveling
IMPLEMENT
Risico zonder
Low
Risk Score
3/10
Implementatie
2u (tech: 1u)
Van toepassing op:
β Windows 10 β Windows 11
Firewall log size = retention capacity: Small log (4MB default): Busy network β log rotates hourly β incident evidence overwritten, Large log (16MB+): Days/weeks retention β sufficient voor forensics. Investigation scenario: Security incident detected β need firewall logs from 3 days ago β if log = 4MB: overwritten (evidence lost), if log = 16MB: retained (investigation succeeds). CIS recommendation: 16MB minimum (balance: retention vs disk space).
PowerShell Modules Vereist
Primary API: Microsoft Graph API Connection:Connect-MgGraph Required Modules: Microsoft.Graph.DeviceManagement
Implementatie
Log size configuration: 16MB (16384 KB): Adequate retention (high-traffic networks), Rotation: When full β oldest entries overwritten (circular buffer), Location: %SystemRoot%\System32\LogFiles\Firewall\pfirewall.log, Export: To SIEM (Microsoft Sentinel) voor long-term retention (7 jaar).
Vereisten
Intune subscription
Windows 10/11
Firewall logging enabled (separate setting)
Implementatie
Intune Settings Catalog: Windows Firewall β Domain Profile β Log Max File Size: 16384 KB. Combined: Enable logging (dropped packets + successful connections).
Compliance
CIS Windows Benchmark L1 (16MB), BIO 12.04, ISO 27001 A.12.4.1.
Monitoring
Gebruik PowerShell-script enable-domain-network-firewall-log-max-file-size-is-set-to-16-384-kb-or-greater.ps1 (functie Invoke-Monitoring) β Controleren.
Remediatie
Gebruik PowerShell-script enable-domain-network-firewall-log-max-file-size-is-set-to-16-384-kb-or-greater.ps1 (functie Invoke-Remediation) β Herstellen.
Compliance & Frameworks
CIS M365: Control Windows - Firewall log size (L1) -
BIO: 12.04.01 -
ISO 27001:2022: A.12.4.1 -
Automation
Gebruik het onderstaande PowerShell script om deze security control te monitoren en te implementeren. Het script bevat functies voor zowel monitoring (-Monitoring) als remediation (-Remediation).