Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

containers.cna.source.defect has multiple data types #317

Open
jayjacobs opened this issue May 25, 2024 · 3 comments
Open

containers.cna.source.defect has multiple data types #317

jayjacobs opened this issue May 25, 2024 · 3 comments
Labels
bug Something isn't working section:source Schema location is source

Comments

@jayjacobs
Copy link
Collaborator

The data in the field "containers.cna.source.defect" is stored in multiple different data types.

I will include a list of data types (with CVE counts): and a few samples here:

I would suggest that we fix the data as it is stored and see if we can't add something in the schema to more strictly validate this field.

@sei-vsarvepalli
Copy link
Contributor

Related to #339

The "source" section has no schema definitions at all. It is open-ended object perhaps? I am not sure if JSON schema actually is valid with an object that has no "properties" at all defined.

@ccoffin
Copy link
Collaborator

ccoffin commented Sep 17, 2024

Looks like the "list of str" is most common and also what Vulnogram appears to define. The "list of list" seems like a mistake and is interesting given how many times you counted it. The examples you provided are all Cisco CVE Records. Do you recall or can you still check the data to see if it's only their records? Are they still provided in this way?

@jayjacobs
Copy link
Collaborator Author

Just to be clear, this is specifically about the "defect" value under the "source" distinction.

The CVE record should not have any "put whatever" data section in it because it's incredibly unfriendly to machine interpretation. To that end, it's probably best to define the whole "source" object, which would clean this up as well.

@jayjacobs jayjacobs added the bug Something isn't working label Oct 18, 2024
@jayjacobs jayjacobs added the section:source Schema location is source label Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working section:source Schema location is source
Projects
None yet
Development

No branches or pull requests

3 participants