arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2407.00246cs.CRcs.SE
收藏

SBOM.EXE:基于 Java 软件物料清单对抗动态代码注入

SBOM.EXE: Countering Dynamic Code Injection based on Software Bill of Materials in Java

Aman Sharma, Martin Wittlinger, Benoit Baudry, Martin Monperrus

AI总结:

本文提出 SBOM.EXE 系统,通过基于 Java 应用完整软件供应链构建运行时类白名单,阻止恶意或篡改类执行,并在 3 个真实开源应用中验证其能以极小性能开销有效缓解动态类加载攻击。

摘要:

随着软件开发日益依赖来自多个且通常未经核实来源的贡献,软件供应链攻击已成为重大威胁。来自未核实来源的代码在执行之前并不构成威胁。Log4Shell 是供应链攻击的一个近期实例,它在运行时处理恶意输入,导致远程代码执行。该攻击利用 Java 的动态类加载机制破坏了应用程序的运行时完整性。传统防护措施可以在构建阶段缓解供应链攻击,但在缓解由动态加载的恶意类所带来的运行时威胁方面存在局限。这需要一种能够在运行时检测这些恶意类并阻止其执行的系统。本文介绍了 SBOM.EXE,一个旨在保护 Java 应用程序免受此类威胁的前瞻性系统。SBOM.EXE 基于应用程序的完整软件供应链构建一个全面的允许类白名单。该白名单在运行时强制执行,阻止任何未识别或被篡改的类执行。我们通过缓解基于上述威胁的 3 个关键 CVE 来评估 SBOM.EXE 的有效性。我们使用 3 个开源 Java 应用程序运行我们的工具,并报告我们的工具与真实世界应用程序兼容,且性能开销极小。我们的研究结果表明,SBOM.EXE 能够以极小的性能影响有效维护运行时完整性,为强化 Java 应用程序以抵御动态类加载攻击提供了一种新颖的方法。

英文摘要:

Software supply chain attacks have become a significant threat as software development increasingly relies on contributions from multiple, often unverified sources. The code from unverified sources does not pose a threat until it is executed. Log4Shell is a recent example of a supply chain attack that processed a malicious input at runtime, leading to remote code execution. It exploited the dynamic class loading facilities of Java to compromise the runtime integrity of the application. Traditional safeguards can mitigate supply chain attacks at build time, but they have limitations in mitigating runtime threats posed by dynamically loaded malicious classes. This calls for a system that can detect these malicious classes and prevent their execution at runtime. This paper introduces SBOM.EXE, a proactive system designed to safeguard Java applications against such threats. SBOM.EXE constructs a comprehensive allowlist of permissible classes based on the complete software supply chain of the application. This allowlist is enforced at runtime, blocking any unrecognized or tampered classes from executing. We assess SBOM.EXE's effectiveness by mitigating 3 critical CVEs based on the above threat. We run our tool with 3 open-source Java applications and report that our tool is compatible with real-world applications with minimal performance overhead. Our findings demonstrate that SBOM.EXE can effectively maintain runtime integrity with minimal performance impact, offering a novel approach to fortifying Java applications against dynamic classloading attacks.

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

↑