A Swiss university lecturer has applied and refined a 20 year old password cracking technique to enable him to crack alphanumeric Windows password hashes in a matter of seconds. The technique involves trading space and time — it precalculates and stores a large set of data which means that it can avoid performing the calculations at crack time. The result? With 1.4 GB of precalculated data, 99.9% of alphanumeric passwords can be cracked in around 5 seconds. This compares well with the previous approach, which would take around 100 seconds, and with brute forcing — LC4 (l0phtcrack) takes about 8 hours to brute force that same set of passwords on a comparable machine.
OSes use hashes to record passwords in a way that makes the password hard to retrieve. A hash function maps some input into a number in such a way that one cannot determine the original input from the number obtained. Whenever one types a password into the OS, it hashes the password entered and compares it to the stored value. Windows usually stores two hashes for each password; an older hash called known as LM (for "Lan Manager", MS’s ancient pre-NT networking software), and a newer one known as NTLM. Both these hashes are quite vulnerable to attack, but it’s the older, weaker LM hashes that are being cracked here. The reason for the particular vulnerability is that the hashes — unlike those used by most other OSes — are not "salted". Salting is a process by which random data is incorporated into the hashing process. It increases the time or space required by an attacker to grow significantly. The standard salting done on Linux, for instance, would increase the time or space by 4096 times. This makes such a system prohibitively big; no longer will it fit on a couple of CDs.
