How abhaykumar99/riskscope works
RiskScope lets developers authenticate, submit a GitHub repository or ZIP, run an asynchronous security scan, and review prioritized findings and reports. The backend intake and scan pipeline feed static, secret, dependency, and configuration analysis; results are correlated, checked for reachability, scored, and persisted for dashboard and report access. The README documents these capabilities, while the excerpts and source index support only selected implementation links; unverified subsystem connections are omitted.
Main entry points: pipeline.py Scan orchestration · routers REST API routes · App.tsx Web application · client.ts Typed API client
Components 23
Web experience
- Web application
frontend/src/App.tsx - Authentication UI
frontend/src/store/auth.tsx - Repository and scan UI
frontend/src/pages/SubmitRepo.tsx - Finding explorer
frontend/src/pages/ScanDetail.tsx - Typed API client
frontend/src/api/client.ts
API and access
- REST API routes
backend/app/routers - Authentication
backend/app/routers/auth.py - Repository intake
backend/app/services/ingest.py - Async scan tasks
backend/app/tasks.py - Reports
backend/app/services/reports.py
Scan and prioritization
- Scan orchestration
backend/app/services/pipeline.py - Static analysis
backend/app/services/semgrep_scanner.py - Secret detection
backend/app/services/gitleaks_scanner.py - Dependency analysis
backend/app/services/osv_scanner.py - Configuration checks
backend/app/services/config_scanner.py - Finding correlation
backend/app/services/correlation.py - Reachability analysis
backend/app/services/reachability.py - Risk prioritization
backend/app/services/scoring.py
Findings and state
- Finding persistence
backend/app/services/scanners.py - PostgreSQL state
backend/app/db.py
Other components
- Developer
- GitHub
- OSV API
Connections 26
- Developer → Web application: uses
frontend/src/App.tsx - Web application → Authentication UI: provides auth
frontend/src/App.tsx - Web application → Repository and scan UI: routes to
frontend/src/App.tsx - Web application → Finding explorer: routes to
frontend/src/App.tsx - Authentication UI → Typed API client: requests API
frontend/src/store/auth.tsx - Repository and scan UI → Typed API client: submits scans
- Finding explorer → Typed API client: loads findings
frontend/src/pages/ScanDetail.tsx - Typed API client → REST API routes: calls API
frontend/src/api/client.ts - REST API routes → Authentication: routes auth
backend/app/main.py - REST API routes → Repository intake: handles intake
- Repository intake → GitHub: clones repository
backend/app/services/ingest.py - REST API routes → Async scan tasks: queues scans
- Async scan tasks → Scan orchestration: runs pipeline
backend/app/tasks.py - Scan orchestration → Repository intake: prepares source
backend/app/services/pipeline.py - Scan orchestration → Static analysis: runs analysis
backend/app/services/pipeline.py - Scan orchestration → Secret detection: runs detection
backend/app/services/pipeline.py - Scan orchestration → Dependency analysis: checks dependencies
backend/app/services/pipeline.py - Scan orchestration → Configuration checks: checks configuration
backend/app/services/pipeline.py - Dependency analysis → OSV API: queries vulnerabilities
- Scan orchestration → Finding correlation: correlates results
backend/app/services/pipeline.py - Finding correlation → Reachability analysis: checks reachability
backend/app/services/correlation.py - Scan orchestration → Risk prioritization: scores findings
backend/app/services/pipeline.py - Scan orchestration → Finding persistence: persists results
backend/app/services/pipeline.py - Finding persistence → PostgreSQL state: writes findings
- REST API routes → Reports: serves reports
- Reports → PostgreSQL state: reads results