How armur-ai/vibescan works
vibescan is a security scanner for AI-generated applications. Its principal workflow accepts a repository or file scan, runs standard or advanced security checks, and exposes findings and reports through the CLI or REST API. The tree also shows task processing, PR review, MCP access, compliance mapping, attack-path analysis, DAST, exploit simulation, and vulnerability intelligence. Some subsystems are represented from the README or file tree without sampled implementation details, so their internal connections are omitted rather than inferred.
Main entry points: tasks.go Scan orchestration · handlers.go Scan handlers · pr_review.go PR review · worker.go Background worker
Components 21
User interfaces
- CLI commands
cli/cmd/scan.go - REST endpoints
internal/api/routes.go - Scan handlers
internal/api/handlers.go - MCP tools
internal/mcp/server.go - PR review
internal/agent/pr_review.go
Scan engine
- Scan orchestration
internal/tasks/tasks.go - Background worker
internal/worker/worker.go - Scanner runners
internal/tools - LLM security checks
internal/tools/llmsecurity.go
Security analysis
- Attack-path analysis
internal/attackpath/graph.go - Compliance mapping
internal/compliance/cwe_top25.go - Dynamic testing
internal/sandbox/dast.go - Exploit simulation
internal/exploit/runner.go - Vulnerability intelligence
internal/intel/epss.go
Results and integrations
- Task results
internal/tasks/tasks.go - Report formatting
pkg/format.go - SARIF output
pkg/sarif/sarif.go - Webhook delivery
internal/webhook/webhook.go
Other components
- Developer
- Scanner binaries
- GitHub API
Connections 16
- Developer → CLI commands: starts scans
README.md - Developer → REST endpoints: requests scans
README.md - REST endpoints → Scan handlers: routes requests
internal/api/routes.go - Scan handlers → Scan orchestration: enqueues scans
internal/api/handlers.go - Background worker → Scan orchestration: runs scan tasks
internal/worker/worker.go - Scan orchestration → Scanner runners: runs scanners
internal/tasks/tasks.go - Scanner runners → Scanner binaries: invokes tools
- Scan orchestration → Task results: stores results
internal/tasks/tasks.go - Scan handlers → Task results: fetches results
internal/api/handlers.go - Scan handlers → SARIF output: formats SARIF
internal/api/handlers.go - Scan handlers → Report formatting: generates reports
internal/api/handlers.go - Background worker → Webhook delivery: delivers results
internal/worker/worker.go - MCP tools → Scan orchestration: runs scans
internal/mcp/server.go - PR review → Scan orchestration: runs SAST
internal/agent/pr_review.go - PR review → GitHub API: fetches PR data
internal/agent/pr_review.go - PR review → Dynamic testing: may run DAST