What Is RDP & How Do You Secure (or Replace) It? | BeyondTrust (2024)

What is RDP?

RDP (remote desktop protocol) is a technology that allows for a complete desktop experience, including remote sound, clipboard, printers, and file transfers with high resolution graphics (which can be scaled down based on bandwidth) for a remote user.

In 1998, Microsoft introduced Windows Terminal Server as an add-on to Windows NT Server 4.0 Operating System. This add-on capability enabled remote desktop access over a network using TCP/IP. Every Windows OS release to follow has also included this capability, which became mainstream with the release of Windows XP (circa October 2001). Since the release of XP, RDP has been the de facto standard for remote session access for Windows Desktop and Server Operating Systems.

At 20 years old, RDP has seen multiple versions, with new capabilities added to mature it as a reliable remote access protocol. Over this time, RDP has also had its share of security issues.

However, with emergence of a “new normal” that entails more remote working, increased reliance on cloud computing, and ever more distributed environments, RDP is now commonly being stretched for use cases far beyond what it was intended. Numerous threat and breach research reports over the last 18+ months have indicated that this misuse of RDP is helping fuel the success and onslaught of ransomware and other cyberattacks.

Read on for an overview of RDP including, how it works, common use cases, RDP security risks, best practices for securing RDP, and alternatives to RDP to keep your organizations.

How RDP Works

Remote desktop protocol utilizes a single TCP/IP port to initiate a connection (default 3389) and is a derivative of the T.128 application sharing protocol. Without going into technicalities of how each packet and frame is constructed, the important takeaway is that all traffic is generally point-to-point, encrypted, and contains all the data to efficiently transmit and process an entire user experience remotely with various mechanisms for fault tolerance, authentication, and even multiple monitor support. This is all done without the need for HDMI, USB, and other types of cables. In fact, it works just fine over WiFi, and even cellular, as long as TCP/IP is available.

What Is RDP & How Do You Secure (or Replace) It? | BeyondTrust (1)

The diagram above helps illustrate typical scenarios for connectivity. A client can use a browser or remote desk client through the Internet to connect to remote desktop gateways on premise. While these are based on running RDP over HTTPS (blue and black connectivity lines), the risk is only moderately mitigated as compared to running the RDP protocol directly (orange line). The mitigation would entail additional authentication and abstraction controls in the RD Gateway or RD Web Access Server defined as Policy Rules.

However, the highest risk is the exposure of RDP on the Internet, port 3389, and allowing it to traverse directly through the firewalls to a target on the internal network. This practice is common and should absolutely be avoided. To that end, if you are familiar with using a Citrix Server or Microsoft Windows Terminal Services, you are probably using RDP all the time—and may not even be aware of it—using an Remote Desktop (RD) Gateway or RD Web Access approach, which shares similar risks.

Common RDP Use Cases

Enterprises of all sizes may use RDP to access servers, collaborate with other employees, and remotely access desktops to perform tasks similar to how they would with a physical office presence.

The most common RDP use cases, include:

  • Provide a bastion host with applications into an environment that mimics local resources.
  • Allow a virtual desktop interface (VDI) for (or into) cloud environments using a common office environment (COE) for employees or contractors.
  • Provide a graphic user experience to remote servers, regardless of their location, for maintenance, set up, and troubleshooting.
  • Provide access for help desks, call centers, and service desks into remote users that provide technical support.
  • Allow employees, contractors, vendors, or auditors access to a desktop to provide a similar user experience as being in an office.

These are all valid use cases, and extremely important in a work-from-anywhere world. However, some of these use cases pose far more dangerous risks than others.

Best Practices for Addressing RDP Security Risks

In ideal and environmentally-controlled situations, the remote desktop protocol works great. However, securing RDP to prevent rogue sessions, hijacking, inappropriate access, exploits, privileged escalation, etc. requires a level of IT security maturity that goes far beyond default RDP settings.

RDP’s default settings only provide a baseline for encryption and basic security. If these setting are solely relied on for security and used as is, they create a situation that presents an unacceptable risk to most organizations. With that said, how do you secure RDP for both internal and external operations?

First security rule of RDP—it is absolutely unacceptable to leave RDP exposed on the Internet for access—no matter how much endpoint and systems hardening is performed. The risks of such exposure are far too high. RDP is meant to be used only across a local area network (LAN).

Since RDP hosts support a listening port awaiting inbound connections, even the most secure installations can be profiled as a Windows Operating System and its version. Once this is known, social engineering, missing security patches, zero day exploits, credentials on the dark web, insecure password management, etc. all could allow inappropriate access via RDP.

So, let’s take securing RDP on external hosts off the table. It is just a bad idea. This even encompasses mobile devices like laptops used by employees at home or to support a mobile workforce. No devices that can have, or do have, a public TCP/IP address should have RDP enabled. This is why many organizations require VPN or modern remote access solutions to connect to external resources—even if they are in the DMZ or cloud—to mitigate these potential risks.

But what’s involved with adequately securing RDP for internal use? We can start with what we know about the default configuration:

  • Access lists: Enabling RDP on Windows Hosts, by default, only allows access by the local or domain administrators (depending on its current configuration). While this prevents access by a standard user, it represents an unacceptable risk, since only administrators can authenticate via RDP into the asset. This does not follow the security best practice of least privilege. Therefore, access for administrators should be eliminated. Only the appropriate standard user accounts should be granted RDP access, and this should adhere to a just-in-time model, meaning access is for the briefest duration needed to complete a task. Moreover, session activity should be fully monitored to ensure it is appropriate. The necessary least privilege, just-in-time access, and session monitoring controls can be most thoroughly enforced via a privileged access management (PAM) solution.
  • Default accounts: If the access lists recommendation above is not strictly followed, a threat actor can easily guess the administrator account for access into the resource. And, if the administrator’s default username is “administrator”, a breach, at least on some level, is almost foregone. So, my recommendation is that the administrator account for the local machine or domain be renamed to something different, unique, and not guessable. In addition, RDP’ing (yes, it commonly used as a verb too) as an administrator should only be performed in use cases where it is unavoidable, but not for daily remote access needs.
  • Authentication: Network Level Authentication offers the strongest available method for authenticating RDP communications. If this not turned on, credentials are sent in clear text to a remote host or domain controller.
  • Encryption: The ‘High’ encryption level offers the strongest available encryption for RDP network communication. If this is not set, the maximum key strength supported by the target is negotiated (instead of the maximum key strength set by group policy options) through a domain controller.
  • Clipboard redirection: RDP Servers offer clipboard redirection, so remote sessions can easily cut/copy and paste content from remote systems to the connecting device, and vice versa. This practice is ripe for abuse, such as by data extraction, or pasting of system information, like passwords.
  • Network and LTP printer redirection: RDP Servers offer printer redirection for remote access sessions. This feature allows for the connection of network and LTP (Line Terminal Printer) printers from local devices and domain controllers to the remote asset. This can allow the printing of critical information and the introduction of malicious printer drivers into an environment. RDP should be configured without redirection for network and LTP printers.
  • Session management: Windows Servers allow for multiple RDP sessions per user account. If a user is unintentionally disconnected, the results could be a loss of productivity or information, because a new session does not reconnect to the previous session—it is orphaned. By restricting access, especially by limiting administrators to one session, this situation can be mitigated. This setting also acts as a rudimentary session management solution for malicious RDP since only one session can occur at a time, which makes tracking easy.

To implement these settings, organizations should configure them all in Group Policy Options and apply them via Active Directory. Resources that are not domain-joined must be individually set. Regardless, for both configuration scenarios, if one host is misconfigured, it could represent an enormous risk. Yet, this happens all the time.

While we keep security best practices for the configuration of RDP in mind, there are other risks that must be regularly monitored and managed:

  • Vulnerabilities: Since the inception of RDP, various versions have had myriad vulnerabilities, including a few, such as BlueKeep and DejaBlue, that have allowed remote code execution and privilege escalation. For any environment using RDP, information technology administrators need to stay apprised of security updates and apply them in a timely manner. Without many of these security patches, few mitigating controls can prevent exploitation.
  • Clients: The RDP protocol is well-documented. Many third-party products support acting as an RDP client. In addition, other operating systems, such as macOS and Linux, also contain native RDP clients based on open source and proprietary code. If a vulnerability is discovered in any of these clients, then the risk can be propagated back to an RDP host server. Therefore, controlling, limiting, and managing the RDP clients allowed in your environment (such as via application control) is critical to ensure the end user’s access does not become the attack vector.
  • Licensing: Microsoft requires licensing of the RDP protocol for its use in an environment. Deploying a third-party solution or open source versions may violate your licensing agreements with Microsoft. As silly as this sounds, ensure any third-party solutions using RDP that you deploy have a proper license with Microsoft in order to instrument their technology.

