Detection and Classification of Complex Java Code Vulnerabilities and Errors Using Artificial Intelligence Techniques.

Show simple item record

dc.contributor.author Sosai, R. Reyanson
dc.contributor.author Dilhan, A.W.A.T
dc.date.accessioned 2026-09-25T04:48:14Z
dc.date.available 2026-09-25T04:48:14Z
dc.date.issued 2024-11-01
dc.identifier.citation A en_US
dc.identifier.issn 3021-6834
dc.identifier.uri http://ir.lib.ruh.ac.lk/handle/iruor/21862
dc.description.abstract Ensuring the safety of software applications, particularly those developed in Java, is vital because of the risks associated with vulnerabilities such as Cross-Site Scripting (XSS SQL Injection, incorrect validation of array indices, integer overflow, underflow, and memory allocation issues. This research seeks to create an automated system for identifying and categorizing these vulnerabilities using machine learning methods, thus minimizing the need for manual code inspections and enhancing overall software security. The study entailed gathering Java source code from public repositories and vulnerability databases like CWE and CVE. Essential features such as cyclomatic complexity, the depth of the abstract syntax tree (AST), and control flow metrics were extracted from the code to train machine learning algorithms, including Random Forest, Support Vector Machines (SVM), and Artificial Neural Networks (ANN). The models were assessed using metrics like precision, recall, and F1-score. Preliminary results indicate that Random Forest outperforms other models in identifying vulnerabilities, particularly in handling complex code structures. The system also continuously learns from new data, improving detection accuracy over time. Although deep learning models showed potential, their high computational requirements make them less practical for this task. Future research should focus on expanding the dataset and exploring more advanced machine learning models, such as transformers, to enhance detection capabilities. Finally, this approach could be extended to other programming languages, including Python and JavaScript, to broaden its applicability. en_US
dc.language.iso en en_US
dc.publisher Faculty of Technology, University of Ruhuna, Sri Lanka. en_US
dc.subject Cross-Site Scripting en_US
dc.subject SQL Injection en_US
dc.subject Java Code Vulnerabilities en_US
dc.subject Machine Learning en_US
dc.subject Software Security en_US
dc.title Detection and Classification of Complex Java Code Vulnerabilities and Errors Using Artificial Intelligence Techniques. en_US
dc.type Article en_US


Files in this item

This item appears in the following Collection(s)

Show simple item record

Search DSpace


Browse

My Account