How challengelotus/checkpoint4-cyber-sast-platform works
A Python SAST platform takes users from dashboard access and code upload through authenticated API analysis, optional premium AI review, and persisted findings; the dashboard then presents reports, history, and metrics. The README also describes AST checks, Semgrep taint analysis, SQLite history, and PDF reporting. Unsampled home and plans views are included as documented dashboard capabilities; their internal behavior is not inferred.
Main entry points: main.py API routes · app.py Dashboard router · panel.py Audit and metrics · security.py Authentication security
Components 17
Streamlit dashboard
- Dashboard router
dashboard/app.py - Login and signup
dashboard/views/auth.py - Home page
dashboard/views/home.py - Plan information
dashboard/views/planos.py - Audit and metrics
dashboard/views/panel.py
API and identity
- API routes
api/main.py - Authentication security
api/core/security.py - Application settings
api/core/config.py - Structured logging
api/core/logger.py
Analysis engines
- AST scanner
engine/parser.py - Taint scanner
engine/semgrep_runner.py - Taint rules
engine/taint_rules.yml - AI remediation
ai_module/analyzer.py
Persistence
- SQLite scan store
api/database.py
Other components
- User
- Semgrep executable
- Ollama LLM
Connections 22
- User → Dashboard router: uses
README.md - Dashboard router → Home page: routes to
dashboard/app.py - Dashboard router → Plan information: routes to
dashboard/app.py - Dashboard router → Login and signup: routes to
dashboard/app.py - Dashboard router → Audit and metrics: routes to
dashboard/app.py - Login and signup → API routes: calls auth routes
dashboard/views/auth.py - Audit and metrics → API routes: uploads code
dashboard/views/panel.py - Audit and metrics → API routes: requests history
dashboard/views/panel.py - API routes → Authentication security: uses auth helpers
api/main.py - API routes → Application settings: reads settings
api/main.py - API routes → Structured logging: logs requests
api/main.py - API routes → AST scanner: runs AST scan
api/main.py - API routes → Taint scanner: runs taint scan
api/main.py - API routes → AI remediation: requests premium review
api/main.py - API routes → SQLite scan store: stores and reads scans
api/main.py - Authentication security → SQLite scan store: queries users
api/core/security.py - Authentication security → Application settings: uses token settings
api/core/security.py - AI remediation → Ollama LLM: requests generation
ai_module/analyzer.py - AI remediation → Structured logging: logs AI activity
ai_module/analyzer.py - Taint scanner → Semgrep executable: runs scan
engine/semgrep_runner.py - Taint scanner → Taint rules: configures scan
README.md - API routes → SQLite scan store: creates schema
api/main.py