r/programming • • Mar 10 '17

Password Rules Are Bullshit

https://blog.codinghorror.com/password-rules-are-bullshit/
7.7k Upvotes

1.4k comments sorted by

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.

1.5k

u/dirtyuncleron69 Mar 10 '17

Then you try to create a new password every 90 days, without using the past 10 passwords, and you get

Password_2
Password_3
Password_4
Password_5
Password_6
Password_7
Password_8
Password_9
Password_10...

My other favorite though is when they put an UPPER limit on the number of characters.

What are they running out of disk space from all those plaintext passwords over 12 characters?

419

u/Toxonomonogatari Mar 10 '17

It's the good old "because we've always done it that way" reason this is still a thing. There was a valid reason many years ago. It no longer applies, yet there are max limits for password lengths...

181

u/LpSamuelm Mar 10 '17

I don't know if there was a valid reason for it long ago, either... What, that excruciatingly long hashing time that 2 extra characters cause? 🤔

→ More replies (149)

18

u/Captain___Obvious Mar 10 '17

Remember when American Express had a 8 character max limit on passwords? lol, If I recall it wasn't that long ago--a few years

→ More replies (9)
→ More replies (6)

45

u/orliph Mar 10 '17

90 days? Try 30. At the very least in these cases I can be pretty positive that most passwords will end up being: Password${monthNumber}

Which let me tell you, it kinda defeats the purpose of being secure.

29

u/IbanezDavy Mar 10 '17

I'm a firm believer that all password algorithms should do a basic String.ToUpper().Contains("PASSWORD") and if returns true, the computer is instructed to get up and punch them in the face.

→ More replies (14)

0

u/[deleted] Mar 10 '17

[deleted]

→ More replies (2)
→ More replies (1)

24

u/POGtastic Mar 10 '17

Yep. My bank mandates a maximum password length of 12 characters. What the actual fuck?!

21

u/[deleted] Mar 10 '17 edited Mar 10 '17

My bank mandates password being 6 digits (like in 0 to 9) they choose. I am not kidding. They have two factor authentication through.

→ More replies (4)
→ More replies (3)

37

u/nv-vn Mar 10 '17

The real reason I've heard is that it's a possible exploit. If a user entered a 10k char password then the hash function would take ages and could slow down or even crash the entire service. That said, 12 char limits aren't the solution.

26

u/negative_epsilon Mar 10 '17

Holy shit, it took scrolling down to the 1 point answers to find a real answer. Limit your password lengths to something like 2048 characters or you're exposing yourself to a DOS attack vector.

→ More replies (7)
→ More replies (1)

24

u/Captain___Obvious Mar 10 '17

Easy way around this.

Just change the password 10 times in one sitting, and you can get back to your original password!

16

u/cdombroski Mar 10 '17

Unless they restrict how frequently you can change the password

→ More replies (4)

7

u/captainjon Mar 10 '17

My company thought of it and enforces password must be 30 days old before changing.

→ More replies (3)
→ More replies (2)

12

u/robertcrowther Mar 10 '17

