Skip to main content
QUICK REVIEW

[论文解读] Adversarial EXEmples: A Survey and Experimental Evaluation of Practical Attacks on Machine Learning for Windows Malware Detection

Luca Demetrio, Scott E. Coull|arXiv (Cornell University)|Aug 17, 2020
Advanced Malware Detection TechniquesComputer Science参考文献 37被引用 21
一句话总结

本文提出了RAMEN,一种统一框架,通过实用且语义保持不变的文件修改方式,生成能够绕过基于机器学习的检测器的对抗性Windows PE恶意软件样本。作者提出了三种新颖的攻击方法——Full DOS、Extend和Shift,这些方法在不破坏功能的前提下修改PE格式,以极小的扰动(文件大小的2%以内)实现高逃逸率,优于先前方法在白盒和黑盒环境下的表现。

ABSTRACT

Recent work has shown that adversarial Windows malware samples - referred to as adversarial EXEmples in this paper - can bypass machine learning-based detection relying on static code analysis by perturbing relatively few input bytes. To preserve malicious functionality, previous attacks either add bytes to existing non-functional areas of the file, potentially limiting their effectiveness, or require running computationally-demanding validation steps to discard malware variants that do not correctly execute in sandbox environments. In this work, we overcome these limitations by developing a unifying framework that does not only encompass and generalize previous attacks against machine-learning models, but also includes three novel attacks based on practical, functionality-preserving manipulations to the Windows Portable Executable (PE) file format. These attacks, named Full DOS, Extend and Shift, inject the adversarial payload by respectively manipulating the DOS header, extending it, and shifting the content of the first section. Our experimental results show that these attacks outperform existing ones in both white-box and black-box scenarios, achieving a better trade-off in terms of evasion rate and size of the injected payload, while also enabling evasion of models that have been shown to be robust to previous attacks. To facilitate reproducibility of our findings, we open source our framework and all the corresponding attack implementations as part of the secml-malware Python library. We conclude this work by discussing the limitations of current machine learning-based malware detectors, along with potential mitigation strategies based on embedding domain knowledge coming from subject-matter experts directly into the learning process.

研究动机与目标

  • 为解决现有针对基于机器学习的恶意软件检测器的对抗性攻击的局限性,这些攻击要么需要计算成本高昂的验证,要么仅限于在文件末尾追加字节。
  • 开发一个统一框架,概括先前的攻击方法,并整合针对Windows PE文件格式特有的新型实用修改方式。
  • 在不依赖动态分析或复杂优化的前提下,实现在白盒和黑盒场景下的有效逃逸。
  • 通过将安全专家的领域知识融入学习过程,提升恶意软件检测模型的鲁棒性。

提出的方法

  • 提出一种模块化、轻量级的形式化方法RAMEN,用于统一基于机器学习的PE恶意软件检测器的对抗性攻击。
  • 设计三种新颖的功能保持型修改方式:Full DOS(修改DOS头)、Extend(扩展DOS头)和Shift(移动首个节的内容)。
  • 将所有修改方式整合进一个优化框架,并引入惩罚项以确保语法和语义不变性。
  • 将现有白盒和黑盒攻击重新表述于RAMEN框架内,以确保通用性和可复现性。
  • 在开源的secml-malware Python库中实现该框架,以确保完全可复现性。
  • 使用基于梯度和无梯度的优化方法,在白盒和黑盒假设下生成对抗性样本。

实验结果

研究问题

  • RQ1如何使针对基于机器学习的PE恶意软件检测器的对抗性攻击更具实用性与高效性,同时保持恶意软件功能?
  • RQ2哪些新颖的、语义不变的PE格式修改方式可用于生成有效的对抗性样本,而无需依赖动态分析?
  • RQ3在白盒和黑盒环境下,所提出的攻击在逃逸率和载荷大小方面相较于现有方法的优越程度如何?
  • RQ4当使用替代模型生成对抗性样本以攻击远程分类器时,迁移攻击的有效性如何?
  • RQ5是否可以将领域知识嵌入学习过程,以提升模型对这类实用修改方式的鲁棒性?

主要发现

  • 所提出的Full DOS、Extend和Shift攻击在逃逸率上优于先前方法,尤其在白盒场景下表现更优,且扰动极小(文件大小的2%以内)。
  • 在实验评估中,Extend和Shift攻击最为有效,在多个最先进的深度学习分类器上均表现出色。
  • 迁移攻击仅通过查询访问和替代模型即可成功绕过远程分类器,表明生产系统的脆弱性。
  • 这些攻击成功绕过了此前被证明对早期对抗技术具有鲁棒性的模型,表明其具有更广泛的应用潜力。
  • 开源的secml-malware库实现了完全可复现性,并为未来在恶意软件检测中对抗鲁棒性的研究提供了支持。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。