Secure Alternatives to RDP for Remote Access

RDP security risks are unjustifiable for many organizations. Even the slightest incompliance, whether internally or externally when using RDP, is unacceptable. Such organizations require a strategic solution for remote access that is not dependent on native operating system functionality. This leaves a few choices for modern Microsoft Windows devices and other operating systems that support RDP as a client or server:

1. VNC (Virtual Network Computing): VNC is an alternative remote access protocol that competes with RDP. It is a graphical desktop sharing solution that uses the remote frame buffer protocol to control the screen, keyboard, and mouse of another computer by relaying screen updates. The primary advantage of VNC over RDP is that it is platform-independent and has multiple server and client implementations from various sources on the same platform. With VNC, you can basically pick your vendor, open source, or style and implement it.

Unfortunately, VNC suffers many of the same security and hardening shortcomings as RDP, including potentially weak encryption, clear text transmissions, and limitations for hardening authentication. While some proprietary solutions have been built upon VNC to solve these issues, they are paid solutions just like any other proprietary implementation. And like RDP, assets using VNC should never be exposed directly to the Internet, and internal assets should be managed accordingly.

2. SSH (secure Shell): Modern versions of Microsoft Windows allow almost every function to be executed via the command line. In 2018, Microsoft formally added native Secure Shell (SSH) to the operating system to facilitate this functionality remotely.

While not graphically-based, SSH allows a secure method to log in remotely to a Windows host and execute commands and scripts. Hardening of SSH entails similar steps to RDP. SSH needs to be properly configured for account access, encryption, and access control lists. To that end, it should only be used internally—never exposed directly on the Internet, if possible.

3. Third-Party Solutions: Proprietary implementations of remote access technology are typically architected in a vastly different manner than RDP, VNC, and SSH. In lieu of opening a listening TCP/IP port on a host, these technologies tend to use agent-based technology to call out to a manager or gateway technology and await an inbound connection request. Such implementations are ideal for placing on the Internet, since the exposure has been mitigated and authentication is performed at the remote access manager versus at the target itself. In addition, traffic is routed through the manager and gateway to secure the network path as opposed to point-to-point communication that may be blocked by firewalls.

Some vendors that supply proprietary implementations for remote access have solved all the challenges and deficiencies associated with RDP. However, these are enterprise solutions and not free. The underlying protocols used for these solutions are proprietary to the vendors.

The most advanced of these third-party secure remote access solutions may offer features like screen recording, multiscreen sharing, safe mode booting, and even remote registry access—without the need for a full session. However, account management can remain a challenge since every solution needs to grant authentication privileges based on a directory service or through a local role-based access model to each potential target. This needs to be set up regardless of whether the users and assets are grouped in Active Directory, LDAP, or Azure AD. Administrators need to set up who access to what, and when, in lieu of wide-open access that poses a huge risk to the business.

Bolstering RDP Security with BeyondTrust

BeyondTrust’s Secure Remote Access solution, which is part of our best-in-class privileged access management portfolio (PAM), helps organizations drastically improve remote access security and eliminate dangerous threat vectors. BeyondTrust can be leveraged to better protect RDP sessions, or to replace it and other technologies, such as VPNs, for higher security use cases, such as any remote sessions involving privileged access.

BeyondTrust has the only remote access solution that meets the rigorous requirements of FIPS 140-2 Level 1. Our solution controls privileges and sessions across all remote access points, with the ability to proxy access to RDP, SSH, and Windows/Unix/Linux Applications.

What Is RDP & How Do You Secure (or Replace) It? | BeyondTrust (2)

BeyondTrust’s Secure Remote Access solution is comprised of the following two products:

  • BeyondTrust Privleged Remote Access: Empowers IT teams to control, manage, and audit remote privileged access by authorized employees, contractors, and vendors—without compromising on security. Enforces least privilege and exerts granular control and visibility over remote access for insiders and third parties, while enabling user productivity.
  • BeyondTrust Remote Support: Empowers help desk teams to quickly and securely access and fix any remote device, on any platform, with a single solution. Organizations of all sizes can boost service desk productivity, efficiency, and security by consolidating and standardizing help desk support via a single, powerful solution.

