A bit more detail on IOS password hashesPosted by stretch in Networking on Wednesday, 9 Jul 2008 at 9:40 a.m. GMTIt's no secret that the legacy "type 7" password hashes employed by older IOS devices are easily reversed. Wherever available, type 5 hashing is preferred as it generates a non-reversible MD5 hash. However, the one-way operation of MD5 isn't it's strongest benefit. Recall that the generation of an MD5-type hash for a local user account is as simple as specifying Listed after the
The salt and hash are binary data expressed in the configuration in Base64 encoding for readability. When the user While this may seem unnecessarily complex, the implementation of salting provides two very sizable benefits. First, two users who happen to choose the same password will virtually always receive different hashes. Consider the addition of user Despite being able to authenticate with the same password, the two users were randomly assigned different salts at creation time, removing any similarity between their stored hashes. The second, and arguably much stronger, benefit of this behavior is the crippling effect it has on space-time tradeoff cracking techniques like rainbow tables. The addition of a stored salt requires a hash to be pregenerated and stored not merely for each possible password (a very large number to begin with), but for every possible salt for every possible password. A 24-bit salt increases the resources required to generate such a hash database by 224, removing the appeal of such an attack venue. For the curious, UNIX-like systems use the same hashing method for locally stored user accounts, though typically with a longer salt. In fact, the OpenSSL toolkit can be used to mimic the same operation performed by IOS device. By manually specifying the random salt generated by IOS for user
|
Navigation
Armory
Online Toolbox
|
I had no idea the $'s meant anything at all until now! :-)
Great stuff, some very handy info to know.
Hi Jeremy,
thanks a lot for your article. I translate it in French on my website. Tell me if you don't want.
Thanks again, Bye
nicely done. will be using this info in future classes i teach.
I notice that the ASA is formatted a little different:
enable password 8Ry2YjIyt7RRXU24 encryptedany idea what's used for the ASA?
I'm curious about the format of the hashes on the ASA as well...
enable password xxxxxxxxx encrypted
Anybody have any idea if these are salted MD5 hashes?