Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When storing connection passwords, MS RDP provides the ability to store the password as either clear text or to encrypt it.

Thr resulting node in the file looks like

<logonCredentials inherit="None">
   <password storeAsClearText="False">AQAdERjHoAwE/Cl+sBAAAA(...)zh</password>

I'm wondering how secure is that encryption, and if the file can be shared among coworkers without someone being able to easily guess the password.

I'm guessing "not much" but I couldn't find exactly how that encrypted chain is generated.

Any idea? Thanks!

share|improve this question
Define "easily guess", I would guess it would be specific to the machine, that would be the most secure way to do something like this. Of course given enough time one can brute force pretty much anything, depends on how good the password is, and of course what exactly is used. I did a google search....**It seems the general advice is to encrypt the configuration file itself.** I suggest you do that. – Ramhound Aug 2 '12 at 15:43
What is the point of protecting the password if your users can connect anyway ? – Shadok Aug 2 '12 at 16:17
@Ramhound I wish you had submited your comment as an answer, I would have upvoted. – Luk Aug 3 '12 at 6:38
up vote 5 down vote accepted

I don't know how the RemoteDesktopManager does it, but I assume it would be the same as how it stores it in a .RDP file.

CryptProtectData which (with the settings they used for RDP) only allows the string to be decrpyted on the same machine as the one that encrypted it due to the fact that it uses the unique ID of the the windows install as part of the encryption processes (the CRYPTPROTECT_LOCAL_MACHINE flag). So yes a attacker could decrypt your password, but they could only do it on the machine that stored the password, they can not do a "offline" attack.

Note this is all for .RDP files. I have no way of knowing if Remote Desktop Manager does the same thing.

share|improve this answer
after playing around with the file a bit, it seems that the encryption is dependent on the computer. You guess is probably right (and that also means that the file cannot be shared if passwords are not in clear text) – Luk Aug 6 '12 at 12:13

In fact, RDP from RDPMan distinguishes only way to store hash: first stores it in hexadecimal notation, and the second performs Base64 encoding. So after Base64 decoding using utility RDP Password Hasher obtain the original password. But it can crank out only by working on behalf of the user who created the password.

share|improve this answer

MS RDP is prone to "man-in-the-middle" attacks and also from Worms. Therefore transport layer encryption may be added to mitigate this.

Here is a list of all commercial RDP software. Although the encryption is shown as proprietary and not explicitly listed.

Read here for further explanation

Read here for security updates to MS Servers that apply to transport and application layer encryption of RDP encryption and authentication.

and more info: Note that .ica scripts for Citrix RDP initialization includes an entry to delete the .ica script file which contains host domain upon login. This is an added security feature. "RemoveICAFile=yes"

The .rdp script files are similar in format to ica scripts but may exclude this line entry. Perhaps "RemoveRDPile=yes" may work ??

People sometimes save this script to ease logging in but the contents may reveal too much about the user hash and domain name to allow password guessing. Often 3 strike lockouts prevent this so security is enhanced.

share|improve this answer
This is not entirely true. Any improperly secured connection could fall victim to a MITM attack. – Burgi Jul 21 at 8:32
This recent report invalidates your opinion and supports mine from 2012 PLease correct it. – Tony Stewart Jul 22 at 19:53

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .