Lune

ICSE2023顶会

Bad Snakes: Understanding and Improving Python Package Index Malware Scanning

Duc-Ly Vu, Zachary Newman, John Speed Meyers

摘要

While attackers often distribute malware to victims via open-source, community-driven package repositories, these repositories do not currently run automated malware detection systems. In this work, we explore the security goals of the repository administrators and the requirements for deployments of such malware scanners via a case study of the Python ecosystem and PyPI repository, which includes interviews with administrators and maintainers. Further, we evaluate existing malware detection techniques for deployment in this setting by creating a benchmark dataset and comparing several existing tools, including the malware checks implemented in PyPI, Ban-dit4Mal, and OSSGadget's OSS Detect Backdoor.

We find that repository administrators have exacting technical demands for such malware detection tools. Specifically, they consider a false positive rate of even 0.01% to be unacceptably high, given the large number of package releases that might trigger false alerts. Measured tools have false positive rates between 15% and 97%; increasing thresholds for detection rules to reduce this rate renders the true positive rate useless. In some cases, these checks emitted alerts more often for benign packages than malicious ones. However, we also find a successful socio-technical malware detection system: external security researchers also perform repository malware scans and report the results to repository administrators. These parties face different incentives and constraints on their time and tooling. We conclude with recommendations for improving detection capabilities and strengthening the collaboration between security researchers and software repository administrators.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 8 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Efficient Code Analysis via Graph Representation Learning-Guided Large Language Models 引用了 Towards Measuring Supply Chain Attacks on Package Managers for Interpreted Languages
  • Efficient Code Analysis via Graph Representation Learning-Guided Large Language Models 引用了 Leveraging Large Language Models to Detect NPM Malicious Packages
  • SpiderScan: Practical Detection of Malicious NPM Packages Based on Graph-Based Behavior Modeling and Matching 引用了 LastPyMile: identifying the discrepancy between sources and packages
  • SpiderScan: Practical Detection of Malicious NPM Packages Based on Graph-Based Behavior Modeling and Matching 引用了 Towards Measuring Supply Chain Attacks on Package Managers for Interpreted Languages
  • SpiderScan: Practical Detection of Malicious NPM Packages Based on Graph-Based Behavior Modeling and Matching 引用了 SoK: Taxonomy of Attacks on Open-Source Software Supply Chains
  • SpiderScan: Practical Detection of Malicious NPM Packages Based on Graph-Based Behavior Modeling and Matching 引用了 Practical Automated Detection of Malicious npm Packages
  • LastPyMile: identifying the discrepancy between sources and packages 引用了 Towards Measuring Supply Chain Attacks on Package Managers for Interpreted Languages
  • Bridging Expert Reasoning and LLM Detection: A Knowledge-Driven Framework for Malicious Packages 引用了 SpiderScan: Practical Detection of Malicious NPM Packages Based on Graph-Based Behavior Modeling and Matching
  • Bridging Expert Reasoning and LLM Detection: A Knowledge-Driven Framework for Malicious Packages 引用了 Practical Automated Detection of Malicious npm Packages
  • Bridging Expert Reasoning and LLM Detection: A Knowledge-Driven Framework for Malicious Packages 引用了 Leveraging Large Language Models to Detect NPM Malicious Packages
  • SoK: Taxonomy of Attacks on Open-Source Software Supply Chains 引用了 LastPyMile: identifying the discrepancy between sources and packages
  • SoK: Taxonomy of Attacks on Open-Source Software Supply Chains 引用了 Towards Measuring Supply Chain Attacks on Package Managers for Interpreted Languages
  • SoK: Taxonomy of Attacks on Open-Source Software Supply Chains 引用了 Practical Automated Detection of Malicious npm Packages
  • Practical Automated Detection of Malicious npm Packages 引用了 LastPyMile: identifying the discrepancy between sources and packages
  • Practical Automated Detection of Malicious npm Packages 引用了 Towards Measuring Supply Chain Attacks on Package Managers for Interpreted Languages
  • Leveraging Large Language Models to Detect NPM Malicious Packages 引用了 LastPyMile: identifying the discrepancy between sources and packages
  • Leveraging Large Language Models to Detect NPM Malicious Packages 引用了 Towards Measuring Supply Chain Attacks on Package Managers for Interpreted Languages
  • Leveraging Large Language Models to Detect NPM Malicious Packages 引用了 Practical Automated Detection of Malicious npm Packages
  • Cutting the Gordian Knot: Detecting Malicious PyPI Packages via a Knowledge-Mining Framework 引用了 LastPyMile: identifying the discrepancy between sources and packages
  • Cutting the Gordian Knot: Detecting Malicious PyPI Packages via a Knowledge-Mining Framework 引用了 Towards Measuring Supply Chain Attacks on Package Managers for Interpreted Languages
  • Cutting the Gordian Knot: Detecting Malicious PyPI Packages via a Knowledge-Mining Framework 引用了 Practical Automated Detection of Malicious npm Packages
  • Cutting the Gordian Knot: Detecting Malicious PyPI Packages via a Knowledge-Mining Framework 引用了 Leveraging Large Language Models to Detect NPM Malicious Packages
  • What the Fork? Finding Hidden Code Clones in npm 引用了 Towards Measuring Supply Chain Attacks on Package Managers for Interpreted Languages
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper8

  1. Leveraging Large Language Models to Detect NPM Malicious PackagesNusrat Zahan, Philipp Burckhardt, Mikola Lysenko, Feross Aboukhadijeh 等ICSE 2025 · 8 次引用
  2. SpiderScan: Practical Detection of Malicious NPM Packages Based on Graph-Based Behavior Modeling and MatchingYiheng Huang, Ruisi Wang, Wen Zheng, Zhuotong Zhou 等ASE 2024 · 4 次引用
  3. Efficient Code Analysis via Graph Representation Learning-Guided Large Language ModelsHang Gao, Tao Peng, Baoquan Cui, Hong Huang 等ICML 2026 · 1 次引用
  4. Cutting the Gordian Knot: Detecting Malicious PyPI Packages via a Knowledge-Mining FrameworkWenbo Guo, Chengwei Liu, Ming Kang, Yiran Zhang 等USENIX Security 2026 · 1 次引用
  5. Bridging Expert Reasoning and LLM Detection: A Knowledge-Driven Framework for Malicious PackagesWenbo Guo, Shiwen Song, Jiaxun Guo, Zhengzi Xu 等WWW 2026

