Securing web applications using machine learning

dc.contributor.authorOsama Salahat
dc.contributor.authorYousef Assaf
dc.contributor.authorAmeer Younis
dc.date.accessioned2025-02-06T07:32:15Z
dc.date.available2025-02-06T07:32:15Z
dc.date.issued2025-02-03
dc.description.abstractWeb applications play a crucial role in today’s digital world, providing a wide range of services and handling sensitive data. However, their widespread use also makes them prime targets for cyberattacks, particularly SQL Injection (SQLi) and Cross-Site Scripting (XSS). These attacks can lead to data breaches, unauthorized access, and even complete system compromise. Traditional Intrusion Detection Systems (IDS) rely on predefined rules, which often fail to keep up with evolving attack techniques, leaving systems vulnerable. This project introduces a machine learning-based solution to protect web applications from SQLi and XSS attacks. Using a large dataset of real attack payloads, the system applies Term Frequency-Inverse Document Frequency (TF-IDF) to extract meaningful patterns from web inputs. A Logistic Regression model then analyzes these patterns to classify incoming requests as either safe or malicious. To enhance security further, the system is integrated with pfSense, a powerful open-source firewall, through its REST API. This integration not only detects threats but also blocks malicious users in real time, adding an extra layer of protection. Testing results show that the model achieves an impressive 97% accuracy in detecting attacks, highlighting its effectiveness. By leveraging machine learning, this approach overcomes the limitations of traditional IDS, offering an automated, scalable, and adaptive solution for web security. This project demonstrates the potential of AI-driven cybersecurity in defending modern online systems against ever-evolving threats.
dc.identifier.urihttps://hdl.handle.net/20.500.11888/19896
dc.language.isoen
dc.supervisorDr. Ahmed Awwad
dc.titleSecuring web applications using machine learning
dc.typeGraduation Project
Files
Original bundle
Now showing 1 - 2 of 2
Loading...
Thumbnail Image
Name:
Project_Abstract.docx
Size:
14.37 KB
Format:
Microsoft Word XML
Description:
Loading...
Thumbnail Image
Name:
final_ML.pptx
Size:
2.59 MB
Format:
Microsoft Powerpoint XML
Description:
License bundle
Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
license.txt
Size:
1.71 KB
Format:
Item-specific license agreed upon to submission
Description: