← All posts
Cloud news

Amazon Inspector runtime reachability: what to patch first

Amazon Inspector now flags which vulnerable packages appear to be in use. What it checks, its limits, and how I'll use it to pick what to patch first.

James Bolton

5 min read

On November 23, AWS gave Amazon Inspector a new trick: it now tells you whether a vulnerable package is actually being used, marking each one reachable, not reachable, or unknown. If you work in vulnerability management, that’s a big deal. The hardest part of the job isn’t finding vulnerabilities. It’s deciding which ones to fix first.

When I saw the announcement, my first thought was: finally. Inspector is giving us a factor that really helps set patching priorities. Here’s what the feature does, where it falls short, and how I plan to use it. I haven’t tried it yet, so this is my first take from the announcement.

The problem: every vulnerability looks urgent

Amazon Inspector is AWS’s built-in vulnerability scanner. It scans your EC2 instances (virtual servers), container images in ECR (Elastic Container Registry), Lambda functions, and more for software with known security flaws.

The catch is that it flags every vulnerable package it finds, including libraries that came along with a base image and that no app ever touches. On a busy account, that’s a long list.

Until now, I mostly sorted that list by three things:

All good signals. But none of them tells you whether the vulnerable code is in use.

What’s new, and what isn’t

Inspector already had something called “network reachability,” and I mixed the two up at first. Here’s the difference:

Here’s what changed on November 23:

Question Before Nov 23 Now
Is a vulnerable package installed or in the image? Yes, flagged no matter what Same
Are there open network paths to this EC2 instance? Yes (network reachability) Same
How bad is it? (CVSS, EPSS, exploit available, CISA KEV) Yes Same
Is the app actually using the vulnerable package? No signal Reachable, not reachable, or unknown

Say a container image ships with 40 vulnerable libraries and the app only uses 5. Before, all 40 findings looked the same, and you had to work out by hand which ones mattered. Now Inspector marks the ones it sees in use, and the rest move down your list.

How Inspector decides “reachable”

How to get it

There’s no reachability switch. It shows up once the right scanning is on, at no extra cost, in every Region where Inspector is available.

Heads-up: AWS says turning on Enhanced EC2 Scanning permanently replaces the older Inspector SSM plugin, and you can’t switch back. If you work in a regulated environment, run it through change approval first.

How I’ll decide what to patch first

Here’s the order I plan to work in. It uses both kinds of reachability: is the code in use, and can the internet get to it?

  1. Reachable, internet-facing, critical, with a known exploit (on CISA KEV or with a public proof of concept). Fix it now.
  2. Reachable and critical, but not exposed to the internet. Next in line.
  3. Not reachable or unknown, but critical. Schedule it. Don’t skip it.
  4. Everything else. Your normal patch cycle.

Inspector findings already show most of this: severity, whether an exploit is available, the date CISA added it to KEV (if it’s there), and the EPSS score (Exploit Prediction Scoring System: the odds it gets exploited in the next 30 days).

To pull just the active, reachable, critical findings, open AWS CloudShell (the terminal icon at the top of the AWS console). It’s a command line in your browser with the AWS CLI already installed. Paste this in:

aws inspector2 list-findings --filter-criteria '{
  "findingStatus": [{"comparison": "EQUALS", "value": "ACTIVE"}],
  "severity": [{"comparison": "EQUALS", "value": "CRITICAL"}],
  "vulnerablePackages": [{"runtimeReachability": {"comparison": "EQUALS", "value": "REACHABLE"}}]
}'

It lists findings for the Region you’re in. If you get an error about runtimeReachability, check aws --version: the filter needs AWS CLI 2.42.0 or later.

“Not reachable” doesn’t mean “ignore it”

When something isn’t reachable, you’re still going to want to patch it. It’s still a vulnerability. It just moves a little further down the list.

AWS says the same thing: not reachable “doesn’t mean that the package can’t run or that the vulnerability can’t be exploited,” and it doesn’t change a finding’s severity. Two reasons to be careful:

You can filter on reachability in Inspector too. Just don’t build a suppression rule that hides “not reachable” findings. Use it to put your list in order, not to shorten it.

Where I’ll start

I’m looking forward to digging into it and seeing how it marks new findings as they come in. Older findings get filled in over time, so the backlog may take a while. I’ll start with the new ones.

It’s a big step in the right direction for Inspector. Reachability doesn’t replace severity, KEV, or exposure, but it’s a signal that really helps sort out what to fix first.

For more cloud security news explained in plain English, see the Cloud news topic.

Have you looked at it yet? I’d like to hear how many of your findings came back “not reachable.”