SBN

Update Greenbone Vulnerability Management Plugins (NVT, Cert Data & SCAP Data) Automatically

Once you have installed or configured the Greenbone Vulnerability Management system it is a good idea to ensure it is kept up to date and running the latest security scripts to find the latest vulnerabilities as well as sync to the most updated nvt, scap and cert data.  The best way to do this is to create a script that sync’s the necessary data for you automatically each day.

Create a script under /usr/local/bin called update-gvm

  • vi /usr/local/bin/update-gvm

add the following contents to the file

  • sudo runuser -u _gvm — greenbone-nvt-sync
  • sudo runuser -u _gvm — greenbone-scapdata-sync
  • sudo runuser -u _gvm — greenbone-certdata-sync

save the file and make it executable

  • chmod a+x /usr/local/bin/update-gvm

run the script to make sure it works and that there are no errors

  • /usr/local/bin/update-gvm

add the script to cron to run daily

  • crontab -e

add the following contents

  • 1 1 * * * /usr/local/bin/update-gvm 1>/dev/null 2>/dev/null

the above cronjob will be run at 1-minute past 1 every day

Once you have installed or configured the Greenbone Vulnerability Management system it is a good idea to ensure it is kept up to date and running the latest security scripts to find the latest vulnerabilities as well as sync to the most updated nvt, scap and cert data.  The best way to do this is to create a script that sync’s the necessary data for you automatically each day.

Create a script under /usr/local/bin called update-gvm

  • vi /usr/local/bin/update-gvm

add the following contents to the file

  • sudo runuser -u _gvm — greenbone-nvt-sync
  • sudo runuser -u _gvm — greenbone-scapdata-sync
  • sudo runuser -u _gvm — greenbone-certdata-sync

save the file and make it executable

  • chmod a+x /usr/local/bin/update-gvm

run the script to make sure it works and that there are no errors

  • /usr/local/bin/update-gvm

add the script to cron to run daily

  • crontab -e

add the following contents

  • 1 1 * * * /usr/local/bin/update-gvm 1>/dev/null 2>/dev/null

the above cronjob will be run at 1-minute past 1 every day

*** This is a Security Bloggers Network syndicated blog from SecurityOrb.com authored by Kellep Charles. Read the original post at: https://securityorb.com/featured/update-greenbone-vulnerability-management-plugins-nvt-cert-data-scap-data-automatically/?utm_source=rss&utm_medium=rss&utm_campaign=update-greenbone-vulnerability-management-plugins-nvt-cert-data-scap-data-automatically