LowScript packFree

Azure APRL and Custom Controls

Azure checks comprising APRL-mapped recommendations and local custom controls.

By teemukom · Version 0.1.1 · Published 18 Nov 2026

← All tests

MP.AZR.1031 Review NSG inbound allow rules for SSH and RDP from Internet or Any

Severity: HighAzure

Inbound Network Security Group rules should not allow Internet/Any sources to SSH (TCP 22) or RDP (TCP 3389). This custom test checks explicit inbound allow-rule configuration, including port ranges containing either port. It reports the rule settings only; a finding does not prove effective network reachability because other network controls may block traffic. This test is not APRL-mapped.

Remediation action:

  1. In the Azure portal, open the NSG and review Inbound security rules.
  2. Remove unnecessary allow rules for SSH/RDP from Internet/Any sources. Where access is required, restrict the source to approved IP ranges or private network paths.
  3. Review associated subnets, network interfaces, routes, firewalls, and public IP configuration separately to determine effective reachability.

Related links

%TestResult%

Install
Install-MtPack teemukom/maesterpack-azure

Assumes Maester is installed. New to Maester? Get started.

Next: connect and run
Connect
Connect-Maester -Service Azure
Run
Invoke-Maester -Pack AZR -SkipBuiltIn -SkipGraphConnect