News for hackers. Stuff that matters.
Re:Passwords Evolved: Authentication Guidance for the Modern... by zwily on Wednesday July 26, 2017 @08:34AM (#14855637)
Does anyone provide a regularly updated bloom filter of exposed passwords you could use for meeting the last point? Seems like something Troy could do...
Re:Passwords Evolved: Authentication Guidance for the Modern... by TheFinalDraw on Thursday July 27, 2017 @01:26AM (#14862892)
Hey! A thing I can actually help with! I put together a PoC of exactly this when I had the same idea a couple years ago. Here's a basic generic example I put together at the time, that also defines interfaces for other policy directives (e.g. min length, etc.): https://github.com/milo-minderbinder/policy/blob/master/src/...

I'll add docs and updates if people give a shit. The passwords.dat file in the resources folder is the top 1m most common pws that I compiled from a number of lists available at the time.

I implemented a redis-backed instance of the above common-password bloom filter in a sample Spring app which I was using to show off some features of spring security to a dev (I work in AppSec). You can see the policy and redis config here: https://github.com/milo-minderbinder/spring-ref/blob/indev/s...

And you can see an example of how to wire it up to a Spring Validator here: https://github.com/milo-minderbinder/spring-ref/blob/indev/s...

And you'll find where it's registered as a bean in the SecurityConfig.java file in the config dir with the other Spring java-config classes.

If you want to run it, I dockerized the whole Shebang with docker-compose a whole back, which should be easy to run: https://github.com/milo-minderbinder/docker-spring-ref/tree/...

Hope any of this was meaningful to literally anyone in literally any capacity haha

Re:Passwords Evolved: Authentication Guidance for the Modern... by welder on Wednesday July 26, 2017 @02:08PM (#14858604)
If it's for your website, start by adding a password strength meter using zxcvbn[1]. For example:

https://github.com/MorrisJobke/strengthify

[1]: https://github.com/dropbox/zxcvbn

Re:Passwords Evolved: Authentication Guidance for the Modern... by jdormit on Wednesday July 26, 2017 @04:00PM (#14859708)
Do you think the chances of false positives would make a bloom filter a bad choice for this?
Re:Passwords Evolved: Authentication Guidance for the Modern... by Deimorz on Wednesday July 26, 2017 @06:19PM (#14860892)
It's not ideal, but shouldn't be a big issue, since a false positive just means that you (very rarely) tell a user that a password is unacceptable when it should have been fine. That's a bit annoying for the user, but the result is that they just end up picking a different secure password. False negatives would be worse.

Really though, a list of common passwords to block is such a small amount of data that it's probably best to just use an exact list. I can't see it being more than a megabyte or so.

Re:Passwords Evolved: Authentication Guidance for the Modern... by zwily on Wednesday July 26, 2017 @07:59PM (#14861494)
A "list of common passwords" isn't the guidance though - it's a list of passwords exposed in previous breaches. That list can be huge, and only practical to check with some efficient lookup mechanism.
Re:Passwords Evolved: Authentication Guidance for the Modern... by Deimorz on Wednesday July 26, 2017 @08:33PM (#14861675)
Ah okay, sorry. I was thinking about it from the perspective of common passwords since that's something I've tried to find an existing bloom filter for before.

I agree with you that Troy would probably be one of the best people to provide something like that. I wonder how feasible it is, that would be a really great resource to have available.

Re:Passwords Evolved: Authentication Guidance for the Modern... by zwily on Wednesday July 26, 2017 @07:59PM (#14861499)
You can tune the bloom filter to have whatever false positive rate you think would be acceptable.