A Python Security Analysis Framework in Integrity Verification and Vulnerability Detection

被引:3
|
作者
PENG Shuanghe [1 ]
LIU Peiyao [1 ]
HAN Jing [1 ]
机构
[1] Beijing Key Laboratory of Security and Privacy in Intelligent Transportation, Beijing Jiaotong University
基金
中国国家自然科学基金;
关键词
Python; integrity verification; vulnerability detection;
D O I
暂无
中图分类号
TP309 [安全保密]; TP312.2 [];
学科分类号
081201 ; 0839 ; 1402 ;
摘要
Python is widely used in web crawler, machine learning, data analysis and so on. However, there is no guarantee that Python scripts are trusted in their whole lifetime because of system insecurity. When the system is attacked, scripts in the computer are likely to be tampered with. Therefore, the trustworthiness of Python scripts needs to be checked through different configuration strategies, including integrity verification and vulnerability detection. In this paper, integrity verification and vulnerability detection are based on two Python scripts, an original Python script and a current Python script, and the original Python script is assumed to has no vulnerabilities. By comparing with the original script, we can find out whether the current script is integrity or not and detect whether there are vulnerabilities if the integrity of the current file is destroyed. Integrity verification with Hash functions is not applied in some cases. In this mode, any changes including blank lines added are considered illegal. So loose integrity verification by combining UNIX diff tool with abstract syntax trees is proposed. The vulnerability detection starts from the premise that the original Python script has no vulnerabilities, and taint analysis is applied on the vulnerability detection framework Bandit to find vulnerabilities. Besides, in order not to change the usage of Python, both integrity verification and vulnerability detection modules are embedded in Python interpreter. The experiments show that the performance of security analysis framework is good and Bandit with taint can greatly reduce the false positive results without affecting the performance.
引用
收藏
页码:141 / 148
页数:8
相关论文
共 50 条
  • [21] A unified framework for risk and vulnerability analysis covering both safety and security
    Aven T.
    IEEE Engineering Management Review, 2011, 39 (04): : 123 - 134
  • [22] Systematic Security Guideline Framework through Intelligently Automated Vulnerability Analysis
    Kim, Dahyeon
    Kim, Namgi
    Ahn, Junho
    CMC-COMPUTERS MATERIALS & CONTINUA, 2024, 78 (03): : 3867 - 3889
  • [23] Analysis Tools for the VyPR Performance Analysis Framework for Python']Python
    Dawes, Joshua Heneage
    Han, Marta
    Reger, Giles
    Franzoni, Giovanni
    Pfeiffer, Andreas
    24TH INTERNATIONAL CONFERENCE ON COMPUTING IN HIGH ENERGY AND NUCLEAR PHYSICS (CHEP 2019), 2020, 245
  • [24] A Modeling and Verification Framework for Security Protocols
    Lilli, Mario
    RIGOROUS STATE-BASED METHODS, ABZ 2021, 2021, 12709 : 158 - 161
  • [25] A Verification Framework for Stateful Security Protocols
    Li, Li
    Dong, Naipeng
    Pang, Jun
    Sun, Jun
    Bai, Guangdong
    Liu, Yang
    Dong, Jin Song
    FORMAL METHODS AND SOFTWARE ENGINEERING, ICFEM 2017, 2017, 10610 : 262 - 280
  • [26] A framework for compositional verification of security protocols
    Andova, Suzana
    Cremers, Cas
    Gjosteen, Kristian
    Mauw, Sjouke
    Mjolsnes, Stig F.
    Radomirovic, Saga
    INFORMATION AND COMPUTATION, 2008, 206 (2-4) : 425 - 459
  • [27] The EVcouplings Python']Python framework for coevolutionary sequence analysis
    Hopf, Thomas A.
    Green, Anna G.
    Schubert, Benjamin
    Mersmann, Sophia
    Schaerfe, Charlotta P. I.
    Ingraham, John B.
    Toth-Petroczy, Agnes
    Brock, Kelly
    Riesselman, Adam J.
    Palmedo, Perry
    Kang, Chan
    Sheridan, Robert
    Draizen, Eli J.
    Dallago, Christian
    Sander, Chris
    Marks, Debora S.
    BIOINFORMATICS, 2019, 35 (09) : 1582 - 1584
  • [28] A python']python framework for environmental model uncertainty analysis
    White, Jeremy T.
    Fienen, Michael N.
    Doherty, John E.
    ENVIRONMENTAL MODELLING & SOFTWARE, 2016, 85 : 217 - 228
  • [29] VDABSys: A Novel Security-Testing Framework for Blockchain Systems Based on Vulnerability detection
    Chen, Jinfu
    Feng, Qiaowei
    Cai, Saihua
    Shi, Dengzhou
    Towey, Dave
    Chen, Yuhao
    Wang, Dongjie
    SECURITY AND PRIVACY IN COMMUNICATION NETWORKS, PT I, SECURECOMM 2023, 2025, 567 : 287 - 305
  • [30] Python']Python Predictive Analysis for Bug Detection
    Xu, Zhaogui
    Liu, Peng
    Zhang, Xiangyu
    Xu, Baowen
    FSE'16: PROCEEDINGS OF THE 2016 24TH ACM SIGSOFT INTERNATIONAL SYMPOSIUM ON FOUNDATIONS OF SOFTWARE ENGINEERING, 2016, : 121 - 132