Back to Engineering Blog
Engineering Field Notes 6 min read

Vulnerability Management in the Lab: Tuning Greenbone OpenVAS Without Network Denial

Running an enterprise vulnerability scanner on homelab hardware requires patience and finesse. Here is what we learned from gvmd process crashes, NVD database syncs, and IoT network storms.

Jason NevillBy , Houston, TX
#VulnerabilityManagement#Greenbone#Security#DevOps

Key Architectural Takeaways

  • A fresh Greenbone install often appears hung with zero scan configs while it performs a multi-hour historical SCAP/NVD CVE import.
  • Worker abort backtraces in gvmd logs are non-fatal sub-process restarts; the parent server process remains healthy.
  • Aggressive enterprise vulnerability scan profiles will easily crash low-power IoT controllers unless concurrency is tuned.

The need for continuous vulnerability discovery

Periodic security audits are essential for maintaining infrastructure hygiene. Misconfigured open ports, outdated OpenSSH packages, obsolete TLS ciphers, and unpatched CVEs accumulate silently across development environments.

To maintain active visibility, we deployed Greenbone Community Edition (formerly OpenVAS)—the gold standard of open-source vulnerability management—packaged as a multi-container stack inside a dedicated, isolated hypervisor container (4 vCPU, 8 GB RAM).

Setting up Greenbone in an enterprise data center with dedicated gigabit transit and dual Xeon nodes is straightforward. Deploying it in a hybrid homelab environment taught us two valuable lessons in process resilience and scan safety.

Mystery 1: The phantom crash-loop during initial sync

Shortly after launching the compose stack, we attempted to configure our first discovery scan. The web interface greeted us with an empty dashboard and config_count: 0.

Tailing the gvmd (Greenbone Vulnerability Management daemon) container logs revealed alarming output:

md main:MESSAGE: update_scap: No SCAP db present, rebuilding SCAP db from scratch
md main:CRITICAL: Received Aborted signal
[backtrace with memory addresses]

At first glance, this looked like an unrecoverable segmentation fault or memory leak. In many community forums, users recommend killing the container, deleting the volume, and starting over. Doing so simply guarantees perpetual failure.

We dug deeper using process and container telemetry:

  1. docker inspect: Showed RestartCount: 0. The container itself had never restarted.
  2. docker top: Confirmed that the master gvmd process (PID 1) had remained alive continuously for 40 minutes.
  3. dmesg: Zero Linux OOM-killer (Out of Memory) invocations.
  4. docker stats: Memory utilization hovered comfortably at 2.3 GB of the 8 GB ceiling.

The "Aborted signal" backtraces were occurring strictly in forked worker sub-processes attempting to ingest massive XML payloads from the National Vulnerability Database (NVD). The parent gvmd supervisor process detected the sub-process failure, cleaned up the socket, and immediately spawned a fresh worker to resume ingestion from the exact next chunk.

Watching the log files closely confirmed real-time progress: the worker was steadily processing consecutive nvdcve-2.0-*.json.gz files from 1999 through 2026. The moment the feed sync completed 42 minutes later, predefined scan configurations (Base, Discovery, Full and fast) materialized in the database instantly.

Mystery 2: The accidental denial-of-service on IoT devices

With the feeds synced, we launched a default "Full and Fast" audit across our internal subnets.

Ten minutes into the scan, smart light switches stopped responding to MQTT messages, an IP security camera froze its video stream, and a smart thermostat dropped off Wi-Fi.

Enterprise vulnerability scanners are designed for resilient server hardware. By default, OpenVAS launches thousands of concurrent TCP SYN probes, UDP queries, and banner-grabbing handshakes across hundreds of ports simultaneously:

  • Enterprise switches and server NICs absorb this burst effortlessly.
  • But low-power microcontrollers (such as ESP8266, ESP32, and consumer RTOS camera chips) possess minuscule connection tracking tables and single-threaded network stacks.
  • Flooding an IoT device with 500 concurrent SYN packets completely exhausts its socket memory buffer, crashing the microcontroller and requiring a physical power cycle.

Tuning scan profiles for safety

To audit the fleet safely without creating home outages, we engineered a customized Low-Impact Homelab Audit Profile:

  1. Strict Target Segmentation: The scanner was firewalled from scanning IoT subnets with aggressive port sweeps. IoT segments were restricted to lightweight ping and banner discovery.
  2. Reduced Host Concurrency: Max concurrent target hosts was reduced from the default 30 down to 4.
  3. Reduced Check Concurrency: Max concurrent NVTs (Network Vulnerability Tests) per host was capped at 2.
  4. Port Probe Throttling: SYN packet dispatch was rate-limited to avoid saturating stateful firewall connection tables.
# Custom Scan Optimization in Greenbone GMP
max_hosts = 4
max_checks = 2
auto_parallel = false
network_receive_timeout = 5

Verification

Re-running the tuned audit across 40 physical and virtual hosts:

  1. All target virtual machines, servers, and hypervisors were thoroughly enumerated for CVEs.
  2. The scan finished cleanly in 1 hour and 15 minutes.
  3. Every camera feed, smart switch, and home appliance maintained 100% network responsiveness with zero packet drops.

Engineering takeaway

Enterprise security tools must be adapted to the physical realities of the infrastructure they monitor. Trust the software's internal synchronization loops before declaring a hang, and throttle scanner concurrency before auditing mixed hardware environments.

Some of what's described here is a design that hasn't been fully tested yet; those parts say so in the text.

Follow the build on LinkedIn or by RSS.

All Articles

Follow the build

Questions about the build, or spotted something we got wrong? Find us on LinkedIn and GitHub.