arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.15727cs.NIcs.AIcs.CRcs.IR
收藏

基于检索增强生成与思维链推理的LLM协议状态机推断评估

Retrieval Augmented Generation Based LLM Evaluation For Protocol State Machine Inference With Chain-of-Thought Reasoning

Faculty of Computer Science, MSA University(计算机科学学院,MSA大学)

Youssef Maklad, Fares Wael, Wael Elsersy, Ali Hamdi

AI总结:

本文提出一种结合RAG和思维链推理的智能体LLM架构,用于网络数据包种子生成与丰富化,通过动态参考RFC文档优化种子结构质量,在BLEU、ROUGE和WER指标上显著优于基线,提升了协议模糊测试发现隐藏漏洞的能力。

摘要:

本文提出一种新方法,评估基于RAG的智能体LLM架构在网络数据包种子生成与丰富化中的效率。结合思维链(COT)提示技术,该方法专注于提升种子的结构质量,以引导协议模糊测试框架广泛探索协议状态空间。该方法利用RAG和文本嵌入,动态参考RFC文档知识库来回答有关协议有限状态机(FSM)的查询,随后对检索到的知识进行迭代推理,以优化输出并正确放置种子。接着,通过将生成的数据包与真实数据包进行对比,基于BLEU、ROUGE和词错率(WER)等指标评估智能体输出的响应结构质量。实验表明,与基线模型相比,BLEU、ROUGE和WER分别显著提升了18.19%、14.81%和23.45%。这些结果证实了该方法的潜力,可改进基于LLM的协议模糊测试框架,以识别隐藏漏洞。

英文摘要:

This paper presents a novel approach to evaluate the efficiency of a RAG-based agentic Large Language Model (LLM) architecture for network packet seed generation and enrichment. Enhanced by chain-of-thought (COT) prompting techniques, the proposed approach focuses on the improvement of the seeds' structural quality in order to guide protocol fuzzing frameworks through a wide exploration of the protocol state space. Our method leverages RAG and text embeddings to dynamically reference to the Request For Comments (RFC) documents knowledge base for answering queries regarding the protocol's Finite State Machine (FSM), then iteratively reasons through the retrieved knowledge, for output refinement and proper seed placement. We then evaluate the response structure quality of the agent's output, based on metrics as BLEU, ROUGE, and Word Error Rate (WER) by comparing the generated packets against the ground-truth packets. Our experiments demonstrate significant improvements of up to 18.19%, 14.81%, and 23.45% in BLEU, ROUGE, and WER, respectively, over baseline models. These results confirm the potential of such approach, improving LLM-based protocol fuzzing frameworks for the identification of hidden vulnerabilities.

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

↑