arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2408.16198cs.SE
收藏

Chain-of-Experts (CoE):通过代码克隆搜索逆向工程 JavaScript 应用程序束的软件物料清单

Chain-of-Experts (CoE): Reverse Engineering Software Bills of Materials for JavaScript Application Bundles through Code Clone Search

Leo Song, Steven H. H. Ding, Yuan Tian, Li Tao Li, Philippe Charland, Andrew Walenstein

AI总结:

针对JavaScript应用程序束逆向生成SBoM的挑战,本文提出多任务深度学习模型Chain-of-Experts (CoE),通过代码分割、分类和克隆检索三个任务,首次为真实世界JavaScript应用束的SBoM生成提供了可扩展、高效且端到端的解决方案。

摘要:

软件物料清单(SBoM)是软件制品中所有组件、库和模块的详细清单,在整个软件供应链中提供可追溯性。由于动态语法和无缝的供应链集成,JavaScript在软件工程中日益普及,导致面临漏洞和攻击的风险显著增加。JavaScript应用程序束是为部署目的而组装的、经过符号剥离和优化的代码集合。通过逆向工程过程从JavaScript应用程序束生成SBoM,即使无法访问原始依赖图,也能确保供应商软件发布的完整性、安全性和合规性。本文提出了针对JavaScript应用程序束生成SBoM的首项研究。我们确定了该任务的三个关键挑战,即嵌套代码作用域、超长序列和巨大的检索空间。为了应对这些挑战,我们引入了Chain-of-Experts (CoE),这是一个多任务深度学习模型,旨在通过三项任务生成SBoM:代码分割、代码分类和代码克隆检索。我们在500个包含超过66,000个依赖项的Web应用程序束上评估了CoE,并与单独的特定任务解决方案进行了比较。实验结果表明,与组合的单独特定任务解决方案相比,CoE在更少的训练和推理时间下提供了具有竞争力的结果。因此,CoE为真实世界JavaScript应用程序束的SBoM生成提供了首个可扩展、高效且端到端的解决方案。

英文摘要:

A Software Bill of Materials (SBoM) is a detailed inventory of all components, libraries, and modules in a software artifact, providing traceability throughout the software supply chain. With the increasing popularity of JavaScript in software engineering due to its dynamic syntax and seamless supply chain integration, the exposure to vulnerabilities and attacks has risen significantly. A JavaScript application bundle, which is a consolidated, symbol-stripped, and optimized assembly of code for deployment purpose. Generating a SBoM from a JavaScript application bundle through a reverse-engineering process ensures the integrity, security, and compliance of the supplier's software release, even without access to the original dependency graphs. This paper presents the first study on SBoM generation for JavaScript application bundles. We identify three key challenges for this task, i.e., nested code scopes, extremely long sequences, and large retrieval spaces. To address these challenges, we introduce Chain-of-Experts (CoE), a multi-task deep learning model designed to generate SBoMs through three tasks: code segmentation, code classification, and code clone retrieval. We evaluate CoE against individual task-specific solutions on 500 web application bundles with over 66,000 dependencies. Our experimental results demonstrate that CoE offers competitive outcomes with less training and inference time when compared with combined individual task-specific solutions. Consequently, CoE provides the first scalable, efficient, and end-to-end solution for the SBoM generation of real-world JavaScript application bundles.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