Let’s take a closer look at how BeyondTrust Secure Remote Access helps solve for the security shortfalls of native RDP.

Eliminates use of risky open ports and closes remote access backdoors: Typically, establishing remote desktop connections to computers on remote networks entails VPN tunneling, port-forwarding, and firewall configurations that create security holes (i.e. opening the default listening port, TCP 3389).

BeyondTrust Secure Remote Access enables organizations to eliminate these RDP security problems.

When you route remote desktop through our solution, you can still use native RDP to support systems on remote networks, but since BeyondTrust works through firewalls, you avoid exposing listening ports to the internet. With our solution, every remote connection is outbound through Port 443.

1. Centralized, identity-based controls: BeyondTrust integrates with LDAP, Active Directory, RADIUS and Kerberos. When you use RDP through BeyondTrust, your user access privileges and authentication methods cascade down to remote desktop sessions. This makes it easier both to require secure authentication before enabling remote access and manage remote access in an ongoing manner. For instance, if an employee departs the company, their RDP privileges are automatically removed from BeyondTrust once deleted from the AD or another identity-based directory, helping prevent backdoor access via an orphaned account.

2. Enforcement of least privilege: Unlike RDP, VPNs, and other remote access technologies, BeyondTrust Secure Remote Access can enforce granular privilege controls, ensuring users can only perform those specific activities for which they are authorized, and within the proper context.

