ECR Image vulnerability scanning
Static scanning for software vulnerabilities in container images.

Will this be an integration to services like Aqua and TwistLock? Or will you implement the scanning yourself?
Would this be able to alert us using something like CloudWatch or by sending alerts to an SNS topic or similar?
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.
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.
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.
Looking forward to this one...
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.
I think is a needed feature, as it is being implemented by many other registries.
hopefully this will be done soon
Any movement? :cake:
Still nothing?
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.
If you need any more testers please reach out.
We are the customers. Can we reach out to AWS support for beta? @jtoberon
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 :)
Prediction: This will be announced during the re:Inforce keynote next week
Wooo can't wait!
GCR just released the same feature as beta this week and I really hope it comes on ECR as well!
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.
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/