# pandiselvi16/vulnerable_check architecture

> Architecture diagram of the GitHub repository pandiselvi16/vulnerable_check, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-12). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/pandiselvi16/vulnerable_check
- Repository: https://github.com/pandiselvi16/vulnerable_check

## Overview

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: [`core/pipeline.py`](https://github.com/pandiselvi16/vulnerable_check/blob/main/core/pipeline.py) (Scan pipeline), [`plugins/_tool.py`](https://github.com/pandiselvi16/vulnerable_check/blob/main/plugins/_tool.py) (Tool helpers), [`remediate.py`](https://github.com/pandiselvi16/vulnerable_check/blob/main/remediate.py) (Remediation driver), [`run.py`](https://github.com/pandiselvi16/vulnerable_check/blob/main/run.py) (CLI entry)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_orchestration["Scan orchestration"]
  node_entry["CLI entry<br/>[run.py]"]
  node_pipeline["Scan pipeline<br/>[pipeline.py]"]
  node_plugin_contract["Plugin contracts<br/>[base.py]"]
  node_plugin_registry["Plugin registry<br/>[__init__.py]"]
end

subgraph group_analysis["Inventory and reachability"]
  node_language_registry["Language registry<br/>[__init__.py]"]
  node_python_inventory["Python inventory<br/>[python.py]"]
  node_python_calls["Python call analysis<br/>[py_calls.py]"]
  node_javascript_inventory["JavaScript inventory<br/>[javascript.py]"]
  node_symbols["Affected symbols<br/>[symbols.py]"]
end

subgraph group_scanners["Security scanners"]
  node_osv["OSV dependency scan<br/>[plugin.py]"]
  node_semgrep["Semgrep SAST<br/>[plugin.py]"]
  node_joern["Joern call trees<br/>[plugin.py]"]
  node_zap["ZAP app scan<br/>[plugin.py]"]
  node_clamav["ClamAV scan<br/>[plugin.py]"]
  node_trivy["Trivy scan<br/>[plugin.py]"]
  node_tool_helpers["Tool helpers<br/>[_tool.py]"]
end

subgraph group_results["Reporting and remediation"]
  node_llm_pack["LLM task pack<br/>[llm_pack.py]"]
  node_report["Scan report<br/>[report.py]"]
  node_report_ui["Report UI<br/>[report_ui.py]"]
  node_pr_view["Pull request view<br/>[pr_view.py]"]
  node_remediation["Remediation engine<br/>[remediate.py]"]
  node_gemini["Gemini client<br/>[gemini.py]"]
  node_remediate_cli["Remediation driver<br/>[remediate.py]"]
end

node_engineer(("Engineer"))

node_engineer -->|"starts scan"| node_entry
node_entry -->|"runs scan"| node_pipeline
node_entry -->|"renders results"| node_report
node_pipeline -->|"uses symbols"| node_symbols
node_pipeline -.->|"loads plugins"| node_plugin_registry
node_plugin_registry -->|"uses contracts"| node_plugin_contract
node_language_registry -->|"registers language"| node_python_inventory
node_language_registry -->|"registers language"| node_javascript_inventory
node_python_inventory -->|"collects calls"| node_python_calls
node_pipeline -.->|"detects languages"| node_language_registry
node_pipeline -.->|"checks dependencies"| node_osv
node_pipeline -.->|"scans source"| node_semgrep
node_pipeline -.->|"adds call context"| node_joern
node_pipeline -.->|"runs app checks"| node_zap
node_pipeline -.->|"checks malware"| node_clamav
node_pipeline -.->|"checks dependencies"| node_trivy
node_osv -->|"extracts symbols"| node_symbols
node_osv -->|"uses tool helpers"| node_tool_helpers
node_semgrep -->|"uses tool helpers"| node_tool_helpers
node_joern -->|"uses tool helpers"| node_tool_helpers
node_zap -->|"uses tool helpers"| node_tool_helpers
node_clamav -->|"uses tool helpers"| node_tool_helpers
node_trivy -->|"uses tool helpers"| node_tool_helpers
node_report -->|"builds handoff"| node_llm_pack
node_report -->|"renders interface"| node_report_ui
node_remediate_cli -->|"runs rescans"| node_pipeline
node_remediate_cli -->|"drives fixes"| node_remediation
node_remediate_cli -->|"requests fixes"| node_gemini
node_remediate_cli -->|"creates PR"| node_pr_view
node_remediation -->|"calls model"| node_gemini

click node_entry "https://github.com/pandiselvi16/vulnerable_check/blob/main/run.py"
click node_pipeline "https://github.com/pandiselvi16/vulnerable_check/blob/main/core/pipeline.py"
click node_plugin_contract "https://github.com/pandiselvi16/vulnerable_check/blob/main/plugins/base.py"
click node_plugin_registry "https://github.com/pandiselvi16/vulnerable_check/blob/main/plugins/__init__.py"
click node_language_registry "https://github.com/pandiselvi16/vulnerable_check/blob/main/plugins/languages/__init__.py"
click node_python_inventory "https://github.com/pandiselvi16/vulnerable_check/blob/main/plugins/languages/python.py"
click node_python_calls "https://github.com/pandiselvi16/vulnerable_check/blob/main/plugins/languages/py_calls.py"
click node_javascript_inventory "https://github.com/pandiselvi16/vulnerable_check/blob/main/plugins/languages/javascript.py"
click node_symbols "https://github.com/pandiselvi16/vulnerable_check/blob/main/core/symbols.py"
click node_osv "https://github.com/pandiselvi16/vulnerable_check/blob/main/plugins/osv/plugin.py"
click node_semgrep "https://github.com/pandiselvi16/vulnerable_check/blob/main/plugins/semgrep/plugin.py"
click node_joern "https://github.com/pandiselvi16/vulnerable_check/blob/main/plugins/joern/plugin.py"
click node_zap "https://github.com/pandiselvi16/vulnerable_check/blob/main/plugins/owasp_zap/plugin.py"
click node_clamav "https://github.com/pandiselvi16/vulnerable_check/blob/main/plugins/clamav/plugin.py"
click node_trivy "https://github.com/pandiselvi16/vulnerable_check/blob/main/plugins/trivy/plugin.py"
click node_tool_helpers "https://github.com/pandiselvi16/vulnerable_check/blob/main/plugins/_tool.py"
click node_llm_pack "https://github.com/pandiselvi16/vulnerable_check/blob/main/core/llm_pack.py"
click node_report "https://github.com/pandiselvi16/vulnerable_check/blob/main/core/report.py"
click node_report_ui "https://github.com/pandiselvi16/vulnerable_check/blob/main/core/report_ui.py"
click node_pr_view "https://github.com/pandiselvi16/vulnerable_check/blob/main/core/pr_view.py"
click node_remediation "https://github.com/pandiselvi16/vulnerable_check/blob/main/core/remediate.py"
click node_gemini "https://github.com/pandiselvi16/vulnerable_check/blob/main/core/gemini.py"
click node_remediate_cli "https://github.com/pandiselvi16/vulnerable_check/blob/main/remediate.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_entry,node_pipeline,node_plugin_contract,node_plugin_registry toneBlue
class node_language_registry,node_python_inventory,node_python_calls,node_javascript_inventory,node_symbols toneAmber
class node_osv,node_semgrep,node_joern,node_zap,node_clamav,node_trivy,node_tool_helpers toneMint
class node_llm_pack,node_report,node_report_ui,node_pr_view,node_remediation,node_gemini,node_remediate_cli toneRose
class node_engineer toneIndigo
```

## Components

### Scan orchestration

- [CLI entry](https://github.com/pandiselvi16/vulnerable_check/blob/main/run.py): `run.py`
- [Scan pipeline](https://github.com/pandiselvi16/vulnerable_check/blob/main/core/pipeline.py): `core/pipeline.py`
- [Plugin contracts](https://github.com/pandiselvi16/vulnerable_check/blob/main/plugins/base.py): `plugins/base.py`
- [Plugin registry](https://github.com/pandiselvi16/vulnerable_check/blob/main/plugins/__init__.py): `plugins/__init__.py`

### Inventory and reachability

- [Language registry](https://github.com/pandiselvi16/vulnerable_check/blob/main/plugins/languages/__init__.py): `plugins/languages/__init__.py`
- [Python inventory](https://github.com/pandiselvi16/vulnerable_check/blob/main/plugins/languages/python.py): `plugins/languages/python.py`
- [Python call analysis](https://github.com/pandiselvi16/vulnerable_check/blob/main/plugins/languages/py_calls.py): `plugins/languages/py_calls.py`
- [JavaScript inventory](https://github.com/pandiselvi16/vulnerable_check/blob/main/plugins/languages/javascript.py): `plugins/languages/javascript.py`
- [Affected symbols](https://github.com/pandiselvi16/vulnerable_check/blob/main/core/symbols.py): `core/symbols.py`

### Security scanners

- [OSV dependency scan](https://github.com/pandiselvi16/vulnerable_check/blob/main/plugins/osv/plugin.py): `plugins/osv/plugin.py`
- [Semgrep SAST](https://github.com/pandiselvi16/vulnerable_check/blob/main/plugins/semgrep/plugin.py): `plugins/semgrep/plugin.py`
- [Joern call trees](https://github.com/pandiselvi16/vulnerable_check/blob/main/plugins/joern/plugin.py): `plugins/joern/plugin.py`
- [ZAP app scan](https://github.com/pandiselvi16/vulnerable_check/blob/main/plugins/owasp_zap/plugin.py): `plugins/owasp_zap/plugin.py`
- [ClamAV scan](https://github.com/pandiselvi16/vulnerable_check/blob/main/plugins/clamav/plugin.py): `plugins/clamav/plugin.py`
- [Trivy scan](https://github.com/pandiselvi16/vulnerable_check/blob/main/plugins/trivy/plugin.py): `plugins/trivy/plugin.py`
- [Tool helpers](https://github.com/pandiselvi16/vulnerable_check/blob/main/plugins/_tool.py): `plugins/_tool.py`

### Reporting and remediation

- [LLM task pack](https://github.com/pandiselvi16/vulnerable_check/blob/main/core/llm_pack.py): `core/llm_pack.py`
- [Scan report](https://github.com/pandiselvi16/vulnerable_check/blob/main/core/report.py): `core/report.py`
- [Report UI](https://github.com/pandiselvi16/vulnerable_check/blob/main/core/report_ui.py): `core/report_ui.py`
- [Pull request view](https://github.com/pandiselvi16/vulnerable_check/blob/main/core/pr_view.py): `core/pr_view.py`
- [Remediation engine](https://github.com/pandiselvi16/vulnerable_check/blob/main/core/remediate.py): `core/remediate.py`
- [Gemini client](https://github.com/pandiselvi16/vulnerable_check/blob/main/core/gemini.py): `core/gemini.py`
- [Remediation driver](https://github.com/pandiselvi16/vulnerable_check/blob/main/remediate.py): `remediate.py`

### Other components

- **Engineer**

## Connections

- Engineer → CLI entry: starts scan (evidence: `run.py`)
- CLI entry → Scan pipeline: runs scan (evidence: `run.py`)
- CLI entry → Scan report: renders results (evidence: `run.py`)
- Scan pipeline → Affected symbols: uses symbols (evidence: `core/pipeline.py`)
- Scan pipeline → Plugin registry: loads plugins (evidence: `core/pipeline.py`)
- Plugin registry → Plugin contracts: uses contracts (evidence: `plugins/__init__.py`)
- Language registry → Python inventory: registers language (evidence: `plugins/languages/__init__.py`)
- Language registry → JavaScript inventory: registers language (evidence: `plugins/languages/__init__.py`)
- Python inventory → Python call analysis: collects calls (evidence: `plugins/languages/python.py`)
- Scan pipeline → Language registry: detects languages (evidence: `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 (evidence: `plugins/osv/plugin.py`)
- OSV dependency scan → Tool helpers: uses tool helpers (evidence: `plugins/osv/plugin.py`)
- Semgrep SAST → Tool helpers: uses tool helpers (evidence: `plugins/semgrep/plugin.py`)
- Joern call trees → Tool helpers: uses tool helpers (evidence: `plugins/joern/plugin.py`)
- ZAP app scan → Tool helpers: uses tool helpers (evidence: `plugins/owasp_zap/plugin.py`)
- ClamAV scan → Tool helpers: uses tool helpers (evidence: `plugins/clamav/plugin.py`)
- Trivy scan → Tool helpers: uses tool helpers (evidence: `plugins/trivy/plugin.py`)
- Scan report → LLM task pack: builds handoff (evidence: `core/report.py`)
- Scan report → Report UI: renders interface (evidence: `core/report.py`)
- Remediation driver → Scan pipeline: runs rescans (evidence: `remediate.py`)
- Remediation driver → Remediation engine: drives fixes (evidence: `remediate.py`)
- Remediation driver → Gemini client: requests fixes (evidence: `remediate.py`)
- Remediation driver → Pull request view: creates PR (evidence: `remediate.py`)
- Remediation engine → Gemini client: calls model (evidence: `core/remediate.py`)
