View on GitHub

debcvescan

The self-contained debian security scanner

Motivation

The target of this project is to provider the CVE security scanning solution that is lightweight and self-contained. The current standard solution debsescan requires the following packages to be installed in order to run:

We want to provide the same features as the debsescan without dependencies to python or the exim mail server.

Installation

Binary

  1. Download latest release for your platform: https://github.com/devmatic-it/debcvescan/releases/latest
  2. extract archive: tar xvfz debcvescan_X.Y.Z_linux_amd64.tgz
  3. scan system for vulnerabilities: debcvescan scan

Debian package

  1. Download latest release for your platform: https://github.com/devmatic-it/debcvescan/releases/latest
  2. extract archive: dpkg -i debcvescan_X.Y.Z_linux_amd64.deb
  3. scan system for vulnerabilities: debcvescan scan

Debian Repository

1.Download and import public GPG key:

wget -qO - https://devmatic-it.github.io/debcvescan/debian/PUBLIC.KEY | sudo apt-key add -

2.Select sources directory for APT:

cd /etc/apt/sources.list.d`

3.Create new source file:

sudo echo "deb https://devmatic-it.github.io/debcvescan/debian buster main" > devmatic-it.list

4.Uodate APT repository:

sudo apt-get update

5.Install the package:

sudo apt-get install debcvescan

Getting Started

  1. Execute scanning: debcvescan scan debcvescan scan

  2. Scan a specific package for vulnerabilities: debcvescan pkg cron debcvescan scan

  3. Get details for a specific vulnerabitities: debcvescan cve CVE-2019-9704 debcvescan scan

  4. export scan report to JSON: debcvescan scan --format=json debcvescan scan

Credits

This work has ben inspired by the following open source projects: