Alarming given that pypi is treated as trusted by many I think (even if it shouldn't)
Two malicious Python libraries caught stealing SSH and GPG keys
11–20 of 323 posts
Re: Two malicious Python libraries caught stealing SSH and GPG keys
#12Also known_hosts file is a double edged sword. It's pretty sensitive in combination with a private key.
Re: Two malicious Python libraries caught stealing SSH and GPG keys
#13Microsoft has started adding short life VMs. No idea if that's good. Both MS and Apple offer their App stores with more locked down experiences though I'm sad they conflate app security and app markets.
Basically anytime I run any software, everytime I run "make" or "npm install" or "pip install" or download a game on Steam etc I'm having to trust 1000s of strangers they aren't downloading my keys, my photos, my docs, etc...
I think you should be in control of your machine but IMO it's time to default to locked down instead of defaulting to open.
Re: Two malicious Python libraries caught stealing SSH and GPG keys
#14I get the python3-dateutil because you might think it's an updated version of the standard library. But how does jellyfish with a different char for L work? Someone would need to copy and paste it. But if they go to pypi, it won't have many installs. Unless they started writing tutorials with: "okay now just pip install X"
Re: Two malicious Python libraries caught stealing SSH and GPG keys
#15I don't know what the solution is but it feels like this is a much bigger issue and we need some rethinking of how OSes work by default. Apple has taken some steps it seems the last 2 MacOS updates where they block access to certain folders for lots of executables until the user specifically gives that permission. Unfortunately for things like python the permission is granted to the Terminal app so once given, all pr…
I don't know what the solution is but it feels like this is a much bigger issue and we need some rethinking of how OSes work by default. Apple has taken some steps it seems the last 2 MacOS updates where they block access to certain folders for lots of executables until the user specifically gives that permission. Unfortunately for things like python the permission is granted to the Terminal app so once given, all programs running under the terminal inherit the permissions.
I fully agree. It seems that the UNIX model is not very compatible with the macOS permission system, but one could imagine defining multiple types of shell sessions, each with its own set of permissions.
[1] https://www.nitrokey.com/ [2] https://salsa.debian.org/gnuk-team/gnuk/gnuk
Re: Two malicious Python libraries caught stealing SSH and GPG keys
#16I get the python3-dateutil because you might think it's an updated version of the standard library. But how does jellyfish with a different char for L work? Someone would need to copy and paste it. But if they go to pypi, it won't have many installs. Unless they started writing tutorials with: "okay now just pip install X"
Then dateutil calls the code in jeilyfish.
Re: Two malicious Python libraries caught stealing SSH and GPG keys
#17I get the python3-dateutil because you might think it's an updated version of the standard library. But how does jellyfish with a different char for L work? Someone would need to copy and paste it. But if they go to pypi, it won't have many installs. Unless they started writing tutorials with: "okay now just pip install X"
Re: Two malicious Python libraries caught stealing SSH and GPG keys
#18Re: Two malicious Python libraries caught stealing SSH and GPG keys
#19How often does something like this happen with packages in the CentOS, epel, or Debian repositories?
Re: Two malicious Python libraries caught stealing SSH and GPG keys
#20In the meantime, store your private keys on a security device like a YubiKey. I use it simultaneously for all signing, encrypting, and authenticating (SSH as well as PAM to my workstations).
Be sure to set a strong PIN on the device. And have a backup!