With BeyondTrust, organizations can establish policies to control when the accounts are accessible (time of day, location, and other contextual parameters), and alert when specific access policies are invoked. Moreover, enterprises can extend these adaptive access controls to lock down access to resources (i.e. cloud control panes, web application consoles, etc.

Additionally, the solution enables a just-in-time access model, which helps minimize threat windows by ensuring duration of access is finite.

3. Password security for remote access session – no matter the location: With BeyondTrust, you can ensure enterprise-class password security for remote sessions—whether initiated by an employee or vendor. A built-in vault manages credentials and injects them directly into sessions—never exposing passwords to the end users. The vault can regularly rotate passwords, or even expire them after each use for the most sensitive accounts.

The solution also integrates easily with other privileged password management solutions, such as BeyondTrust Password Safe. Layering on enterprise password management controls immensely bolsters security and help ensure RDP sessions are not hijacked or leveraged for lateral movement.

4. Full visibility and pinpoint control over sessions: BeyondTrust enables organizations to overcome RDP’s auditing and oversight shortcomings by providing centralized and tamper-proof logging and reporting features. Secure Remote Access pinpoints what took place, and by who, during any remote access session. The solution logs everything and also includes searchable video recordings of RDP sessions.

5. More robust encryption for remote sessions: BeyondTrust Secure Remote Access safeguards every remote desktop connection with 256-AES SSL encryption. This is much more robust than the 128-bit encryption RDP natively provides, and older versions of RDP may have even weaker encryption in place.

How BeyondTrust Secure Remote Access Technology Works with RDP

BeyondTrust’s Remote Desktop integration leverages our Jumpoint technology, which can serve as the RDP broker. A Jumpoint is a connection to a remote host, which, in turn, can then connect to other hosts.

Once a Jumpoint has been installed on a remote network, an authorized user can leverage the Jumpoint to initiate sessions with computers on that same network—even if those computers are unattended.

Enterprises commonly leverage BeyondTrust Jumpoint technology to securely initiate the follow types of sessions:

  • Standard support
  • Remote Desktop Protocol
  • VNC
  • Shell Jump to an SSH-enabled network device
  • Shell Jump to a Telnet-enabled network device
  • Intel® vPro Windows system

Support sessions, RDP sessions, and VNC sessions can also be started with systems on the same network segment.

The Jumpoint will only allow RDP access to the authorized users and teams, as established by your permissioning. Organizations can restrict installation and use of RDP clients in their environment, while configuring their RDP hosts to only accept connections from the Jumpoint. Once those settings are implemented, the solution’s Windows, Mac, iOS, Android, or Linux Technician Console are the only applications that can be used for RDP access.

The BeyondTrust technology can also be used to address any other remote access use cases involving privileged access, ensuring every session is finely controlled, monitored, and audited.

Replace RDP or Better Secure It?

While Remote Desktop Protocol is a valid solution for some remote access use cases, there are manifold risks with regards to enforcing proper configuration, limiting Internet exposure, and maintaining security updates.

Today, cyber criminals wield automation and scanning tools to continuously seek out RDP exposed to the Internet and other remote access weakness that can be leveraged to gain a foothold into the environment. A single out-of-compliance asset, whether internally or externally, could jeopardize an entire organization. And, even if you use VPN to restrict access externally, the risks of VPN may actually amplify the problem.

Therefore, many organizations are choosing to discontinue use of RDP and replace it with a solution that provides more robust remote access security capabilities for the desired use cases. In those instances, the vast majority of risks can be mitigated.

Some modern solutions, such as BeyondTrust Secure Remote Access, even help enable zero trust security to better solve for the remote access problem.

Secure Remote Access can also be integrated with BeyondTrust other PAM solutions, such as Endpoint Privilege Management and Privileged Password Management to enforce least privilege and application control, and manage the entire enterprise universe of privileges. Combining these technologies will provide powerful, blended protection against remote access risks and all types of internal/external threats.

In parting, my advice is to identify where you have RDP exposed, assess that risk, and then make your own judgements. If you identify dangerous exposures, but an alternative solution is not immediately feasible to implement, at minimum, follow the hardening and security guidelines covered in this blog. It could help prevent, or at least minimize, the fallout due to an attack on your enterprise.

Remote Access Security Resources

Use RDP to Access a Remote Windows Endpoint (web page)

Are your Remote Access Tools FIPS 140-2 Validated? Here’s Why it Matters (blog)

(blog)

Secure Remote Access (solution web page)

What Is RDP & How Do You Secure (or Replace) It? | BeyondTrust (3)

Morey J. Haber,Chief Security Officer, BeyondTrust

Morey J. Haber is the Chief Security Officer at BeyondTrust. He has more than 25 years of IT industry experience and has authored four books: Privileged Attack Vectors, Asset Attack Vectors, Identity Attack Vectors, and Cloud Attack Vectors. He is a founding member of the industry group Transparency in Cyber, and in 2020 was elected to the Identity Defined Security Alliance (IDSA) Executive Advisory Board. Morey currently oversees BeyondTrust security and governance for corporate and cloud based solutions and regularly consults for global periodicals and media. He originally joined BeyondTrust in 2012 as a part of the eEye Digital Security acquisition where he served as a Product Owner and Solutions Engineer since 2004. Prior to eEye, he was Beta Development Manager for Computer Associates, Inc. He began his career as Reliability and Maintainability Engineer for a government contractor building flight and training simulators. He earned a Bachelor of Science degree in Electrical Engineering from the State University of New York at Stony Brook.

What Is RDP & How Do You Secure (or Replace) It? | BeyondTrust (2024)

FAQs

What Is RDP & How Do You Secure (or Replace) It? | BeyondTrust? ›

RDP's standard security employs RSA's RC4 encryption algorithm to protect data transmission. Random values are shared between client and server when a connection is initialized while the machines are in the Basic Settings Exchange phase. Remote Desktop encryption protects transmitted data from unauthorized use.

How is RDP secured? ›

RDP's standard security employs RSA's RC4 encryption algorithm to protect data transmission. Random values are shared between client and server when a connection is initialized while the machines are in the Basic Settings Exchange phase. Remote Desktop encryption protects transmitted data from unauthorized use.

What is RDP and why would you use it? ›

What is remote desktop protocol (RDP)? Remote desktop protocol (RDP) is a secure network communications protocol developed by Microsoft. It enables network administrators to remotely diagnose problems that individual users encounter and gives users remote access to their physical work desktop computers.

What is the most secure way to remote desktop? ›

Use RDP Gateways (Best Option)

Using an RDP Gateway is strongly recommended. It provides a way to tightly restrict access to Remote Desktop ports while supporting remote connections through a single "Gateway" server.

What does RDP stand for in security? ›

Remote Desktop Protocol (RDP) is a protocol that enables users anywhere in the world to access and control a computer through a secure, reliable channel. RDP is a safe, useful tool for increasing productivity in your business and giving your employees the flexibility to accomplish tasks in a changing world.

How do I setup a secure RDP? ›

Set client connection encryption level: Enabled and set to High Level (if you have a mixed environment with older operating systems, you may want to set this to Client Compatible) Require secure RPC communication: Enabled. Require use of specific security layer for remote (RDP) connections: Enabled and set to SSL.

Why is RDP a security risk? ›

The problem is that the same password is often used for RDP remote logins as well. Companies do not typically manage these passwords to ensure their strength, and they often leave these remote connections open to brute force or credential stuffing attacks. Unrestricted port access.

What are the two types of RDP? ›

There are two major categories of remote desktop software: operating-system-based and third-party solutions.

What is the difference between remote desktop and RDP? ›

RDC or Remote Desktop is a technology that allows the user on the computer to connect to a remote computer or the terminal server in a different location. Remote desktop protocol (RDP) is a proprietary protocol that helps a user connect to another computer over a secure network communication when they work remotely.

Why you should disable RDP? ›

Often, hackers try to get control of systems running a remote desktop connection with a weak password. Once they are in, it is an absolute nightmare to get back control of your system. So, it is wise to disable the feature if you don't use it anymore. You can always re-enable it later on.

How do I stop someone from accessing my computer remotely? ›

Go to Settings > Unattended. Disable One-click connect to bound device. This will disable unattended remote access to your computer.

Which is more secure RDP or VPN? ›

VPNs encrypt all data sent through the network, making it more secure than RDP. However, RDP is faster and easier to set up than VPNs. RDP provides a graphic interface that allows users to interact with their remote computer as if they were sitting in front of it.

Can hackers use remote desktop? ›

RDP has become a common way for hackers to steal valuable information from devices and networks. It is specifically vulnerable because of its ubiquity.

What are the disadvantages of RDP? ›

RDP Disadvantages

Requires a running machine: The computer you're accessing via RDP must be on and connected to the internet. This can be a problem if the remote computer crashes or loses its internet connection. Limited to one machine: With RDP, you're accessing a specific computer.

What can block RDP? ›

Some public networks block RDP traffic. This setting is especially common for Wi-Fi networks found in some hotels, airports and coffee shops. Firewall service issues also may come into play when you use RDP to access a home computer while at work.

What are the risks of RDP ports? ›

In short, unrestricted port access, unpatched software vulnerabilities, DDoS amplification attacks via (misconfigured) port exposures, and poor credential hygiene (including that of high-privilege accounts); these are the most notorious security risks associated with the use of RDP.

Is RDP secure without VPN? ›

While a VPN (Virtual Private Network) protects your online identity, hides your IP address, and protects your online data from third parties by encrypting your internet traffic over unprotected networks. Returning to our original question, is RDP secure without a VPN? The answer is NO!

Does RDP have built in encryption? ›

RDP uses RSA's RD4 encryption to cipher all data transmitted to and from the local and remote desktop. The system administrators can choose whether to encrypt data using a 56-bit or 128-bit key, the 128-bit being the more secure route.

Does RDP use SSL? ›

Remote desktop protocol (RDP) is a secure network protocol developed by Microsoft that facilitates remote access. The protocol provides three kinds of secure communications for remote desktop connections: RDP security layer, negotiate and secure sockets layer (SSL).

Can RDP be blocked by firewall? ›

To block RDP using firewall policy, you can either edit the existing or copy of the firewall policy or create one, and follow the below process. Open the Firewall Policy in the Symantec Endpoint Protection Manger (SEPM), under Windows Settings, click on Rules. Click Add Blank Rule.

Top Articles
Latest Posts
Article information

Author: Ray Christiansen

Last Updated:

Views: 5857

Rating: 4.9 / 5 (69 voted)

Reviews: 92% of readers found this page helpful

Author information

Name: Ray Christiansen

Birthday: 1998-05-04

Address: Apt. 814 34339 Sauer Islands, Hirtheville, GA 02446-8771

Phone: +337636892828

Job: Lead Hospitality Designer

Hobby: Urban exploration, Tai chi, Lockpicking, Fashion, Gunsmithing, Pottery, Geocaching

Introduction: My name is Ray Christiansen, I am a fair, good, cute, gentle, vast, glamorous, excited person who loves writing and wants to share my knowledge and understanding with you.