Live data from Hacker News

KeePass – questionable security

news.ycombinator.com

81–90 of 231 posts

Re: KeePass – questionable security

#81
What about KeePass 1.x?

And considering you can freely copy the database and someone corrupting your own is "only" going to result in you not being able to login, is that really a threat model that is more important with just encrypting everything so they can't be read?

Re: KeePass – questionable security

#82
post #25

Earlier quoted context omitted.

Do you care about that kind of side channel for an offline vault? If your adversaries are on your box while you operate your vault, then you have already lost because they will also have keyloggers, strace, etc.

What if they hack your dropbox account and get a copy of the vault that way? They're not on your box, but now they can try to break into your vault.

Then a timing side channel is not relevant, because they won't be watching you operate the vault. Right?

Re: KeePass – questionable security

#83
post #76
post #72

Earlier quoted context omitted.

Considering your background and experience, do you have a recommendation for personal level password management?

I use and like 1Password.

Please remember that just because tptacek likes and uses something, do not mean that it has great security.

The PDF linked below states that there is zero integrity in 1Password file format.

I happen to like and use KeePass, but that is not a secure-software guarantee.

Re: KeePass – questionable security

#84
post #76
post #72

Earlier quoted context omitted.

Considering your background and experience, do you have a recommendation for personal level password management?

I use and like 1Password.

Is that open source too or how would you know about their security? Cannot find it: https://github.com/AgileBits

Re: KeePass – questionable security

#85

Earlier quoted context omitted.

Any takers on that question?

Well, it's not thread safe but they might not think that's an issue. It looks like this: private static CryptoRandom m_pInstance = null; public static CryptoRandom Instance { get { if(m_pInstance != null) return m_pInstance; m_pInstance = new CryptoRandom(); return m_pInstance; } }

Here's Jon Skeet's writeup of why this is bad and what you should be doing:

http://csharpindepth.com/Articles/General/Singleton.aspx

Note that using the last example isn't necessarily "the best", it really depends on your requirements.

Nonetheless, a very interesting read.

Re: KeePass – questionable security

#86

Earlier quoted context omitted.

I notice that the "change-password" function of yourbank.com is accidentally being served over HTTP instead of HTTPS. I just need to trick you into changing your password. I have access to your kdbx db (ex. you sync to Dropbox and I'm Dropbox employee). I can alter the kdbx file to change your password so that it is no longer valid. KeePass doesn't complain at all. You have a WTF moment and try to change your passwor…

I have a private server in a datacenter that I put together myself. I use sftp to download/upload my keepass file, I also use a keyfile that stays local and a password for auth. What is the attack vector there?

You store u/p to your Lawyer's website, which has a copy of your Will. You die and the Executor of your Estate tries to access the Lawyer's website, only to be met with "invalid password".

It turns out that the kdbx on your private server got silently corrupted (ex. fs corruption) ~5 years prior to your death. However, your Dropbox backups only have 30 days of previous kdbx versions.

Can your Executor handle the disappointment?

I believe this issue is grave enough.

Re: KeePass – questionable security

#87

Earlier quoted context omitted.

Step-1: open the above PDF. Step-2: search for "HMAC". Step-3: note which application uses HMAC. Step-4: you should prefer (3) to all others.

A note to other 1Password users like myself, per the linked PDF 1Password does not use HMAC.

According to [0], it does:

"The OPVault format uses Encrypt-then-MAC for authenticated encryption with AES-CBC-256 for encryption and HMAC-SHA256 for Message Authentication. Key derivation uses PBKDF2-HMAC-SHA512"

[0] https://support.1password.com/encryption/

Re: KeePass – questionable security

#88

"On The Security of Password Manager Database Formats" ( https://www.cs.ox.ac.uk/files/6487/pwvault.pdf ) was a good review of KeePass, Password Safe, and others. As I understood it, only Password Safe provided both secrecy and data authenticity.

Interesting, I'm using KeePassX and I've seen the corruption issue; some of the fields are duplicated to other fields in other password entries. It's a little disturbing that this is an issue but I've been using the same KDB file for the last 5? years and it hasn't been completely corrupted.

Re: KeePass – questionable security

#89

Earlier quoted context omitted.

Step-1: open the above PDF. Step-2: search for "HMAC". Step-3: note which application uses HMAC. Step-4: you should prefer (3) to all others.

A note to other 1Password users like myself, per the linked PDF 1Password does not use HMAC.

I suppose some of the results are obsolete. For example, 1P is now already at version 5. Version 2 was about 5 years ago.

Re: KeePass – questionable security

#90
post #76
post #72

Earlier quoted context omitted.

Considering your background and experience, do you have a recommendation for personal level password management?

I use and like 1Password.

Too bad the only way to use 1Password with linux or a BSD is some jaxy browser extension.
Post reply on HN