Miguel Monteiro

Miguel Monteiro

Auto-generated profile, based on publicly available information

Miguel Monteiro

INESC-ID, Lisboa, Portugal

Research Focus & Metrics

Academic Career Length

4Years (2023-Present)

(Calculated once Scilit publication data is synced: current year − year of first publication + 1)

Representative Publications

View All Publications
29 June 2023 in IEEE Transactions on Reliability
Verified
Journal Article
Open access
TBTiago Brito
Tiago Brito
MFMafalda Ferreira
Mafalda Ferreira
MMMiguel Monteiro
Miguel Monteiro
PLPedro Lopes
Pedro Lopes
MBMiguel Barros
Miguel Barros
NSNuno Santos
Nuno Santos
With the emergence of the Node.js ecosystem, JavaScript has become a widely used programming language for implementing server-side web applications. In this article, we present the first empirical study of static code analysis tools for detecting vulnerabilities in Node.js code. To conduct a comprehensive tool evaluation, we created the largest known curated dataset of Node.js code vulnerabilities. We characterized and annotated a set of 957 vulnerabilities by analyzing information contained in npm advisory reports. We tested nine different tools and found that many important vulnerabilities appearing in the OWASP top-10 are not detected by any tool. The three best performing tools combined only detect up to 57.6% of all vulnerabilities in the dataset, but at a very low precision of 0.11%. Our curated dataset offers a new benchmark to help characterize existing Node.js code vulnerabilities and foster the development of better vulnerability detection tools for Node.js code.

20 June 2024 in Proceedings of the ACM on Programming Languages
Verified
Journal Article
Open access
MFMafalda Ferreira
Mafalda Ferreira
MMMiguel Monteiro
Miguel Monteiro
TBTiago Brito
Tiago Brito
MCMiguel E. Coimbra
Miguel E. Coimbra
NSNuno Santos
Nuno Santos
JSJosé Fragoso Santos
José Fragoso Santos
While static analysis tools that rely on Code Property Graphs (CPGs) to detect security vulnerabilities have proven effective, deciding how much information to include in the graphs remains a challenge. Including less information can lead to a more scalable analysis but at the cost of reduced effectiveness in identifying vulnerability patterns, potentially resulting in classification errors. Conversely, more information in the graph allows for a more effective analysis but may affect scalability. For example, scalability issues have been recently highlighted in ODGen, the state-of-the-art CPG-based tool for detecting Node.js vulnerabilities. This paper examines a new point in the design space of CPGs for JavaScript vulnerability detection. We introduce the Multiversion Dependency Graph (MDG), a novel graph-based data structure that captures the state evolution of objects and their properties during program execution. Compared to the graphs used by ODGen, MDGs are significantly simpler without losing key information needed for vulnerability detection. We implemented Graph.js, a new MDG-based static vulnerability scanner specialized in analyzing npm packages and detecting taint-style and prototype pollution vulnerabilities. Our evaluation shows that Graph.js outperforms ODGen by significantly reducing both the false negatives and the analysis time. Additionally, we have identified 49 previously undiscovered vulnerabilities in npm packages.