containers-roadmap icon indicating copy to clipboard operation
containers-roadmap copied to clipboard

ECR Image vulnerability scanning

Open yinshiua opened this issue 7 years ago • 46 comments

Static scanning for software vulnerabilities in container images.

yinshiua avatar Dec 05 '18 21:12 yinshiua

Alt Text

connorthomasmccabe avatar Dec 12 '18 12:12 connorthomasmccabe

Will this be an integration to services like Aqua and TwistLock? Or will you implement the scanning yourself?

shimont avatar Dec 14 '18 13:12 shimont

Would this be able to alert us using something like CloudWatch or by sending alerts to an SNS topic or similar?

MarcusNoble avatar Dec 17 '18 08:12 MarcusNoble

Will this be an integration to services like Aqua and TwistLock? Or will you implement the scanning yourself?

I can't share the details of how we implement scanning, but as part of this project, we do plan to include in our public APIs the endpoint that we use to publish new scan results.

Would this be able to alert us using something like CloudWatch or by sending alerts to an SNS topic or similar?

Scanning is an asynchronous process, and we will create an event stream so that you can work with that process programatically.

jtoberon avatar Jan 24 '19 20:01 jtoberon

In addition to scanning at creation of image revision, it will help if images are rescaned at regular intervals to take care of new vulnerabilities discovered.

manpreet-singh-sf avatar Feb 18 '19 17:02 manpreet-singh-sf

In theory the images shouldn't need rescanning, the contents won't change so as long as there's a manifest of packages and versions found, comparing that against what vulns exist for given versions should be possible just from the manifest of image contents.

rikkuness avatar Feb 18 '19 17:02 rikkuness

Looking forward to this one...

malsec-dev avatar Feb 19 '19 17:02 malsec-dev

In addition to scanning at creation of image revision, it will help if images are rescanned at regular intervals to take care of new vulnerabilities discovered.

You're right: when there's a new version of the CVE "database" images need to be rescanned. This means that new vulnerabilities can be found in old images.

A few new considerations arise here that we want users to be aware of. First, programmers might only care about new scan results for a few images (the image running in production, the image from the HEAD commit, etc.), so you may want a way to filter out some of the information generated by rescanning. Second, you may find a big problem in an image you're still running in production, and you don't necessarily want to blacklist an image with new vulnerabilities immediately. A standard way to think about this problem is in terms of a schedule: you have X days to fix a low severity finding, Y days to fix a medium severity finding, etc.

jtoberon avatar Feb 20 '19 20:02 jtoberon

I think is a needed feature, as it is being implemented by many other registries.

ricosega avatar Mar 19 '19 13:03 ricosega

hopefully this will be done soon

Arsen-Uulu avatar Mar 27 '19 19:03 Arsen-Uulu

Any movement? :cake:

dmarkey avatar Apr 16 '19 11:04 dmarkey

Still nothing?

Arsen-Uulu avatar May 07 '19 20:05 Arsen-Uulu

We are still working on this as our top priority. Some customers are testing the feature as part of a private beta, but in general we don’t share specific GA dates.

jtoberon avatar May 07 '19 21:05 jtoberon

If you need any more testers please reach out.

dmarkey avatar May 07 '19 21:05 dmarkey

We are the customers. Can we reach out to AWS support for beta? @jtoberon

Arsen-Uulu avatar May 08 '19 14:05 Arsen-Uulu

Hi guys, AWS don't share release dates; don't prioritise based on additional comments here; and will ask if they need more people for a beta (naturally a private beta is only shared privately with certain customers). Every time you post a comment asking when this is going to be done, 1) everyone subscribed to this issue is notified, and 2) you probably slow down AWS staff a bit because they're also subscribed. So, if you want this feature, please just add a thumbs up reaction to the first message in this thread and rest easy knowing that since this is in We're Working On It, well, AWS is working on it :)

tdmalone avatar May 09 '19 00:05 tdmalone

Prediction: This will be announced during the re:Inforce keynote next week

ChrisRut avatar Jun 18 '19 10:06 ChrisRut

Wooo can't wait!

GCR just released the same feature as beta this week and I really hope it comes on ECR as well!

inductor avatar Jun 22 '19 03:06 inductor

You're right: when there's a new version of the CVE "database" images need to be rescanned. This means that new vulnerabilities can be found in old images.

CVE databases generally only contain package names and version numbers affected by any given CVE, in a built image those things won't change. Most CVE scanners don't do any magic when scanning for vulnerabilities, they'll simply catalog names and version numbers of software in the image, usually just by checking the package database (rpm/apk/deb etc.) and then compare those version numbers against a CVE database to find any hits.

If you've a catalog of the contents of your images stored then you don't need to unpack and "scan" the image again, you're just comparing the versions from your catalog of the image contents against fresh CVE data, which can be done in realtime, as soon as new CVE data is available that flags for example a critical vuln in version 0.3 of package "whatever", you'll already have a catalog of which of your images have that package in.

rikkuness avatar Jun 25 '19 11:06 rikkuness

With security being "job zero" at AWS i would have liked for this feature to have been available much much sooner. In the interim I'm looking at solutions like https://aws.amazon.com/blogs/publicsector/detect-vulnerabilities-in-the-docker-images-in-your-applications/

wmstjean avatar Jul 22 '19 18:07 wmstjean