Iowa State University
Empirical study on exploitation of dependency-based attacks in Node.js
Abstract
dc:description.abstractNode.js is a server-side platform built on Google Chrome's JavaScript. Node.js developers share packages through the Node Package Manager (NPM) repository as open-source Node.js packages. Developers use packages published in the NPM repository as dependencies to their software with the understanding that the dependencies provide services to their software. By construction, Node.js allows dependencies to inspect the calling package and even overwrite its behavior, which we call dependency-based attacks. This thesis describes cases of dependency-based attacks and reports about our study to assess their frequency. First, we selected and analyzed two highly rated Node.js dependency-based malicious packages: a prototype pollution package and Discord.dll. Then, we identified the recent dependencies attacks from the reported Node.js attacks and associated vulnerabilities published in the Synk Vulnerability Database and NPM Security advisories and analyzed their behavior. Out of the 726 studied vulnerabilities, we found 111 prototype pollution packages (including code that changes the way JavaScript's root Object behaves) and 11 malicious modules that exploit the dependency-based weaknesses, 16.8\% of the packages. We conclude that dependency attacks on calling modules have become common and need attention given their high impact.
Degree
thesis:*- Name thesis:degree_name
- Master of Science
- Level thesis:degree_level
- thesis
- Discipline thesis:degree_discipline
- Computer engineering
- Department dc:contributor.department
- Department of Electrical and Computer Engineering
- Grantor
- Iowa State University
- Year dc:date.issued
- 2022
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- Yip, Danny Yi Kang
- Advisors dc:contributor.advisor
-
- Ben Othmane, Lotfi
- Jacobson, Doug
- Rover, Diane
Rights
- Language dc:language.iso
- en
Identifiers
dc:identifier.*- Identifier URI
- https://dr.lib.iastate.edu/handle/20.500.12876/GvqXxJZw