News for hackers. Stuff that matters.
Re:Dozens of malicious PyPI packages discovered targeting de... by lupire on Wednesday November 02, 2022 @01:32PM (#33439740)
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 de... by orblivion on Wednesday November 02, 2022 @01:45PM (#33439960)
I think that separation is the point of the VM. Do the dev work in the VM, don't give it sensitive info about yourself.
Re:Dozens of malicious PyPI packages discovered targeting de... by hollerith on Wednesday November 02, 2022 @01:49PM (#33440045)
That protects me (the software developer/maintainer) to some degree, but does nothing to protect the users of the software I am maintaining.
Re:Dozens of malicious PyPI packages discovered targeting de... by suchar on Wednesday November 02, 2022 @01:59PM (#33440232)
As long as your are creating web applications then browsers are pretty good at limiting blast radius of a single attacked website. Well, at least until attacker discovers that he can inject some fancy phishing into trusted site.

With local development environment it is a bit different, because unless you are running build/test etc. in a container/vm/sandbox, then attacker has access to all of your files, especially web browser data.

Re:Dozens of malicious PyPI packages discovered targeting de... by chromakode on Wednesday November 02, 2022 @02:57PM (#33441166)
Development should be more exploratory and experimental than prod. For the past decade I've had a similar strategy: I freely install and demo new dependencies on separate dev hardware (or a VM when I'm on the road). Then I code review (incl. locked dependencies) and deploy from a trusted environment with reduced supply chain exposure.
Re:Dozens of malicious PyPI packages discovered targeting de... by coffeeblack on Wednesday November 02, 2022 @04:03PM (#33442152)
The only place I log into from the VM is Github, protected by 2FA in case any malware gets my password.
Re:Dozens of malicious PyPI packages discovered targeting de... by ylk on Wednesday November 02, 2022 @04:10PM (#33442266)
The malware will just take the session cookie. Some actions still require 2FA approval, but it’s not many, iirc.
Re:Dozens of malicious PyPI packages discovered targeting de... by remram on Wednesday November 02, 2022 @04:19PM (#33442390)
So the malware can delete all your projects or inject malware into them, but thankfully it won't be able to log in again later?