

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.
I self-host almost everything so I am calling “stuff that I don’t control” cloud. This is my ISP and Electric utilities for the most part. Maybe someday I’ll get a 2nd ISP, run BGP with both, then get a generator and eliminate these. For now, my fallback is the actual cloud, if the outage is extended I could somewhat quickly move critical services to rented hosting.
In regards to email, which I don’t self-host, if my provider suddenly dies I can temporarily or permanently migrate by just changing the mx records.