Bearse Feature ECR Scanner

ECR Scanner periodically scans clusters for images deployed from a central ECR repository for vulnerabilities. Slack notifications are then generated containing a detailed report about the detected vulnerabilities and location of deployed vulnerable images.

Infrastructure

Stacks

Lambda functions

Image Scan Workflow

An example of the general workflow of the ECR scanner is described as follows.

  1. The feature must be deployed with the scanner in the repo account and the scanaccessrole in each account with any cluster deployments we wish to scan.
  2. The scanner function is triggered on schedule, it compares all images in the ECR repo with those in each deployment account specified via the scanaccessrole we deployed earlier.
  3. The notifier function detects the image scan event and generates a report containing the information about detected vulnerabilites and their deployment locations. An example of the report is shown below.
    Example Notification

Further information regarding stacks, parameters and deployment details can be found here.