How kamalesh1214/crypto-discovery works
Cryptographic Discovery accepts a ZIP repository, scans its contents statically, records discovered cryptographic assets and assessments, then presents inventory, risk, dependency, migration, and report views. The backend stages include safe extraction, file discovery, language/configuration detection, rule-based assessment, persistence, and reporting; the frontend coordinates scans and displays results. The scan-service excerpt and source index support the main backend calls. Some capability details are documented only in the README, and dependency analysis has no dedicated backend module in the supplied tree.
Main entry points: scan_service.py Scan orchestrator · api.js API client · App.jsx Application shell · routes.py Scan API
Components 20
Scan ingestion
- Scan API
backend/app/api/routes.py - Safe ZIP extraction
backend/app/scanner/zip_extractor.py - Scan orchestrator
backend/app/services/scan_service.py
Discovery and assessment
- File discovery
backend/app/scanner/file_discovery.py - Crypto detectors
backend/app/detectors - Classical risk
backend/app/rules/risk_engine.py - HNDL exposure
backend/app/rules/exposure_engine.py - PQC migration assessment
backend/app/rules/pqc_engine.py
Results and reports
- Scan inventory store
backend/app/models/schemas.py - JSON and CSV reports
backend/app/services/report_service.py
User experience
- Discovery console
frontend/src/pages/DiscoveryPage.jsx - Application shell
frontend/src/App.jsx - API client
frontend/src/services/api.js - Cryptographic inventory
frontend/src/pages/CBOMPage.jsx - Readiness overview
frontend/src/pages/OverviewPage.jsx - Risk and quantum view
frontend/src/pages/RiskMoscaPage.jsx - Dependency impact
frontend/src/pages/DependenciesPage.jsx - Migration planning
frontend/src/pages/MigrationPage.jsx - Report exports
frontend/src/pages/ReportsPage.jsx
Other components
- Repository analyst
Connections 26
- Repository analyst → Discovery console: uploads ZIP
- Discovery console → API client: starts scan
frontend/src/pages/DiscoveryPage.jsx - API client → Scan API: sends scan request
frontend/src/services/api.js - Scan API → Scan orchestrator: invokes scan
backend/app/api/routes.py - Scan orchestrator → Safe ZIP extraction: extracts safely
backend/app/services/scan_service.py - Scan orchestrator → File discovery: discovers files
backend/app/services/scan_service.py - Scan orchestrator → Crypto detectors: scans files
backend/app/services/scan_service.py - Scan orchestrator → Classical risk: assesses risk
backend/app/services/scan_service.py - Scan orchestrator → HNDL exposure: assesses exposure
backend/app/services/scan_service.py - Scan orchestrator → PQC migration assessment: estimates migration
backend/app/services/scan_service.py - Scan orchestrator → Scan inventory store: persists results
backend/app/services/scan_service.py - Scan API → Scan inventory store: reads scan records
backend/app/api/routes.py - Scan API → JSON and CSV reports: generates exports
backend/app/api/routes.py - Application shell → Discovery console: routes to
frontend/src/App.jsx - Application shell → Readiness overview: routes to
frontend/src/App.jsx - Application shell → Cryptographic inventory: routes to
frontend/src/App.jsx - Application shell → Risk and quantum view: routes to
frontend/src/App.jsx - Application shell → Dependency impact: routes to
frontend/src/App.jsx - Application shell → Migration planning: routes to
frontend/src/App.jsx - API client → Scan inventory store: fetches inventory
- Cryptographic inventory → API client: requests inventory
- Risk and quantum view → API client: requests risk data
frontend/src/pages/RiskMoscaPage.jsx - Dependency impact → API client: requests scan data
frontend/src/pages/DependenciesPage.jsx - Migration planning → API client: requests inventory
frontend/src/pages/MigrationPage.jsx - Report exports → API client: requests exports
- Scan orchestrator → Dependency impact: supports impact analysis