arXiv:2409.02074cs.CRcs.HC2024-09中稿 · NDSS Symposium 202…被引 24

让大模型读懂恶意命令的意图,还能解释为啥这么干。

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

  • 用专业知识增强大模型,理解命令行为与深层目的
  • 可解释未知私有命令,准确率超基线30%以上
  • 适合安全分析、红蓝对抗和威胁情报人员

恶意 shell 命令是众多网络攻击的核心,但因其结构复杂且常被伪装,安全分析师难以理解。大语言模型(LLM)为生成可读解释提供了可能,但通用模型缺乏专业背景,易产生幻觉。本文提出 Raconteur,一个具备专业知识、表达力强且可移植的壳命令解释器。它不仅揭示命令的执行行为,还阐明其设计目的,并将自然语言解释映射到 MITRE ATT&CK 框架中的标准技术与战术,以揭示攻击意图。为支持对未见私有命令的解释,我们还开发了文档检索器,从辅助文档中获取相关信息辅助推理。我们构建了大规模训练数据集并进行了广泛实验,结果表明 Raconteur 能提供高质量解释与深入洞察,显著优于现有方法。

原文摘要 · Abstract (English)

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.

安全分析大模型命令解释ATT&CK

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。