There are many problems with passwords; Ed Felten explained the issues very well a few months ago. One big problem is that they can be stolen: the bad guys can somehow get hold of your password and use it themselves. But how can this happen? It turns out that there are many different ways, each of which requires a different protective strategy.
The first risky spot is your own computer. There’s a class of malware -- malicious software -- known as keystroke loggers, programs that copy everything you type. Such programs can record what websites you log into, your userid, and your password. (How do these programs know it’s a login screen? Apart from seeing words like “password” before a text box, how do you know when you’re entering one? Easy – characters in passwords aren’t echoed as you type them. The malware notices the same thing.) Keystroke loggers are one of the most common threats.
The best defense here is the obvious: run a clean computer. Keep current on patches, run up-to-date antivirus software, don’t install software from untrusted sources, and don’t visit dubious web sites that might infect your computer.
A second way passwords are stolen is during transmission: an attacker can eavesdrop on the login sequence. Encryption is the obvious countermeasure, and it works very well. Most web sites are very good about using encryption for login pages, though a distressing number of mail servers don’t. Even without encryption, though, eavesdropping on passwords isn’t that big a threat for home users – it’s difficult for the attacker to get to the right place, and the payoff is low because of the ubiquity of encryption. Think of it as “herd immunity” for computers: even if you don’t use encryption, you’re protected by all of the other folk who do. All that said, you should use encryption whenever possible, especially on your home wireless network; there are many other threats that encryption can avert. WiFi in a public place – a coffee shop, a hotel, an airport, etc. – is a different matter; never send an unencrypted password from such a network!
Passwords can also be stolen from servers: web sites, mail systems, and so on. This is a high-payoff attack for the bad guys; they can steal millions of passwords with a single attack. The defensive onus here is on the server operator (and it’s hard for users to tell if site operators are doing it properly); among other things, sites should “hash” – mathematically irreversibly scramble – user passwords, generally after incorporating a “salt”. (For a good discussion of hashes, see Ed Felten’s post. I’ll write more on salting some other time. ) This means that password recovery – being able to send you your old password, as opposed to you or the site creating a new one – is a dangerous ability, since it implies that the passwords haven’t been hashed.
What about everyone’s least favorite aspect of passwords, their “strength”? Where does strength come in? We’ve known for more than 30 years that many people pick easy-to-guess passwords, things like “123456” or “password”. An attacker with a suitable list of likely guesses (and such lists can include multiple languages, names of movie or book characters, etc.) can try each guess in turn. This may be done online – repeatedly trying to log in as you – or it may be an offline attack against a hashed password file stolen from a hacked server. (Salting makes guessing in offline attacks much more expensive for the attacker, which is why it’s a good idea.) Strong passwords help defeat guessing, but they do nothing to protect you against keystroke loggers or phishing sites. Against online attacks, the best defense is to limit the number of guesses an attacker can make, or at least limit the rate of guessing. Think of it this way: if the password dictionary has 1,000,000 entries (and that’s actually a small dictionary) and guesses are limited to one per second, it will take more than 11 days to try every possibility. If the rate limit changes to one every 10 seconds after the first five failures, it will take several months. The risk, of course, is that the legitimate account owner can be locked out by an attacker’s attempts, but there are more sophisticated variants that can minimize that problem. Rate-limiting doesn’t help against offline attacks, but there’s another defense: the attacker first has to break into the server.
What, then, should a user do? The single most important defense is to avoid reusing passwords. That way, if a site is compromised you only have to change your password in one place, not several dozen. No one can remember many different strong passwords; you have to record them somewhere. A piece of paper may be ideal – no hacker is going to reach into your wallet, Hollywood movies notwithstanding – but you do need to keep it safe. Safe from whom? Protect it from anyone who might want to get access to your accounts; that can include disgruntled coworkers, family members, and so on. You may want to leave a few very high value passwords, such as online banking credentials, off the list; those can and should be memorized. Consider using a password manager program; these will encrypt the list, and perhaps provide easy synchronization across different computers and mobile devices. (The encryption password you choose should of course be very, very strong.) Remember that you need to guard the password list against loss, too; this means that the file should be backed up or the piece of paper copied. Don’t use an ordinary, unencrypted file on your computer, however obscurely named; similarly, don’t store passwords in an email account.
Finally, for sites that offer you the option, opt for two-factor authentication (often using something like a text message to your phone), especially for high-value accounts. Two-factor authentication can be somewhat inconvenient to use, but it offers a very large increase in security, and largely nullifies the problem of password theft.
Original comments for “Password compromises”
Michele Rideout (@CheleBellieBean)
September 19, 2012 at 12:59 pm
You can’t make a unique and strong enough password for each and every site you use AND remember them. Also, I’ve heard you shouldn’t be making up your own passwords because anything you can come up with can be cracked. I started using a password manager. I had a hard time getting out of my old bad habits at first (just using same password everywhere or making it too easy to crack) but once I got used to it, I’ve been able to stay better organized.
I tried a few different ones, but I settled on one that I really like because it’s actually got two-factor authentication and my data is encrypted before it’s sent to them, so basically it’s host-proof. kemesa.com. And it’s got this bookmark thing that makes it easy for me to login to different sites quickly. It’s working for me.
September 19, 2012 at 1:50 pm
Michele: I agree completely about the impossibility of memorizing many unique, strong passwords. I agree that password managers are often the best solution. Some offer a good defense against phishing, too: they won’t be fooled by fake web sites, so they won’t send your passwords to the wrong place. However, there’s one danger to watch out for: the better-integrated the manager is with a browser, the more risk there is that malware can abuse it to steal your credentials.
April 2, 2013 at 12:30 pm
I am extremely impressed with your writing skills as well as with the layout on
your blog. Is this a paid theme or did you customize it
yourself? Anyway keep up the excellent quality writing, it is rare to see
a great blog like this one these days.
July 2, 2013 at 12:41 am
Wow! Finally I got a webpage from where I be capable of genuinely get helpful data regarding my study
July 28, 2013 at 5:26 pm
It’s very trouble-free to find out any matter on net as compared to textbooks, as I found this article at this web page.
The author’s views are his or her own, and do not necessarily represent the views of the Commission or any Commissioner.