aws / containers-roadmap

This is the public roadmap for AWS container services (ECS, ECR, Fargate, and EKS).
https://aws.amazon.com/about-aws/whats-new/containers/
Other
5.22k stars 321 forks source link

[ECR] [request]: Exclude kernel-related CVEs from container scan results #2305

Open kamzil opened 9 months ago

kamzil commented 9 months ago

Community Note

Tell us about your request Already mentioned at https://github.com/aws/containers-roadmap/issues/798#issuecomment-623847952 but not yet resolved. Currently, the AWS Inspector container scan results display Linux kernel vulnerabilities, even though the container is running on top of the host kernel, which is not dependent on the container image. Therefore, these entries in the results are false positives, or something that we can't affect, and should be excluded to reduce noise.

Which service(s) is this request for? ECR

Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard? Problem is too much unnecessary noise in scan results. Goal is to reduce it.

Are you currently working around this issue? No

Additional context No

Attachments No

mikecook commented 3 months ago

For those here looking to prevent image kernel false positives while we await a fix, this worked:

AWS Inspector > Suppression Rules > Create
Suppression rule details > Suppression rule filters 
Resource type: AWS ECR Container Image
Package: name EQUALS linux

Inspector2 Suppression Rules do not yet exist in Terraform at this moment https://github.com/hashicorp/terraform-provider-aws/issues/34165