How mohammed-siraj-3373/vulnsense works
VulnSense is a lab-oriented vulnerability assessment and risk-prioritization web app. Users sign in, check readiness, launch scans, review ML-ranked findings and explanations, and retrieve scan history or reports. The scan path spans network, web, and configuration checks, classification, and persistence; separate capabilities include single-finding classification, CVE enrichment, dashboard metrics, and model reporting. Edges follow shown imports/calls or README workflow statements; some route internals are unsampled, so only documented relationships are included.
Main entry points: api.py API routes · dashboard.html Dashboard · app.py Flask entry point · predictor.py Risk classifier
Components 18
Web experience
- Sign-in page
frontend/templates/login.html - Readiness page
frontend/templates/readiness.html - Dashboard
frontend/templates/dashboard.html - Report download
frontend/templates/dashboard.html
Application services
- Flask entry point
app.py - API routes
backend/routes/api.py - PDF reports
backend/utils/pdf_report.py
Assessment pipeline
- Network scanner
backend/scanner/network_scan.py - Web checks
backend/scanner/web_check.py - Config checks
backend/scanner/config_check.py
Risk intelligence
- Risk classifier
backend/ml/predictor.py - Model training
backend/ml/train_model.py - Synthetic dataset
data/generate_dataset.py - CVE lookup
backend/utils/cve_lookup.py
Identity and records
- Authentication
backend/utils/auth.py - SQLite records
backend/utils/db.py
Other components
- Analyst
- NVD CVE service
Connections 26
- Analyst → Sign-in page: opens
README.md - Sign-in page → API routes: signs in
README.md - Analyst → Readiness page: checks readiness
README.md - Readiness page → API routes: requests health
README.md - Analyst → Dashboard: reviews findings
README.md - Flask entry point → API routes: registers routes
app.py - Flask entry point → SQLite records: initializes
app.py - Flask entry point → Authentication: seeds admin
app.py - API routes → Authentication: authenticates
backend/routes/api.py - Authentication → SQLite records: reads and writes
backend/utils/auth.py - Dashboard → API routes: requests data
README.md - API routes → Network scanner: runs scan
backend/routes/api.py - API routes → Web checks: runs checks
README.md - API routes → Config checks: runs checks
README.md - API routes → Risk classifier: classifies findings
backend/routes/api.py - Risk classifier → Dashboard: supplies explanations
README.md - API routes → CVE lookup: looks up CVEs
backend/routes/api.py - CVE lookup → NVD CVE service: queries CVEs
backend/utils/cve_lookup.py - API routes → SQLite records: stores and retrieves
backend/routes/api.py - API routes → PDF reports: generates report
backend/routes/api.py - PDF reports → Report download: produces PDF
backend/utils/pdf_report.py - API routes → Dashboard: serves metrics
README.md - Analyst → Report download: downloads
README.md - Synthetic dataset → Model training: provides training data
README.md - Model training → Risk classifier: produces model artifacts
README.md - Dashboard → API routes: views model report
README.md