---
title: "cve-agent: CVE scanning for Ubuntu servers with a Hermes agent"
description: "Scan Ubuntu packages, the kernel, lockfiles and Docker images against osv.dev daily, and let a Hermes agent file one GitHub issue per real exposure."
canonical: "https://laboetie.io/open-source/cve-agent"
language: en
---
# cve-agent: CVE scanning for Ubuntu servers, triaged by a Hermes agent that files and tracks the fix

cve-agent matches what each server runs (Ubuntu packages, the running kernel, lockfiles and Docker images) against osv.dev every day and keeps the findings that need a human. A Hermes agent wakes only when that list changes, checks the exposure, files one GitHub issue with the exact fix and follows it until the scan confirms it.

- Data: osv.dev
- License: AGPL 3.0 or commercial
- Try it: python3 -m cve_agent scan

## Who cve-agent is for

### Teams running Ubuntu servers

osv.dev matched 5,193 advisories to one Ubuntu 24.04 server on 3 December 2026. cve-agent keeps the few that pass your gate and tells you when one of them gets a fix.

### Hermes users

The cve-desk plugin gives a Hermes profile the tools to read the scan, probe the gateway host read only and manage CVE issues, with a triage skill and a daily cron job that costs nothing on quiet days.

### Sites built on Next.js and other frameworks

With --app-network-score 7, a high flaw in a web framework you serve, reachable from the internet, reaches the agent the morning after osv.dev lists it.

## How cve-agent works

### Scan what each server runs

The scan lists the installed Ubuntu source packages, keeps the running kernel and asks the osv.dev batch API which advisories affect each version. Records are cached on disk and streamed, so a host scans in well under 400 MB of memory.

### Keep what needs a human

By default an OS advisory passes when Ubuntu rates it critical or its CVSS 3 score reaches 7.0 with a network attack vector, and an application advisory from 9.0. Each host sets its own thresholds and records them in its report.

### A digest that changes only on news

The digest has one line per vulnerable package version, with no timestamp. A line changes when an advisory appears or leaves, or when a fix is published.

### An agent that files the fix

On a change, the Hermes agent checks the exposure, files one GitHub issue per real exposure with the exact action, and moves it to fix available when a fix lands. Nobody approves the issues: they are worked as filed.

### Mitigations until their fix runs

Each cve-<year>-<n>.nft file in /etc/nftables.d is a temporary mitigation with an issue of its own. When the fixed package is published, the issue gets the upgrade, the reboot and the removal of the file.

### Signed reports to one hub

Each host signs its report with a key derived from the hub master key. The hub refuses another host name, an address that is not the host, a send time more than five minutes off and a replayed report.

## Get started

cve-agent needs Python 3.11 or later on Ubuntu. Scanning lockfiles and images needs osv-scanner, and the desk needs a Hermes gateway with a Telegram forum group and a GitHub token limited to the issues repository.

Scan one host:

```
git clone https://github.com/ilanoh/cve-agent /opt/cve-agent && cd /opt/cve-agent
python3 -m cve_agent scan --host web1 --to /var/lib/cve-agent/reports
python3 -m cve_agent digest --reports-dir /var/lib/cve-agent/reports
```

Choose the gate:

```
python3 -m cve_agent scan --host web1 --apps /etc/cve-agent/lockfiles.conf \
  --app-network-score 7 --to https://cve-hub.example.com/report
```

The Hermes desk:

```
cp hermes-plugin/profile/desk.env.example /etc/cve-agent/desk.env
hermes-plugin/profile/setup.sh
```

## License

- Scanner, hub and Hermes plugin: AGPL 3.0
- Closed source use: Commercial license

The AGPL lets anyone use, modify and run cve-agent for free, privately or commercially, including inside open source software such as Hermes. Closed source software and closed services take a commercial license.

## Links

- GitHub: https://github.com/ilanoh/cve-agent
- Choose the gate: https://github.com/ilanoh/cve-agent#choose-the-gate
- Commercial license: https://github.com/ilanoh/cve-agent/blob/main/COMMERCIAL.md
