自动提取用 Java 编写的微服务应用的富安全数据流图
Automatic Extraction of Security-Rich Dataflow Diagrams for Microservice Applications written in Java
AI总结:
针对 Java 微服务应用,提出通过解析源码与配置、迭代滚雪球发现关键词并结合多类检测自动生成富安全 DFD 的工具化方法,在17个开源应用上达到93%精确率和85%召回率。
摘要:
数据流图(DFD)是保护应用安全的宝贵资产,因为它们是许多安全评估技术的起点。然而,DFD 的创建通常是手动完成的,这既耗时,又会带来与其正确性相关的问题。此外,随着应用在 CI/CD 流水线中不断扩展和修改,DFD 需要保持同步,这同样具有挑战性。在本文中,我们提出了一种新颖的、由工具支持的技术,用于从微服务的实现代码中自动提取 DFD。该技术解析源代码和配置文件,以搜索用作模型提取证据的关键词。我们的方法采用一种新颖技术,可迭代检测新的关键词,从而像滚雪球一样遍历应用的代码库。结合其他检测技术,它生成一个成熟的、富含安全相关注释的 DFD。提取出的 DFD 还提供模型项与代码片段之间的完整可追溯性。我们在一个由 17 个开源应用组成的人工整理数据集上,针对用 Java 编写的应用评估了我们的方法及配套原型。在我们的应用测试集中,我们观察到总体精确率为 93%,召回率为 85%。
英文摘要:
Dataflow diagrams (DFDs) are a valuable asset for securing applications, as they are the starting point for many security assessment techniques. Their creation, however, is often done manually, which is time-consuming and introduces problems concerning their correctness. Furthermore, as applications are continuously extended and modified in CI/CD pipelines, the DFDs need to be kept in sync, which is also challenging. In this paper, we present a novel, tool-supported technique to automatically extract DFDs from the implementation code of microservices. The technique parses source code and configuration files in search for keywords that are used as evidence for the model extraction. Our approach uses a novel technique that iteratively detects new keywords, thereby snowballing through an application's codebase. Coupled with other detection techniques, it produces a fully-fledged DFD enriched with security-relevant annotations. The extracted DFDs further provide full traceability between model items and code snippets. We evaluate our approach and the accompanying prototype for applications written in Java on a manually curated dataset of 17 open-source applications. In our testing set of applications, we observe an overall precision of 93% and recall of 85%.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。