Ambush From All Sides: Understanding Security Threats in Open-Source Software CI/CD Pipelines

被引:1
|
作者
Pan, Ziyue [1 ]
Shen, Wenbo [2 ,5 ]
Wang, Xingkai [2 ]
Yang, Yutian [3 ]
Chang, Rui [2 ,5 ]
Liu, Yao [6 ]
Liu, Chengwei [7 ]
Liu, Yang [7 ]
Ren, Kui [4 ,5 ]
机构
[1] Zhejiang Univ, Informat Secur, Hangzhou 310027, Zhejiang, Peoples R China
[2] Zhejiang Univ, Hangzhou 310027, Zhejiang, Peoples R China
[3] Zhejiang Univ, Dept Comp Sci, Hangzhou 310027, Zhejiang, Peoples R China
[4] Zhejiang Univ, Coll Comp Sci & Technol, Hangzhou 310027, Zhejiang, Peoples R China
[5] ZJU Hangzhou Global Sci & Technol Innovat Ctr, Key Lab Blockchain & Cyberspace Governance Zhejian, Hangzhou 310027, Peoples R China
[6] Univ S Florida, Dept Comp Sci & Engn, Tampa, FL 33620 USA
[7] Nanyang Technol Univ, Sch Comp Sci & Engn, Singapore 639798, Singapore
关键词
Pipelines; Software development management; Software; Security; Source coding; Internet; Codes; Attack surface; CI/CD script; GitHub actions; pipeline; CONTINUOUS INTEGRATION;
D O I
10.1109/TDSC.2023.3253572
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
The continuous integration and continuous deployment (CI/CD) pipelines are widely adopted on Internet hosting platforms, such as GitHub. However, current CI/CD pipelines suffer from malicious code and severe vulnerabilities. Even worse, people have not been fully aware of its attack surfaces and the corresponding impacts. Therefore, in this paper, we conduct a large-scale measurement and a systematic analysis to reveal the attack surfaces of the CI/CD pipeline and quantify their security impacts. Specifically, for the measurement, we collect a data set of 320,000+ CI/CD pipeline-configured GitHub repositories and build an analysis tool to parse the CI/CD pipelines and extract security-critical usages. Our measurement reveals that the script runtimes are prone to code hiding while the script usage update is not in time, giving attackers chances to hide malicious code and exploit existing vulnerabilities. Moreover, even the scripts from verified creators may contain severe vulnerabilities. Besides current CI/CD ecosystem heavily relies on several core scripts, which may lead to a single point of failure. While the CI/CD pipelines contain sensitive information/operations, making them the attacker's favorite targets. Inspired by the measurement findings, we abstract the threat model and the attack approach toward CI/CD pipelines, followed by a systematic analysis of attack surfaces, attack strategies, and the corresponding impacts. We further launch case studies on five attacks in real-world CI/CD environments to validate the revealed attack surfaces. Finally, we give suggestions on mitigating attacks on CI/CD scripts, including securing CI/CD configurations, securing CI/CD scripts, and improving CI/CD infrastructure.
引用
收藏
页码:403 / 418
页数:16
相关论文
共 7 条
  • [1] The Prisoner's Dilemma of Open-Source Software Security
    Koch, Christian
    COMPUTER, 2024, 57 (10) : 82 - 85
  • [2] OpenToolFlux: An Open-Source Software for Estimating Gas Fluxes from Automatic Chamber Data
    Galea, Carmen
    Sanz-Cobena, Alberto
    Lassaletta, Luis
    Monistrol, Alba
    Vallejo, Antonio
    Einarsson, Rasmus
    AGRONOMY-BASEL, 2023, 13 (11):
  • [3] AI-based open-source software for cephalometric analysis from limited FOV radiographs
    Zecca, Piero Antonio
    Caccia, Margherita
    Levrini, Luca
    Carganico, Andrea
    Reguzzoni, Marcella
    Donadio, Davide
    Tosi, Davide
    Protasoni, Marina
    JOURNAL OF DENTISTRY, 2024, 151
  • [4] How to Annotate Freezing of Gait from Video: A Standardized Method Using Open-Source Software
    Gilat, Moran
    JOURNAL OF PARKINSONS DISEASE, 2019, 9 (04) : 821 - 824
  • [5] Accessible from the open web: a qualitative analysis of the available open-source information involving cyber security and critical infrastructure
    Zhang, Yuxuan
    Frank, Richard
    Warkentin, Noelle
    Zakimi, Naomi
    JOURNAL OF CYBERSECURITY, 2022, 8 (01):
  • [6] AirSeaFluxCode: Open-source software for calculating turbulent air-sea fluxes from meteorological parameters
    Biri, Stavroula
    Cornes, Richard C.
    Berry, David I.
    Kent, Elizabeth C.
    Yelland, Margaret J.
    FRONTIERS IN MARINE SCIENCE, 2023, 9
  • [7] Hapl-o-Mat: open-source software for HLA haplotype frequency estimation from ambiguous and heterogeneous data
    Schaefer, Christian
    Schmidt, Alexander H.
    Sauter, Juergen
    BMC BIOINFORMATICS, 2017, 18