8.1 Ensure that RDP access from the Internet is evaluated and restricted

Information

Network security groups should be periodically evaluated for port misconfigurations. Where RDP is not explicitly required and narrowly configured for resources attached to a network security group, Internet-level access to Azure resources should be restricted or eliminated.

The potential security problem with using RDP over the Internet is that attackers can use various brute force techniques to gain access to Azure Virtual Machines. Once the attackers gain access, they can use a virtual machine as a launch point for compromising other machines on an Azure Virtual Network or even attack networked devices outside of Azure.

Solution

Remediate from Azure Portal

- Go to Network security groups
- Under Settings click Inbound security rules
- Check the box next to any inbound security rule matching:
- Port: 3389 or range including 3389
- Protocol: TCP or Any
- Source: 0.0.0.0/0 Internet or Any
- Action: Allow

- Click Delete
- Click Yes

Remediate from Azure CLI

For each network security group rule requiring remediation, run the following command to delete a rule:

az network nsg rule delete --resource-group <resource-group> --nsg-name <network-security-group> --name <rule>

See Also

https://workbench.cisecurity.org/benchmarks/19304

Item Details

Category: SECURITY ASSESSMENT AND AUTHORIZATION, SYSTEM AND COMMUNICATIONS PROTECTION

References: 800-53|CA-9, 800-53|SC-7, CSCv7|9.2

Plugin: microsoft_azure

Control ID: aa4033f534f53757bd906381131557be768b88593dbfe8b9cf2745e44abb0e4d