它引用的 Paper5

  1. Practical Automated Detection of Malicious npm PackagesAdriana Sejfia, Max SchäferICSE 2022 · 65 次引用
  2. LastPyMile: identifying the discrepancy between sources and packagesDuc-Ly Vu, Fabio Massacci, Ivan Pashchenko, Henrik Plate 等FSE 2021 · 53 次引用
  3. What the Fork? Finding Hidden Code Clones in npmElizabeth Wyss, Lorenzo De Carli, Drew DavidsonICSE 2022 · 10 次引用
  4. Towards Measuring Supply Chain Attacks on Package Managers for Interpreted LanguagesRuian Duan, Omar Alrawi, Ranjita Pai Kasturi, Ryan Elder 等NDSS 2021
  5. SoK: Taxonomy of Attacks on Open-Source Software Supply ChainsPiergiorgio Ladisa, Henrik Plate, Matias Martinez, Olivier BaraisS&P 2023

相关 Paper

  1. An Empirical Study of Malicious Code In PyPI EcosystemWenbo Guo, Zhengzi Xu, Chengwei Liu, Cheng Huang 等ASE 2023 · 31 次引用
  2. PyFEX: Uncovering Evasive Python-based Threats via Resilient and Exhaustive Path ExplorationMeng Wang, Yue Ma, Majid Garoosi, Wenting Fan 等CCS 2026
  3. A Needle is an Outlier in a Haystack: Hunting Malicious PyPI Packages with Code ClusteringWentao Liang, Xiang Ling, Jingzheng Wu, Tianyue Luo 等ASE 2023 · 15 次引用
  4. Uncovering Similar but Different Packages in PyPI and Potential Security ThreatsSunha Park, Soojin Han, Seunghoon WooFSE 2026
  5. ConfuGuard: Using Metadata to Detect Active and Stealthy Package Confusion Attacks Accurately and at ScaleWenxin Jiang, Berk Çakar, Mikola Lysenko, James C DavisICSE 2026 · 2 次引用
黄昏的海面,两侧是细线勾勒的悬崖