The original reason on Unix was that the crypt program used DES which threw away everything after the eighth character (and actually didn't differentiate between 0-127 ASCII and 128-255):

By taking the lowest 7 bits of each of the first eight characters of the key, a 56-bit key is obtained. This 56-bit key is used to encrypt repeatedly a constant string (usually a string consisting of all zeros). The returned value points to the encrypted password, a series of 13 printable ASCII characters (the first two characters represent the salt itself).

Even then, passwords were not limited to eight characters by this, it's just that it could lead to confusion allowing more than that so some front ends would enforce the limit (side note: Solaris 10, referenced in that last link, came out in 2005 and still defaulted to the old DES algorithm).

21

u/AyrA_ch Mar 10 '17

What are they running out of disk space from all those plaintext passwords over 12 characters?

Multiple possibilities here:

  • They store the password unencrypted and this is the length of the database field.

  • The hashing function they use doesn't uses more than 12 chars as input (php bcrypt for example is limited to 72)

  • They think 12 is enough.

  • Backwards compatibility with older interfaces in the background (usually comes together with the first point)

  • They don't care and never managed to make the field longer.

  • They use the password directly as key for something where the key has to be 12 chars at most.

8

u/midri Mar 10 '17

The 72 character thing is a limit of the Blowfish cipher, not php.

→ More replies (3)
→ More replies (2)

9

u/randomguy186 Mar 10 '17

I did this for six years and 32 password changes in an organization obsessed with access control.

→ More replies (2)

6

u/ahruss Mar 10 '17

I've commented this elsewhere before, but maximum password lengths aren't necessarily insane so long as they're ridiculously high, as in on the order of 1000 or higher.

You don't want to enable your users to DDOS you by making your servers hash 100 different 1 GB passwords all at once.

→ More replies (2)

5

u/ArtistEngineer Mar 10 '17

I work for a company where you could probably guess most of the passwords if you knew how long the person had been at the company.

3

u/beeeeeeefcake Mar 10 '17

What are they running out of disk space

Avoiding schema changes. Often happens at banks that built their own database in assembly 40 years ago.

→ More replies (95)

104

u/Micotu Mar 10 '17

On an account for my wife I was setting up.

"Hey babe, what's the name of your first pet?"

"Ace."

Enter "Ace" as answer for security question.

"Security Answers must be 4 digits or more"

67

u/CrimsonWolfSage Mar 10 '17 edited Mar 10 '17

Types: The answer is Ace.

2 weeks later... dang it, I can't get past my security questions!! Did I capitalize anything, was it a short answer or a long one, is it answered like a statement? No clues or hints...

  • ACE

  • Ace

  • ace

  • IT IS ACE

  • IT IS ACE.

  • It is Ace

  • It is ace.

  • THE ANSWER IS ACE

  • THE ANSWER IS ACE.

  • The answer is Ace

  • Just doing forgot password! Stupid security question anyways

19

u/thatcraniumguy Mar 10 '17

Speaking of case sensitive security questions, why on earth should that be a thing? If you're going to have a user type in a human-readable phrase as an answer to a question, why should that be case-sensitive? What would tbe the advantages to having it that way vs disadvantages to not?

→ More replies (1)
→ More replies (1)

61

u/what_it_dude Mar 10 '17

the worst are those questions that have subjective answers. "What's your favorite animal?" fuck, I'm not 8 years old anymore, I don't have a favorite fucking animal.

38

u/Micotu Mar 10 '17

I saw one that was, "How much was the mortgage for your last house." Like, am i not allowed to move again after answering this question?

→ More replies (2)

16

u/CBruce Mar 10 '17

"What's my favorite movie?"

...Like right this second?

→ More replies (4)

16

u/[deleted] Mar 10 '17

Security questions are just another level of stupid.

"I see that you have set up a secure password. Would you like to add a less secure one to that ? No? Well FUCK YOU, you have to."

5

u/gumnos Mar 11 '17

I just use my password manager's notes field and generate random word-sequences as the answers. Why of course my elementary school was "ornery allies robing saki", my favorite color is "ascots indent globs nimbus", and I grew up in the town of "dwarf fonder grudge sequel".

3

u/Thaurane Mar 10 '17

It really sucks when your hometown is a security question, has a special character and 2 ways to spell it. Was I lazy and spelt it the short version? If I did. Did I use the special character? Does this site even allow special characters for security questions? refreshes until the it gives me a different question

→ More replies (3)
→ More replies (2)

27

u/ArtistEngineer Mar 10 '17

I had the exact same problem.

Except my password rule checker had things like "No dictionary word longer than 3 letters"

I ended up with a password like "AAAAbbbb1" -

no dictionary words, long enough, mixed case, contains a letter. check!

→ More replies (2)

3

u/blacksheep998 Mar 10 '17

The bank that I make my car payments to used to have a very restrictive password system.

There was a character limit, though I don't remember what it was. No spaces, no dictionary words (though if you mashed them together without spaces it wouldn't know) and EXACTLY ONE of each: Capital letter, number, and symbol.

3

u/powercow Mar 10 '17

Adding support for spaces only in the middle of the password would make the regular expression defining them three times longer, Engberg said. And for that extra effort, the entropy (uncertainty of what character holds any given position in the password) would increase by only 1.5 percent. For that reason, Engberg and Evernote decided to forego spaces. (Evernote also recently stated it will add optional two-factor authentication later this year.)

a bank explains why it has some of the rules

I dotn know enough to say, just offering an explanation from someone who claims to know enough.

2

u/The_MAZZTer Mar 10 '17

Sorry, no spaces allowed. (Why not?)

Possibly hint that this is a bandaid "fix" to a bug on their site, for example a SQL injection vulnerability.

2

u/[deleted] Mar 10 '17
  • "MySecurePassword_1" <-- Sorry, passwords must be shorter than 16 characters

The worst of all

→ More replies (37)

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.

22

u/Eurynom0s Mar 10 '17

Schwab used to do this.

→ More replies (7)
→ More replies (17)

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.

→ More replies (23)

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.

247

u/bumblebritches57 Mar 10 '17

You should really use a password manager.

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)
→ More replies (2)
→ More replies (13)

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.

2

u/myhf Mar 11 '17
  • Your password must not contain the password you attempted before being told all the rules

→ More replies (15)

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

u/Eiovas Mar 10 '17

Same pain. Same pain.

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?

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)

7

u/[deleted] 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)
→ More replies (3)
→ More replies (3)

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'

2

u/loopywolf Mar 10 '17

That's the main reason I never use iTunes

→ More replies (77)

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.

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)
→ More replies (7)

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

u/P-01S Mar 10 '17

Nope. Main Dvorak layout:

',.PY FGCRL
AOEUI DHTNS
;QJKX BMWVZ
→ More replies (5)

28

u/sge_fan Mar 10 '17

I noticed that two

I noticed that three! Coincidence?

14

u/vicarofyanks Mar 10 '17

Derp, their I go again

→ More replies (3)
→ More replies (1)

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.

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.

→ More replies (1)

498

u/snarfy Mar 10 '17

29

u/Irving94 Mar 10 '17

this is what brilliance looks like.

→ More replies (4)

21

u/[deleted] Mar 10 '17 edited Feb 23 '18

[deleted]

2

u/bl4ckout31 Mar 10 '17

What a masterpiece

→ More replies (7)

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!

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

u/Eucalyptol Mar 10 '17

Easy, you hash each character in its own column /s

→ More replies (3)
→ More replies (4)

93

u/[deleted] Mar 10 '17

Calm down Satan

22

u/rocketeer777 Mar 10 '17

TIL I work for Satan.

14

u/mainfingertopwise Mar 10 '17

Are the notification emails daily?

26

u/NoMoreNicksLeft Mar 10 '17

Twice daily.

5

u/jfb1337 Mar 10 '17

They also contain your current password in case you forget it

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)
→ More replies (9)

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)

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.

→ More replies (24)

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

u/ChezMere Mar 10 '17

Congratulations, you work somewhere competent.

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.

→ More replies (3)

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.

https://sso.americanexpress.com/SSO/request?request_type=un_createid&ssolang=en_NL&inav=at_sitefooter_register

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

u/[deleted] Mar 11 '17

will not be case sensitive

I think I just had an aneurysm Jesus Christ.

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.

2

u/almightySapling Mar 11 '17

will not be case sensitive

I... I... I...

WHY?

→ More replies (1)

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.

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.

→ More replies (8)

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

u/[deleted] 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

u/[deleted] Mar 10 '17

[deleted]

0

u/[deleted] 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):

  1. Right-click the password field

  2. Click "Inspect"

  3. Click "Console"

  4. Type $0.value = '<paste-password-here>'

  5. 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.

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 (35)

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)
→ More replies (28)

7

u/[deleted] 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

u/[deleted] 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

u/regeya Mar 10 '17

Rule Zero for users: use a password manager

→ More replies (7)

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

u/mikeivanov Mar 10 '17

This should be the top voted comment.

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

u/[deleted] Mar 10 '17

There only needs to be one password rule. Minimum length.

31

u/[deleted] 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:

  1. It doesn't work if they have multiple devices.

  2. It doesn't work if their device doesn't have a phone number, like a tablet.

  3. It doesn't work if they change their number.

  4. It doesn't work if an attacker knows their number and can fake it.

  5. 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

0

u/[deleted] Mar 10 '17

[deleted]

→ More replies (4)
→ More replies (1)

4

u/[deleted] 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

u/Usaron Mar 10 '17

👍🏻

Make is easy for cross platform and multi device login though.

0

u/[deleted] Mar 10 '17

[deleted]

→ More replies (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

u/[deleted] 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ño

How about this one?

el-niño

One'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.

https://www.reddit.com/r/programming/comments/5us48z/evilpass_slightly_evil_password_strength_checker/

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

u/Apocrypen Mar 10 '17

feels good to only have one master key to remember

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

u/[deleted] 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

u/[deleted] 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 _1 to their weak password. But hopefully they'll each make different transformations, which gives them a few extra bits of entropy.

→ More replies (2)

3

u/[deleted] 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

u/J_C_Falkenberg Mar 10 '17

Step 1 use a password manager. There is no step 2.

→ More replies (2)

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.

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)
→ More replies (3)

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

u/[deleted] 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)

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.

→ More replies (5)

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

Cornell.edu - Know, Have, Are

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

u/[deleted] 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

u/[deleted] 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

u/BilgeXA Mar 10 '17

How is 18atcskd2w a top-25 password?

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

u/evotopid Mar 10 '17

Just what you would expect of companies taking security seriously...

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.

→ More replies (2)

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.

5

u/[deleted] 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)
→ More replies (1)

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

u/[deleted] 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)

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)
→ More replies (2)

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

u/ChezMere Mar 10 '17
  • some unusual case, possibly forum software default...?

  • spambot

  • spambot