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
相关论文
共 50 条
  • [1] Using Python']Python scripts in Blender
    Pokorny, P.
    Sysel, M.
    Annals of DAAAM for 2005 & Proceedings of the 16th International DAAAM Symposium: INTELLIGENT MANUFACTURING & AUTOMATION: FOCUS ON YOUNG RESEARCHES AND SCIENTISTS, 2005, : 305 - 306
  • [2] Python']Python does scripts and objects
    Shell, JP
    BYTE, 1997, 22 (02): : 63 - 64
  • [3] Development of Python']Python Scripts to Retrieve Data from FMODB
    Matsuoka, Sota
    Kakinuma, Sayaka
    Okuwaki, Koji
    Doi, Hideo
    Mochizuki, Yuji
    JOURNAL OF COMPUTER CHEMISTRY-JAPAN, 2024, 23 (02) : 45 - 49
  • [4] Critiquing Computing Artifacts through Programming Satirical Python']Python Scripts
    Padiyath, Aadarsh
    Nelson-Fromm, Tamara
    Ericson, Barbara
    2023 CONFERENCE ON RESEARCH IN EQUITABLE AND SUSTAINED PARTICIPATION IN ENGINEERING, COMPUTING, AND TECHNOLOGY, RESPECT 2023, 2023, : 101 - 109
  • [5] Critiquing Computing Artifacts through Programming Satirical Python']Python Scripts
    Padiyath, Aadarsh
    Ericson, Barbara
    PROCEEDINGS OF THE 54TH ACM TECHNICAL SYMPOSIUM ON COMPUTER SCIENCE EDUCATION, VOL 2, SIGCSE 2023, 2023, : 1315 - 1315
  • [6] REMOTE RENDERING CONTROL USING PYTHON']PYTHON SCRIPTS AND DROPBOX TECHNOLOGY
    Bernik, Andrija
    Galetic, Dinko
    TEHNICKI GLASNIK-TECHNICAL JOURNAL, 2018, 12 (02): : 62 - 67
  • [7] AUTOMATIC GENERATION OF DIGITAL ELEVATION MODELS USING PYTHON']PYTHON SCRIPTS
    Dobesova, Zdena
    11TH INTERNATIONAL MULTIDISCIPLINARY SCIENTIFIC GEOCONFERENCE (SGEM 2011), VOL II, 2011, : 599 - 604
  • [8] Simple MATLAB and Python']Python scripts for multi-exponential analysis
    Afrough, Armin
    Mokhtari, Rasoul
    Feilberg, Karen L.
    MAGNETIC RESONANCE IN CHEMISTRY, 2024, 62 (10) : 698 - 711
  • [9] Malicious attacks on the web and crawling of information data by Python']Python technology
    Fu, Rui
    Li, Xinyu
    SECURITY AND PRIVACY, 2021, 4 (05)
  • [10] A Large-Scale Comparison of Python']Python Code in Jupyter Notebooks and Scripts
    Grotov, Konstantin
    Titov, Sergey
    Sotnikov, Vladimir
    Golubev, Yaroslav
    Bryksin, Timofey
    2022 MINING SOFTWARE REPOSITORIES CONFERENCE (MSR 2022), 2022, : 353 - 364