How hello-rajeev/ransom-guard works
Ransom Guard is a ransomware-analysis web platform, but the sampled implementation shows a mix of working authentication and analysis UI plus a FastAPI analysis endpoint; it does not establish that the frontend calls that endpoint. The principal intended workflow is file submission, analysis, and viewing or exporting results. Static/dynamic indicators, URL and database-search screens, monitoring, and theme support are documented or visible in the UI, but their implementation is incomplete or unsampled. Edges reflect shown imports/calls or README claims; the frontend-to-backend connection is left unverified.
Main entry points: App.jsx Analysis app · AuthContext.jsx Auth state · main.py Analysis API · Login.jsx Login interface
Components 16
Threat analysis
- File analysis flow
src/App.jsx - URL and search UI
src/App.jsx - Results and indicators
src/App.jsx - PDF reporting
src/App.jsx - Analysis API
backend/main.py - PE feature extraction
backend/main.py - LightGBM inference
backend/main.py
Web experience
- Analysis app
src/App.jsx - Navigation and alerts
src/components/Navigation.jsx - Footer
src/components/Footer.jsx - React entry
src/main.jsx
Authentication
- Login interface
src/components/Login.jsx - Auth state
src/context/AuthContext.jsx - Firebase setup
src/config/firebase.js - Firebase Auth
Other components
- Analyst
Connections 19
- Analyst → Analysis app: uses
README.md - React entry → Auth state: provides auth
src/main.jsx - React entry → Analysis app: renders
src/main.jsx - Analysis app → Navigation and alerts: renders
src/App.jsx - Analysis app → Login interface: renders
src/App.jsx - Analysis app → Footer: renders
src/App.jsx - Analysis app → File analysis flow: coordinates
src/App.jsx - Analysis app → URL and search UI: shows
src/App.jsx - Analysis app → Results and indicators: shows
src/App.jsx - Analysis app → PDF reporting: generates
src/App.jsx - File analysis flow → Analysis API: submits file
- Analysis API → PE feature extraction: extracts features
backend/main.py - Analysis API → LightGBM inference: predicts verdict
backend/main.py - Login interface → Firebase setup: uses auth config
src/components/Login.jsx - Firebase setup → Firebase Auth: initializes
src/config/firebase.js - Login interface → Firebase Auth: authenticates
src/components/Login.jsx - Auth state → Firebase setup: uses auth
src/context/AuthContext.jsx - Auth state → Firebase Auth: tracks session
src/context/AuthContext.jsx - Navigation and alerts → Auth state: reads and signs out
src/components/Navigation.jsx