Pulling all Spotlight data #798
-
We utilize multiple vulnerability management products and like to standardize on one visualization system for our vulnerability data. I'm hoping to pull all host and vulnerability data from Spotlight via API. What I was hoping/expecting is that there would be a many to one relationship between hosts and vulnerability information. For example, these 5 hosts all have this 1 CVE, here are the details for this CVE. I'm finding that is not the case with the current Spotlight APIs. It appears that the vulnerability IDs are tied in a 1 to 1 relationship with the agent IDs. So even though 5 hosts all have 1 CVE, I have 5 records for that CVE because the CVE record, via the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @mtobias-getty! You're correct that you will have a hit for each host / CVE. You may have to massage the data to meet your requirements as you consume the results. While researching this question, I wound up producing a new Spotlight Vulnerabilities sample. In an effort to speak to the concerns you've listed, I've reduced the data transfer to the bare minimum and used a simple JSON structure for data storage. This sample leverages the JSON structure
{
"sensor": {
"HOST_AID": {
"SEVERITY": ["CVE IDs..."]
}
},
"cve": {
"SEVERITY": {
"CVE_ID": ["HOST AIDs..."]
}
}
} Notes
Let us know if there are any questions! 😄 |
Beta Was this translation helpful? Give feedback.
Hi @mtobias-getty!
You're correct that you will have a hit for each host / CVE. You may have to massage the data to meet your requirements as you consume the results.
While researching this question, I wound up producing a new Spotlight Vulnerabilities sample. In an effort to speak to the concerns you've listed, I've reduced the data transfer to the bare minimum and used a simple JSON structure for data storage.
This sample leverages the
combinedQueryVulnerabilities
operation.JSON structure