I'm trying to lock down an Ubuntu 20.04 image by removing vulnerable packages we don't use. I've run a Nessus Advanced Network Scan with the SSH login credentials and it found a number of issues, for instance "Ubuntu 18.04 LTS / 20.04 LTS / 22.04 LTS : Vim vulnerabilities (USN-6026-1)" (https://ubuntu.com/security/notices/USN-6026-1). So I removed vim using:
sudo apt-get purge vim
rebooted the device and reran the scan. But I'm still getting the same issue. The security notice https://ubuntu.com/security/notices/USN-6026-1 only mentions vim, it doesn't give the name of any other packages that need to be removed. How can I resolve this?
vim isn't the only package I'm having this problem with, I also see it for others (ceph, cups-filters, libreoffice, etc).