PyComm: Malicious commands detection model for python']python scripts

被引:1
作者
Zhou, Anmin [1 ]
Huang, Tianyi [1 ]
Huang, Cheng [1 ]
Li, Dunhan [1 ]
Song, Chuangchuang [2 ]
机构
[1] Sichuan Univ, Sch Cyber Sci & Engn, Chengdu 610207, Peoples R China
[2] China Informat Technol Secur Evaluat Ctr, Beijing, Peoples R China
基金
中国国家自然科学基金;
关键词
Cyber security; malicious script detection; malicious command; machine learning; static analysis;
D O I
10.3233/JIFS-211557
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
Python is a concise language which can be used to build lightweight tools or dynamic object-orientated applications. The various attributes of Python have made it attractive to numerous malware authors. Attackers often embed malicious shell commands into Python scripts for illegal operations. However, traditional static analysis methods are not feasible to detect this kind of attack because they focus on common features and failure in finding those malicious commands. On the other hand, dynamic analysis is not optimal in this case for its time-consuming and inefficient. In this paper, we propose PyComm, a model for detecting malicious commands in Python scripts with multidimensional features based on machine learning, which considers both 12 statistical features and string sequences of Python source code. Meanwhile, three comparison experiments are designed to evaluate the validity of proposed method. Experimental results show that presented model has achieved an excellent performance based on those practical features and random forest (RF) algorithm, obtained an accuracy of 0.955 with a recall of 0.943.
引用
收藏
页码:2261 / 2273
页数:13
相关论文
共 40 条
  • [31] Detection of malicious network activity using the Feature-Tokenizer Transformer model
    Agilandeeswari, L.
    Chunduri, Atirath
    JOURNAL OF INFORMATION ASSURANCE AND SECURITY, 2023, 18 (06): : 192 - 202
  • [32] Political Optimization Algorithm with a Hybrid Deep Learning Assisted Malicious URL Detection Model
    Aljebreen, Mohammed
    Alrayes, Fatma S.
    Aljameel, Sumayh S.
    Saeed, Muhammad Kashif
    SUSTAINABILITY, 2023, 15 (24)
  • [33] Three-layer hybrid intrusion detection model for smart home malicious attacks
    Shi, Lingyun
    Wu, Longfei
    Guan, Zhitao
    COMPUTERS & ELECTRICAL ENGINEERING, 2021, 96
  • [34] Cyber Threat Intelligence-Based Malicious URL Detection Model Using Ensemble Learning
    Ghaleb, Fuad A.
    Alsaedi, Mohammed
    Saeed, Faisal
    Ahmad, Jawad
    Alasli, Mohammed
    SENSORS, 2022, 22 (09)
  • [35] A Novel Prediction Model for Malicious Users Detection and Spectrum Sensing Based on Stacking and Deep Learning
    Benazzouza, Salma
    Ridouani, Mohammed
    Salahdine, Fatima
    Hayar, Aawatif
    SENSORS, 2022, 22 (17)
  • [36] Intrusion detection system for Denial of Service (DoS) attacks in healthcare cybersecurity on System on Chip (SoC) – PYTHON productivity for ZYNQ (PYNQ Z1)
    A. Sridevi
    Siva Janakiraman
    Rengarajan Amirtharajan
    Peer-to-Peer Networking and Applications, 2025, 18 (4)
  • [37] Malicious PDF Detection Model against Adversarial Attack Built from Benign PDF Containing Java']JavaScript
    Kang, Ah Reum
    Jeong, Young-Seob
    Kim, Se Lyeong
    Woo, Jiyoung
    APPLIED SCIENCES-BASEL, 2019, 9 (22):
  • [38] Feature Engineering and Machine Learning Model Comparison for Malicious Activity Detection in the DNS-Over-HTTPS Protocol
    Behnke, Matthew
    Briner, Nathan
    Cullen, Drake
    Schwerdtfeger, Katelynn
    Warren, Jackson
    Basnet, Ram
    Doleck, Tenzin
    IEEE ACCESS, 2021, 9 : 129902 - 129916
  • [39] Two-layer malicious network flow detection system with sparse linear model based feature selection
    Catak, Ferhat Ozgur
    JOURNAL OF THE NATIONAL SCIENCE FOUNDATION OF SRI LANKA, 2018, 46 (04): : 601 - 612
  • [40] A Cross-Layer based Hidden Marko(C-HMM) Model for Detection and Prevention of Malicious Attacks in Wireless Ad-hoc Networks
    Jagadeesan, S.
    Manjula, R.
    Johnpeter, T.
    2021 IEEE INTERNATIONAL CONFERENCE ON MOBILE NETWORKS AND WIRELESS COMMUNICATIONS (ICMNWC), 2021,