So, I’ve been using keepassxc for some time now, but I wanted a viable alternative for command line usage (there is keepassxc-cli, that I use, but it is really a pain in the ass). So, I searched and found pass and gopass.

However, I’ve seen that they store each entry in a gpg encrypted file, inside a plain directory hierarchy. And, don’t get me wrong, I believe that there are use cases for this, but if someone got their hands in your password_store, they would know every single login that you have (the only information that is protected is the password, or whatever is in the gpg file).

So, my question is, there is a password manager, cli based, that encrypts the whole database, and not the single entries?

Update: there is a pass extension made specifically to address this issue

  • Xanza@lemm.ee
    link
    fedilink
    English
    arrow-up
    3
    ·
    3 days ago

    but if someone got their hands in your password_store

    There’s really no way around this. If someone “gets their hands on” your anything you’re pretty much fucked. Pass is good enough privacy to justify its usage.

    • grumt@lemmy.mlOP
      link
      fedilink
      English
      arrow-up
      4
      ·
      edit-2
      3 days ago

      I agree, but picture this: if someone get their hands in a kdbx database, they would need to brute force through the master password; they couldn’t possibly know any sites or logins. In the other hand, if someone got your password store, and you used this hierarchy structure, they could try to attack directly the logins, which increases the attack surface. That being said, yes, I completely agree with your last statement.

      edit. For example, if you want to host the password database in a host service not owned by yourself, pass is entirely out of question in this case. A kbdx database, however, would offer a good deal of privacy

      • Xanza@lemm.ee
        link
        fedilink
        English
        arrow-up
        2
        ·
        3 days ago

        In the other hand, if someone got your password store, and you used this hierarchy structure, they could try to attack directly the logins

        The .pass file is encrypted just like the kbdx database and is also protected by a password. Apples to apples its the same amount of security.

        • Prunebutt@slrpnk.net
          link
          fedilink
          arrow-up
          4
          ·
          2 days ago

          OP is talking about hhe meta-structure being visible.

          If my filesystem gets compromised (stolen, confiscated, etc.) and I use pass, the infiltrators will know that I have a password that I labeled “slrpnk.net”. They won’t have access to the password itself, but they’ll be able to determine all the services I have accounts at.

            • Prunebutt@slrpnk.net
              link
              fedilink
              arrow-up
              3
              ·
              edit-2
              2 days ago

              That’s a non-sequitur.

              How is encrypting the metadata, as well as the data security through obscurity? O.o

              • Xanza@lemm.ee
                link
                fedilink
                English
                arrow-up
                1
                ·
                2 days ago

                Because if the data is secure, it makes no difference if a bad actor knows you have an account with a service or not. In the same way, I’m sure I could scrape lemmy for usernames and assume those usernames are emails, but that doesn’t mean your account is less secure for using your email prefix as your lemmy username.

                This is an example of security through obscurity. Not even the usernames are exposed IIRC. It’s just the domain/service. Hell, I could guess that you have a gmail account. That doesn’t make your account less secure for me knowing that.

                • Prunebutt@slrpnk.net
                  link
                  fedilink
                  arrow-up
                  3
                  ·
                  2 days ago

                  Because if the data is secure, it makes no difference if a bad actor knows you have an account with a service or not

                  Bullshit. It’s not about the obvious services, but rather the ones that give more info about my profile.

                  If the police confiscates my PC because of e.g. piracy, they could nail me down if they also knew that I had an account at a darkweb marketplace, or that I am a member of an organization that’s deemed to be “terrorist”.

                  The only way to hide that info with pass is to give it a cryptic name which make it less obvious, what the account is actually for. That is both inconvenient and I would argue: also quite security of obscurity.

                  This is an example of security through obscurity.

                  It is not. Security through obscurity relies on having a visible secret hidden somewhere where “no one would think to check”. That’s different than encrypting the whole meta-structure of your digital life.

                  • Xanza@lemm.ee
                    link
                    fedilink
                    English
                    arrow-up
                    1
                    ·
                    2 days ago

                    If the police confiscates my PC because of e.g. piracy, they could nail me down if they also knew that I had an account at a darkweb marketplace

                    Firstly, if the police confiscate your PC, they already know (and have proven to a judge) that you conduct illegal activity and likely already have enough to convict you of a crime. lol

                    Secondly, you can have an account at a private torrent tracker (or any website [exluding cp]) and there’s nothing anyone can do about it–because that’s not illegal… Torrenting isn’t illegal, either. Sharing copy written content is and they can’t prove that you’ve done that beyond a reasonable doubt simply because you have an account at a website.

                    These are exceptionally poor arguments.