Published September 16, 2025 | Version v1

The Hidden Dangers of Public Serverless Repositories: An Empirical Security Assessment

  • 1. Telefonica Research, Spain
  • 2. Kwangwoon University, Republic of Korea
  • 3. University of Padua, Italy
  • 4. Örebro University, Sweden
  • 5. King Abdullah University of Science and Technology, Saudi Arabia

Description

Serverless computing has rapidly emerged as a prominent cloud paradigm, enabling developers to focus solely on application logic without the burden of managing servers or underlying infrastructure. Public serverless repositories have become key to accelerating the development of serverless applications. However, their growing popularity makes them attractive targets for adversaries. Despite this, the security posture of these repositories remains largely unexplored, exposing developers and organizations to potential risks. In this paper, we present the first comprehensive analysis of the security landscape of serverless components hosted in public repositories. We analyse 2,758 serverless components from five widely used public repositories popular among developers and enterprises, and 125,936 Infrastructure as Code (IaC) templates across three widely used IaC frameworks. Our analysis reveals systemic vulnerabilities including outdated software packages, misuse of sensitive parameters, exploitable deployment configurations, susceptibility to typo-squatting attacks and opportunities to embed malicious behaviour within compressed serverless components. Finally, we provide practical recommendations to mitigate these threats.

Notes (English)

Acknowledgments. We thank the anonymous reviewers for their insightful feedback and help in improving this paper. This research received funding from the Smart Networks and Services Joint Undertaking (SNS JU) under the European Union’s Horizon Europe programme: ELASTIC (GA#101139067); Horizon Europe: FLUIDOS (GA#101070473) and LAZARUS (GA#101070303); and the UNICO I+D Cloud program funded by the Ministry of Economic Affairs and Digital Transformation and the European Union–NextGenerationEU within the framework of the Plan de Recuperación, Transformación y Resiliencia (PRTR) with the CLOUDLESS project. This work was partially supported by project SERICS (PE00000014) under the NRRP MUR program funded by the EU-NGEU. Additionally, this work was partly supported by the National Research Foundation of Korea (NRF) grant funded by the Korea government (MSIT) (No. RS-2024-00457937, Design and implementation of security layers for secure WebAssembly-based serverless environments). The content of this article does not reflect the official opinion of the EU. Responsibility for the information and views expressed lies entirely with the authors.

Files

Marin_etal_ESORICS2025.pdf

Files (715.0 kB)

Name Size Download all
md5:32a5bcd6153d3d8ebf65cbe7f873d441
715.0 kB Preview Download

Additional details

Funding

European Commission
ELASTIC - Efficient, portabLe And Secure orchesTration for reliable servICes 101139067
European Commission
FLUIDOS - Flexible, scaLable and secUre decentralIzeD Operating System 101070473
European Commission
LAZARUS - pLatform for Analysis of Resilient and secUre Software 101070303