How bharathram125/injectiondetector works
This is a research-oriented web injection detector with a Flask demo and a character-level GCN classifier. The user workflow accepts login fields or a greeting name, converts each payload into a character graph, classifies it, and then blocks flagged input or continues the route’s response. The README also describes dataset preparation and model training, represented here as documented capabilities; their notebook implementation was not sampled. Runtime relationships are grounded in app.py, while the training flow is documented in the README.
Main entry points: app.py Prediction · Datasets Dataset files · Injection_detection_GCN_Classifier.ipynb Model training notebook · gcn_model_v3.pth Trained weights
Components 14
Web application
- Home route
app.py - Login route
app.py - Greeting route
app.py - Home page
templates/home.html - Login form
templates/login.html
Detection runtime
- Payload graphing
app.py - Prediction
app.py - GCN classifier
app.py - Character vocabulary
Models/char_vocab.json - Trained weights
Models/gcn_model_v3.pth
Data and training
- Dataset files
Datasets - Dataset merge
Datasets/merge.py - Model training notebook
Notebook/Injection_detection_GCN_Classifier.ipynb
Other components
- Web user
Connections 14
- Web user → Home route: requests
app.py - Web user → Login route: submits credentials
app.py - Web user → Greeting route: sends name
app.py - Home route → Home page: renders
app.py - Login route → Login form: renders
app.py - Login route → Prediction: classifies fields
app.py - Greeting route → Prediction: classifies name
app.py - Prediction → Payload graphing: builds graph
app.py - Prediction → GCN classifier: runs inference
app.py - GCN classifier → Character vocabulary: embeds characters
app.py - GCN classifier → Trained weights: loads weights
app.py - Dataset files → Dataset merge: merges parts
Datasets/merge.py - Dataset files → Model training notebook: supports training
README.md - Model training notebook → Trained weights: produces model
README.md