Intune: Windows Firewall Domain - Disable Inbound Notifications

πŸ’Ό Management Samenvatting

Disable firewall inbound notifications op Domain profile - voorkomt notification fatigue (corporate network = many blocked connections = noise).

Aanbeveling
IMPLEMENT
Risico zonder
Low
Risk Score
2/10
Implementatie
2u (tech: 1u)
Van toepassing op:
βœ“ Windows 10
βœ“ Windows 11

Firewall notifications: Default: User sees pop-up 'Windows Firewall blocked connection from X', Corporate network: Legitimate scans (network monitoring, vulnerability scanners) β†’ blocked β†’ many notifications, Notification fatigue: Users ignore/dismiss (trained to click 'OK'), Enterprise: Admins monitor firewall logs (not end users), Recommendation: Disable user notifications (reduce noise), admins review logs centrally.

PowerShell Modules Vereist
Primary API: Microsoft Graph API
Connection: Connect-MgGraph
Required Modules: Microsoft.Graph.DeviceManagement

Implementatie

Disable notifications: Policy: Disable inbound notifications: True, Effect: Users do NOT see firewall block pop-ups, Logging: Still active (admins review logs via SIEM), User experience: Cleaner (no firewall noise).

Vereisten

  1. Intune subscription
  2. Windows 10/11
  3. Firewall logging enabled (admin visibility)
  4. SIEM monitoring (centralized firewall alerts)

Implementatie

Intune Settings Catalog: Windows Firewall β†’ Domain Profile β†’ Disable inbound notifications: True. Logging: Still enabled (SIEM monitoring).

Compliance

CIS Windows Benchmark, BIO 13.01.

Monitoring

Gebruik PowerShell-script enable-domain-network-firewall-disable-inbound-notifications-is-set-to-true.ps1 (functie Invoke-Monitoring) – Controleren.

Remediatie

Gebruik PowerShell-script enable-domain-network-firewall-disable-inbound-notifications-is-set-to-true.ps1 (functie Invoke-Remediation) – Herstellen.

Compliance & Frameworks

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).

PowerShell
<# .SYNOPSIS Intune Windows Firewall: Domain Disable Inbound Notifications .DESCRIPTION CIS - Firewall inbound notifications moeten disabled (no user prompts). .NOTES Filename: firewall-domain-disable-notifications.ps1|Author: Nederlandse Baseline voor Veilige Cloud|NetSH: Domain Profile NotifyOnListen|Expected: False #> #Requires -Version 5.1 #Requires -RunAsAdministrator [CmdletBinding()]param([switch]$WhatIf, [switch]$Monitoring, [switch]$Remediation, [switch]$Revert) $ErrorActionPreference = 'Stop'; $Profile = "Domain"; $ExpectedValue = $false function Connect-RequiredServices { $p = New-Object Security.Principal.WindowsPrincipal([Security.Principal.WindowsIdentity]::GetCurrent()); return $p.IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator) } function Test-Compliance { $r = [PSCustomObject]@{ScriptName = "firewall-domain-notifications.ps1"; PolicyName = "Firewall Domain Notifications"; IsCompliant = $false; CurrentValue = $null; ExpectedValue = "Disabled"; Details = @() }; function Invoke-Revert { Set-NetFirewallProfile -Name $Profile -NotifyOnListen True } try { $fw = Get-NetFirewallProfile -Name $Profile -ErrorAction SilentlyContinue; if ($fw) { $r.CurrentValue = $fw.NotifyOnListen; if ($fw.NotifyOnListen -eq $ExpectedValue) { $r.IsCompliant = $true; $r.Details += "Notifications disabled" }else { $r.Details += "Notifications enabled" } }else { $r.Details += "Profile niet gevonden" } }catch { $r.Details += "Error: $($_.Exception.Message)" }; return $r } function Invoke-Remediation { Set-NetFirewallProfile -Name $Profile -NotifyOnListen False; Write-Host "Domain notifications disabled" -ForegroundColor Green } function Invoke-Monitoring { $r = Test-Compliance; Write-Host "`n$($r.PolicyName): $(if($r.IsCompliant){'COMPLIANT'}else{'NON-COMPLIANT'})" -ForegroundColor $(if ($r.IsCompliant) { 'Green' }else { 'Red' }); return $r } function Invoke-Revert { Set-NetFirewallProfile -Name $Profile -NotifyOnListen True } try { if (-not(Connect-RequiredServices)) { exit 1 }; if ($Monitoring) { $r = Invoke-Monitoring; exit $(if ($r.IsCompliant) { 0 }else { 1 }) }elseif ($Remediation) { if (-not $WhatIf) { Invoke-Remediation } }elseif ($Revert) { Invoke-Revert }else { $r = Test-Compliance; exit $(if ($r.IsCompliant) { 0 }else { 1 }) } }catch { Write-Error $_; exit 1 }

Risico zonder implementatie

Risico zonder implementatie
Low: Low: Notifications = user fatigue (trained to ignore security warnings).

Management Samenvatting

Disable firewall inbound notifications (Domain). Reduce notification noise. Admins monitor logs (SIEM). Implementatie: 1-2 uur.