How pandiselvi16/vulnerable_check works
This repository is a vulnerability-scanning and automated-remediation tool. Its principal workflow starts with a repository scan: language plugins inventory dependencies and usage, scanners produce security findings, and the pipeline enriches findings with reachability context. Results are packaged and rendered as reports; a separate remediation workflow uses Gemini to propose/apply fixes, rescans, compares outcomes, and can create a pull request. Scanner integrations are documented by the plugin contract, but the excerpts do not show all registration and dispatch wiring, so uncertain links are omitted or marked dashed.
Main entry points: pipeline.py Scan pipeline · _tool.py Tool helpers · remediate.py Remediation driver · run.py CLI entry
Components 24
Scan orchestration
- CLI entry
run.py - Scan pipeline
core/pipeline.py - Plugin contracts
plugins/base.py - Plugin registry
plugins/__init__.py
Inventory and reachability
- Language registry
plugins/languages/__init__.py - Python inventory
plugins/languages/python.py - Python call analysis
plugins/languages/py_calls.py - JavaScript inventory
plugins/languages/javascript.py - Affected symbols
core/symbols.py
Security scanners
- OSV dependency scan
plugins/osv/plugin.py - Semgrep SAST
plugins/semgrep/plugin.py - Joern call trees
plugins/joern/plugin.py - ZAP app scan
plugins/owasp_zap/plugin.py - ClamAV scan
plugins/clamav/plugin.py - Trivy scan
plugins/trivy/plugin.py - Tool helpers
plugins/_tool.py
Reporting and remediation
- LLM task pack
core/llm_pack.py - Scan report
core/report.py - Report UI
core/report_ui.py - Pull request view
core/pr_view.py - Remediation engine
core/remediate.py - Gemini client
core/gemini.py - Remediation driver
remediate.py
Other components
- Engineer
Connections 30
- Engineer → CLI entry: starts scan
run.py - CLI entry → Scan pipeline: runs scan
run.py - CLI entry → Scan report: renders results
run.py - Scan pipeline → Affected symbols: uses symbols
core/pipeline.py - Scan pipeline → Plugin registry: loads plugins
core/pipeline.py - Plugin registry → Plugin contracts: uses contracts
plugins/__init__.py - Language registry → Python inventory: registers language
plugins/languages/__init__.py - Language registry → JavaScript inventory: registers language
plugins/languages/__init__.py - Python inventory → Python call analysis: collects calls
plugins/languages/python.py - Scan pipeline → Language registry: detects languages
core/pipeline.py - Scan pipeline → OSV dependency scan: checks dependencies
- Scan pipeline → Semgrep SAST: scans source
- Scan pipeline → Joern call trees: adds call context
- Scan pipeline → ZAP app scan: runs app checks
- Scan pipeline → ClamAV scan: checks malware
- Scan pipeline → Trivy scan: checks dependencies
- OSV dependency scan → Affected symbols: extracts symbols
plugins/osv/plugin.py - OSV dependency scan → Tool helpers: uses tool helpers
plugins/osv/plugin.py - Semgrep SAST → Tool helpers: uses tool helpers
plugins/semgrep/plugin.py - Joern call trees → Tool helpers: uses tool helpers
plugins/joern/plugin.py - ZAP app scan → Tool helpers: uses tool helpers
plugins/owasp_zap/plugin.py - ClamAV scan → Tool helpers: uses tool helpers
plugins/clamav/plugin.py - Trivy scan → Tool helpers: uses tool helpers
plugins/trivy/plugin.py - Scan report → LLM task pack: builds handoff
core/report.py - Scan report → Report UI: renders interface
core/report.py - Remediation driver → Scan pipeline: runs rescans
remediate.py - Remediation driver → Remediation engine: drives fixes
remediate.py - Remediation driver → Gemini client: requests fixes
remediate.py - Remediation driver → Pull request view: creates PR
remediate.py - Remediation engine → Gemini client: calls model
core/remediate.py