How greenbone/openvas-scanner works
OpenVAS Scanner is a vulnerability-scanning engine with a legacy C implementation and a newer Rust stack intended to consolidate scanner services. The principal workflow is a scan request entering openvasd, being scheduled and executed against targets using Vulnerability Tests (VTs), and exposing scan results through the API. The Rust runtime setup explicitly wires scan, VT, Notus, and container-image handlers; the tree and README document additional feed and protocol capabilities. Some internal C-to-Rust runtime wiring is not established by the sampled excerpts, so it is not inferred here.
Main entry points: main.rs openvasd runtime · scans/mod.rs Scan endpoints · scanner.rs Rust scanner · interpreter/mod.rs NASL interpreter
Components 23
API and orchestration
- openvasd runtime
rust/src/openvasd/main.rs - Scanner API
rust/src/openvasd/greenbone_scanner_framework - Scan endpoints
rust/src/openvasd/scans/mod.rs - Scan scheduling
rust/src/scanner/scan_runner.rs - Scan models
rust/src/models/scan.rs
Scan execution
- Rust scanner
rust/src/scanner/scanner.rs - VT runner
rust/src/scanner/vt_runner.rs - NASL interpreter
rust/src/nasl/interpreter/mod.rs - NASL parser
rust/src/nasl/syntax/parser/mod.rs - NASL built-ins
rust/src/nasl/builtin/mod.rs - Network probes
rust/src/nasl/builtin/network/mod.rs - C scan engine
src/openvas.c - Plugin scheduling
src/pluginscheduler.c - C NASL plugins
src/nasl_plugins.c
Feeds and assessment
- Feed verification
rust/src/openvasd/vts/orchestrator.rs - VT service
rust/src/openvasd/vts/mod.rs - Notus assessment
rust/src/notus/notus.rs - Image scanning
rust/src/openvasd/container_image_scanner/mod.rs
Scan state
- Scan storage
rust/src/openvasd/database/sqlite/scan_storage.rs - Result collection
rust/src/openvasd/database/sqlite/results.rs
Other components
- Scan client
- Scan targets
- VT feed
Connections 21
- Scan client → Scanner API: submits requests
- Scanner API → Scan endpoints: dispatches scans
- Scan endpoints → Scan scheduling: starts scans
- Scan endpoints → Scan models: uses scan data
- Scan scheduling → Rust scanner: runs scan
- Rust scanner → VT runner: executes VTs
- VT runner → NASL interpreter: interprets scripts
- NASL interpreter → NASL parser: parses scripts
- NASL interpreter → NASL built-ins: invokes functions
- NASL built-ins → Network probes: performs probes
- Scan targets → Network probes: receives probes
- VT feed → Feed verification: provides feed
- Feed verification → VT service: synchronizes VTs
- openvasd runtime → Scanner API: builds runtime
- openvasd runtime → VT service: registers service
- openvasd runtime → Notus assessment: registers handlers
- openvasd runtime → Image scanning: registers endpoints
- Rust scanner → Scan storage: dispatches scan state
- Scan storage → Result collection: stores results
- C scan engine → Plugin scheduling: schedules plugins
- Plugin scheduling → C NASL plugins: launches plugins