从歧义到明确:NLP辅助的5G规范抽象用于形式化分析
From Ambiguity to Explicitness: NLP-Assisted 5G Specification Abstraction for Formal Analysis
AI总结:
针对5G协议自然语言歧义导致形式化验证难以应用的问题,本文提出NLP辅助的两步混合流水线,自动提取标识符和形式化属性,最优模型准确率分别达39%和42%,为5G及下一代通信的大规模协议形式化分析提供了概念验证。
摘要:
基于形式化方法的5G无线通信协议分析对于识别逻辑漏洞和促进全面的安全评估至关重要,尤其是在设计阶段。自然语言处理(NLP)辅助技术及大多数工具尚未被工业界和研究界广泛采用。传统的通过数学方法进行的形式化验证严重依赖人工逻辑抽象,容易耗时且易出错。NLP辅助方法未能在工业研究中应用的原因可能在于协议设计自然语言本质上的歧义性与形式化验证的明确性之间存在矛盾。为了应对在协议设计中采用形式化方法的挑战,本研究以用自然语言编写的(3GPP)协议为对象,提出了一种混合方法来简化协议分析。我们引入了一个两步流水线:首先使用NLP工具构建数据,然后利用构建的数据通过NLP模型提取标识符和形式化属性。提取出的标识符和形式化属性进一步用于形式化分析。我们实现了三个模型,它们以标识符与形式化属性之间的不同依赖关系作为准则。最优模型的结果在标识符提取上达到39%的有效准确率,在形式化属性预测上达到42%的有效准确率。我们的工作是对大规模复杂规范和协议分析执行形式化分析的高效流程的概念验证,尤其适用于5G和下一代(nextG)通信。
英文摘要:
Formal method-based analysis of the 5G Wireless Communication Protocol is crucial for identifying logical vulnerabilities and facilitating an all-encompassing security assessment, especially in the design phase. Natural Language Processing (NLP) assisted techniques and most of the tools are not widely adopted by the industry and research community. Traditional formal verification through a mathematics approach heavily relied on manual logical abstraction prone to being time-consuming, and error-prone. The reason that the NLP-assisted method did not apply in industrial research may be due to the ambiguity in the natural language of the protocol designs nature is controversial to the explicitness of formal verification. To address the challenge of adopting the formal methods in protocol designs, targeting (3GPP) protocols that are written in natural language, in this study, we propose a hybrid approach to streamline the analysis of protocols. We introduce a two-step pipeline that first uses NLP tools to construct data and then uses constructed data to extract identifiers and formal properties by using the NLP model. The identifiers and formal properties are further used for formal analysis. We implemented three models that take different dependencies between identifiers and formal properties as criteria. Our results of the optimal model reach valid accuracy of 39% for identifier extraction and 42% for formal properties predictions. Our work is proof of concept for an efficient procedure in performing formal analysis for largescale complicate specification and protocol analysis, especially for 5G and nextG communications.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。