| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
The Agentic Security Scanner is an AI-powered security analysis tool that automatically detects vulnerabilities in code repositories. Built with React, TypeScript, and OpenAI's capabilities, it provides comprehensive security scanning with detailed reporting and actionable insights.
Live Demo: https://security.agentics.org/
The project follows a structured multi-phase development approach:
| Plan | Description |
|---|---|
| Guidance | Coding standards, best practices, and project organization principles |
| Phase 1 | Core Security Scanner Setup - basic structure and functionality |
| Phase 2 | Advanced Features and Edge Function Integration |
| Phase 3 | GitHub Integration and Automation features |
| Tests | Complete testing strategy and specifications |
| Implementation Progress | Current development status and completed features |
| SEO Optimization | Search engine optimization strategy |
| Plans Overview | Summary of all planning documents |
The Security Scanner Edge Function (security-scanner) provides the backend scanning capabilities with comprehensive code analysis features:
The Security Scanner edge function is implemented as a Deno-based serverless function with:
The security scanner leverages advanced AI capabilities through:
The vector-file edge function enables powerful code analysis through:
The vector-file edge function provides these key capabilities:
/create-store: Creates a new vector store for a repository
POST /vector-file/create-store
Body: { "name": "repo-name", "expiresAfter": "30d" }
Returns: { "id": "vs_..." }
/upload-file: Uploads code files for analysis
POST /vector-file/upload-file
FormData: file
Returns: { "id": "file_..." }
/add-file: Adds a file to a vector store with chunking options
POST /vector-file/add-file
Body: { "vectorStoreId": "vs_...", "fileId": "file_...", "chunkingStrategy": {...} }
Returns: { "success": true }
/search: Performs semantic search across codebase
POST /vector-file/search
Body: { "vectorStoreId": "vs_...", "query": "insecure password storage", "maxResults": 10 }
Returns: Vector search results
/query: Enhanced search with web augmentation
POST /vector-file/query
Body: { "vectorStoreId": "vs_...", "question": "Are there any SQL injection vulnerabilities?", "webSearch": {"enabled": true} }
Returns: { "vector_results": [...], "web_results": [...], "answer": "..." }
For a detailed walkthrough of how this project was built using Roo Code Power Steering and our process-focused development methodology, see the tutorial.md file.
/init-scan: Initialize a vector store for a repository
POST /init-scan
Body: { "repo": "owner/repo" }
Returns: { "vectorStoreId": "vs_..." }
/scan-repo: Run a full security scan
POST /scan-repo
Body: { "repo": "owner/repo", "branch": "main" }
Returns: ScanResult object
/scan-results: Get historical scan results
POST /scan-results
Body: { "repo": "owner/repo", "limit": 10 }
Returns: { "results": ScanResult[] }
/create-issues: Create GitHub issues for findings
POST /create-issues
Body: { "repo": "owner/repo", "findings": SecurityFinding[] }
Returns: { "created": number, "issues": string[] }
/cron-trigger: Endpoint for GitHub Actions to trigger nightly scans
POST /cron-trigger
Body: { "repo": "owner/repo", "branch": "main", "sendReport": true, "recipient": "user@example.com" }
Returns: { "scanId": "scan_...", "message": "Scan queued successfully" }
/send-report: Send a security report via email
POST /send-report
Body: { "repo": "owner/repo", "recipient": "user@example.com", "includeRecommendations": true }
Returns: { "success": true, "message": "Report sent successfully" }
The vulnerabilities/ directory contains a comprehensive collection of sample security issues that can be used for:
The collection includes examples of:
This project was built using a multi-phase development approach with Roo Code Power Steering to optimize development costs and efficiency:
Instead of creating a single monolithic design document, the project is structured into phases:
The project uses Gemini 2.0 Pro with Roo Code's Power Steering for efficient development:
git clone <repository-url>
cd agentic-security-scannernpm installnpm run devRun the test suite with:
npm testFor integration tests with the edge function:
npm run test:integrationThe application can be deployed to any static hosting provider:
npm run buildThen deploy the contents of the dist directory.
This project is licensed under the MIT License - see the LICENSE file for details.
| Back | FazBrowse Home | New Git URL |