Description
Ensure no security list rule allows inbound traffic from 0.0.0.0/0 (any IPv4 address on the internet) to TCP port 3389, which is used for Remote Desktop (RDP) access to Windows instances. Remote administration should come only from trusted IP ranges or through the OCI Bastion service.
Rationale
Port 3389 open to the whole internet is constantly scanned by attackers, who try password guessing and known exploits against RDP. A single weak password or unpatched service can then give an attacker control of the instance. Limiting RDP to trusted networks, or using OCI Bastion instead, removes this exposure while still allowing administrators to connect.
Impact
Blocks RDP access from the public internet
Reduces brute-force and exploit attempts
Administrators must connect from trusted IP ranges or through OCI Bastion
Default Value
By default, the default security list does not allow port 3389, but custom rules can add it.
Pre-Requisites
Permission to manage virtual-network-family in the compartment
A list of trusted IP ranges that need RDP access, or an OCI Bastion set up
Test Plan
Sign in to the OCI Console at https://cloud.oracle.com.
Open the navigation menu, select Networking, and select Virtual cloud networks. Choose the compartment and select the VCN.
Open the Security tab (or Security Lists under Resources on some consoles) and select the security list.
Review the ingress rules and look for any rule with source 0.0.0.0/0 that allows TCP port 3389, or all protocols or all ports.
Repeat for every security list in each VCN.
If any such rule is found, follow the implementation steps.
Implementation Steps
Sign in to the OCI Console at https://cloud.oracle.com.
Open the navigation menu, select Networking, and select Virtual cloud networks. Choose the compartment and select the VCN.
Open the Security tab (or Security Lists under Resources on some consoles) and select the security list.
Find the ingress rule that allows 0.0.0.0/0 to port 3389.
Select Edit on the rule and change the source CIDR to a trusted IP range, or delete the rule.
Save the changes.
Confirm that administrators can still connect from trusted networks or through OCI Bastion.
Backout Plan
Sign in to the OCI Console at https://cloud.oracle.com.
Open the navigation menu, select Networking, and select Virtual cloud networks. Choose the compartment and select the VCN.
Open the Security tab (or Security Lists under Resources on some consoles) and select the security list.
Add back the previous ingress rule (source 0.0.0.0/0, TCP destination port 3389) and save.
Reference
https://docs.oracle.com/en-us/iaas/Content/Network/Concepts/securitylists.htm
https://docs.oracle.com/en-us/iaas/Content/Bastion/Concepts/bastionoverview.htm