AI-powered security scanner for GitHub repositories that detects vulnerabilities in Python code.
- GitHub repository scanning
- Python vulnerability detection
- AI-powered fix suggestions
- Modern web interface
- Real-time scan progress
- Downloadable reports (PDF/JSON)
- Repository URL input with validation
- Branch selection support
- Animated loading states
- Results dashboard with filtering and sorting
- Severity-based vulnerability cards
- Error handling with helpful messages
- Dark themed modern UI
- Automatic repository fetching
- Branch detection and fallback
- Rate limit handling
- File size management
- Commit tracking for incremental scans
- Private repository detection
- Bandit integration for static analysis
- Custom regex pattern matching
- SQL injection detection
- Hardcoded credentials detection
- Command injection detection
- Severity classification
- Google Gemini integration
- Intelligent fix recommendations
- Context-aware suggestions
- Detailed vulnerability reports
- OWASP Top 10 categorization
- Export to PDF or JSON
- Summary statistics
Frontend: React, Vite, Axios
Backend: Flask, PyGithub, Bandit
AI: Google Gemini API
Testing: Pytest (31 tests passing)
- Node.js 18+
- Python 3.9+
- GitHub Personal Access Token
- Google Gemini API Key (optional)
- Clone the repository
git clone https://github.com/Nishanth2969/Cloud-Based-Source-Code-Vulnerability-Detector.git
cd Cloud-Based-Source-Code-Vulnerability-Detector- Install frontend dependencies
cd frontend
npm install- Install backend dependencies
cd backend
pip install -r requirements.txt- Configure environment variables
cd backend
cp .env.example .env
# Add your GitHub token to .envStart the frontend:
cd frontend
npm run devStart the backend:
cd backend
python app.pyAccess at http://localhost:3000
Run all backend tests:
cd backend
python -m pytest tests/ -v- Enter a GitHub repository URL
- Select branch (defaults to main/master)
- Click "Start Scanning"
- View results with severity levels
- Download report as PDF or JSON
frontend/ React application
backend/ Flask API server
├── api/ API routes
├── services/ Core services
├── models/ Data models
├── utils/ Utilities
└── tests/ Test suite
lambda_functions/ AWS Lambda handlers
infrastructure/ Deployment configs
MIT