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.
ShellCore: Automating Malicious IoT Software Detection by Using Shell Commands Representation
Linux shell是一个命令行解释器,它为用户提供了一个到操作系统的命令接口,允许用户执行各种功能。虽然在边缘构建功能方面非常有用,但Linux shell可以被利用,给对手提供了一个利用它们进行恶意活动的绝佳机会。通过访问物联网设备,恶意软件作者可以滥用这些设备的Linux shell来传播感染并发起大规模攻击,例如,DDoS攻击在这项工作中,我们首先介绍了基于Linux的物联网恶意软件中使用的shell命令。我们分析了物联网恶意软件中发现的恶意shell命令,并构建了一个基于神经网络的模型ShellCore来检测恶意shell命令。也就是说,我们收集了一个大型的shell命令数据集,包括从2,891个物联网恶意软件样本中提取的恶意命令,以及从真实网络流量分析中收集的良性命令,以及来自Linux用户的自愿数据。使用传统的基于机器和深度学习的方法,使用术语和字符级特征进行训练,ShellCore在检测恶意shell命令和文件(即,二进制文件)。
A Blind Trust, the Bloody Thrust: When Attacker-Controlled Hook Updates Steer AI Agent Harnesses towards Malicious Behaviors
Beijing University of Posts and Telecommunications(北京邮电大学);Data Technology Support Center of the Cyberspace Administration of China(中央网络安全和信息化委员会办公室数据技术支持中心);Beihang University(北京航空航天大学);Zhejiang University(浙江大学)
Your Harness is Not Secure: Benchmarking Real-world Threat of Command Line Interface Agent
University of Georgia(佐治亚大学);University of South Florida(南佛罗里达大学);Johns Hopkins University(约翰斯·霍普金斯大学);University of Maryland, College Park(马里兰大学帕克分校);Hong Kong University of Science and Technology(香港科技大学);Chinese University of Hong Kong(香港中文大学);Apple(苹果公司);Arizona State University(亚利桑那州立大学)
SENTINEL: A Multi-Pathway Architecture for Detecting Living-Off-the-Land APT Attacks on Windows Command Lines
University of Dhaka(达卡大学);Tennessee State University(田纳西州立大学);Military Institute of Science and Technology(军事科学技术学院);Huston–Tillotson University(休斯顿-蒂洛森大学);Howard University(霍华德大学)
BGA: A noise-immune neural distillation framework for malicious signature extraction in high-entropy encrypted flows
School of Cyber Science and Technology, Beihang University(北京航空航天大学网络空间科学与技术学院);Beijing Electronic Science and Technology Institute(北京电子科技学院);School of Information and Communication Engineering, Beijing University of Posts and Telecommunications(北京邮电大学信息与通信工程学院)