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

RACONTEUR:一个知识渊博、富有洞察力且可移植的基于大语言模型的Shell命令解释器

RACONTEUR: A Knowledgeable, Insightful, and Portable LLM-Powered Shell Command Explainer

Zhejiang University(浙江大学);Ant Group(蚂蚁集团)

Jiangyi Deng, Xinfeng Li, Yanjiao Chen, Yijie Bai, Haiqin Weng, Yan Liu, Tao Wei, Wenyuan Xu

AI总结:

本文提出Raconteur,一个注入专业知识并结合MITRE ATT&CK与文档检索器的大语言模型Shell命令解释器,通过大规模实验验证其能高质量解释命令行为、目的及攻击意图。

摘要:

恶意Shell命令是许多网络攻击的关键环节,但由于其代码结构复杂且经常被伪装,安全分析师可能难以理解。大语言模型(LLMs)的进展为生成可理解的Shell命令解释提供了可能。然而,现有的通用大语言模型在Shell命令解释任务中存在缺乏专业知识以及容易产生幻觉的问题。在本文中,我们提出了Raconteur,一个由大语言模型驱动的知识渊博、表达力强且可移植的Shell命令解释器。Raconteur被注入了专业知识,能够对Shell命令提供全面的解释,不仅包括命令做了什么(即行为),还包括命令为什么这样做(即目的)。为了揭示命令的高层意图,我们还将基于自然语言的解释转换为由MITRE ATT&CK(全球网络安全知识库)定义的标准技术与战术。为了使Raconteur能够解释未见过的私有命令,我们进一步开发了一个文档检索器,从补充文档中获取相关信息以辅助解释过程。我们创建了一个大规模数据集用于训练,并进行了大量实验来评估Raconteur在Shell命令解释方面的能力。实验验证了Raconteur能够提供高质量的解释以及对命令意图的深入洞察。

英文摘要:

Malicious shell commands are linchpins to many cyber-attacks, but may not be easy to understand by security analysts due to complicated and often disguised code structures. Advances in large language models (LLMs) have unlocked the possibility of generating understandable explanations for shell commands. However, existing general-purpose LLMs suffer from a lack of expert knowledge and a tendency to hallucinate in the task of shell command explanation. In this paper, we present Raconteur, a knowledgeable, expressive and portable shell command explainer powered by LLM. Raconteur is infused with professional knowledge to provide comprehensive explanations on shell commands, including not only what the command does (i.e., behavior) but also why the command does it (i.e., purpose). To shed light on the high-level intent of the command, we also translate the natural-language-based explanation into standard technique & tactic defined by MITRE ATT&CK, the worldwide knowledge base of cybersecurity. To enable Raconteur to explain unseen private commands, we further develop a documentation retriever to obtain relevant information from complementary documentations to assist the explanation process. We have created a large-scale dataset for training and conducted extensive experiments to evaluate the capability of Raconteur in shell command explanation. The experiments verify that Raconteur is able to provide high-quality explanations and in-depth insight of the intent of the command.

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

↑