Since I am very much a Linux & infosec muggle, please indulge me with these possibly dumb questions:
What are the mitigations for the lack of provenance in pip/npm?
Does properly configured SELinux do enough? Or is the fact that many of these packages use 80/443 negate that? Or is the fact that a pip/npm package could be comprised after install, during update the main problem?
I always think of that left-pad NPM drama, could that single dev have comprised thousands of systems by changing his update to something much more nefarious, instead of just deleting the package?
Again, sorry if these are dumb questions.