Port 3389 is the home of the remote desktop protocol that powers Remote
Desktop Services on all modern versions of Windows. If your system has
Remote Desktop enabled, it is listening for connections on port 3389.
Since this port is both well known and can be used to attack accounts,
it is low hanging fruit for script kiddies and bots looking for an easy
target.
Theoretically on a system that does not have an account lockout policy in place which by the way is not a system default, the RDP protocol can be used to get the administrator password with brute force. Brute force is a fancy way of saying trying all possible passwords. If the system never locks out the account then time is the only barrier to eventually getting you password and logging in.
The first defense is to implement a good account lockout policy but that does not solve the entire problem. Any administrator of a public facing Windows web server will notice that their server is continiously attacked by bots looking for an easy target. The bots will often lock out your accounts which can be very annoying.
To protect your system from the bots and script kiddies I always reccomend changing the default RDP port. This will not fool an intelligent attacker but it will weed out the noise.
There are two methods you can use to change the default RDP port. The first is a simple registry hack:
Open up Registry Editor by running regedit. Then navigate to HKEY_LOCAL_MACHINE, SYSTEM, CurrentControlSet, Control, Terminal Server, WinStations and RDP-Tcp. Right click on the PortNumber dword and select Modify. Change the base to Decimal and enter a new port between 1025 and 65535 that is not already in use. Finally click OK.
The second method uses a Microsoft Fix It wizard. Click here to download the utility from Microsoft then click next to start the wizard. On the PortNumber screen enter the new port you want to use, click next and that is it.
Make sure to reboot after either method to ensure the change is active.
Keep in mind that the next time you want to connect to your system with RDP you will need to provide the port number. You can do that from the Remote Desktop client by appending a colon after the host name or ip address followed by the port number. For example, if I have a computer with host name of tweak with RDP running on port 1234 I would use tweak:1234 in the remote desktop client hostname field.
Theoretically on a system that does not have an account lockout policy in place which by the way is not a system default, the RDP protocol can be used to get the administrator password with brute force. Brute force is a fancy way of saying trying all possible passwords. If the system never locks out the account then time is the only barrier to eventually getting you password and logging in.
The first defense is to implement a good account lockout policy but that does not solve the entire problem. Any administrator of a public facing Windows web server will notice that their server is continiously attacked by bots looking for an easy target. The bots will often lock out your accounts which can be very annoying.
To protect your system from the bots and script kiddies I always reccomend changing the default RDP port. This will not fool an intelligent attacker but it will weed out the noise.
There are two methods you can use to change the default RDP port. The first is a simple registry hack:
Open up Registry Editor by running regedit. Then navigate to HKEY_LOCAL_MACHINE, SYSTEM, CurrentControlSet, Control, Terminal Server, WinStations and RDP-Tcp. Right click on the PortNumber dword and select Modify. Change the base to Decimal and enter a new port between 1025 and 65535 that is not already in use. Finally click OK.
The second method uses a Microsoft Fix It wizard. Click here to download the utility from Microsoft then click next to start the wizard. On the PortNumber screen enter the new port you want to use, click next and that is it.
Make sure to reboot after either method to ensure the change is active.
Keep in mind that the next time you want to connect to your system with RDP you will need to provide the port number. You can do that from the Remote Desktop client by appending a colon after the host name or ip address followed by the port number. For example, if I have a computer with host name of tweak with RDP running on port 1234 I would use tweak:1234 in the remote desktop client hostname field.
0 reactions:
Post a Comment