arXiv:2410.23894cs.CRcs.LG2024-10被引 11

大模型可生成难检测的自变异恶意代码,威胁安全防护体系。

Metamorphic Malware Evolution: The Potential and Peril of Large Language Models

  • 用大模型自动改写代码,保持功能同时隐藏特征。
  • 测试显示模型能生成多轮变异代码,绕过传统检测。
  • 为检测下一代变种恶意软件提供新评估工具。

代码自变异指程序在不改变核心功能的前提下自动修改自身代码(部分或全部)的技术,常用于关键任务系统中的性能优化与崩溃恢复。然而,该技术已被恶意软件开发者滥用以规避基于签名的杀毒引擎检测。当前攻击者使用的代码变异引擎变异能力有限,易被静态分析识别。随着大语言模型(如ChatGPT 4.0、Google Bard)在算法理解与代码生成方面接近人类水平,专家担忧其可能被用于构建更高级的自变异恶意软件。本文探讨了若干主流LLM在代码变异方面的潜力,可重构现有恶意代码库或生成新型嵌入式变异引擎。我们提出一个基于LLM/Transformer模型的自测试代码变异框架,可用于评估下一代自变异恶意软件检测系统的有效性。

原文摘要 · Abstract (English)

Code metamorphism refers to a computer programming exercise wherein the program modifies its own code (partial or entire) consistently and automatically while retaining its core functionality. This technique is often used for online performance optimization and automated crash recovery in certain mission-critical applications. However, the technique has been misappropriated by malware creators to bypass signature-based detection measures instituted by anti-malware engines. However, current code mutation engines used by threat actors offer only a limited degree of mutation, which is frequently detectable via static code analysis. The advent of large language models (LLMs), such as ChatGPT 4.0 and Google Bard may lead to a significant evolution in this landscape. These models have demonstrated a level of algorithm comprehension and code synthesis capability that closely resembles human abilities. This advancement has sparked concerns among experts that such models could be exploited by threat actors to generate sophisticated metamorphic malware. This paper explores the potential of several prominent LLMs for software code mutation that may be used to reconstruct (with mutation) existing malware code bases or create new forms of embedded mutation engines for next-gen metamorphic malwares. In this work, we introduce a framework for creating self-testing program mutation engines based on LLM/Transformer-based models. The proposed framework serves as an essential tool in testing next-gen metamorphic malware detection engines.

恶意代码大模型安全代码变异

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