News for hackers. Stuff that matters.
Re:Password Managers by Dedime on Saturday June 05, 2021 @07:06PM (#27409167)
Here's a the best solution I've found for those looking for password manager recommendations. It's secure, free open source, easy to use, and syncs to all of your devices

1. Password manager for PC / Laptop: KeePassXC. It's not built into your browser, it's a seperate application. It's totally open source, and trusted by many. It also supports two factor authentication, I use a passphrase and a key file. Supports TOTP. Has a ton of "premium" features, totally free. It's awesome.

2. Syncing application: Google Drive. Sync your KeePass database using Google Drive (or whatever other sync application you want). KeePassXC supports merging databases if there's ever a conflict, as rare as those are. This is secure, because the KeePass database file is encrypted, and Google Drive / Google will never see the unencrypted database.

3. Password manager for phone: KeePass2Android. Not sure what the options are for Apple, but I'm sure they exist. Allows you to open your KeePassXC database from Google Drive.

4. Browser support: KeePassXC-Browser. Allows you to autofill your username / password / TOTP from your KeePassXC application to Chrome / Firefox.

Totally free, secure, convenient, and syncs to all your devices. Also comes with excellent redundancy for your password database so you'll never lose it. I've been using this setup for years flawlessly.

Re:Password Managers by mackrevinack on Sunday June 06, 2021 @04:17AM (#27411614)
auto-type is much more secure than using the companion keepassxc browser extension to fill your passwords since it didn't need a connection between your browser and your password manager. it also removes the chance of some dodgy website having a username and password box off screen and using it to trick the atuofill feature.

one minor inconvenience with auto-type is that your passwords don't auto fill by themselves, but I have it set to the hotkey alt+x which makes it quick to trigger with my thumb and after doing it this way for nearly 2 years now i barely notice

another downside with auto-type is that not all websites put their full names in the browser title bar so auto-type won't show you your related passwords in some cases. to fix that you can install a browser extension that puts the full web url in titlebar https://github.com/erichgoldman/add-url-to-window-title

Re:Password Managers by kevinkeller on Sunday June 06, 2021 @10:29PM (#27418377)
> another downside with auto-type is that not all websites put their full names in the browser title bar so auto-type won't show you your related passwords in some cases. to fix that you can install a browser extension that puts the full web url in titlebar https://github.com/erichgoldman/add-url-to-window-title

Instead of modifying the browser title, I use AutoTypeSearch plugin for Keepass, that opens a dialog allowing me to suggest entries in case of no matches.

There is also another plugin that allows search using both URL and title -- "WebAutoType".

These two plugins together make the Keepass experience almost seamless.

Re:Password Managers by FooHentai on Saturday June 05, 2021 @07:21PM (#27409249)
My setup is almost identical, though I skip the browser plugins and let the password manager auto-paste into the browser. Keepass inside GDrive, job done. Very occasionally I'll make a copy out to a portable drive.

I've been running this setup for about a decade,since some big breach (I forget which one) made it clear to me that using the same or similar passwords across multiple sites was not gonna fly any longer.

The initial time investment was surprisingly heavy - I iterated through every online login I could find for myself (searching through email history mostly for signups confirmations) and changed the password on every account I had. Took about two full days.

Re:Password Managers by ramraj07 on Saturday June 05, 2021 @07:29PM (#27409290)
After realizing how every program running on your machine can Snoop on your clipboard I'm never allowing any program to send my password to the clipboard again.
Re:Password Managers by mimimi31 on Saturday June 05, 2021 @07:50PM (#27409397)
Haven't you pretty much already lost when you can't trust the programs running on your machine? If they can snoop on your clipboard, they're probably also able to access your sensitive files, log key presses, take screenshots, install browser extensions etc.
Re:Password Managers by Wowfunhappy on Saturday June 05, 2021 @09:47PM (#27410019)
They'd need root access to do half of those things. The other half are bad but not life-shattering.
Re:Password Managers by mimimi31 on Sunday June 06, 2021 @03:59AM (#27411545)
This obviously depends on your OS and setup, but on Linux + Xorg at least I don't need root access to do any of the things I listed.
Re:Password Managers by Wowfunhappy on Sunday June 06, 2021 @10:48AM (#27413562)
Sorry, I must have been very tired last night. This morning, I can't remember (or figure out) which actions I was thinking of when I wrote that.

The only one that still jumps out to me is browser extensions—I'm pretty sure none of the major browsers allow that without user approval within the browser. You'd have to do something nasty which would require root.

Re:Password Managers by mimimi31 on Sunday June 06, 2021 @02:22PM (#27415077)
>The only one that still jumps out to me is browser extensions—I'm pretty sure none of the major browsers allow that without user approval within the browser. You'd have to do something nasty which would require root.

I've admittedly never tried it, but as far as I understand, installing an extension in Firefox just involves copying the corresponding .xpi file to the profile folder (which is owned by the user, not root) and modifying a few configuration files (e.g. extensions.json). I don't see why some other program wouldn't be able to do that.

If root access were required, you'd have to supply your root password every time you wanted to install an extension.

Re:Password Managers by Wowfunhappy on Sunday June 06, 2021 @02:33PM (#27415162)
Nope, they don't allow that anymore! https://blog.mozilla.org/addons/2020/03/10/support-for-exten...

This is in addition to the fact that Firefox has absolutely mandatory code signing for extensions (the only recourse is to recompile Firefox). That's something I'm very much not happy about, but does have upsides.

Re:Password Managers by mimimi31 on Sunday June 06, 2021 @03:12PM (#27415475)
I have a hard time imagining how they enforce that. What keeps a malicious program from replicating the exact changes that Firefox makes when installing an extension? What about just replacing the whole profile folder with one that has a malicious extension installed?

>Firefox has absolutely mandatory code signing for extensions

That helps I guess, but there are clearly still malicious extensions that can pass the automated tests and get signed. Even if that wasn't possible, you could probably use some userscript extension and load malicious scripts that way.

Re:Password Managers by Wowfunhappy on Sunday June 06, 2021 @08:16PM (#27417599)
> What keeps a malicious program from replicating the exact changes that Firefox makes when installing an extension? What about just replacing the whole profile folder with one that has a malicious extension installed?

I obviously haven't spent time trying to break this, but I would assume the config file is hashed. You probably could replace the whole profile, but that would be very noticeable to the user.

Re:Password Managers by paulryanrogers on Saturday June 05, 2021 @07:55PM (#27409423)
KeePass (official) can split the auto fill between typing and pasting to mitigate sniffers which only monitor cupboard or keyboard.
Re:Password Managers by FooHentai on Sunday June 06, 2021 @12:58AM (#27410905)
I'm far less worried about that than I am about one website breach resulting in my accounts on other sites being compromised.

Perfect security doesn't exist, of course, so somewhere in the middle lies a good compromise that trades off risk and convenience. For me keepass on a synced drive hits the mark.

Not sure what the solution would be if you don't trust local programs - Keepass' paste method already bypasses the clipboard IIRC by entering directly into the fields.

Re:Password Managers by accrual on Saturday June 05, 2021 @08:50PM (#27409705)
I think it would be great if major OSs offered an "$app copied/pasted from clipboard" notification like iOS.
Re:Password Managers by fsflover on Tuesday June 08, 2021 @02:16PM (#27438828)
If you care about such things, you should probably use Qubes OS with a dedicated VM storing passwords.
Re:Password Managers by paulryanrogers on Saturday June 05, 2021 @07:53PM (#27409408)
> 4. Browser support: KeePassXC-Browser. Allows you to autofill your username / password / TOTP from your KeePassXC application to Chrome / Firefox.

I believe the point the article is making is that any browser extension to auto fill is inherently insecure for architectural reasons.

I find it odd someone so serious about password managers would recommend KeePassX which hasn't seen a release since 2016. Perhaps they meant the KeePassXC fork.

Re:Password Managers by justusthane on Sunday June 06, 2021 @12:54AM (#27410887)
> I believe the point the article is making is that any browser extension to auto fill is inherently insecure for architectural reasons.

No, that is not what the article said. The article said that password managers that insert elements into the webpage are insecure. You don’t need need to do that to autofill passwords.

Re:Password Managers by paulryanrogers on Sunday June 06, 2021 @01:00PM (#27414469)
Can extensions auto fill without content scripts?
Re:Password Managers by justusthane on Sunday June 06, 2021 @08:15PM (#27417596)
I don't think the Bitwarden extension uses content scripts—at least, it doesn't insert any elements into the webpage, which seemed to be the main issue that the article was bringing up.

Just to be clear, when I say autofill I'm not suggesting that it fills in passwords with zero interaction, but when you're on a website that Bitwarden has a password for, it shows a little flag on the extension icon, and you can click on it to fill the password.

Re:Password Managers by Dedime on Saturday June 05, 2021 @08:40PM (#27409649)
I should probably just switch to using the autotype functionality built in, though much of my security concerns are allayed by the fact that KeePassXC prompts me in the application each time a website requests to use a password.
Re:Password Managers by kiririn on Sunday June 06, 2021 @07:55AM (#27412531)
>Not sure what the options are for Apple, but I'm sure they exist

Strongbox is fantastic on iOS

Re:Password Managers by kringdom89 on Sunday June 06, 2021 @09:57AM (#27413176)
> Strongbox is fantastic on iOS

Yeap, but now you have to trust (there's really no open source on iOS, as there's no reproducible builds or way to verify the code) on some guy and hope for the best.