News for hackers. Stuff that matters.
Re:Steel – Open-source command-line password manager by zvrba on Monday October 19, 2015 @03:04AM (#10411528)
> Password management belongs to the command line.

Not really. You don't want passwords in plain-text traveling around pipes or sockets with easy to sniff system-calls. You want a secure channel between your password manager and the application. Keepass2, for example, copies your password to the clipboard and automatically erases the clipboard after a short timeout. (True secure channels don't exist yet in any OS as far as I'm aware.)

Upon reading the manual, steel can communicate with X clipboard (by xclip), but it passes the passphrase through a pipe. It never clears the clipboard. To be "secure", it'd need to be an X11 application (i.e., NOT command-line) which would participate in the X11 selection protocol and provide password only when the user actually tries to paste it.

In addition, you need to "open" and "close" the steel database before using it. The manual does not explain what "opening" and "closing" does however. Does "open" temporarily decrypt the whole database?

Security is more than just applying strong crypto. I don't like the general design of this application; the discussion of general security concerns (side-channel attacks) is completely missing.

Re:Steel – Open-source command-line password manager by throwaway7767 on Monday October 19, 2015 @09:11AM (#10412631)
An attacker that can read your pipes/sockets can also sniff all your keystrokes, read your clipboard and read from other processes memory. A timer to erase the clipboard is only good to prevent accidents; a malicious program targeting your password manager will simply read the clipboard once a second and watch for changes. Local security is hard.

For a more-secure solution, consider running Qubes OS with a seperate vault VM running a password manager. That way you can induvidually copy passwords to the VM where you want to enter it, without others getting any access to it. Of course, that's too hard for most people, so we end up running everything in the same context and then call it "secure" because we erase the clipboard after 5 seconds.

Re:Steel – Open-source command-line password manager by draven on Monday October 19, 2015 @03:19AM (#10411569)
I use pass ( http://www.passwordstore.org/ )

It can copy your password to the clipboard, and erases it after 45 seconds (by default.) It's still implemented as a shell script and uses xclip.

Reading the shell script I can see they thought about some clipboard managers which store their entries in plain text:

  # Clipboard managers frequently write their history out in plaintext,
  # so we axe it here:
  qdbus org.kde.klipper /klipper org.kde.klipper.klipper.clearClipboardHistory &>/dev/null
Re:Steel – Open-source command-line password manager by swombat on Monday October 19, 2015 @03:22AM (#10411579)
So anything that monitors your clipboard (basically every spyware worth its salt) will have a copy of all your passwords then? That doesn't seem very secure.
Re:Steel – Open-source command-line password manager by teekert on Monday October 19, 2015 @04:14AM (#10411739)
That is the case for all password managers... A big loop hole imo but one that has to be weighed against having simpler, more similar passwords for services.
Re:Steel – Open-source command-line password manager by heinrich5991 on Monday October 19, 2015 @05:13AM (#10411891)
If you have a browser password manager, monitoring the clipboard will do nothing.
Re:Steel – Open-source command-line password manager by draven on Monday October 19, 2015 @05:46AM (#10411955)
That only works for passwords you use on the web though.
Re:Steel – Open-source command-line password manager by swombat on Monday October 19, 2015 @08:11AM (#10412353)
Which includes the vast majority of exploitable passwords. Passwords that only work on my local machine are of less concern when it comes to being hacked by a random keylogger software.
Re:Steel – Open-source command-line password manager by draven on Monday October 19, 2015 @04:39AM (#10411797)
The only workaround I can think of is: don't use the clipboard then.

With pass you can also display the password on the console so you can retype it, but if you're running in an X session you're potentially screwed anyway.

Re:Steel – Open-source command-line password manager by Widdershin on Monday October 19, 2015 @05:53AM (#10411971)
If you wanna get real paranoid, displaying it on your screen isn't the best idea.

https://en.wikipedia.org/wiki/Van_Eck_phreaking

Re:Steel – Open-source command-line password manager by agumonkey on Monday October 19, 2015 @04:18AM (#10411752)
Reminds me that I tried to see if Emacs did anything to input in password-reading mode, and the content was in clear, only the rendering was obfuscated.
Re:Steel – Open-source command-line password manager by jfindley on Monday October 19, 2015 @10:14AM (#10412987)
The point of erasing the clipboard is not to protect against malicious software - as others have pointed out, this doesn't work. The point of doing this is to reduce the risk that the user accidentally pastes their password somewhere they shouldn't (e.g. an instant messaging application).
Re:Steel – Open-source command-line password manager by welly on Wednesday October 21, 2015 @11:25PM (#10430238)
I've also been using Pass. It is excellent, however the problem is that there doesn't appear to be much in the way of support for mobile devices. Not in any solid, working way anyhow. I decided to try out dashlane (http://dashlane.com) and so far it's been excellent with support for android and iOS devices as well as a desktop app and browser support. It does all I need.

Obviously those who like to keep their passwords close to their chests and host the password database on their own server, this won't apply but for the rest of us, I've not found anything as good.

Re:Steel – Open-source command-line password manager by mikegerwitz on Monday October 19, 2015 @10:05AM (#10412940)
If you do want to use the primary selection, you can use `xclip -l 1 -quiet`, which will remain in the foreground until a single request is made for its contents (a single paste); it will then quit, and the content will no longer be available.

Not fool-proof, but helps mitigate the risk. If an attacker snoops on the selection, it'll quit before your paste and you'll know that something is wrong.

Re:Steel – Open-source command-line password manager by nvr82 on Monday October 19, 2015 @03:26AM (#10411597)
Agreed. There's definitely room for improvement.