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

Add importer for CSAF #17

Open
Rafiot opened this issue Jan 15, 2024 · 4 comments
Open

Add importer for CSAF #17

Rafiot opened this issue Jan 15, 2024 · 4 comments
Assignees
Labels
enhancement New feature or request high-priority

Comments

@Rafiot
Copy link
Collaborator

Rafiot commented Jan 15, 2024

The instrumentation is there -> https://oasis-open.github.io/csaf-documentation/tools.html which comes with a downloader: https://github.com/csaf-poc/csaf_distribution/blob/main/docs/csaf_downloader.md

One sample source is there: https://wid.cert-bund.de/.well-known/csaf/provider-metadata.json

So the goal will be to fetch from a provider, store them locally and add an importer in vuln lookup.

@Rafiot Rafiot self-assigned this Jan 15, 2024
@adulau adulau added the enhancement New feature or request label Jan 16, 2024
@Rafiot
Copy link
Collaborator Author

Rafiot commented Mar 6, 2024

Notes for CSAF importer:

  • csaf_downloader work fine for domains that have a provider-metadata.json

  • there is no obvious way to tell the downloader "only get new stuff since last time you ran" the hacky solution is (initial import):

    1. to fetch the provider-metadata.json
    2. get the last_updated key
    3. store that in kvrocks last_updates hash
    4. run csaf_downloader & wait for a long time

    Then, for updates:

    1. get the last update from the last_updates hash
    2. Throw that in the timerange option
    3. get only the updated entries
    4. Then, maybe use the log file to find the updated entries, or just re-iterate over all the files.

@Rafiot
Copy link
Collaborator Author

Rafiot commented Mar 14, 2024

@adulau
Copy link
Member

adulau commented Mar 18, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request high-priority
Projects
None yet
Development

No branches or pull requests

2 participants