• SavvyWolf@pawb.social
    link
    fedilink
    English
    arrow-up
    40
    arrow-down
    1
    ·
    1 day ago

    To just make this absolutely clear, this means that the private keys are vulnerable to be exiltrated by malicious code scanning my disk.

    If you have malicious code capable of scanning your disk it’s basically game over anyway. They can intercept your passwords and ssh connection no matter what you do.

    What’s the security model here? An app that gets user account access but gives it up if it can’t find exactly ssh keys?

    • cow@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      13 hours ago

      What’s the security model here? An app that gets user account access but gives it up if it can’t find exactly ssh keys?

      My guess is that a malicious package is scanning your home directory for stuff like SSH keys, GPG keys, AWS keys, etc. It would have filesystem access permission already in the MacOS sandbox due to running inside a common interpreter like node or python, but it might be restricted from stuff like attaching to other processes memory, where it could just get the keys out of bitwarden.

      Could also just be obscurity as most infostealers are programmed to grab keys from common locations and not many developers use bitwarden for keys.

      If you want something resistant to a fully compromised system you need to use something hardware backed, whether an external key or an internal secure enclave.

    • femtek@lemmy.blahaj.zone
      link
      fedilink
      English
      arrow-up
      3
      ·
      1 day ago

      I get it when you have multiple servers, a few of the recent attacks admins had tokens and ssh keys that had access to other things. But for a homelab with one server that has admin to everything anyway. Not much use.