This setting determines the behavior for inbound connections that do not match an inbound firewall rule. The recommended state for this setting is: Block. Rationale: If the firewall allows all traffic to access the system then an attacker may be more easily able to remotely exploit a weakness in a network service. Impact: None - this is the default behavior.
Solution
To establish the recommended configuration, set the following Device Configuration Policy to Block: To access the Device Configuration Policy from the Intune Home page: Click Devices Click Configuration profiles Click Create profile Select the platform (Windows 10 and later) Select the profile (Endpoint protection) Click Create Enter a Name Click Next Configure the following Setting Path: Endpoint protection/Microsoft Defender Firewall/Domain (workplace) network Setting Name: Default action for inbound connections Configuration: Block Select OK Continue through the Wizard to complete the creation of the profile (profile assignments, applicability etc.) Note: More than one configuration setting from each of the Configuration profiles (ex: Administrative Templates, Custom etc.) can be added to each Device Configuration Policy. Default Value: Block (default). (The Windows Firewall with Advanced Security will block all inbound connections that do not match an inbound firewall rule in this profile.)