How to disable NVT family from a scan configuration via python-gvm

I found the solution.

It seems I was using the wrong python method. The following statement does the trick:

gmp.modify_scan_config_set_nvt_selection(
    config_id=<config_id>,
    family="Brute force attacks",
    nvt_oids=[]
)

The previous statement removes NVT familyBrute force attacks” from scan_config <config_id>.

Kind regards.

3 Likes