ML-powered Cross-Site Scripting (XSS) detection system using Random Forest + TF-IDF, achieving 99.7% accuracy.
- ML Model: Random Forest, TF-IDF, Scikit-learn
- Backend: Python, FastAPI
- Frontend: React, Vite, Tailwind CSS
- Real-time XSS payload detection
- 99.7% accuracy, 99.8% F1 score
- 18 custom security features
- Severity scoring (Safe/Low/Medium/High/Critical)
- Batch scanning support
- Scan history with CSV export
- Dark/Light theme
cd backend
pip install -r requirements.txt
uvicorn main:app --port 8000cd frontend
npm install
npm run dev| Metric | Score |
|---|---|
| Accuracy | 99.7% |
| F1 Score | 99.8% |
| AUC-ROC | 99.99% |