Removing Vulnerability Assessment records
Description
The customer had a lot of Endpoint Vulnerability records on the Manager, it is not possible to ‘Ignore’ or clear them without properly fixing the vulnerability (patching).
Customer wishes to clear all the records of the detected vulnerability.
Case Handling
- Use
F12browser debug method to find some informations of the data. - Check on the collections and found that the
vulnercollection holds the informations of the detected vulnerability. - Execute the delete command to clear all Vulnerability records.\n
- After deleting the records, found that the MGR still display the vulnerability records.
- Tried restarting all services, but the records still remain.
- Suspect there is another collection in Mongodb which hold these informations.
- After checking each collection 1 by 1, found that the collection
vulner_searchhas the records of Endpoint Vulnerability too. - Compared the
vulner_id, it matches.\n -
Delete all the records in the collection
vulner_searchand refresh the MGR console, the records had been cleared successfully.
Root Cause / Solution
- In order to delete / clear the records of Vulnerability Assessment, you need the delete the records on the following collections:
vulnerandvulner_search - Enter Mongod shell and execute the following commands:
Command:
- Delete all records:
db.vulner.deleteMany({})db.vulner_search.deleteMany({})
- Delete specific records:
db.vulner.deleteOne({"_id":"Enter the id here"})db.vulner_search.deleteOne({"_id":"Enter the id here"})
Note:
Only proceed if you are confident, or there is a backup / snapshot of the MGR.