PowerPeeler:一种精准通用的PowerShell脚本动态去混淆方法
PowerPeeler: A Precise and General Dynamic Deobfuscation Method for PowerShell Scripts
AI总结:
针对现有PowerShell脚本去混淆工具依赖静态分析、准确性不足的问题,本文提出首个指令级动态去混淆方法PowerPeeler,通过AST节点关联指令、跟踪执行结果重构脚本,在百万级样本上准确率达95%,性能优于现有工具和GPT-4,可扩展用于网络安全场景。
摘要:
PowerShell是一款功能强大、用途广泛的任务自动化工具。遗憾的是,它也被网络攻击者广泛滥用。为了绕过恶意软件检测并阻碍威胁分析,攻击者通常会采用多种技术对恶意PowerShell脚本进行混淆处理。现有的去混淆工具受限于静态分析,无法准确模拟真实的去混淆过程。\n 在本文中,我们提出了PowerPeeler。据我们所知,这是首个指令级的动态PowerShell脚本去混淆方法。它利用与表达式相关的抽象语法树(Abstract Syntax Tree, AST)节点识别潜在的混淆脚本片段。随后,PowerPeeler将AST节点与其对应的指令关联起来,并监控脚本的整个执行过程。接着,PowerPeeler动态跟踪这些指令的执行并记录其执行结果。最后,PowerPeeler将这些结果字符串化,替换对应的混淆脚本片段,重构出去混淆后的脚本。\n 为了评估PowerPeeler的有效性,我们收集了1,736,669个采用不同混淆方法的真实恶意PowerShell样本。我们将PowerPeeler与5款最先进的去混淆工具以及GPT-4进行了对比。评估结果表明,PowerPeeler能够有效处理所有已知的混淆方法。此外,PowerPeeler的去混淆准确率达到95%,显著优于其他工具。PowerPeeler不仅能恢复最多的敏感数据,还能保持97%以上的语义一致性,这一表现同样是最优的。而且,PowerPeeler能在有限时间内有效获取数量最多的有效去混淆结果。此外,PowerPeeler具备可扩展性,可作为其他网络安全解决方案的实用工具。
英文摘要:
PowerShell is a powerful and versatile task automation tool. Unfortunately, it is also widely abused by cyber attackers. To bypass malware detection and hinder threat analysis, attackers often employ diverse techniques to obfuscate malicious PowerShell scripts. Existing deobfuscation tools suffer from the limitation of static analysis, which fails to simulate the real deobfuscation process accurately. In this paper, we propose PowerPeeler. To the best of our knowledge, it is the first dynamic PowerShell script deobfuscation approach at the instruction level. It utilizes expression-related Abstract Syntax Tree (AST) nodes to identify potential obfuscated script pieces. Then, PowerPeeler correlates the AST nodes with their corresponding instructions and monitors the script's entire execution process. Subsequently, PowerPeeler dynamically tracks the execution of these instructions and records their execution results. Finally, PowerPeeler stringifies these results to replace the corresponding obfuscated script pieces and reconstruct the deobfuscated script. To evaluate the effectiveness of PowerPeeler, we collect 1,736,669 real-world malicious PowerShell samples with diversity obfuscation methods. We compare PowerPeeler with five state-of-the-art deobfuscation tools and GPT-4. The evaluation results demonstrate that PowerPeeler can effectively handle all well-known obfuscation methods. Additionally, the deobfuscation correctness rate of PowerPeeler reaches 95%, significantly surpassing that of other tools. PowerPeeler not only recovers the highest amount of sensitive data but also maintains a semantic consistency over 97%, which is also the best. Moreover, PowerPeeler effectively obtains the largest quantity of valid deobfuscated results within a limited time frame. Furthermore, PowerPeeler is extendable and can be used as a helpful tool for other cyber security solutions.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。