arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2411.01176cs.CL
收藏

CmdCaliper:面向安全研究的语义感知命令行嵌入模型与数据集

CmdCaliper: A Semantic-Aware Command-Line Embedding Model and Dataset for Security Research

CyCraft AI Lab(CyCraft人工智能实验室);National Yang Ming Chiao Tung University(国立阳明交通大学)

Sian-Yao Huang, Cheng-Lin Yang, Che-Yu Lin, Chun-Ying Huang

AI总结:

针对网络安全领域命令行嵌入缺乏数据集的问题,构建了含真实测试对的CyPHER数据集,提出轻量的CmdCaliper嵌入模型,性能超越参数十倍的SOTA模型,并开源相关资源。

摘要:

本研究针对网络安全领域的命令行嵌入问题展开——该领域因隐私与监管顾虑缺乏全面数据集,发展受阻。我们提出首个用于训练与无偏评估的相似命令行数据集,命名为CyPHER。训练集由一组大语言模型(LLM)生成,包含28520个相似命令行对;测试集则包含2807个来自真实命令行数据的相似命令行对。\n此外,我们提出名为CmdCaliper的命令行嵌入模型,可计算命令行的语义相似度。性能评估显示,最小版本的CmdCaliper(3000万参数)在多项任务(如恶意命令行检测、相似命令行检索)上,性能优于参数规模是其十倍的当前最优(SOTA)句子嵌入模型。\n本研究探索了在网络安全领域使用LLM生成数据的可行性,还将所提出的命令行数据集、嵌入模型权重及所有程序代码公开发布,为后续研究者开展更高效的命令行嵌入研究奠定了基础。

英文摘要:

This research addresses command-line embedding in cybersecurity, a field obstructed by the lack of comprehensive datasets due to privacy and regulation concerns. We propose the first dataset of similar command lines, named CyPHER, for training and unbiased evaluation. The training set is generated using a set of large language models (LLMs) comprising 28,520 similar command-line pairs. Our testing dataset consists of 2,807 similar command-line pairs sourced from authentic command-line data. In addition, we propose a command-line embedding model named CmdCaliper, enabling the computation of semantic similarity with command lines. Performance evaluations demonstrate that the smallest version of CmdCaliper (30 million parameters) suppresses state-of-the-art (SOTA) sentence embedding models with ten times more parameters across various tasks (e.g., malicious command-line detection and similar command-line retrieval). Our study explores the feasibility of data generation using LLMs in the cybersecurity domain. Furthermore, we release our proposed command-line dataset, embedding models' weights and all program codes to the public. This advancement paves the way for more effective command-line embedding for future researchers.

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

↑