IJCOPE Journal

UGC Logo DOI / ISO Logo

International Journal of Creative and Open Research in Engineering and Management

A Peer-Reviewed, Open-Access International Journal Supporting Multidisciplinary Research, Digital Publishing Standards, DOI Registration, and Academic Indexing.
Journal Information
ISSN: 3108-1754 (Online)
Crossref DOI: Available
ISO Certification: 9001:2015
Publication Fee: 599/- INR
Compliance: UGC Journal Norms
License: CC BY 4.0
Peer Review: Double Blind
Volume 02, Issue 8

Published on: August 2026

STATIC CODE ANALYSIS FRAMEWORK FOR AUTOMATED SECURITY VULNERABILITY DETECTION

Vani Pasupula Manne Naga VJ Manikanth

Nagaraju Vassey

Department of Information technology and Computer Applications,

Andhra University College of Engineering, Visakhapatnam, India

Article Status

Plagiarism Passed Peer Reviewed Open Access

Available Documents

Abstract

The proliferation of software security vulnerabilities in modern applications has created an urgent demand for automated, intelligent, and scalable detection systems. Existing rule-based static analysis tools are effective for predefined vulnerability patterns but may have difficulty with variations that are not adequately covered by their rules, and a substantial portion of existing machine-learning-based vulnerability detection research focuses on C and C++ programs, while Python-specific approaches remain comparatively less explored. This paper presents a static code analysis framework for automated security vulnerability detection specifically targeting Python source code. The proposed framework implements a three-phase experimental pipeline: Phase 1 establishes a token-based TF-IDF baseline by representing source code as typed token pairs and training classical machine learning classifiers; Phase 2 introduces up to 35 hand-engineered structural features extracted from the Abstract Syntax Tree (AST) of each code snippet using the NodeVisitor design pattern; and Phase 3 combines both feature types into a unified representation and retrains all classifiers — Random Forest, Gradient Boosting, Logistic Regression, and Support Vector Machine. The system is trained and evaluated on a manually constructed, balanced dataset of 70 Python code snippets covering five high-severity CWE vulnerability categories: SQL Injection (CWE-89), OS Command Injection (CWE-78), Path Traversal (CWE-22), Insecure Deserialization (CWE-502), and Cross-Site Scripting (CWE-79). Recall is designated as the primary optimization metric because missed vulnerabilities carry greater risk than false alarms in security-critical deployment contexts. Experimental results show that AST-based structural features substantially improve recall compared with the TF-IDF baseline, while the combined TF-IDF and AST representation maintains this improved performance. The complete system is deployed as a command-line prediction tool producing a binary verdict, a continuous risk score, and a structured report of detected dangerous API patterns, and runs entirely on standard consumer hardware without GPU or deep-learning infrastructure requirements.

How to Cite this Paper

Pasupula, V. & Manikanth, M. N. V. (2026). Static Code Analysis Framework for Automated Security Vulnerability Detection. International Journal of Creative and Open Research in Engineering and Management, <i>02</i>(8), 1-9. https://doi.org/10.55041/ijcope.v2i8.112

Pasupula, Vani, and Manne Manikanth. "Static Code Analysis Framework for Automated Security Vulnerability Detection." International Journal of Creative and Open Research in Engineering and Management, vol. 02, no. 8, 2026, pp. 1-9. doi:https://doi.org/10.55041/ijcope.v2i8.112.

Pasupula, Vani, and Manne Manikanth. "Static Code Analysis Framework for Automated Security Vulnerability Detection." International Journal of Creative and Open Research in Engineering and Management 02, no. 8 (2026): 1-9. https://doi.org/https://doi.org/10.55041/ijcope.v2i8.112.

Search & Index

References

[1] R. Scandariato, J. Walden, A. Hovsepyan, and W. Joosen, "Predicting Vulnerable Software Components via Text Mining," IEEE Transactions on Software Engineering, vol. 40, no. 10, pp. 993-1006, Oct. 2014.

[2] S. F. K. Pattan, S. Sudharson, and S. Mynampati, "Optimizing Code Feature Extraction and Classification Using Random Forest Models on Abstract Syntax Trees," in Proc. IEEE 9th Int. Conf. on Information and Communication Technology (CICT), 2025, pp. 1-7.

[3] Y. Zhou, S. Liu, J. Siow, X. Du, and Y. Liu, "Devign: Effective Vulnerability Identification by Learning Comprehensive Program Semantics via Graph Neural Networks," arXiv preprint arXiv:1909.03496, 2019.

[4] Z. Li, D. Zou, S. Xu, X. Ou, H. Jin, S. Wang, Z. Deng, and Y. Zhong, "VulDeePecker: A Deep Learning-Based System for Vulnerability Detection," in Proc. Network and Distributed System Security (NDSS) Symposium, 2018.

[5] Python Software Foundation, "ast - Abstract Syntax Trees," Python 3 Documentation. [Online]. Available: https://docs.python.org/3/library/ast.html

[6] Python Software Foundation, "tokenize - Tokenizer for Python Source," Python 3 Documentation. [Online]. Available: https://docs.python.org/3/library/tokenize.html

[7] F. Pedregosa et al., "Scikit-learn: Machine Learning in Python," Journal of Machine Learning Research, vol. 12, pp. 2825-2830, 2011.

[8] MITRE Corporation, "Common Weakness Enumeration (CWE)." [Online]. Available: https://cwe.mitre.org

[9] National Institute of Standards and Technology (NIST), "National Vulnerability Database (NVD)." [Online]. Available: https://nvd.nist.gov

[10] C. Cortes and V. Vapnik, "Support-Vector Networks," Machine Learning, vol. 20, no. 3, pp. 273-297, 1995.

Ethical Compliance & Review Process

  • All submissions are screened under plagiarism detection.
  • Review follows editorial policy.
  • Authors retain copyright.
  • Peer Review Type: Double-Blind Peer Review
  • Published on: Aug 14 2026
CCBYNC

This article is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License. You are free to share and adapt this work for non-commercial purposes with proper attribution.

View License
Scroll to Top