Abstract
Open source packages have source code available on repositories for inspection (e.g. on GitHub) but developers use pre-built packages directly from the package repositories (such as npm for JavaScript, PyPI for Python, or RubyGems for Ruby). Such convenient practice assumes that there are no discrepancies between source code and packages. These differences pose both operational risks (e.g. making dependent projects unable to compile) and security risks (e.g. deploying malicious code during package installation) in the software supply chain. Our empirical assessment of 2438 popular packages in PyPI with an analysis of around 10M lines of code shows several differences in the wild: modifications cannot be just attributed to malicious injections. Yet, scanning again all and whole most likely good but modified' packages is hard to manage for FOSS downstream users. We propose a methodology, LastPyMile, for identifying the differences between build artifacts of software packages and the respective source code repository. We show how it can be used to extend current package scanning practices for malware injection (which only covers less than 1% of the code of deployed packages).
| Original language | English |
|---|---|
| Title of host publication | ESEC/FSE 2021 |
| Subtitle of host publication | Proceedings of the 29th ACM Joint Meeting on European Software Engineering Conference and Symposium on the Foundations of Software Engineering |
| Editors | Diomidis Spinellis |
| Publisher | Association for Computing Machinery, Inc |
| Pages | 780-792 |
| Number of pages | 13 |
| ISBN (Electronic) | 9781450385626 |
| DOIs | |
| Publication status | Published - 2021 |
| Event | 29th ACM Joint Meeting European Software Engineering Conference and Symposium on the Foundations of Software Engineering, ESEC/FSE 2021 - Virtual, Online, Greece Duration: 23 Aug 2021 → 28 Aug 2021 |
Conference
| Conference | 29th ACM Joint Meeting European Software Engineering Conference and Symposium on the Foundations of Software Engineering, ESEC/FSE 2021 |
|---|---|
| Country/Territory | Greece |
| City | Virtual, Online |
| Period | 23/08/21 → 28/08/21 |
Bibliographical note
Publisher Copyright:© 2021 Owner/Author.
Funding
This research has been partly funded by the EU H2020 Programs H2020-EU.2.1.1-CyberSec4Europe (Grant No. 830929), AssureMoss (Grant No. 952647) and SPARTA project (Grant No. 830892).
| Funders | Funder number |
|---|---|
| Horizon 2020 Framework Programme | 952647, 830929 |
| EU H2020 Programs H2020-EU | 830892 |
UN SDGs
This output contributes to the following UN Sustainable Development Goals (SDGs)
-
SDG 17 Partnerships for the Goals
Keywords
- Open source software
- PyPI
- Python
- software supply chain
Fingerprint
Dive into the research topics of 'LastPyMile: Identifying the discrepancy between sources and packages'. Together they form a unique fingerprint.Cite this
- APA
- Author
- BIBTEX
- Harvard
- Standard
- RIS
- Vancouver