Re: [ldapext] Re: draft-stroeder-hashed-userpassword-values-01

Andrew Findlay <[email protected]> Fri, 15 Mar 2013 12:36:10 +0000
Newsgroups gmane.comp.ldap.umich,gmane.ietf.ldapext
Message-ID <[email protected]>
On Fri, Mar 15, 2013 at 04:07:29AM -0700, Kurt Zeilenga wrote:

> > On a slight tangent, a rough guide to the current strength of various hash
> > schemes can be found on hashcat's front page:
> > 
> > 	http://hashcat.net/oclhashcat-plus/
> > 
> > The table at the bottom gives the brute-force attack rate in crypts/sec
> > using a single PC with a good (mid-range gaming) graphics engine.
> > Numbers range from about 4k c/s for bcrypt up to 7500M c/2 for NTLM.
> > It does not explicitly list figures for SSHA and SMD5 but I suspect the
> > 'sha512crypt $6$' figure is indicative at 12k c/s.
> 
> The difference per check of SSHA and SHA is one SHAUpdate call, even if this call account for 100% of the work, then SSHA should be no more than twice as expensive SHA.  Likewise for other simple salted hash methods.

Good point. Salt protects against pre-computed lookup tables but
on its own has minimal effect on this style of brute-force attack,
as the salt is known by the attacker.

The big difference with sha512crypt is the number of rounds. This defaults
to 5000, which should make it 5000 times slower than SHA512. The Hashcat
numbers are roughly consistent with that.

This suggests that implementers should be encouraged to future-proof their
products:

	Make it easy to add new password-storage schemes - preferably
		without recompiling the server or client code
	Provide schemes with multiple rounds in the standard distribution
	Make it easy to configure the number of rounds
	Ensure that passwords stored with different schemes and number of
		rounds can still be used even if the server config is changed
	Provide a way to disable passwords stored with particular
		configs in the past that are now considered insecure

The document under discussion would be a good place to put that advice.

Andrew
-- 
-----------------------------------------------------------------------
|                 From Andrew Findlay, Skills 1st Ltd                 |
| Consultant in large-scale systems, networks, and directory services |
|     http://www.skills-1st.co.uk/                +44 1628 782565     |
-----------------------------------------------------------------------