Dozens of malicious PyPI packages discovered targeting developers
21–30 of 334 posts
Re: Dozens of malicious PyPI packages discovered targeting developers
#22PyPi should warn when the package and developer are new.
Yeah a time/activity based trust system like thepiratebay uses could be helpful. Also devs should get into the habit of providing sha256 hashes on offical channels (i.e., github readme) so users can validate (if its possible to validate a pkg before executing malicious code in the python ecosystem, I'm not sure how that'd work).
I would think the easy solution is to publish a public signing key per-person or per-project, and then sign individual files with that. So, GPG.
Re: Dozens of malicious PyPI packages discovered targeting developers
#23It's using base64 encoded strings to deliver the initial stage. Can this be avoided/flagged more easily if by adding a scan of statements featuring base64 or import?
Re: Dozens of malicious PyPI packages discovered targeting developers
#24PyPi should warn when the package and developer are new.
Yeah a time/activity based trust system like thepiratebay uses could be helpful. Also devs should get into the habit of providing sha256 hashes on offical channels (i.e., github readme) so users can validate (if its possible to validate a pkg before executing malicious code in the python ecosystem, I'm not sure how that'd work).
This is an excellent idea. Authors are something we are digging into heavily as part of an ongoing effort to improve trust in the open source ecosystem.
Re: Dozens of malicious PyPI packages discovered targeting developers
#25I started to develop only inside VMs, with a full Desktop, IDE, browser etc. inside the virtual machine. There have been to many contaminations of major package repos lately. Only one typo in an import statement up the dependency chain and you’d be compromised.
Virtual is part of a solution but not the key: the key is to separate your dev env from your real life/business environment -- including all your personal and professional business data and web accounts that expose your financials and private data. If you log into your email from the virtual machine, you are at risk.
Re: Dozens of malicious PyPI packages discovered targeting developers
#26The article doesn't explain what exactly the "W4SP Stealer" does. Would someone be able to explain?
Re: Dozens of malicious PyPI packages discovered targeting developers
#27The article doesn't explain what exactly the "W4SP Stealer" does. Would someone be able to explain?
Re: Dozens of malicious PyPI packages discovered targeting developers
#28I started to develop only inside VMs, with a full Desktop, IDE, browser etc. inside the virtual machine. There have been to many contaminations of major package repos lately. Only one typo in an import statement up the dependency chain and you’d be compromised.
We are actively working on a solution that will fully sandbox package installations for npm, yarn, poetry and others.
It's rolled up as part of our core CLI [1], but is totally open source [2]:
[1] https://github.com/phylum-dev/cli [2] https://github.com/phylum-dev/birdcage
Re: Dozens of malicious PyPI packages discovered targeting developers
#29It's using base64 encoded strings to deliver the initial stage. Can this be avoided/flagged more easily if by adding a scan of statements featuring base64 or import?
Re: Dozens of malicious PyPI packages discovered targeting developers
#30Earlier quoted context omitted.
I've tried the same but the graphics performance was too slow (no GPU acceleration). The current setup is to use a virtual machine but connect to it via VS Code's Remote SSH extension from the host.
I hope you've turned off VS Code's "workspace trust" settings. https://code.visualstudio.com/docs/editor/workspace-trust