Password lessons: Longer is better, so is salt

Infosec pros who had no idea of how easily a stolen list of hashed passwords could be cracked got a sobering lesson at this month’s SecTor security conference in Toronto.

There, Will Hunt, co-founder of the U.K. based In.security consulting firm, casually talked of systems that can be built around a common (about $1,500) Nvidea GTX 2080 graphics card that could make 100 billion guesses a second in a brute force attack.

Will Hunt of In.security

Using a common open source password recovery tool called Hashcat, he said such a system would go through a large hashed list of eight-character passwords in two and a half hours.

Think how fast it would be if a couple of those GPUs were chained together …

Lesson: Powerful and reasonably priced-GPUs are making things easier for hackers.

Hunt used his own computer with three CPUs to recover 90 per cent of a stolen database of 380,000 passwords hashed with the MD5 algorithm in about 14 hours.

Want to make things harder for the bad guys? The usual recommendation is to have users mix special characters in with letters and numbers. Not necessarily, said Hunt. A nine-character password that uses mixed alpha-numeric and special characters generates 630 trillion possible combinations. A 10-character password using only upper and lower case letters generates 839 quadrillion combinations. (But he admitted Hashcat has a few tricks to shorten a search, so the odds are it would have cracked a password before hitting the 839 quadrillion mark.)

Still, the lesson remains: The longer the password the better.

Which is good, Hunt said, because the U.S. National Institute of Standards and Technology (NIST) now recommends IT departments tell users to create passphrases of at least 64 characters. And forget about changing them every 90 days.

Related story: Researchers find huge database of fingerprints and facial recognition images on the internet 

For his presentation Hunt talked about the intricacies of Hashcat, runs on Linux, OS X, and Windows and can be used against Microsoft LM hashes, MD4, MD5, the SHA-family, Unix Crypt formats, MySQL, and Cisco PIX.

Users can employ a number of attacks on hashed password lists including brute force, dictionary, combinator, fingerprint and hybrid attacks. Briefly, the software hashes an unknown password and compares it with a hashed version on a dictionary until there’s a match. Searches can be customized to, for example, ignore special characters or upper case letters to make things go faster.

But, Hunt acknowledged, password length and complexity can foil — or drag out — a search.

In an interview Hunt acknowledged that the examples he cited in the presentation were poorly-protected — eight-character passwords, protection with the now out-of-date algorithms like MD5 — although some companies still use it.

One of the best defensive weapons for a CISO is to salt as well as hash user passwords, with the hash using modern algorithms like SHA-256 or Blowfish which are very hard to attack. (A salt is random data added to a password, so even if two people use the same password it generates separate results.)

Related story: Google admits two password hash blunders, one dating back 14 years

In addition, he urged the use of multi-factor authentication, which “substantially thwarts the ability of an attacker to compromise accounts, and the use of password managers.

“At its heart, I firmly believe cyber security is a people, and not a technical, problem. So first of all a good security culture needs to be embedded in the organization. With that comes a degree of cyber security awareness training where people understand the importance of choosing long and complex, unique passwords.

“In terms of technical implementation, I would ensure my password policy is robust and has been heavily scrutinized and approved by a number of people, ensuring that weak passwords cannot be chosen, ensuring users are taking the right steps, and applying defence in depth.”

Would you recommend this article?

Share

Thanks for taking the time to let us know what you think of this article!
We'd love to hear your opinion about this or any other story you read in our publication.


Jim Love, Chief Content Officer, IT World Canada

Featured Download

Howard Solomon
Howard Solomon
Currently a freelance writer, I'm the former editor of ITWorldCanada.com and Computing Canada. An IT journalist since 1997, I've written for several of ITWC's sister publications including ITBusiness.ca and Computer Dealer News. Before that I was a staff reporter at the Calgary Herald and the Brampton (Ont.) Daily Times. I can be reached at hsolomon [@] soloreporter.com

Featured Articles

Cybersecurity in 2024: Priorities and challenges for Canadian organizations 

By Derek Manky As predictions for 2024 point to the continued expansion...

Survey shows generative AI is a top priority for Canadian corporate leaders.

Leaders are devoting significant budget to generative AI for 2024 Canadian corporate...

Related Tech News

Tech Jobs

Our experienced team of journalists and bloggers bring you engaging in-depth interviews, videos and content targeted to IT professionals and line-of-business executives.

Tech Companies Hiring Right Now