Article View: be.comp.security
Article #703Re: shadow file
From: Wolfgang S. Rupprecht
Date: Wed, 08 Dec 2004 22:44
Date: Wed, 08 Dec 2004 22:44
39 lines
3224 bytes
3224 bytes
> Thus, in order to decode the password, one would have to find a
> password whose MD5 was represented in base64 as xEeZmr2fGEnKjVAxzj/o51 .
>
> MD5 is a 128 bit hash, so brute force would require an
> average of 2^127 operations to find a match. That's a lot of
> computation.
I wonder if the techniques to generate the MD5 hash collisions[1] could
also be used to cut down the search space for finding an inversion.
In any case, average people don't pick passwords that take much
search-space to find. Having a 128-bit search-space for the hash
doesn't buy you much if probability-density-function for the chosen
password strings is highly non-linear. If one only has to test the
10,000 or 100,000 most likely passwords to break 15% of the users
passwords having a fancy hash representation in the shadow file isn't
going to buy one much. The weak link is still the user's password.
I'm beginning to think the only way to really protect systems is to
have a $20 usb flash card that is given to each user. The flash card
would contain a 1k-bit key (say ssh's rsa or dsa). The user's
password is ONLY used to decrypt the 1k-bit key. Even if the user
chooses a losing password that is in every cracker's dictionary, it
won't help an external attacker any. The external attacker needs to
search the 1k-bit long space unless they happen to be able to be able
to steal the usb flash card. If they steal the usb card, then and
only then, will they be able to throw the much smaller cracker
dictionary against the users 1k-bit key and try to decrypt it.
-wolfgang
[1] eprint.iacr.org/2004/199.pdf - Collisions for Hash Functions MD4,
MD5, HAVAL-128 and RIPEMD, Xiaoyun Wang, Dengguo Feng, Xuejia
Lai, Hongbo Yu
--
Wolfgang S. Rupprecht http://www.wsrcc.com/wolfgang/
When you talk to musicians about pirates they think
you are talking about the RIAA.
Technical Details
Message-ID:
<x7pt1kif5b.fsf@bonnet.wsrcc.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!hermod.ttsg.com!news.exile.org!NNTP-from-news.sonic.net!typhoon.sonic.net!not-for-mailReferences:
<cp6ki9$je4$05$1@news.t-online.com> <cp7cjq$sqh$1@canopus.cc.umanitoba.ca>Show Full Headers
Complete Article Headers
X-Google-Thread: 113446,4a0979912b4865b8 X-Google-Thread: 106e9e,4a0979912b4865b8 X-Google-Thread: ff723,4a0979912b4865b8 X-Google-Thread: 10952f,4a0979912b4865b8 X-Google-Attributes: gid113446,gid106e9e,gidff723,gid10952f,public X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!hermod.ttsg.com!news.exile.org!NNTP-from-news.sonic.net!typhoon.sonic.net!not-for-mail Newsgroups: be.comp.security,comp.os.linux.security,comp.security.misc,comp.security.unix Subject: Re: shadow file References: <cp6ki9$je4$05$1@news.t-online.com> <cp7cjq$sqh$1@canopus.cc.umanitoba.ca> From: "Wolfgang S. Rupprecht" <wolfgang+gnus20041208T141441@dailyplanet.dontspam.wsrcc.com> X-WSRCC: <gena@aardvark.wsrcc.com> Message-ID: <x7pt1kif5b.fsf@bonnet.wsrcc.com> Organization: W S Rupprecht Computer Consulting, Fremont CA User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (berkeley-unix) Cancel-Lock: sha1:hMP6xIbdv1mrhZib6Io1cBpfNA4= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Lines: 39 Date: Wed, 08 Dec 2004 22:44:49 GMT NNTP-Posting-Host: 64.142.50.224 X-Complaints-To: abuse@sonic.net X-Trace: typhoon.sonic.net 1102545889 64.142.50.224 (Wed, 08 Dec 2004 14:44:49 PST) NNTP-Posting-Date: Wed, 08 Dec 2004 14:44:49 PST