Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Adjust bcrypt cost to prevent future password hash attacks

by Anonymous Monk
on Jun 12, 2012 at 08:12 UTC ( [id://975708]=note: print w/replies, xml ) Need Help??


in reply to Adjust bcrypt cost to prevent future password hash attacks

I'd say using Transport Layer Security (TLS) is more important as its easier to throttle login attempts on webservers, thus preventing brute-force attacks

  • Comment on Re: Adjust bcrypt cost to prevent future password hash attacks

Replies are listed 'Best First'.
Re^2: Adjust bcrypt cost to prevent future password hash attacks
by andreas1234567 (Vicar) on Jun 12, 2012 at 08:24 UTC
    Data must be secured in transit and at rest. TLS protects data in transit only, and does not prevent offline attacks (e.g. recent Linkin breach).

    We need both TLS and bcrypt, not just the former.

    --
    No matter how great and destructive your problems may seem now, remember, you've probably only seen the tip of them. [1]

      and does not prevent offline attacks

      of course not :) I wasn't suggesting switching away from bcrypt, merely that the cost is not as important for online attacks, those can be throttled effectively

      but, for offline, you should use encrypted harddisks and not rely on bcrypt alone

        You seem to be associating "offline attacks" with physical theft of the hardware. However, they much more often (including in the recent LinkedIn/eHarmony cases) involve cases where an attacker has duplicated the contents of the user database. In such cases, encrypting the hard drive is completely irrelevant.

        Each of these measures is only applicable to certain types of attack:

        • TLS only matters if someone is attempting to access data in transit.
        • Disk encryption only matters if the hardware running the system is physically stolen.
        • The hashing method only matters if the attacker has direct access to (a copy of) the password database.
        Whatever you may be trying to secure, you need to assess which threats are actually relevant to you and implement the appropriate security measures based on that (and on the value of the system/its data).
        I beg to differ. Ideally, it should be safe to publish the hashes online as no-one should be able to search the password space in reasonable time.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://975708]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (2)
As of 2024-04-20 03:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found