Is it possible to extract from the XML file the Scan Config?

Is it possible to extract from the exported XML Scanning results file, the selected “Scan Config” value when performing the OpenVAS scanning?

For example, how to identify within the XML file, if the results that we have are coming from the “Full and fast” or the “Host Discovery” Scan Config?

I think it’s not possible to get that information from the XML report.

However, you can use the Greenbone Management Protocol (GMP) to get that information, for example by get_configs’ output <tasks> (which tells you the tasks using scan config(s)) or vice versa via the get_tasks’ output <config> (which tells you the config used by task(s)).

If you are using alterable tasks, that information may not be accurate for past scans of course.

1 Like