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

A few adjustments to the new Vulnerability findings class #718

Merged
merged 3 commits into from
Aug 11, 2023

Conversation

floydtree
Copy link
Contributor

Related Issue: #684

Description of changes:

  1. Adding fixed_in_version, kb_articles (attribute only) and standards to dictionary
  2. Replacing kb_articles with references in remediation object
  3. Adding kb_articles and remediation in vulnerability object
  4. Adding fixed_in_version, path, remediation in affected_package object
  5. Removing remediation from the base vulnerability finding class, (each vulnerability has it's own contextual remediation)

Signed-off-by: Rajas <rajaspa@amazon.com>
Signed-off-by: Rajas <rajaspa@amazon.com>
Signed-off-by: Rajas <rajaspa@amazon.com>
@floydtree floydtree added enhancement New feature or request findings Issues related to Findings Category breaking Any breaking, non backwards compatible changes labels Aug 7, 2023
Copy link
Contributor

@awhite456 awhite456 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@jasonbreimer
Copy link
Contributor

jasonbreimer commented Aug 11, 2023

It looks like this change leaves the new kb_article object orphaned? I see the attribute kb_articles used in the remediation object. But I don't see the kb_article object is related to the vulnerability/cve?

@floydtree
Copy link
Contributor Author

floydtree commented Aug 11, 2023

It looks like this change leaves the new kb_article object orphaned? I see the attribute kb_articles used in the remediation object. But I don't see the kb_article object is related to the vulnerability/cve?

@jasonbreimer The original kb_articles field was a simple string array, it was replaced with references in the remediation object.

The new kb_articles object is now used in the vulnerability object. Each vulnerability object in the vulnerabilities array, will have kb_articles(an array of the new kb_article object).

Hopefully this clarifies, but let me know if you have any questions

Copy link

@jcburgo jcburgo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder about the standards object. It is meant for a compliance finding, which probably should be a separate class (not part of the vulnerability finding class).

@floydtree
Copy link
Contributor Author

I wonder about the standards object. It is meant for a compliance finding, which probably should be a separate class (not part of the vulnerability finding class).

Yep that's correct, it's not a part of this class. Just added it to the dictionary to be used in the upcoming compliance findings class

@floydtree floydtree merged commit 142b6fc into ocsf:main Aug 11, 2023
1 check passed
@floydtree floydtree deleted the dev branch August 11, 2023 19:01
@Aniak5 Aniak5 added the v1.1.0 Changes marked for v1.1.0 of OCSF label Jan 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking Any breaking, non backwards compatible changes enhancement New feature or request findings Issues related to Findings Category v1.1.0 Changes marked for v1.1.0 of OCSF
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants