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

When I inspect the container image, everything is fine. #110

Open
nakatani2023 opened this issue Dec 14, 2023 · 2 comments
Open

When I inspect the container image, everything is fine. #110

nakatani2023 opened this issue Dec 14, 2023 · 2 comments

Comments

@nakatani2023
Copy link

The inspection shows the package-specific JSON in the container image, but does not detect any vulnerabilities or malware.

Investigation result:
Symptoms #107 and #109 are also occurring, and when I investigated, the amount of data downloaded to vulndb at init always ends after around 170MB.

Looking at the source code, it seems that the URL for acquiring collection data other than cve and cve_info is a broken link, and an exception occurs when empty data is entered in the list, causing initialization to end prematurely.

Request matters:
I am unable to find the source to retrieve the vulnerability database and the initialization is failing. Could you please maintain the vulnerability database retrieval program?

I think #107 and #109 will also be resolved with this response.
Thank you for your support.

@tbdavid94
Copy link

@nakatani2023 Do you get this error when calling cli python3 dagda.py vuln --product openldap --product_version 10
{ "err": 500, "msg": "Internal Server Error" }

@nakatani2023
Copy link
Author

@tbdavid94 Thank you for your comment.
Yes, The same message occurs in my environment. And logs is pretty much the same as you.

And, in the log below that you describe, "dagda/vulnDB
/db_composer.py'', we found that the URL link in the vulnerability database acquisition code was broken from line 81 onwards.
At init, I jump to an exception before downloading the vuln_database.bid data, so I think the data is not stored in mongodb and this error is occurring.

dagda | pymongo.errors.OperationFailure: text index required for $text query (no such collection 'vuln_database.bid'), full error: {'ok': 0.0, 'errmsg': "text index required for $text query (no such collection 'vuln_database.bid')", 'code': 27, 'codeName': 'IndexNotFound'}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants