Data in Redis and resumed scans




I am trying to figure out if a state of a stopped scan task is in any way dependent on the data stored in Redis databases. If Redis databases are flushed when system restarts, openvassd is started and stopped task is resumed, does that fact that redis databases were flushed cancel the task’s real progress or affect its results in any way?


Ok, I figured it out by looking at the old irc logs of #openvas on OFTC.

  1. One redis db is reserved for one host scanned.
  2. When a network scan task is stopped, only hosts that were scanned completely will not be rescanned. Hosts that have their scanning cancelled in the middle will be scanned from the beginning after the task was resumed.
  3. Since the host will be scanned from the beginning after resume anyway, the old data in redis has no use.