https://github.com/kiannaquines/web-application-firewall-machine-learning
A simple web application firewall written using python with Machine Learning Algorithms
https://github.com/kiannaquines/web-application-firewall-machine-learning
Last synced: 2 months ago
JSON representation
A simple web application firewall written using python with Machine Learning Algorithms
- Host: GitHub
- URL: https://github.com/kiannaquines/web-application-firewall-machine-learning
- Owner: kiannaquines
- Created: 2025-01-26T06:36:29.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2025-02-03T13:56:06.000Z (4 months ago)
- Last Synced: 2025-02-03T14:32:40.024Z (4 months ago)
- Language: Jupyter Notebook
- Size: 23.2 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Web Application Firewall
This is my own version of implementing a web application firewall using machine learning algorithm.

## Model
Fitting the model in each algorithm takes 4 hours because of crappy specs of my laptop (CPU Based). It was so slow in fitting since the dataset that the model was trained has 100k+ records no GPU. 😅
The model was trained on both DecisionTreeClassifier & RandomForest, each algorithm got there own accuracy score.

# Result

Out of 222 sql injection payload request 6 are missed to block the request.

Out of 64 normal request 2 are missed to allow the request.

## Take Aways
1. Since some of the payloads are missed in classifiying whether the request is Malicious or Not we must include the missed payload in the training and testing phase.
2. We can use RNN or CNN for this web application firewall.
## Future Integration
1. Integrate a Web Dashboard
2. Implement using Neural Network