17 ms·
Cracking the 12+ Character Password Barrier, Literally
- danjoc 10y ago>until auto-generating password managers gain mass adoption, this vulnerability will always be around. When auto-generating password managers gain mass adoption, there won't be much point to cracking password hashes. Presumably, one would use a different password for everything in that scenario, which makes the clear text password basically useless anyway.
- userbinator 10y agoBecause remembering the password "horsebattery123" is way easier than "GFj27ef8%k$39" One way I like to remember long yet high-entropy passwords is to memorise a long, somewhat nonsensical phrase and use characters from it. The reverse is also possible. E.g. that one could become "Gordon Freeman joins 27 electric fences 8% kills $39"
- dogma1138 10y agoYou can use passphrases with a substitution or shift cipher and get a high entropy password that would also be resilient to combination dictionary attacks.
- deleted 10y ago[deleted]
- wongarsu 10y agoI do the same, but I skip the "and use characters from it". By using the full multi-word passphrase I get more entrophy than by using just some of the letters, at the same memorization effort. The only exception is sites with low maximum password length.
- rawnlq 10y agoI am pretty suspicious of my meat-based random phrase generator. A lot of the analysis on the entropy of correcthorsebatterystaple type passwords assume the words are uniformly drawn from a vocabulary of whatever thousands. But if you have a large enough dataset of passwords I bet you can find the true (non-uniform) distribution of words people actually draw from and the entropy will be a bit lower. And if you further restrict it to be almost grammatically correct phrases it will be further lower[1]. Am I just paranoid? [1] RNNs can learn the distribution of your grammar easily http://karpathy.github.io/2015/05/21/rnn-effectiveness/ http://karpathy.github.io/2015/05/21/rnn-effectiveness/. The worry is that human generators will condition their random words too much. e.g., "correct" ooohh brain just did a adjective let's throw it a noun next "horse".
- Klathmon 10y agoI'd love to see a study done on this. I have a feeling that a "phrase" password has significantly more entropy than a "character" password of double or even triple the length (comparing a word equal to a character length wise). Even taking into account that a real sentence would need to follow a lot of rules, there are still a LOT of adjectives , a LOT of nouns, etc... I'm sure your "meat based" generator is more open to targeted attacks if someone knows your interests or something, but I have a feeling that it's still such a large pool that it's safe. And if you start to include somewhat nonsensical phrases like "correct horse battery staple" that even opens things up more. Include other things like spacing, capitalization, misspellings, made up words, or even prepending or appending a "traditional" password gets you even more still.
- rawnlq 10y agoI don't know how to answer the other parts of your comment, but your "double or even triple length" estimate might be off: From https://en.wikipedia.org/wiki/Entropy_(information_theory) https://en.wikipedia.org/wiki/Entropy_(information_theory) > English text has between 0.6 and 1.3 bits of entropy for each character of message. For comparison if you used a random string of alphanumeric characters it will have lg(26 + 26 + 10) = 5.7 bits per character. So if your password is drawn from an english corpus, if the low end of the estimate is correct, it's only about as strong as a random password 9 times shorter (or 4 on the high end). But of course we don't want a grammatical english password. Question is how much entropy does our meat-based random generator actually lose due to language bias compared to random word selection from an english dictionary (which I don't disagree with the analysis of as long as it's machine generated).
- adzm 10y agoBeyond grammar, the addition of intentional errors or symbols or Finnegans Wake can help increase the entropy drastically too.
- camtarn 10y agoI wonder how much extra entropy you can add by introducing an extra language or two? For instance, having a password like 'unterwasserboot-sparkle-mocidade-yogurt'. It seems like multilingual folks would be at a distinct advantage here ... at least until you forget which of the words in your password was in which language, and you end up with 'submarine-faisca-jugend-yogurt' instead :)
- Spooky23 10y agoJust use diceware.
- GrayShade 10y agoI'm all for mnemonic devices and I can understand how one could remember a password like "GFj27ef8%k$39". But can people remember 30 of those, assuming no password reuse?
- nom 10y agoI use a German word for my WiFi password. 33 characters, and everybody I know enters it correctly on the first try :D
- RugnirViking 10y agoDoes it not occur to you that if you are going to go that route then why not use the password GordonFreemanjoins27electricfences8%kills$39 which would be even more secure and just as easy if not moreso to remember?
- dbg31415 10y agoThis is a dupe. https://news.ycombinator.com/item?id=13355850 https://news.ycombinator.com/item?id=13355850
- detaro 10y agolimited reposts are allowed on HN, so please only flag and link to previous discussions if they have more than just a few upvotes and/or comments, or if something has been submitted more than a few times already. Otherwise such comments just add noise. https://news.ycombinator.com/newsfaq.html https://news.ycombinator.com/newsfaq.html > Are reposts ok? > If a story has had significant attention in the last year or so, we kill reposts as duplicates. If not, a small number of reposts is ok.
- sfilargi 10y agoPractically, if one doesn't use a password manager, they probably have a much more serious problem than weak passwords, i.e. password re-use.
- kevin_thibedeau 10y agoAs opposed to having your manager DB lost or compromised by a trojan.
- danjoc 10y agoUsing zx2c4 pass with a Yubikey 4. Passwords are GPG encrypted. The private key is on the Yubikey and cannot be read out. The Yubikey 4 is set to require a touch per password unlock. The only passwords at risk are the ones unlocked. At that point, the trojan could install a keylogger and have the same amount of success. Losing the password store isn't a problem either. It has a git remote on a USB stick. There's a backup if it's ever lost.
- DanBlake 10y agoThis is interesting. I am not well versed on yubikey, but does it allow you to have a similar setup with other password managers, like keepass? (Meaning, one press per one password) Or is it just a substitute for typing a master password?
- danjoc 10y agoThere are several integrations, but I don't have Google Play Services on my phone, so I only use what's available via F-Droid. See my other comment in this thread. https://www.yubico.com/support/partners/#password-management https://www.yubico.com/support/partners/#password-management The touch setting is specific to OpenPGP keys. If you set it, it works that way for all uses of your OpenPGP key. You can turn it on to see if you like it. If you do, you can also set it to 'fix.' Once fixed, it can never be turned off again without deleting the private key and starting over. https://developers.yubico.com/PGP/Card_edit.html#_yubikey_4_touch https://developers.yubico.com/PGP/Card_edit.html#_yubikey_4_...
- chris_st 10y agoI really like Password Chart[1] as my "password encryption" scheme, since it gives me nice long wacky phrases out of something memorable, per-site. [1] http://passwordchart.com http://passwordchart.com
- vesinisa 10y agoExcept until a couple of sites leak their plaintext passwords, and the attacker can start piecing information together. Bob@foomail.com's PW on Yahoo.com was ZuBrDfPgPg, and on Patreon.com SkBrOxPdGqPgLu. Any chance his PW for Therapy.com might be OxDfGqPdBrSkZu? Such attack is more attractive and more effective the more people use this specific method.
- tomjen3 10y agoI highly, highly doubt that anybody is going to do that as a general attack vector. Computers change, but people are people and are not like, in great numbers, to suddenly start having good passwords, just as they are not likely to suddenly start exercising.
- rocqua 10y agoYou are essentially relying on security through obscurity, it might work but it fails to add security when viewed through Kerckhoffs's principle.
- chris_st 10y agoTrue. However, the article here is talking about bulk encryption of thousands of passwords, and how "ordinary" word sets are easy to break. I think the "usual" case is that hackers want to get as many passwords as possible, and so singling out an individual for analysis is probably not worth the time, unless you're an "individual of interest" for some reason.
- EmployedRussian 10y agoHere you are using fixed passphrase and site name as the password, resulting in monosubstitution cypher, which is where the insecurity comes from. If you use site name as the passphrase and fixed password ("password" below) instead, you end up with: yahoo.com: dXgvRMjjHQvRQFvSa patreon.com: UdKiiXVxrCRjYe therapy.com: KFXUMnMnSrJLIjaB That seems quite a bit better (though you do lose ability to print the chart for off-line use). If an attacker knows your 3 plain text passwords and suspects that you use passwordchart.com, you are still in trouble.
- donatj 10y agoThis is why most of my important passwords are at least 30 characters
- gruez 10y ago30's probably overkill because it works out to 178 bits of entropy. You'd probably be fine with 128.
- rspeer 10y agoHow are you making such a specific assessment without any knowledge of what the characters are?
- wvenable 10y agoIt doesn't matter what the characters are; only what characters are potentially valid.
- rspeer 10y agoWould you say the password "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" has high entropy? People have gotten their Bitcoin wallets owned with 60-character passphrases, because they used phrases that appeared in a Web crawl. Number of characters is not the important thing.
- chipperyman573 10y agoIt would be reasonable to assume that someone who reads HN will understand that "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" would not be good, even if it is 30 characters long. Donatj probably considered this. That said, your point is valid and it's possible you're right.
- Dylan16807 10y agoThat's obvious. What's not obvious is whether donatj's 30 characters are individually random or composed of words. And 'individually random' could mean anything between the 4 bits of hex and the >7.7 bits of codepage 1252.
- philliphaydon 10y agoIf my password was typed in Chinese would that make it hard to crack?? Or would it just result in collisions?
- shawn-furyan 10y agoThere are a lot of hackers who know Chinese, so it probably isn't gaining you any ground. See diceware.com for how to generate strong passwords (in many different languages). Also, use a password manager with a password generator for less sensitive accounts and so that you aren't reusing passwords.
- philliphaydon 10y agoI already use 1Password with min 20 characters, unless the site has a length limit >< I was more curious about extending the characters past alpha numeric / special characters, to include Chinese characters as well. That would open up the number of characters required to brute force and probably result in relying on a collision. Until technology catches up.
- Laforet 10y agoIf the attacker had zero knolwedge of this they would have to rely on random collisions. On the other hand, there are about 5000 commonly used Chinese characters (estimates will vary) so entropy is going to be fairly high if they knew. The real issue is how different OS and applications handle character encoding and KDF. A good example is WinRAR which does not allow full width CJK characters to be typed in the password field of its UI but one can copy and paste in anything and it will be accepted. Decryption will work on some OS/version combinations but not all.
- glandium 10y agoI've been wishing to set my passwords in Japanese for a very long time. Too many things reject them, or don't even allow to type them.
- nindalf 10y agoConsidering the ease with which "correcthorsebatterystaple" type passwords can be cracked, I hope Randall Munroe updates that page and recommends people use a password manager.
- smartbit 10y agoIn the last paragraph he concludes: If you are really smart you will begin using a password manager like 1Password or Keepass to generate and database your passwords across devices.
- caf 10y agoOnly if you're limiting your words to those in a small dictionary - or regenerating until they're "common" words, which is the same thing (fwiw, "staple" isn't in the Google list of top 10,000 English words that they're using).
- DanBC 10y ago> Only if you're limiting your words to those in a small dictionary Diceware uses a 7776 word dictionary. How insecure is a 6 word diceware passphrase? That should give 77 bits of entropy.
- DanBC 10y agoMunroe uses 4 words as an example, which is a shame because 4 words are very weak. If you pick 6 words, even from a limited set such as Diceware your phrase is good enough. I'd be interested to read about any successful attacks against 6- or 7- word diceware phrases. http://arstechnica.com/information-technology/2014/03/diceware-passwords-now-need-six-random-words-to-thwart-hackers/ http://arstechnica.com/information-technology/2014/03/dicewa... > Even a GPU cluster from December 2012 could, depending on the cryptographic hashing algorithm used to protect plain-text passwords, cycle through 350 billion guesses per second. Referring to that project, Reinhold wrote, "They claim they can crack a random 8-character password in under six hours. At that speed, attacking a 5-word Diceware passphrase would take on average of 7,300 hours or 10 months to find the correct passphrase, assuming they knew you were using Diceware and developed equally efficient software designed to try only valid Diceware words." > Further, he noted that "Criminal gangs have built botnets from thousands of computers infected with their malware. Marshaling large numbers of these computers they control might allow them to crack a five word passphrase in a reasonable amount of time." (Gosney's 25-GPU cluster attacked the NTLM cryptographic algorithm that Microsoft has included in every version of Windows since Server 2003. It's known to be much more vulnerable to cracking than other algorithms. Gosney's machine wouldn't perform as fast against PBKDF2, for instance.) [...] > UPDATE: In a followup e-mail to Ars, Gosney noted that "The figures are based on a brute-force attack that targets a single hash. Due to the nature of GPU computing, attacks that combined multiple words are potentially much slower." At the moment, "Since there are no tools that currently combine three or more words, we don't really know for sure how much slower it would be."
- tmalsburg2 10y agoI think there is a relatively simple rule of thumb: If you can reliably memorize the password with moderate effort, it is very likely not safe. The approaches described in the linked article are clever but they do by far not exhaust the possibilities. One big issue is the following: When you try to come up with random words to compose a password, the words that you'll choose are going to be very very non-random. Example: Tell a person to name a random musical instrument. Most people will say violin or piano. Other instruments will rarely be mentioned. Likewise with tools, most people will say hammer or screwdriver. This has something to do with how words are represented in our mental lexicon. There is a lot of research on that that you could easily leverage in software for cracking passwords, at least the type of password that's using supposedly random words.
- yoha 10y ago> When you try to come up with random words to compose a password That's why you don't. Give a 64ki word dictionary from your native tongue to your computer and let it choose four words uniformly at random out of it. This gives you a password from a distribution with 64 bits of entropy, and is reasonably easy to memorize with moderate effort. This means an attacker is expected to proceed to 2\\63 hashes to crack such a password. It would take almost 4 year to crack its MD5 digest on the rig used in the demonstration. If you not using a password manager for external sites (which might not use proper KDFs), you can throw in a fifth word, and be safe for the foreseeable future.
- tmalsburg2 10y agoYeah, I get it. The thing is that many password guidelines do not emphasize how important it is to draw words randomly, and that makes all the difference as I tried to explain.
- devwastaken 10y agoI've had many other devs link me to that XKCD post about how any standard password is 'safe', yet fail to acknowledge the major differences in how those passwords are hashed and stored. So many people just quote the math and say: "Math can't lie". It can't, but the very complex math behind the actual hashing is different from just multiplying charsets.