Generic, efficient, and effective deobfuscation and semantic-aware attack detection for PowerShell scripts

被引:4
|
作者
Xiong, Chunlin [1 ]
Li, Zhenyuan [1 ]
Chen, Yan [2 ]
Zhu, Tiantian [3 ]
Wang, Jian [1 ]
Yang, Hai [4 ]
Ruan, Wei [5 ]
机构
[1] Zhejiang Univ, Coll Comp Sci & Technol, Hangzhou 310027, Peoples R China
[2] Northwestern Univ, Dept Elect Engn & Comp Sci, Evanston, IL 60208 USA
[3] Zhejiang Univ Technol, Coll Comp Sci & Technol, Hangzhou 310023, Peoples R China
[4] Mag Shield Co Ltd, Hangzhou 310027, Peoples R China
[5] Zhejiang Univ, Coll Control Sci & Engn, Hangzhou 310027, Peoples R China
基金
中国国家自然科学基金;
关键词
PowerShell; Abstract syntax tree; Obfuscation and deobfuscation; Malicious script detection; TP309;
D O I
10.1631/FITEE.2000436
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
In recent years, PowerShell has increasingly been reported as appearing in a variety of cyber attacks. However, because the PowerShell language is dynamic by design and can construct script fragments at different levels, state-of-the-art static analysis based PowerShell attack detection approaches are inherently vulnerable to obfuscations. In this paper, we design the first generic, effective, and lightweight deobfuscation approach for PowerShell scripts. To precisely identify the obfuscated script fragments, we define obfuscation based on the differences in the impacts on the abstract syntax trees of PowerShell scripts and propose a novel emulation-based recovery technology. Furthermore, we design the first semantic-aware PowerShell attack detection system that leverages the classic objective-oriented association mining algorithm and newly identifies 31 semantic signatures. The experimental results on 2342 benign samples and 4141 malicious samples show that our deobfuscation method takes less than 0.5 s on average and increases the similarity between the obfuscated and original scripts from 0.5% to 93.2%. By deploying our deobfuscation method, the attack detection rates for Windows Defender and VirusTotal increase substantially from 0.33% and 2.65% to 78.9% and 94.0%, respectively. Moreover, our detection system outperforms both existing tools with a 96.7% true positive rate and a 0% false positive rate on average.
引用
收藏
页码:361 / 381
页数:21
相关论文
共 50 条
  • [31] CLFuzz: Vulnerability Detection of Cryptographic Algorithm Implementation via Semantic-aware Fuzzing
    Zhou, Yuanhang
    Ma, Fuchen
    Chen, Yuanliang
    Ren, Meng
    Jiang, Yu
    ACM TRANSACTIONS ON SOFTWARE ENGINEERING AND METHODOLOGY, 2024, 33 (02)
  • [32] Optimisation for image salient object detection based on semantic-aware clustering and CRF
    Chen, Junhao
    Niu, Yuzhe
    Wu, Jianbin
    Chen, Junrong
    IET COMPUTER VISION, 2020, 14 (02) : 49 - 58
  • [33] Order Matters: Semantic-Aware Neural Networks for Binary Code Similarity Detection
    Yu, Zeping
    Cao, Rui
    Tang, Qiyi
    Nie, Sen
    Huang, Junzhou
    Wu, Shi
    THIRTY-FOURTH AAAI CONFERENCE ON ARTIFICIAL INTELLIGENCE, THE THIRTY-SECOND INNOVATIVE APPLICATIONS OF ARTIFICIAL INTELLIGENCE CONFERENCE AND THE TENTH AAAI SYMPOSIUM ON EDUCATIONAL ADVANCES IN ARTIFICIAL INTELLIGENCE, 2020, 34 : 1145 - 1152
  • [34] Fast Semantic-Aware Motion State Detection for Visual SLAM in Dynamic Environment
    Singh, Gaurav
    Wu, Meiqing
    Do, Minh, V
    Lam, Siew-Kei
    IEEE TRANSACTIONS ON INTELLIGENT TRANSPORTATION SYSTEMS, 2022, 23 (12) : 23014 - 23030
  • [35] Cross-Domain Detection Transformer Based on Spatial-Aware and Semantic-Aware Token Alignment
    Deng, Jinhong
    Zhang, Xiaoyue
    Li, Wen
    Duan, Lixin
    Xu, Dong
    IEEE TRANSACTIONS ON MULTIMEDIA, 2024, 26 : 5234 - 5245
  • [36] Semantic-Aware Informative Path Planning for Efficient Object Search Using Mobile Robot
    Wang, Chaoqun
    Cheng, Jiyu
    Chi, Wenzheng
    Yan, Tingfang
    Meng, Max Q. -H.
    IEEE TRANSACTIONS ON SYSTEMS MAN CYBERNETICS-SYSTEMS, 2021, 51 (08): : 5230 - 5243
  • [37] Semantic-Aware Informative Path Planning for Efficient Object Search Using Mobile Robot
    Wang, Chaoqun
    Cheng, Jiyu
    Chi, Wenzheng
    Yan, Tingfang
    Meng, Max Q.-H.
    IEEE Transactions on Systems, Man, and Cybernetics: Systems, 2021, 51 (08): : 5230 - 5243
  • [38] Semantic-aware 3D-voxel CenterNet for point cloud object detection
    Sun, Jing
    Ji, Yi-Mu
    Wu, Fei
    Zhang, Chi
    Sun, Yanfei
    COMPUTERS & ELECTRICAL ENGINEERING, 2022, 98
  • [39] PlaceNet: A multi-scale semantic-aware model for visual loop closure detection
    Osman, Hussein
    Darwish, Nevin
    Bayoumi, AbdElMoniem
    ENGINEERING APPLICATIONS OF ARTIFICIAL INTELLIGENCE, 2023, 119
  • [40] An Efficient and Dynamic Semantic-Aware Multikeyword Ranked Search Scheme Over Encrypted Cloud Data
    Dai, Xuelong
    Dai, Hua
    Yang, Geng
    Yi, Xun
    Huang, Haiping
    IEEE ACCESS, 2019, 7 : 142855 - 142865