-
Notifications
You must be signed in to change notification settings - Fork 2.9k
fix(image): add system installed files in blob info #8612
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
fix(image): add system installed files in blob info #8612
Conversation
|
Dheeraj Kadri seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
028eb84 to
4dbc54f
Compare
|
Hello @dheerajkadri Is this not enough? |
|
Hey @DmitriyLewen BlobInfo->PackageInfos ->Package ->InstalledFiles ==> this will hold all the packages and its info for all the layers and analyzers. We need system-installed files that will be detected by the package manager analyzer. These files will be set only for the layer where the package manager is present, and all files installed by the package manager will be recorded. For Trivy Premium, where we use the executables analyzer in most cases, this information is crucial to avoid false positives. The issue arises when the executables analyzer detects executables that have already been identified as packages. This can happen if there is a permission change on a path, causing all executables in that path to be detected—even if they were originally installed by a package manager. Many customers have reported this issue, so we need to track system-installed files separately. This will allow us to filter them out from all layer blob infos during the merging process, improving accuracy and reducing false positives. |
4dbc54f to
e925d1d
Compare
|
This PR is stale because it has been labeled with inactivity. |

This PR adds system-installed files to the blob info. We have a case where a resource is being classified as both an Executable and a package. For example, the wget resource is being classified as both an Executable (version 1.3.1) and a Debian package (version 1.24.5-2+b1), which causes false positive results.
We need to add system-installed file information to the blob info of a layer, which is eventually uploaded to the cache. While merging the layers, we will check for system-installed files and filter them out from the executables list so that system-installed files are not detected as executables.