AWS in 1 Min · Episode 145

Amazon Inspector explained: continuous vulnerability scanning

Find the holes before attackers. Watch the one-minute video, then read the details.

David Gomez1:13 video · 2 min read

"A yearly vulnerability scan is enough." Far too slow. New vulnerabilities (CVEs) are published every day, and your servers, images and functions change every week. A scan that ran in March says nothing about the package you installed on Tuesday. Amazon Inspector replaces the yearly checklist with scanning that never stops.

What Inspector does

Inspector is a vulnerability management service. It automatically discovers your workloads and continually scans them for two things:

  • Software vulnerabilities: known CVEs in operating system and application packages.
  • Unintended network exposure: open network paths from the internet to your instances.

It covers three kinds of workloads: Amazon EC2 instances, container images in Amazon ECR, and AWS Lambda functions. In an organization, a delegated administrator account can turn it on for every account and see all findings in one place.

Always on, no schedules

You do not schedule scans. Inspector rescans automatically when something changes: you install or patch a package on an instance, a new image is pushed, or a new CVE that affects your software is published. When you fix the problem, Inspector detects the remediation and closes the finding on its own.

Fix by risk, not by count

Every finding gets an Inspector risk score. It starts from the vulnerability's public CVSS base score in the National Vulnerability Database and adjusts it to your environment. For example, a flaw that is exploitable over the network scores lower on an instance with no open path from the internet.

That matters because a fresh account often shows hundreds of findings. A common mistake is trying to fix them in the order they appear. Sort by the Inspector score, start with critical findings on internet-facing resources, and use the dashboard's view of which findings affect the most instances and images. Findings also flow to EventBridge and Security Hub, so you can open tickets automatically.

Where AI fits

Beyond packages, Lambda code scanning looks at your own function code for flaws such as data leaks, injection, missing encryption and weak cryptography. It uses automated reasoning and machine learning, and for many findings it suggests a fix: plug-and-play code blocks that replace the vulnerable lines, shown as a diff alongside general remediation guidance. AWS introduced generative-AI-assisted remediation for this feature in 2023.

AWS is clear that some suggestions may not work as intended and that you are responsible for what you adopt: review every suggested fix and test it like any other code change. Lambda code scanning requires Lambda standard scanning to be active, and it is not offered in every Region.

Quick recap

  • Always on, not yearly: Inspector rescans when packages, images or CVEs change.
  • EC2, ECR images and Lambda, plus network exposure on instances.
  • Fix by risk, not by count, and review any suggested code fix before you merge it.
AWS in 1 Min #145 · 1:13

Need an AWS expert on your team?

I'm David, an AWS expert and fractional cloud consultant. I work alongside your team to run your cloud and infrastructure: architecture, security, cost and day-to-day operations. You get senior AWS experience when you need it, without the cost of a full-time hire.

  • Architecture reviews and a clear plan for what to fix first
  • Security hardening: IAM, networking, audits
  • Lower AWS bills without slowing your team down
  • Hands-on help with AI workloads on AWS