AI-assisted web app penetration testing system for SQL injection vulnerability discovery in database-driven web applications

dc.contributor.authorNyamheto, Trevor
dc.date.accessioned2026-10-22T12:10:23Z
dc.date.issued2026-06
dc.description.abstractIn this study, we propose the design and implementation of a combined, AI driven web application penetration testing system for the detection of SQL Injection (SQLi) in database driven web applications. This hybrid system combines supervised learning classifiers and a combination of autonomous reinforcement learning agents-specifically an aggregation of a Deep Neural Network (DNN), Support Vector Machine (SVM), and XGBoost via a weighted majority voting scheme combined with a Deep Q-Network (DQN) mutation model-to complement each other's technical strengths. The classification ensemble effectively identifies the class (malicious, legitimate) for known malicious token streams and filters false positives based on anomalies in observed patterns. The reinforcement learning agents is concurrently used to learn to mutate payload strings autonomously to bypass Web Application Firewall (WAF) rulesets. This combined hybrid two-tier penetration testing engine vastly improves the systems' ability to parse routine, heavily obfuscated, and zero-day malicious inputs. Initial model training data, token optimization and behavioural baselines were collected from publicly available vulnerability corpuses and additionally generated using generative architectures to ensure realistic baseline modelling. After feature engineering and optimization processes, the models were combined to form a module capable of detection presented as part of an easy-to-use security dashboard GUI, with backend implemented using a Python Flask framework. The application was built with direct manual payload checking, automated scanning of targets, explainable alert generation in real-time and automatic logging of threats to retrain the models, providing great utility as a decision support system for security analysts and software engineers. The overall system was benchmarked for classification by common metrics: accuracy, precision, recall and F1-score. The results indicated the hybrid ensemble model significantly surpassed baseline single models and signature scanners to accurately discover vulnerability data at significantly higher precision than previously seen; this lowered false alarm rates to just 2.8%, while maintaining a 97.3% F1-score. The resulting system has real-time alert triage, explainable AI interface, adaptive mutation design, and utilizes a containerized deployment pipeline making for a scalable, robust, and intelligent system of vulnerability discovery for modern applications.
dc.identifier.urihttps://ir.buse.ac.zw/handle/123456789/1081
dc.language.isoen
dc.publisherBUSE
dc.subjectSQL injection
dc.subjectArtificial Intelligence
dc.subjectPenetration testing
dc.subjectReinforcement learning
dc.subjectWeb application security
dc.titleAI-assisted web app penetration testing system for SQL injection vulnerability discovery in database-driven web applications
dc.typeThesis

Files

Original bundle

Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
Nyamheto,Trevor.pdf
Size:
1.62 MB
Format:
Adobe Portable Document Format

License bundle

Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
license.txt
Size:
1.71 KB
Format:
Item-specific license agreed to upon submission
Description: