1

I've just installed OpenVAS ... however when I checked on Feed Status, I found that OpenVAS CERT Feed is too old as shown in the screenshot below.

Too old (14 days) - Please check the automatic synchronization of your system

The solution suggested was to check automatic synchronization in the system. Unfortunately I was not sure how to do that.

I've searched around but couldn't find similar problem. So I guess posting the question here might be helpful.

OpenVAS CERT Feed Status: Please check the automatic synchronization of your system

OpenVAS CERT Feed Status: Please check the automatic synchronization of your system

Sabrina
  • 190
  • 1
  • 2
  • 10

2 Answers2

2

To get updated content from the feeds you need to run the following scripts (in this order) on a daily base via e.g. cron:

greenbone-nvt-sync

greenbone-scapdata-sync

greenbone-certdata-sync

If there is any issue during the sync the scripts should give you additional info.

cfischer
  • 123
  • 5
  • I would add that you typically will need to prefix all of those with 'sudo'. Not doing so will result in the scripting going through everything... but with 'permission denied'. – danno Oct 25 '18 at 16:18
  • Please note the added info about not running the scripts with sudo/root privileges in https://serverfault.com/a/992526/464580. – cfischer Nov 22 '19 at 12:29
2

As of November 2019, you are not permitted to run the *-sync scripts as 'root'.

I installed openvas on a Kali system and found that I had some changes to make. Openvas must be installed as 'root' and openvas-setup is also supposed to be run as 'root'. But at the end of the process, there are artifacts that have root ownership and read-only attributes for everyone else which get in the way of the *-sync scripts running.

Until they sort out the installation procedures and instructions, I would recommend doing the following (after install and openvas-setup).

  1. sudo adduser openvas
  2. sudo chown -R openvas: /var/lib/openvas
  3. sudo chown -R openvas: /var/log/openvas
  4. Run the scripts in the answer above
  5. Better yet, make a cron job that does it (as openvas)

No need to do the chown for both the users and groups when you can do it in a single command.

Les
  • 121
  • 4