Sign inSubmit
computersciencejournal.org is not ours. This journal is published only at thescipub.com/jcs. Report a suspicious emailcomputersciencejournal.org is not ours · Report
ArticleMetrics
Research Article · Open access · Published 10 October 2025

Hacking Back: Using Genetic Algorithms to Outsmart Hackers

Ghosoun Al Hindi1, Mohammad Alshraideh2,3, Abdelrahman H. Hussein4, Lubna Fayez Eliyan3 & Arafat Al-Dhaqm5

Journal of Computer Science, Volume 21, Issue 9, pp. 2049–2064 · doi.org/10.3844/jcssp.2025.2049.2064

2,600 accesses1,426 downloads13 citations (Crossref)Metrics
Cite Check for updates

Abstract

Web applications are widely used in today's digital landscape, necessitating robust security measures to protect against unauthorized access by malicious users. Ensuring the security of these applications requires effectively identifying and addressing vulnerabilities. This paper proposes an automated methodology for vulnerability detection, utilizing a genetic algorithm to generate test cases, which offers greater efficiency and performance compared to resource-intensive and time-consuming manual approaches. Our research highlights the effectiveness of genetic algorithms as test data generators, leveraging insights from previous studies. Given the varying severity of Structured Query Language (SQL) injection attacks, those capable of executing destructive commands, such as the "drop" command, pose a more significant threat than those that merely disclose information. We employ both white-box and black-box testing methodologies to detect SQL injection vulnerabilities. Black box testing is utilized when the source code is unavailable, while white box testing is applied when the source code is accessible. Our findings suggest that white box testing, particularly static analysis, is more effective in identifying vulnerabilities. This study aims to enhance web application security by utilizing genetic algorithms to generate optimal test cases for vulnerability detection, providing a comprehensive approach that integrates white-box and black-box testing.

Licence and reuse

Open access. This article is licensed under a Creative Commons Attribution 4.0 International Licence (CC BY 4.0), as printed on the article, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original authors and the source. No permission is needed.

How to reuse this article

Responses (0)

Have a comment on this research? Sign in to respond. Responses are moderated and published with your name and affiliation; the authors are invited to reply. How we use your dataWrite a response

About this article

Cite this article

Al Hindi, G., Alshraideh, M., Hussein, A. H., Eliyan, L. F. & Al-Dhaqm, A. (2025). Hacking Back: Using Genetic Algorithms to Outsmart Hackers. Journal of Computer Science, 21(9), 2049–2064. https://doi.org/10.3844/jcssp.2025.2049.2064

Licence
CC BY 4.0
Issue
Volume 21, Issue 9
Policies
Editorial independenceUse of generative AIData availabilityAppeals and complaints
Version
Version of record
Hacking Back: Using Genetic Algorithms to Outsmart HackersJournal of Computer Science · Volume 21, Issue 9 · pp. 2049–2064 · CC BY 4.0Download