arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1804.04177cs.CRcs.NE
收藏

使用深度神经网络检测恶意PowerShell命令

Detecting Malicious PowerShell Commands using Deep Neural Networks

Danny Hendler, Shay Kels, Amir Rubin

摘要:

微软的PowerShell是一种命令行shell和脚本语言,默认安装在Windows机器上。虽然管理员可以配置PowerShell来限制访问和减少漏洞,但这些限制可以被绕过。此外,PowerShell命令可以很容易地动态生成,从内存中执行,编码和混淆,因此对PowerShell执行的代码进行日志记录和取证分析具有挑战性。由于所有这些原因,PowerShell越来越多地被网络犯罪分子用作其攻击工具链的一部分,主要用于下载恶意内容和横向移动。事实上,赛门铁克最近专门针对PowerShell被网络犯罪分子滥用的综合技术报告显示,他们收到的恶意PowerShell样本数量以及使用PowerShell的渗透工具和框架数量急剧增加。这突出了开发有效的方法来检测恶意PowerShell命令的迫切需要。在这项工作中,我们通过实现几种新型的恶意PowerShell命令检测器并评估其性能来解决这一挑战。我们实现了基于“传统”自然语言处理(NLP)的检测器和基于字符级卷积神经网络(CNN)的检测器。我们的评估结果表明,虽然我们的检测器单独产生高性能,集成检测器,结合基于NLP的分类器和基于CNN的分类器提供了最好的性能,因为后者的分类器能够检测恶意命令,成功地逃避前者。我们对这些规避命令的分析表明,CNN分类器自动检测到的一些混淆模式本质上很难使用我们应用的NLP技术检测到。

英文摘要:

Microsoft's PowerShell is a command-line shell and scripting language that is installed by default on Windows machines. While PowerShell can be configured by administrators for restricting access and reducing vulnerabilities, these restrictions can be bypassed. Moreover, PowerShell commands can be easily generated dynamically, executed from memory, encoded and obfuscated, thus making the logging and forensic analysis of code executed by PowerShell challenging.For all these reasons, PowerShell is increasingly used by cybercriminals as part of their attacks' tool chain, mainly for downloading malicious contents and for lateral movement. Indeed, a recent comprehensive technical report by Symantec dedicated to PowerShell's abuse by cybercrimials reported on a sharp increase in the number of malicious PowerShell samples they received and in the number of penetration tools and frameworks that use PowerShell. This highlights the urgent need of developing effective methods for detecting malicious PowerShell commands.In this work, we address this challenge by implementing several novel detectors of malicious PowerShell commands and evaluating their performance. We implemented both "traditional" natural language processing (NLP) based detectors and detectors based on character-level convolutional neural networks (CNNs). Detectors' performance was evaluated using a large real-world dataset.Our evaluation results show that, although our detectors individually yield high performance, an ensemble detector that combines an NLP-based classifier with a CNN-based classifier provides the best performance, since the latter classifier is able to detect malicious commands that succeed in evading the former. Our analysis of these evasive commands reveals that some obfuscation patterns automatically detected by the CNN classifier are intrinsically difficult to detect using the NLP techniques we applied.

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

↑