News for hackers. Stuff that matters.
Re:Show HN: Using a color pattern to let a user 'recognise' ... by JoachimSchipper on Wednesday March 07, 2012 @06:40AM (#3675107)
Nice. Note, though, that accurately capturing the colors will let a bad guy brute-force the password one character at a time, which is trivial. Don't use this if you're worried about shoulder-surfers with cameras, or just plain don't use this with important passwords.

(Note that switching to a proper cryptographic hash does not stop the above attack.)

Re:Show HN: Using a color pattern to let a user 'recognise' ... by alextgordon on Wednesday March 07, 2012 @07:01AM (#3675158)
Just reduce the entropy. E.g. use 20 colors instead of 4 sextillion. That still helps the user a lot (a mistyped password has a large chance of having a different color). But it only reduces the number of passwords an attacker must try to 1/20th.
Re:Show HN: Using a color pattern to let a user 'recognise' ... by JoachimSchipper on Wednesday March 07, 2012 @07:08AM (#3675171)
It reduces it from ~64^password_length to ~3^password_length, and that assumes that the password is a random jumble of letters. If it's a long phrase, like "I know the entropy of English words isn't terribly high, but a lot of them make a better password than what people typically choose", the effect is even stronger.
Re:Show HN: Using a color pattern to let a user 'recognise' ... by icebraining on Wednesday March 07, 2012 @06:51AM (#3675133)
Note, though, that accurately capturing the colors will let a bad guy brute-force the password one character at a time

How so? Since this is generated from the hash, this attack doesn't reveal more than an hash does, and you certainly can't brute-force one char at a a time from an hash.

Re:Show HN: Using a color pattern to let a user 'recognise' ... by CJefferson on Wednesday March 07, 2012 @06:54AM (#3675139)
Assuming I record the colours generated when each character is entered, then I have a hash of just the first character. Cracking that is trivial. Then I can go and crack the second character.

There might be a tiny amount of fuzzyness if I can't exactly match the first character hash, but it would be fairly close. I suspect it would be fairly easy to write a computer program which even did this automatically, from a recorded video.

Re:Show HN: Using a color pattern to let a user 'recognise' ... by sc00ter on Wednesday March 07, 2012 @07:03AM (#3675164)
Gives a whole new meaning to "rainbow tables". Ahem!
Re:Show HN: Using a color pattern to let a user 'recognise' ... by skattyadz on Wednesday March 07, 2012 @07:07AM (#3675170)
Why not just use a video camera to watch them type on the keyboard? Plus, mobile devices show the last character typed. You're right, but this could be avoided by (for example) only displaying colors after 4 characters are typed
Re:Show HN: Using a color pattern to let a user 'recognise' ... by burgerbrain on Wednesday March 07, 2012 @09:36AM (#3675598)
I think a better solution would be to only show the colour hash after there hasn't been a keypress in a few seconds. This would likely be a pretty good way of making sure you only displayed the hash after they were done typing their password, which would prevent enabling a brute force attack.
Re:Show HN: Using a color pattern to let a user 'recognise' ... by JoachimSchipper on Wednesday March 07, 2012 @07:11AM (#3675177)
That reduces the problem to brute-forcing the first four characters...
Re:Show HN: Using a color pattern to let a user 'recognise' ... by rodh on Wednesday March 07, 2012 @07:00AM (#3675155)
Perhaps adding a short delay (under a second) after the last keystroke before refreshing the image would make this much more secure.
Re:Show HN: Using a color pattern to let a user 'recognise' ... by budgi3 on Wednesday March 07, 2012 @07:01AM (#3675157)
Would delaying showing the colors until focus is removed from the password input eliminate this vector?
Re:Show HN: Using a color pattern to let a user 'recognise' ... by icebraining on Wednesday March 07, 2012 @07:19AM (#3675192)
Oh, right, I only considered photos of the last pattern, not of all of them.
Re:Show HN: Using a color pattern to let a user 'recognise' ... by skattyadz on Wednesday March 07, 2012 @06:47AM (#3675119)
And importantly, you can't rate limit client site JS like you can server-side with captchas etc.
Re:Show HN: Using a color pattern to let a user 'recognise' ... by cynwoody on Wednesday March 07, 2012 @03:13PM (#3676934)
You could delay the display of the color pattern until the user has stopped keying for a second or so. That way, the shoulder surfer would not get incremental versions to work from, unless the user types really s l o w l y.