Towards Robust Detection of Open Source Software Supply Chain Poisoning Attacks in Industry Environments
Xinyi Zheng, Chen Wei, Shenao Wang, Yanjie Zhao, Peiming Gao, Yuanchao, Zhang, Kailong Wang, Haoyu Wang

TL;DR
This paper introduces OSCAR, a dynamic analysis pipeline for detecting open-source package poisoning attacks in industry environments, significantly reducing false positives and effectively identifying malicious packages in NPM and PyPI ecosystems.
Contribution
OSCAR is a novel dynamic detection system that fully executes packages, employs fuzz testing, and monitors behavior with API hooks, improving detection accuracy and reducing false positives in real-world industrial settings.
Findings
Achieves F1 scores of 0.95 in NPM and 0.91 in PyPI.
Reduces false positive rates by over 30% compared to existing tools.
Identified over 11,600 malicious packages in a real-world deployment.
Abstract
The exponential growth of open-source package ecosystems, particularly NPM and PyPI, has led to an alarming increase in software supply chain poisoning attacks. Existing static analysis methods struggle with high false positive rates and are easily thwarted by obfuscation and dynamic code execution techniques. While dynamic analysis approaches offer improvements, they often suffer from capturing non-package behaviors and employing simplistic testing strategies that fail to trigger sophisticated malicious behaviors. To address these challenges, we present OSCAR, a robust dynamic code poisoning detection pipeline for NPM and PyPI ecosystems. OSCAR fully executes packages in a sandbox environment, employs fuzz testing on exported functions and classes, and implements aspect-based behavior monitoring with tailored API hook points. We evaluate OSCAR against six existing tools using a…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
