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

Support BusyBox base image #397

Closed
nicksc423 opened this issue Jan 31, 2020 · 4 comments · Fixed by #476
Closed

Support BusyBox base image #397

nicksc423 opened this issue Jan 31, 2020 · 4 comments · Fixed by #476
Labels
kind/deprecation Categorizes issue or PR as related to a feature/enhancement marked for deprecation.

Comments

@nicksc423
Copy link

Currently when scanning BusyBox images Trivy throws a FATAL error:
FATAL error in image scan: failed to scan the image: failed to analyze OS: Unknown OS

It'd be nice to add support for BusyBox

@nicksc423 nicksc423 added the kind/deprecation Categorizes issue or PR as related to a feature/enhancement marked for deprecation. label Jan 31, 2020
@mattlorimor
Copy link

Since BusyBox doesn't have any way to install system packages, the most I would expect Trivy to do at this point would be to pull the BusyBox version using something like this;

/ # busybox | head -1
BusyBox v1.31.1 (2020-04-14 01:09:51 UTC) multi-call binary.

Then compare the version against known CVEs for that BusyBox version. I am not quite sure where the vuln feed would come from, though. There have certainly been CVEs for BusyBox in the past.

As for scanning for application dependencies, I would expect that Trivy could continue on as normal on BusyBox simply looking for the application dependency manifests (e.g., .lock files) it already looks for.

@mattlorimor
Copy link

mattlorimor commented Apr 23, 2020

I am not quite sure where the vuln feed would come from, though.

The NVD database should have this data to compare against in the CPE fields, but I'm not sure what capability the current Trivy code has to compare against it.

https://github.com/aquasecurity/vuln-list/blob/9fe1471a12139e35fb0b63cfe7cd5a82873f0db3/nvd/2019/CVE-2019-5747.json#L8

@simar7
Copy link
Member

simar7 commented Apr 23, 2020

Thanks for digging into this @mattlorimor, we're currently investigating this as well. Your feedback is helpful!

@knqyf263
Copy link
Collaborator

Now, Trivy can handle a busybox image gracefully, but it doesn't mean Trivy can detect vulnerabilities of busybox itself. Someone who needs it can watch this issue.
#481

josedonizetti pushed a commit to josedonizetti/trivy that referenced this issue Jun 24, 2022
* fix: Use custom filter options on results
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/deprecation Categorizes issue or PR as related to a feature/enhancement marked for deprecation.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants