arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2412.01655cs.AI
收藏

使用基于 Transformer 的神经架构进行命令行风险分类

Command-line Risk Classification using Transformer-based Neural Architectures

Huawei Munich Research Center(华为慕尼黑研究中心);Technical University of Munich(慕尼黑工业大学);University of Coimbra(科英布拉大学)

Paolo Notaro, Soroush Haeri, Jorge Cardoso, Michael Gerndt

AI总结:

针对 CLI 危险命令识别中规则系统维护成本高、通用文本分类器不适配脚本语言且类别不平衡的问题,提出基于 Transformer 与 LLM 迁移学习的风险分类系统,并在生产命令数据集上验证其有效性。

摘要:

为了保护满足日益增长的计算需求所必需的大规模计算环境,云服务提供商已实施安全措施来监控运维(O&M)活动,从而防止数据丢失和服务中断。命令拦截系统用于在危险的命令行界面(CLI)命令造成损害之前对其进行拦截、评估和阻止。传统的命令风险评估解决方案包括基于规则的系统,这类系统需要专家知识和持续的人工修订,以应对未见过的命令。为克服这些局限,已有若干端到端学习系统被提出用于对 CLI 命令进行分类。然而,这些系统还存在其他若干局限,包括采用通用文本分类器,这类分类器可能无法适应 Bash 或 PowerShell 等脚本语言的语言特征,并且在类别分布不平衡的情况下可能无法识别危险命令。本文提出一种基于 Transformer 的命令风险分类系统,该系统利用大语言模型(LLM)的泛化能力来提供准确分类,并通过利用迁移学习的力量,具备有效识别罕见危险命令的能力。我们在一个包含生产环境命令的真实数据集上验证了该方法的有效性,并展示了如何将我们的模型应用于其他安全相关任务,例如危险命令拦截以及对现有基于规则的系统进行审计。

英文摘要:

To protect large-scale computing environments necessary to meet increasing computing demand, cloud providers have implemented security measures to monitor Operations and Maintenance (O&M) activities and therefore prevent data loss and service interruption. Command interception systems are used to intercept, assess, and block dangerous Command-line Interface (CLI) commands before they can cause damage. Traditional solutions for command risk assessment include rule-based systems, which require expert knowledge and constant human revision to account for unseen commands. To overcome these limitations, several end-to-end learning systems have been proposed to classify CLI commands. These systems, however, have several other limitations, including the adoption of general-purpose text classifiers, which may not adapt to the language characteristics of scripting languages such as Bash or PowerShell, and may not recognize dangerous commands in the presence of an unbalanced class distribution. In this paper, we propose a transformer-based command risk classification system, which leverages the generalization power of Large Language Models (LLM) to provide accurate classification and the ability to identify rare dangerous commands effectively, by exploiting the power of transfer learning. We verify the effectiveness of our approach on a realistic dataset of production commands and show how to apply our model for other security-related tasks, such as dangerous command interception and auditing of existing rule-based systems.

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

↑