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.
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.