A controlled cybersecurity laboratory is established using Oracle VirtualBox, Ubuntu Linux, and Kali Linux to evaluate GAN-based XSS-related traffic generation and Suricata-based network detection.
DVWA is deployed as the authorized web application target, providing a controlled environment for testing XSS-related HTTP requests.
A Generative Adversarial Network (GAN) is implemented and trained using Python and PyTorch with publicly available XSS-related samples to generate candidate input patterns.
GAN-generated outputs are validated and prepared for controlled HTTP testing, ensuring that unsuitable or malformed samples are not automatically treated as valid requests or functioning exploits.
Suricata is configured to inspect observable laboratory network traffic, and the capture interface is verified to ensure that the relevant HTTP requests are visible to the detection system.
Controlled XSS-related HTTP requests are sent to DVWA from Kali Linux, allowing Suricata's detection rules to be evaluated against the observed traffic.
Suricata alerts are collected and correlated with the corresponding test requests to identify which XSS-related patterns match the configured detection rules.
Detection results are compared with known test labels where available, supporting the evaluation of precision, recall, F1-score, false positives, and false negatives when the test data supports these metrics
Detection gaps and rule-matching limitations are analyzed, and justified detection-rule adjustments are evaluated through repeat testing to assess their impact on detection behavior.
The complete GAN-based candidate sample generation, DVWA HTTP testing, Suricata network inspection, alert collection, detection performance evaluation, and security-validation workflow is demonstrated within an isolated and authorized laboratory environment.