Re:What's Going on Inside Your Node_modules Folder?
by marwis on Tuesday March 01, 2022 @11:35PM
(#30523793)
Nuget has the same issue - it can execute arbitrary code during installation. Perhaps it's being exploited already but nobody noticed?
Regardless, even in case of package managers that don't have install scripts (e.g. Maven) one could simply insert malware directly into library code and have it execute whenever you run tests or your application.
The only true solution would be some sort of sophisticated sandboxing or sophisticated malware detection or distributed code review.
Regardless, even in case of package managers that don't have install scripts (e.g. Maven) one could simply insert malware directly into library code and have it execute whenever you run tests or your application.
The only true solution would be some sort of sophisticated sandboxing or sophisticated malware detection or distributed code review.