The large amount of third-party packages available in fast-moving software ecosystems, such as the Node.js/npm, enables attackers to compromise applications by pushing malicious updates to their package dependencies. Studying the npm repository, we observed that many packages perform only simple computations and do not need access to filesystem or network APIs. This offers the opportunity to enforce least-privilege design per package, protecting them from malicious updates. We discuss the design space and propose a lightweight permission system that protects Node.js/npm applications by enforcing package permissions at runtime. Our system makes a large number of packages much harder to be exploited, almost for free.
Gabriel Ferreira (Carnegie Mellon University), Limin Jia (Carnegie Mellon University), Joshua Sunshine (Carnegie Mellon University), Christian Kaestner (Carnegie Mellon University),
IEEE Digital Library: https://www.computer.org/csdl/proceed...
Created with Clowdr: https://clowdr.org/