How vedanshprakash/ai_malware_college_project works
This is a malware-scanning web application: users authenticate, submit PE/APK files, receive a model-based assessment with optional VirusTotal intelligence, and view scan history and analytics. Flask routes own backend processing and persistence; the React client presents upload, dashboard, history, and analytics workflows through an API service. The README documents Gemini explanations, though the excerpt does not show the call site. Some backend routes and feature extractors were not sampled, so uncertain connections are omitted.
Main entry points: api.js API client · scan.py Scan endpoint · AppView.jsx Authenticated app view · auth.py Auth routes
Components 22
Web client
- App and routing
frontend/src/App.jsx - Authenticated app view
frontend/src/components/AppView.jsx - File upload
frontend/src/pages/Upload.jsx - Dashboard
frontend/src/pages/Dashboard.jsx - Scan history
frontend/src/pages/History.jsx - Analytics
frontend/src/pages/Analytics.jsx - Login and register
frontend/src/pages - API client
frontend/src/services/api.js
Backend API
- Flask app
backend/app.py - Auth routes
backend/routes/auth.py - Scan endpoint
backend/routes/scan.py - Dashboard routes
backend/routes/dashboard.py - Scan result schema
backend/models/scan.py
Threat analysis
- ML prediction
backend/utils/ml_predict.py - PE feature extraction
backend/utils/file_features.py - APK feature extraction
backend/utils/android_features.py - VirusTotal analysis
backend/utils/virus_total.py - Gemini explanations
Identity and storage
- Config and storage
backend/config.py - User model
backend/models/user.py
Other components
- User
- MongoDB
Connections 31
- User → App and routing: uses
- App and routing → Login and register: routes to
frontend/src/App.jsx - App and routing → Authenticated app view: renders
frontend/src/App.jsx - Authenticated app view → File upload: renders
frontend/src/components/AppView.jsx - Authenticated app view → Dashboard: renders
frontend/src/components/AppView.jsx - Authenticated app view → Scan history: renders
frontend/src/components/AppView.jsx - Authenticated app view → Analytics: renders
frontend/src/components/AppView.jsx - Login and register → API client: calls
frontend/src/services/api.js - File upload → API client: submits scan
frontend/src/services/api.js - Dashboard → API client: requests data
frontend/src/pages/Dashboard.jsx - Scan history → API client: requests history
frontend/src/pages/History.jsx - Analytics → API client: requests data
frontend/src/pages/Analytics.jsx - API client → Auth routes: sends auth requests
frontend/src/services/api.js - API client → Scan endpoint: sends scan request
frontend/src/services/api.js - API client → Dashboard routes: requests history
frontend/src/services/api.js - Flask app → Auth routes: registers
backend/app.py - Flask app → Scan endpoint: registers
backend/app.py - Flask app → Dashboard routes: registers
backend/app.py - Auth routes → Config and storage: reads and writes users
backend/routes/auth.py - Auth routes → User model: imports
backend/routes/auth.py - Dashboard routes → Config and storage: reads scans
backend/routes/dashboard.py - Dashboard routes → Scan result schema: uses schema
backend/routes/dashboard.py - Scan endpoint → ML prediction: predicts threat
backend/routes/scan.py - Scan endpoint → VirusTotal analysis: requests analysis
backend/routes/scan.py - ML prediction → PE feature extraction: extracts PE features
backend/utils/ml_predict.py - ML prediction → APK feature extraction: extracts APK features
backend/utils/ml_predict.py - Scan endpoint → Config and storage: stores scan
backend/routes/scan.py - Scan endpoint → Scan result schema: constructs result
backend/routes/scan.py - Config and storage → MongoDB: connects to
backend/config.py - Scan endpoint → Gemini explanations: requests explanation
README.md - VirusTotal analysis → Gemini explanations