r/programming • u/fl4v1 • Mar 10 '17
Password Rules Are Bullshit
https://blog.codinghorror.com/password-rules-are-bullshit/1.3k
u/thfuran Mar 10 '17
The most infuriating thing about the password policies is that they are frequently only revealed piecemeal as your attempts at passwords violate rules rather than disclosed in full up front so you can just make a damn password compliant with their shit rules.
291
u/elsjpq Mar 10 '17 edited Mar 11 '17
It's even worse when they don't even tell you the rules at any point. I've had passwords silently truncated to 16 characters so that account creation and password resets work, but you can't login unless you type in the truncated version. You have to try logging in with shorter and shorter passwords until you figure out the maximum length. What a nightmare.
132
u/PendragonDaGreat Mar 10 '17
Wow, if they are going to be stupid enough to truncate silently, just do it at every password box.
→ More replies (17)22
→ More replies (23)3
u/pineapplepaul Mar 10 '17
Southwest Airlines did this to me. The worst part was that it would still work for logging in via desktop website, but would not work when logging into their mobile app. I only figured it out after I tried resetting my password, generated a new one in 1Password and got an error that my password was too long. At some point between creating my original password and resetting it, they finally added an error notification about length.
483
u/cainunable Mar 10 '17
I want them to give me the same rules when I am entering my password to login too. If I only visit a site once or twice a year, I can't keep track of what ridiculous changes I had to make to my standard password pattern.
→ More replies (13)247
u/bumblebritches57 Mar 10 '17
You should really use a password manager.
→ More replies (2)504
u/kyew Mar 10 '17
I'll start doing this as soon as someone points me to a free, noninvasive manager that syncs across all my computers and devices, doesn't break in Android apps, has a way to log in on a public computer, and never takes more than a second to log in.
→ More replies (223)5
u/MjrK Mar 10 '17
Even when they give the rules up front, it can still be incredibly infuriating... specifically when they prevent you from using certain characters or mandate using an unusual combination.
2
u/Dblstandard Mar 10 '17
literally had one the other day that would not tell you the criteria for the password unless you FAILED. the it would wipe it each attempt so you had to write the crap down... IDIOTS
2
u/unkz Mar 10 '17
The worst offender is Microsoft Passport, which has secret rules that it won't reveal. It just says that your password isn't acceptable.
→ More replies (15)2
u/myhf Mar 11 '17
Your password must not contain the password you attempted before being told all the rules
681
u/fanatic289 Mar 10 '17
password rules are the reason why I have to reset my apple id password every fucking time I need it.
48
u/bossbozo Mar 10 '17
Oh wow I'm not the only one. it's basically 2 step authentication, you must have Access to your email in order to access apple.
→ More replies (3)21
13
u/dccorona Mar 10 '17
Because you keep forgetting it? I can't recall ever having been forced to change mine...or do they keep strengthening the rules and causing you to have to change when they do?
→ More replies (3)63
u/fanatic289 Mar 10 '17
you can't re-use it, and it has some special rules regarding characters/numbers, making it impossible to actually remember. I'd have to write it down to remember it, which defeats the whole point of a password. I don't need it regularly, it's just annoying when I actually want to do something that requires me to log in. Apple in general has just been pissing me off, so I've not had reason to use it much lately. I miss the days where itunes was a simple music player and the app store was not part of the OS.
39
u/BalkarWolf Mar 10 '17
My Apple passwords always end up being a combination of the words "fuck you" and "apple" in some form or another.
Not sure what it is about Apple, but I can have the damn thing stored in a password manager, and Apple will still tell me my password is wrong. >:[
→ More replies (5)10
u/Dioxy Mar 10 '17
the worst is when it didn't allow my lastpass generated password because it doesn't allow the same character 3 times in a row. Why is that even a requirement
→ More replies (2)→ More replies (3)7
Mar 10 '17
I'd have to write it down to remember it, which defeats the whole point of a password.
The point of a password is to have something only you know that isn't reused on multiple sites. Writing a password down only defeats this if you are writing it down in a place multiple people have access to.
If it is in your house the danger of writing it down is minimal. It is far more important that it not be simple or reused. Writing it down in a secure place is by far the lesser evil.
→ More replies (1)5
u/tehstone Mar 10 '17
That's sort of what I've come to. For the most used sites, I remember my password. But for the majority of them, I try one or two things and then just reset. My email acts as a really inefficient password manager. As long as I can always access my email, I can access anything else.
→ More replies (1)2
u/nlx78 Mar 10 '17
I have that with my Google account. And then when I want to change it in something I do remember: 'Sorry, you already used this one in the past'
→ More replies (77)2
263
u/BLourenco Mar 10 '17
Out of the 25 most used passwords that they listed, there's 2 that stick out:
18atcskd2w
3rjs1la7qe
I don't see any pattern or any reason why these would be common. Anyone know how these passwords are common?
406
u/EverySingleDay Mar 10 '17 edited Mar 10 '17
Just Googled it myself, as I was curious about it too.
Human brains were responsible for choosing passwords like “123456”, “password,” and “qwerty.” But there is no way that 91,103 people independently chose to secure their accounts with “18atcskd2w.”
Instead, what I believe happened is that these accounts were created by bots, perhaps with the intention of posting spam onto the forums.
→ More replies (7)19
u/comp-sci-fi Mar 11 '17
As a fellow non-bot, I too don't see any pattern in those passwords.
→ More replies (2)24
u/oditogre Mar 10 '17
What's the reason for 'mynoob'? It's the one other one that I can't see a sane reason for that many people to consistently pick.
→ More replies (2)63
u/DJ-Salinger Mar 10 '17
I think I remember reading somewhere that they're likely passwords used by bots.
→ More replies (2)8
u/darwin2500 Mar 10 '17
Off-the-op-of-my-head guess is that they're the first passwords generated by the random seed in some type of common application that doesn't properly initialize its random seed on install.
4
u/almightySapling Mar 10 '17
Only came in to ask about this.
I also thought "mynoob" was interesting. Of allllll the words out there, why would "mynoob" be the one that people go to more than any other (except for, apparently, google)?
13
u/vicarofyanks Mar 10 '17
I noticed that two, thought maybe it was a DVORAK layout pattern or something
26
28
5
u/kukiric Mar 10 '17
There are so few people using Dvorak that I still find it more likely for two completely random strings to pop up in the top 10 passwords used worldwide by pure coincidence.
→ More replies (1)2
u/OrigamiGamer Mar 10 '17
These are actually common passwords used by bots - apparently people made enough bot accounts for these to make the list.
498
u/snarfy Mar 10 '17
29
21
→ More replies (7)2
227
u/NoMoreNicksLeft Mar 10 '17
Password must be between 11 and 19 characters, and have 1-4 (but not 5+) uppercase letters, 2-3 symbols (but not 4+ and excluding left-side backets <[{( the question mark ? and semicolon ;) and exactly 2 numerals.
Your password must be changed every 8 days for security purposes. You will not be allowed to reuse the same password, or any password containing more than 25% of the same characters as previous passwords. You will receive notification emails one week prior to password expiration as a reminder. Additionally, the login system will start prompting you to change your password 5 days before expiration.
86
u/Shinhan Mar 10 '17
any password containing more than 25% of the same characters as previous passwords
Plain text passwords. INSECURE!
→ More replies (4)32
u/NoMoreNicksLeft Mar 10 '17
How will we make sure they don't reuse password characters though?
Think, Johnson! There are bigger things at stake here.
60
93
14
→ More replies (9)13
u/elsjpq Mar 10 '17
You also have to silently truncate their password to 19 characters, but not tell them about it, so when the try to log in they'll be confused why the password they just created doesn't work
→ More replies (1)
183
u/voiping Mar 10 '17
no mention of zxcvbn? Great at calculating entropy.
No need for special rules -- just "long password & not common phrases" to get enough entropy... it even gives hints for how to add entropy.
19
u/irrationalidiot Mar 10 '17
I'd never heard of zxcvbn, so thanks for mentioning it. Seems it would be great as a command line utility as well.
12
u/Tostino Mar 10 '17
Take a look at nbvcxz which has a command line utility: https://github.com/GoSimpleLLC/nbvcxz
→ More replies (1)→ More replies (24)6
u/drakonen Mar 10 '17
This is the current best implementation (that I know of)
It's nice to see that coding horror is getting up to date with password practices.
38
u/moom Mar 10 '17
Please select your new password: g2gh9ihJgoOna;asu&jijg2n0ua!!#gaj:bh20
Great! Now you must log in again. Please enter your password: g2gh9ihJgoOna;asu&jijg2n0ua!!#gaj:bh20
That's not your password. Please enter your password: g2gh9ihJgoOna;asu&jijg2n0ua!!#gaj:bh20
That's not your password. Please enter your password:
google maximum password length on shittyprogrammersworkhere.com
The maximum password length on shittyprogrammersworkhere.com is 12 characters.
Please enter your password: g2gh9ihJgoOn
Congratulations! You have logged on.
41
u/dantheman999 Mar 10 '17 edited Mar 10 '17
https://github.com/dropbox/zxcvbn
https://www.usenix.org/conference/usenixsecurity16/technical-sessions/presentation/wheeler
Not sure why more people aren't using this sort of library. I mean it's pretty big but it basically is exactly what he is talking about.
We rolled a modified version of this out literally yesterday.
12
u/warbiscuit Mar 10 '17
As soon as a saw the post made no mention of zxcvbn, I came here to make sure a link to it got posted. You're right, it literally encodes most of the useful rules laid out in that blog; really a shame it didn't get mentioned.
Every since I found it, I've just set a minimum guessing strength based on it's calculations (after passing in a user-specific dictionary of bad words).
Sure, some simple phrases might make it above whatever limit I set -- but the whole point of it's approach is that for an attacker to focus on those words has about as low a success rate as a general search based on the lower limit I've set.
(there's also a python port - https://pypi.python.org/pypi/zxcvbn-python)
39
u/Skull_Panda Mar 10 '17
My number one gripe on password rules.
Being forced to Change your password every 30/60/90 days.
I mean I kind of vaguely see why, but all it really does is encourage "Password1", "Password2", "Password3", or worse, now the password is just written on a post it stuck to the monitor because this is the 500th time I had to change it.
24
u/Zarutian Mar 10 '17
Had an intresting policy at one place I worked.
There was no enforcement of 'Change your password every 30-90 days' but there was an MOTD saying "These sites had been breached, did you use the same password there as you use here?" then a login&change_password button.
17
→ More replies (3)6
u/shthed Mar 11 '17 edited Mar 11 '17
My work does this, 30 days, I've asked a few people what their strategy is and I'm the same, just append the current month to the password, completely defeating the point.
17
u/toconnor Mar 10 '17
I've found that the sites that should have the most secure passwords, like financial institutions, typically have the worst. Sites to avoid...
Passwords: We maintain strict rules to help prevent others from guessing your password, and recommend that you change your password periodically. Your password must meet the following criteria:
6-8 characters long
Include both letters and numbers
Include at least one number between the first and last character
http://www.schwab.com/public/schwab/banking_lending/bank_online_security.html
Your new password cannot have any spaces and will not be case sensitive.
4
u/petra303 Mar 11 '17
My Merrill lynch password can only be 6 chars long and only alpha numeric. No special chars.
→ More replies (1)4
2
u/Sycon Mar 11 '17
That's not even the worst of it for Charles Schwab. They used to automatically truncate passwords to 8 characters without telling you. Discovered it on accident after I hit a different login portal that had a character limit on the input box.
A lot of my friends didn't believe me until they tried logging in by typing only the first 8 characters.
But then it got worse because I think last year they updated it and let you use longer passwords... Except they did this without notifying users... And the full length password users had originally "set" started working properly. That just brings up loads of questions because either they were storing information in plain text or they were automatically updating your password without telling you when you logged in.
→ More replies (1)2
136
u/dccorona Mar 10 '17
The best argument I've heard against password composition rules (and this one is surprisingly absent from this article) is that they make passwords easier to brute force...when you eliminate the possibility of the password being all alphabetic or alphanumeric, you actually cut out a huge number of possible passwords for the brute-forcer to have to try. Granted, you may protect people from using the most basic, easy to guess passwords, but I really think it's a bad idea to reduce the security of every careful user in order to strengthen the security of careless ones.
59
u/ScrimpyCat Mar 10 '17
Exactly, you're basically giving the attacker a helping hand telling them where to begin with cracking those passwords.
I've thought maybe the best way to go about it is to simply not enforce any rules, but include a strength calculator. So the user can see how strong their password is (try to encourage them to use a stronger one), but not require the user to meet any explicit criteria.
28
u/9gPgEpW82IUTRbCzC5qr Mar 10 '17
the best method is to only have a single rule, minimum length.
→ More replies (20)26
u/masterpi Mar 10 '17
I'm sort of sad this argument is on r/programming. Do the math, it's a tiny percent of the newly enforced keyspace which is eliminated by these rules, and it's going to be checked first by every cracker program because it can.
→ More replies (8)2
u/Eucalyptol Mar 10 '17
I mean you really need to have tough security rules to prevent careful users to chose high-entropy passwords.
13
u/nvanprooyen Mar 10 '17
Also, if you're going to force stupid password requirements at least have the decency to remind the end user of what those rules are when they are trying to log in and can't remember the password, because of your fucking arbitrary bullshit. Thanks.
20
u/skiguy0123 Mar 10 '17
The point of that xkcd article isn't that password length is important, it is that it is easy to come up with good passwords humans can remember. It works because there are a lot of words (as compared to the number of ASCII symbols) and people are much better at memorizing words than characters. With the xkcd example, the user only has to remember 4 words, as opposed to a bunch of characters, without compromising security because the pool of words is so much larger than the pool of characters.
→ More replies (15)
9
Mar 10 '17
As long as the account can't cause any damage, I say let people use whatever password they want and let them get hacked.
If it can cause damage, check to see if their password is in the 100k most common ones.
16
u/Dunge Mar 10 '17
I'm usually okay with the 8 character / one non letter character rule. But when I get to a site like Xamarin I signed up recently where you need 12 characters, one capital letter, one number and one special character, that's just useless. You end up with "Thisisalongpassword1!" because you can't think of anything else, and end up forgetting it or having to write it somewhere which makes it even less secure. If you REALLY want something secure, use a high bits encryption key, if not, let us use our short passwords.
0
Mar 10 '17
[deleted]
0
Mar 10 '17
[deleted]
15
u/zship Mar 10 '17
Ugh, can't stand those. This is probably too many steps for most people, but this is what I (and probably most web developers) do (in Chrome):
Right-click the password field
Click "Inspect"
Click "Console"
Type
$0.value = '<paste-password-here>'Hit <Enter> key
→ More replies (2)
43
u/DYMAXIONman Mar 10 '17
Just use a password manager
38
u/SemiNormal Mar 10 '17 edited Mar 10 '17
Should I save my password manager password in another password manager?
Edit: my question was sarcasm, but the responses are good for anyone seriously asking how to save their password manager password.
→ More replies (35)29
u/ciconway Mar 10 '17 edited Aug 22 '23
handle office encouraging automatic books faulty subtract strong seed hungry -- mass deleted all reddit content via https://redact.dev
→ More replies (28)6
u/remram Mar 10 '17
Or don't use passwords at all. I've seen a few websites around the web that just email you a link every time you need to log in (which is not that often anyway, since most sites keep you logged in for months).
Solves password reuse issues, moves password requirements to your email provider of choice, and basically works like a password manager without the need for extra software on the client.
→ More replies (1)
7
Mar 10 '17
Cannot use any sequence of numbers (e.g., 12345 or even 12)
Cannot use any sequence of letters. What if I want to use the word ghost in my password?
Cannot use any part of your real name, username, or email address
Cannot use any part of our company name
Cannot use "dictionary words* in your password. Again, what if I want to use "ghost" in my password?
This is just maddening. Also, what, exactly, is "password entropy"?
3
Mar 10 '17
Also, what, exactly, is "password entropy"?
The Shannon entropy of a password. Which is the log (base two) of the reciprocal of the probability that your password generation technique yielded your password.
For instance, the XKCD password method starts with a 2000-word dictionary. You pick a random item from it. That's about 11 bits of entropy -- 1/2000 that you chose this specific word; take the reciprocal and it's 2000; log_2 of that is about 11. So the first word is 11 bits of entropy.
You repeat that four times, and each one is independent, so you just add 11 bits of entropy each time, for a total of 44 bits of entropy.
→ More replies (1)
6
u/jabejazz Mar 10 '17
Your password must contain at least 12 characters, including a capital letter, a number, an emoji, a blood sample, and a gang sign.
6
u/aglarattercop Mar 10 '17
My favorite is "Password must not contain any word found in a dictionary." After 30 attempted password changes you find out how much someone could hate dictionaries.
11
u/sacundim Mar 10 '17
Jeff Atwood really isn't the guy you should be taking password advice from, because he does not really understand the topic. Compare his answer to to this Stack Exchange question about the "correct horse battery staple" comic to Thomas Pornin's answer to the same question, and you can see that his knowledge is rather shallow.
The blog post we're talking about repeats that theme. Atwood tells us:
We can certainly debate whether "correct horse battery staple" is a viable password strategy or not, but the argument here is mostly that length matters.
No, it's not. Atwood doesn't understand the "correct horse battery staple" comic. Pornin's Stack Exchange answer—which Atwood has unquestionably seen before—gets things right:
"Tr0ub4dor&3" looks more randomish than "correcthorsebatterystaple"; and the same minds will give good points to the latter only because of the wrong reason, i.e. the widespread (but misguided) belief that password length makes strength. It does not. A password is not strong because it is long; it is strong because it includes a lot of randomness (all the entropy bits we have been discussing all along). Extra length just allows for more strength, by giving more room for randomness; in particular, by allowing "gentle" randomness that is easy to remember, like the electric horse thing.
→ More replies (1)
10
5
u/laggincauseimswaggin Mar 10 '17
The really stupid stuff comes into play when you have decent passwords but their system says it's too long or can't have special characters.
5
u/rampion Mar 10 '17 edited Mar 10 '17
NIST had similar things to say on the subject:
Appendix A: Strength of Memorized Secrets
This appendix is informative.
A.1. Introduction
Despite widespread frustration with the use of passwords from both a usability and security standpoint, they remain a very widely used form of authentication. Humans, however, have only a limited ability to memorize complex, arbitrary secrets, so they often choose passwords that can be easily guessed. To address the resultant security concerns, online services have introduced rules in an effort to increase the complexity of these memorized secrets. The most notable form of these is composition rules, which require the user to choose passwords constructed using a mix of character types, such as at least one digit, uppercase letter, and symbol. However, analyses of breached password databases reveals that the benefit of such rules is not nearly as significant as initially thought, although the impact on usability and memorability is severe.
Complexity of user-chosen passwords has often been characterized using the information theory concept of entropy [Shannon]. While entropy can be readily calculated for data having deterministic distribution functions, estimating the entropy for user-chosen passwords is difficult and past efforts to do so have not been particularly accurate. For this reason, a different and somewhat simpler approach, based primarily on password length, is presented herein.
Many attacks associated with the use of passwords are not affected by password complexity and length. Keystroke logging, phishing, and social engineering attacks are equally effective on lengthy, complex passwords as simple ones. These attacks are outside the scope of this Appendix.
A.2. Length
Password length has been found to be the primary factor in characterizing password strength. Passwords that are too short yield to brute force attacks as well as to dictionary attacks using words and commonly chosen passwords.
The minimum password length that should be required depends to a large extent on the threat model being addressed. Online attacks where the attacker attempts to log in by guessing the password can be mitigated by throttling the rate of login attempts permitted. In order to prevent an attacker (or a persistent claimant with poor typing skills) from easily inflicting a denial-of-service attack on the subscriber by making many incorrect guesses, passwords need to be complex enough that throttling does not occur after a modest number of erroneous attempts, but does occur before there is a significant chance of a successful guess.
Offline attacks are sometimes possible when one or more hashed passwords is obtained by the attacker through a database breach. The ability of the attacker to determine one or more users’ passwords depends on the way in which the password is stored. Commonly, passwords are salted with a random value and hashed, preferably using a computationally expensive algorithm. Even with such measures, the current ability of attackers to compute many billions of hashes per second with no throttling requires passwords intended to resist such attacks to be orders of magnitude more complex than those that are expected to resist only online attacks.
Users should be encouraged to make their passwords as lengthy as they want, within reason. Since the size of a hashed password is independent of its length, there is no reason not to permit the use of lengthy passwords (or pass phrases) if the user wishes. Extremely long passwords (perhaps megabytes in length) could conceivably require excessive processing time to hash, so it is reasonable to have some limit.
A.3. Complexity
As noted above, composition rules are commonly used in an attempt to increase the difficulty of guessing user-chosen passwords. Research has shown, however, that users respond in very predictable ways to the requirements imposed by composition rules. For example, a user that might have chosen “password” as their password would be relatively likely to choose “Password1” if required to include an uppercase letter and a number, or “Password1!” if a symbol is also required.
Users also express frustration when attempts to create complex passwords are rejected by online services. Many services reject passwords with spaces and various special characters. In some cases the special characters that are not accepted might be an effort to avoid attacks like SQL injection that depend on those characters. But a properly hashed password would not be sent intact to a database in any case, so such precautions are unnecessary. Users should also be able to include space characters to allow the use of phrases. Spaces themselves, however, add little to the complexity of passwords and may introduce usability issues (e.g., the undetected use of two spaces rather than one), so it may be beneficial to remove spaces in typed passwords prior to verification.
Users’ password choices are very predictable, so attackers are likely to guess passwords that have been successful in the past. These include dictionary words and passwords from previous breaches, such as the “Password1!” example above. For this reason, it is recommended that passwords chosen by users be compared against a “black list” of unacceptable passwords. This list should include passwords from previous breach corpuses, dictionary words, and specific words (such as the name of the service itself) that users are likely to choose. Since user choice of passwords will also be governed by a minimum length requirement, this dictionary need only include entries meeting that requirement.
A.4. Randomly-chosen Secrets
Another factor that determines the strength of memorized secrets is the process by which they are generated. Secrets that are randomly chosen (in most cases by the verifier or CSP) and are uniformly distributed will be more difficult to guess or brute-force attack than user-chosen secrets meeting the same length and complexity requirements. Accordingly, at LOA2, SP 800-63-2 permitted the use of randomly generated PINs with 6 or more digits while requiring user-chosen memorized secrets to be a minimum of 8 characters long.
As discussed above, the threat model being addressed with memorized secret length requirements includes rate-limited online attacks, but not offline attacks. With this limitation, 6 digit randomly-generated PINs are still considered adequate for memorized secrets.
A.5. Summary
Length and complexity requirements beyond those recommended here significantly increase the difficulty of memorized secrets and increase user frustration. As a result, users often work around these restrictions in a way that is counterproductive. Furthermore, other mitigations such as blacklists, secure hashed storage, and rate throttling are more effective at preventing modern brute-force attacks. Therefore, no additional complexity requirements are imposed.
2
5
u/Belazor Mar 10 '17
You forgot the one when you use a password manager with pseudo-random password, and the site actively blocks pasting.
Fuck everyone who codes their site to prevent pasting. It doesn't even fucking work since you can right click and hit paste anyway. You're just making it more difficult for me to use your site for LITERALLY NO REASON.
Oh, and while we're at it, fuck everyone who creates custom 2FA solutions that ONLY works with text messages and don't allow pasting.
5
u/BifurcatedTales Mar 10 '17
Microsoft account doesn't allow copy/paste of passwords into their pages. At least it didn't last I tried. Good way to get people to create shit passwords.
→ More replies (5)
5
u/avrus Mar 10 '17
It is far more likely the website storing my password is compromised, than my password is brute forced as a targeted attack.
13
u/3urny Mar 10 '17
Oh at least 10 characters? I'm waiting for the day Discourse passwords are leaked and the most common are:
123456123456
123456789123456789
qwertyqwerty
passwordpassword
→ More replies (1)
13
31
Mar 10 '17
I'd like to take this one step further.
If you have a mobile app (mostly what I do lately is mobile apps and servers for them) - YTF do you present the user with a password field when they sign up?
This is beyond stupid. You get their phone number (or email address I guess if you're feeling last century) so you can identify them if they get a new device - also marketing.
You generate a password yourself and you stick it in the key chain. They do NOT need to see it or know it is even there. You use this to authenticate the device automatically when the app starts up.
If they lose their device - you send them (via text message or email) a recovery code. Something easy to type but short lived. They enter that and authenticate it against the server and if the server says "cool" you generate a new password and stick it in their keychain.
There is no reason to present a user with a password field in a mobile app these days. None. Ever. Unless this app has a companion web interface - then - maybe.
But user signup and auth are all built out of habit these days with no thought at all. I say KILL THE MOTHERFUCKING PASSWORD. Its gotten out of hand.
19
u/StuartPBentley Mar 10 '17
But user signup and auth are all built out of habit these days with no thought at all. I say KILL THE MOTHERFUCKING PASSWORD. Its gotten out of hand.
That's the spirit. The best part is that you don't have to wait for the industry to catch on to this - you can kill the password yourself. Just invent a random character sequence that you then forget altogether, and use "I forgot my password" to log in.
My project for this month is to release an article to exactly this effect.
→ More replies (1)32
u/EpsilonRose Mar 10 '17
5 problems with this:
It doesn't work if they have multiple devices.
It doesn't work if their device doesn't have a phone number, like a tablet.
It doesn't work if they change their number.
It doesn't work if an attacker knows their number and can fake it.
It doesn't work if they want to lock the app separately from their device.
Look for a way to kill passwords if you want, but this is not it.
10
u/ZeGoldenLlama Mar 10 '17
I love how boldly it was stated that
There is no reason to present a user with a password field in a mobile app these days
→ More replies (1)0
4
Mar 10 '17
Or just use OAuth. I like PINs though with apps, mostly because it prevents my 2yo from messing with stuff.
→ More replies (1)5
0
2
4
u/BigPeteB Mar 10 '17
His first suggestion (and the title of the article), "Password rules are bullshit", should be rephrased as "Arbitrary password rules are bullshit".
He goes on to recommend four password rules, but those are okay because they're based on provable math, not based on making upper management happy.
4
Mar 10 '17
Enforce a minimum Unicode password length
What in the blazes is a "Unicode password length"?
It's simple.
No, it isn't.
Users can count. Most of them, anyway.
Sure. How long is this password?
el-niñoHow about this one?
el-niñoOne's seven codepoints long, the other's eight. Users can count, but Unicode can't.
How about in bytes? Well, they're both at least seven bytes long, and they're both up to 32 bytes long, and that's all we can say. Specifically, you might normalize before encoding, and that would turn them both into the same sequence of codepoints -- either seven or eight. And then you might encode them in UTF-8, UTF-16, or UTF-32. So the "Unicode length" of these passwords could be seven, eight, fourteen, eighteen, twenty-eight, or thirty-two.
7
u/blackmist Mar 10 '17
I quite liked the evil password strength checker from a few weeks back.
Checks against your Facebook, Twitter, etc, to make sure you're not reusing passwords.
Personally I think passwords are no longer fit for purpose. Everybody wants a password, people re-use them, use crap passwords, people store them in plain text or MD5 just ripe for a hack, they put them on Post-it notes... Sadly, everybody wants to be the centre of the new security system, and nobody will accept that they can't all be.
3
u/loup-vaillant Mar 10 '17 edited Mar 10 '17
Key pair in a USB dongle (or a file). Plug the dongle when you use the computer. (Or just let the file be.)
Upon registration, just give your public key to the remote service. Upon further login:
Service sends its public key (or doesn't, you already knew this key when you registered).
Key pair manager asks the master password from the user.
Key pair manager temporarily unlocks the private key.
Key pair manager computes a shared key with a Diffie-Hellman key exchange.
Local app generates a random, temporary key pair, sends the public part to the service (encrypted and authenticated with the long term shared key).
Service authenticates the message, generates a key pair of its own, sends it. (Also, Diffie-Hellman.)
Local app authenticates the response. (Also, Diffie-Hellman.).
Everyone throws away the temporary key pairs, only keep the temporary session key.
Local app throws away the long term private key.
Users who want to remain anonymous can use a different key pair for each service. Users who don't care (or care about reputation) can reuse their key pair and their password, it's still secure.
No massive password leak is possible: the server only stores public keys. Hacker can still disclose who was registered, but that's often public information to begin with.
Now that was mostly for phone apps. I don't know how we can translate that to the web itself. There's also the problem of the stored secret (private key), while password are generally a remembered secret.
3
3
u/tyrel Mar 10 '17
Believe it or not, a lot of services still store your data on very old mainframe computers, with software that was written decades ago. It's cheaper to just make a web front-end for it than to find someone who knows COBOL and isn't dead. This is especially true with banks, airlines, and governments. So a lot of those password rules are coming from the limitations in the database on the mainframe that someone wrote a few decades ago before computer security was much of a thing.
Source: I work for a company that makes software that helps these companies access their mainframes from PCs etc.
4
Mar 10 '17
Mainframe security software like RACF and Top Secret allow the special characters and passphrases. Source: I am a mainframe systems programmer.
→ More replies (1)2
u/Zarutian Mar 10 '17
Saw such Mainframe system it had 8 byte max size of passwords. They just switched to always hashing the passwords entered by the users. Worked quite well.
2
u/Shurikane Mar 11 '17
I wonder if this is the reason why PC Plus wants their users to have a password that is exactly eight characters.
3
u/Soulwound Mar 10 '17
The password bullshit I hate the most is when a website's password input function silently truncates your password, but then their login dialog doesn't truncate it so you can't log in and have no idea why the password you just made with your password generator won't fucking work already.
3
u/Sean1708 Mar 10 '17
But expressing your love of entropy as terrible, idiosyncratic password rules …
Could somebody smarter than me explain this please? I thought that, by definition, adding a password rule reduces entropy because it reduces the number of combinations you have to try.
7
Mar 10 '17
Without any rules, the probability distribution of passwords is strongly concentrated in short, all-lowercase, all-letter passwords. That's a relatively small set of passwords to check.
With rules, you push everyone who would have chosen a password in that set into the rest of the probability space.
They'll still choose the shortest password they can get away with. They'll make obvious transformations, like appending
_1to their weak password. But hopefully they'll each make different transformations, which gives them a few extra bits of entropy.→ More replies (2)
3
Mar 10 '17
I really can't stand Jeff Atwood's writing style. The relentless over emphasis makes it seem like he has constant epiphanies over tiny and obvious things.
3
3
u/key_lime_pie Mar 10 '17
My company was acquired by Oracle, who set about ensuring not only that we followed their password length/complexity policy, but that we lock the account of any user already in any of our systems if their passwords weren't in compliance, and since we couldn't check passwords that were already hashed/salted/etc, we had to lock ALL users out. We told them that this was a very bad idea, and they told us to get fucked. Support was thus very happy to get about a thousand calls from admins wondering why the fuck none of their users could log in and if there was any to fix is aside from reactivating them and setting a temp password one by one. Nope, sorry.
BTW, Oracle's flagship database product has no such out-of-the-box complexity rules, and I believe that until recently they were still creating the bullshit insecure SCOTT/TIGER default test account. So do as they say, not as they do.
3
u/Shujinco2 Mar 10 '17
Crazy password rules only want to make me have 1 password that works everywhere, instead of trying to make new passwords with many different rules.
Not only that, but the more rules you have for passwords, the easier it is to hack, as the number of passwords possible is reduced with every new rule.
3
u/jnwatson Mar 10 '17
Back in the old days, for my first job there was a VAX machine I had to login to every 2 weeks. The password policy was so simple and secure I don't understand why everyone doesn't use it.
The secret: it didn't let you choose your own password. It showed you a full screen full of passwords and you had to type one in (twice). You could refresh the screen as many times as you'd like, but you'd still have to type a shown password in. All passwords were guaranteed to be secure, and there weren't any stupid rules to enforce or remember.
→ More replies (3)4
u/Tblue Mar 10 '17
Neat. Sounds like what pwgen does nowadays:
% pwgen 12 24 shai8ou1ahBe eel3eiv9Ahj3 ooK0theipohD Ca0feifeid2U Nieph1Shoa6i ohFeechiugh5 iBaht7so0zah eil9ohHoe9Oo eech9Uteitho ahnieroh2auW aemohTo0Rieb ZieLie1Rah7x aiX8eiv4lei8 mooduK7ieTie uRooy7que5ze aroht7OhGhie aingah9Achoo ez8ahg8Gahfa uwohQuaih7lo Yohden0ae2xu nieCenuix8Du Wai3eequo9Ci xo0Oom8ruCa5 ain6Aiphahw4→ More replies (1)
3
u/myztry Mar 11 '17
Password are inherently flawed as they require you to hand over the secret in order to prove yourself. That secret then needs to be short enough to be memorable yet long enough not to be guessable. Password recovery is even worse with phrases that anybody who even remotely knows you can guess.
The solution is to use physical keys. USB, bluetooth, SIM or another other ubiquitous local communication device to answer challenges on the bearers behalf without the bearer even having to know what their key is. Stick the authentication behind biometric (ie. fingerprint) locks if you feel the need for that extra level of protection beyond possession.
To create trust, give someone your public key and ask for a secret random number encrypted with their public key. Return their secret encrypted with your private key so they can determine if you hold the private key. Do the same to them. Both parties have now proven they hold the private keys for that public key used as an ID.
Now, you don't need one key. You could have backups stored in a vault or wherever feels safe to you. You can also have different keys for different purposes. Your Porn key is likely going to be a different key than your Work key. This overcomes the risk that your public key will identify you beyond the entities you have created trust with.
Mass produce the keys which have onboard encryption for dollars a piece at chain stores. Distribute them as blanks to be programmed or fixed pre-generated keys for the authentications you don't care about. Download the keys as apps if you don't seek the added security of knowing that not even an OS legally bound to entities such as the NSA can access the really really long secret.
9
u/yeezul Mar 10 '17 edited Mar 10 '17
I agree that password rules are ridiculous.
However, do we really need excessive long passwords and/or a bunch of random characters?
Why don't we just implement services that locks your account after 3 failed attempts, unlockable via email with a token attached? That way brute force is out of the question.
EDIT This context assumes one does NOT reuse his password on every single site out there.
14
u/elsjpq Mar 10 '17
This doesn't help with leaked databases
4
u/merreborn Mar 10 '17
...Which, I hope it goes without saying, is essentially inevitable in this day and age. I don't know about yall but at least a half dozen of my accounts have been leaked in the last few years according to haveibeenpwned.com
15 years ago, "what if someone leaked your database?" was more of a hypothetical. Now, there are several major leaks every year, and if you don't include that possibility in your threat model, you're being incredibly irresponsible.
12
Mar 10 '17
I'd increase the number of failed attempts to 10, maybe 20 for people who reuse passwords with small modifications. Also add more ways to unlock like phone call or SMS, but this is a great idea.
8
u/yeezul Mar 10 '17
Absolutely.
10 attempts should probably be enough for most people.
I agree that if you have the means to provide SMS / phone call services, that should be an alternative. However considering these are paid services, if your website does not bring any revenue I believe a simple email token should be a viable alternative.
As a matter of fact, I think this pattern should be implemented by most websites, it would make brute force impossible.
9
u/Dyslectic_Sabreur Mar 10 '17
Why don't we just implement services that locks your account after 3 failed attempts, unlockable via email with a token attached? That way brute force is out of the question.
This can easily be exploited to deny someone access to their account. There is already monitoring that will limit an IP adres trying passwords too often.
This is not the reason you need to have long passwords. The reason why you need long passwords is when a website gets hacked they they might leak you password in a hashed(similair to encryption) form. The hackers will then try to crack this hash of your password to find out your real password. The stronger your password the harder it is to crack the hash*.
* Also depends on hashing algorithm.
9
u/Eucalyptol Mar 10 '17
Such discussion about passwords generally assumes that the attacker already has access to a leaked database in which the passwords are hashed. If the attacker is trying out the actual login form, then brute-force is out of question anyway because of the network latency. Of course, many passwords are so stupid brute-force is overkill, but brute-forcing the login form probably won't break your Tr0ub4dor&3.
11
u/bradlis7 Mar 10 '17
I read a long time ago that adding some sleep time to the login process can really stop brute force as well. When the user enters a password, the server waits a random time between 1 and 3 seconds to return. This makes brute force a lot slower, and won't be too noticeable to the user.
There's still some other issues, like if they could open up 5,000 connections then it doesn't really slow them down too much, but you could use other protections to combat that.
→ More replies (5)→ More replies (5)3
u/sacundim Mar 10 '17
Why don't we just implement services that locks your account after 3 failed attempts, unlockable via email with a token attached? That way brute force is out of the question.
Because sites get hacked and their hashed password databases stolen and most people reuse passwords across sites. And then the lockout limit (which is otherwise a good idea) does nothing.
6
u/Usaron Mar 10 '17
There is a website that forces me change password every 15 days. The password expires every 15 days even if I dont log in.
What progeny of hitler came up with this shit??
These people deserve to be assfucked and murdered in front of the whole village.
Bastards
2
u/soberirishman Mar 10 '17
I tried very hard to have sane password requirements but we sell our solution to Healthcare providers and we kept getting pushback from IT that our rules weren't the standard ones they were used to. So, we broke down and now we have standard BS password requirements just so I can get through a security audit.
2
u/Zarutian Mar 10 '17
Didnt you send them an password generator that was speciailized with their BS password requirements to demonstrate that they actually hurt?
2
u/CrimsonWolfSage Mar 10 '17
I'm surprised you didn't bother to mention 2-Factor login being far superior to simply using "password" anyways. Besides, if you want to take a que from anything, let's talk about credit cards... we all have them, yet it's just a 2 second process to run over.
Knowledge - Enter password, username, security question
Own - Phone, Card Swipe, ID
Ability - Voice recognition, Motion/Activity, Signature/Typing
Self - Fingerprint, Retina Scan, DNA test
2
u/deeppit Mar 10 '17
I've always thought that there should be no rules. It is personal responsibility to protect yourself. If it isn't important I don't mind a basic password as there is nothing to protect.
2
u/SikhGamer Mar 10 '17
By far the biggest one I run into is the max length. Drives me bonkers.
2
Mar 10 '17
In my systems, I tend to set a max length of 256 characters or thereabouts. I don't want megabytes of password, and 256 characters with a decent PBKDF2 configuration should be reasonably secure.
When databases have a limit of eight characters (like Charles Schwab), and especially when they forbid single quotes, it makes me rather nervous about them. Specifically that they're likely storing the password as is and they're vulnerable to SQL injection attacks.
→ More replies (1)
2
u/darwin2500 Mar 10 '17
Are accounts typically hacked through bruteforcing or otherwise guessing a single password very often? It seems to me that whenever I hear about accounts being compromised, it's because someone volunteered their password in a phishing/social attack, or a big block of user account info on a server somewhere was compromised.
→ More replies (1)
2
Mar 10 '17
Whilst the point is correct about it being easier to remember and more possible combinations = more secure, I can't help but the feel the majority of people getting access to whatever service your password is being used for are not simply guessing/brute forcing the password, rather the password is more likely obtained by phishing,social engineering or keyloggers.
2
u/y216567629137 Mar 10 '17
Patelco credit union very recently added those password rules. It makes their passwords easier to crack because the person cracking them knows what combination of characters they have to have. And it also makes it harder for legitimate users to remember their passwords. I updated mine to comply with the rules, but forgot to update it in my login software. Fortunately, they allow more than 3 attempts, which was how long it took me to get it right. I'm thinking I shouldn't keep too much money at such an insecure site.
2
u/ComicXero Mar 10 '17
At my workplace, we have a single sign-on system that enforces these password rules:
Must be exactly 8 characters
Must contain one or more of of the following special characters ($,@,!,#)
Must contain one or more numeric characters
Must contain one or more upper case alpha characters
I'm almost certain that everyone's passwords are all written down somewhere.
→ More replies (3)
2
u/Maven_Politic Mar 10 '17
http://www.passfault.com/ is a pretty decent way to estimate password strength.
2
2
u/READTHISCALMLY Mar 10 '17
My philosophy is simple: you're a damned adult, you can choose your own password. If you choose a shitty one, that's your fault.
2
u/ProNewbie Mar 11 '17
Imagine my frustration where I have passwords that are greater than 20 characters and then I get told by sites "must be 8-16 characters" but they let me enter infinite characters when I actually have to enter the password... So I've forgotten what their arbitrary rules are, I recover my account via "Forgot Password" then I go to make a new password only to discover all over again what their arbitrary rules are. So I finish making a new password only to repeat the process in a month.
Tl;dr - Overly restrictive password policies are actually less secure and super annoying.
2
u/mikestorm Mar 11 '17
If the content of this article bothers you, it may be the perfect opportunity to start migrating to a password vault. To do it properly takes a fairly significant up front time commitment, but once you're over that it's great. I use LastPass and I love it.
2
u/SpongederpSquarefap Mar 12 '17
When sites say your password must contain
Up to 8 characters
A number
A capital letter
All you're telling somewhere who wants to brute force accounts is what parameters to use
5
u/riddley Mar 10 '17
Signed up for a work-enforced financial account with a HUGE financial institution yesterday. It had rules about what characters were not allowed in my password. That pretty much guarantees they store my password in plain text, right?
9
u/lukewarmtarsier2 Mar 10 '17
Or they haven't written a system smart enough to know that % doesn't always start a url encoded character, that + isn't the same as a space, that - isn't starting a sql injection attack, etc.
There's a ton of legacy and bad code at large institutions mostly due to corporate inertia or an ill conceived notion of ROI. An improvement might break the system so it's easier/safer to put a wall in front of a bug than to fix it.
5
→ More replies (2)5
u/wildjokers Mar 10 '17
No, they can examine it before storing it. Once it passes the check then they can salt it and hash it and then store it.
3
u/Drunken_Economist Mar 10 '17
Blog: "Password rules are bullshit. Use these five password rules though."
2
u/andrewsmd87 Mar 10 '17
I've been trying to get the password rules at our company changed for a while now. I'm a fan of something that is just really long, like 20 or more characters, that NEVER expires.
With a little training, like telling someone to just write a short sentence, you're secure, and they can make it somewhat obscure, because they'll never have to change it.
→ More replies (1)5
Mar 10 '17
The reason to have an expiration is on the off chance someone does get their password they won't have access to the account 3 months later.
That's the idea anyway, instead you have people writing their passwords on sticky notes and publicizing them.
→ More replies (7)
2
u/totallynotarobotnope Mar 10 '17
Actually, a study done in New York a couple of years ago found there is almost zero benefit to changing your passwords (on a scheduled basis) or for using passwords.
The two main conclusions were a) pass phrases work better, where you can enter something like "I hate the New York subway" as it is easier to remember and harder to break and b) the requirement many programs/sites have to change passwords every 90 days (or a similar frequency) is meaningless, since if someone does discover your password, they won't wait 90 days to use it and your security will be compromised anyway.
They suggested only changing your pass phrase if the site has been compromised or you believe someone might have discovered it (usually by watching you enter it)
2
u/Tostino Mar 10 '17
I totally agree that arbitrary password rules are not a good thing, they frustrate users to no end, and can make things less secure.
I really liked the zxcvbn library from Dropbox, as it allows you to catch those really egregiously bad passwords before it's too late, but is much smarter than any list of arbitrary rules could be. I actually wrote a similar library (nbvcxz - https://github.com/GoSimpleLLC/nbvcxz) for my company which implements all of the functionality of zxcvbn (and extends it as well) so I could use it on the server side.
2
u/b1ackcat Mar 10 '17 edited Mar 10 '17
Another point that wasn't brought up in the post: you shouldn't even be ABLE to set a max length as a password rule. If you're doing security properly, you're using random salts and hashing passwords for storage, meaning the length of the field going into the database is going to have nothing at all to do with the length of the user input. All you're doing by enforcing a max length is capping your level of security on passwords.
Or, even worse, the max length is driven by your database tables implementation, meaning you're storing the passwords in plaintext and you're a horrible person
edit: added bold text since apparently in a comment section about password rules people didn't pick up that I was referring to password rules and not theoretical http specification limits -_-
3
Mar 10 '17
you shouldn't even be ABLE to set a max length. If you're doing security properly, you're using random salts and hashing passwords for storage, meaning the length of the field going into the database is going to have nothing at all to do with the length of the user input.
You send the plaintext password to the server (over HTTPS or some other encrypted channel) to hash it. Unless you're talking about spending some number of PBKDF2 rounds on the client and some number on the server?
In this case, it's trivial to set a maximum length.
I personally tend to 256 character maximum.
→ More replies (1)→ More replies (2)3
u/mrkite77 Mar 10 '17
Another point that wasn't brought up in the post: you shouldn't even be ABLE to set a max length. If you're doing security properly,
If you're doing security properly you shouldn't allow the user to send a gigabyte of data to hash for their password.
You absolutely should have a max length.
→ More replies (1)
2
u/powercow Mar 10 '17
a bit of a segue, but looking at the 25 most comment, i cant figure out 3 of them.
mynoob (am i just old?)
18atcskd2w (i can almost see 18 eighty but yeah cant figure this one either.. why its so common)
and last
3rjs1la7qe (i got nuttin for this one.. this one looks fairly ok)
the rest are fairly obvious though i laughed that google was one of the top.. but can anyone explain these 3?
2
2.1k
u/fl4v1 Mar 10 '17
Loved that comment on the blog:
"My Secure Password" <-- Sorry, no spaces allowed. (Why not?)
"MySecurePassword" <-- Sorry, Passwords must include a number
"MySecurePassword1" <-- Sorry, Passwords must include a special character
"MySecurePassword 1" <-- Sorry, no spaces allowed (Argh!)
"MySecurePassword%1" <-- Sorry, the % character is not allowed
"MySecurePassword_1" <-- Sorry, passwords must be shorter than 16 characters
"Fuck" <-- Sorry, passwords must longer than 6 characters
"Fuck_it" <-- Sorry, passwords can't contain bad language
"Password_1" <-- Accepted.