Pending apt updates across a fleet of Ubuntu servers over SSH, with CVE priorities, CISA KEV and open vulnerabilities from Ubuntu OVAL
# aptfleet
[](https://github.com/ironpinguin/aptfleet/actions/workflows/ci.yml)
[](LICENSE)
Shows the pending apt updates on one or many Ubuntu hosts, together with the
security information that matters for deciding what to patch first:
- **Updates per host**, marked as security updates, with the CVEs each update fixes
(taken from the package changelog) and their Ubuntu priority (`critical`, `high`, …)
- **KEV markers:** CVEs that are actively exploited according to the
[CISA Known Exploited Vulnerabilities](https://www.cisa.gov/known-exploited-vulnerabilities-catalog)
catalog are highlighted as `KEV`
- **Open vulnerabilities without a fix:** installed packages with CVEs that have no
update yet. Only CVEs on KEV or with priority `high`/`critical` are shown
(source: Ubuntu OVAL data)
- **Kernel:** outdated running kernels (reboot required) and superseded package versions
- optionally **new on KEV:** the CVEs most recently added to the KEV catalog
It is agentless: hosts are only read, over one SSH session per host. The remote
script is sent on stdin, nothing is stored on the host. With `--local` it checks the
machine it runs on instead, for example from a cron job that mails the report
(see [Local cron job with mail](#local-cron-job-with-mail)).
aptfleet is plain Python 3 and Bash, with no dependencies beyond the standard library.
## Requirements
**Where aptfleet runs:**
- Python ≥ 3.9, standard library only, no `pip install` needed
- an `ssh` client with key-based login to the hosts. aptfleet uses `BatchMode=yes`, so it
never asks for a password
- internet access to `ubuntu.com`, `security-metadata.canonical.com` and `cisa.gov`.
Without these sources the report still runs, with less information (see exit code 3)
**On the hosts:**
- Ubuntu with `bash`, `apt`, `dpkg-query`, `timeout` (all part of a