Skip to content

How often does inspector run?

2

as the title states. and also, is there a way to trigger a scan manually?

We have some EC2 hosts that are patched, but inspector does not show an updated status yet.

2 Answers
1

I have an EC2 instance that has not been scanned in over a week. No matter what I do to try an retrigger a scan, nothing happens (tried rebooting, adding packages, changing config and the scan is not running). Having the ability to manually trigger a scan is a must have as far as I'm concerned.

answered a year ago

0

Amazon Inspector runs scans at different intervals depending on the type of instance and scanning method:

For Windows EC2 instances, Amazon Inspector performs scans every 6 hours by default after the initial discovery scan.

For agentless scanning in hybrid mode, Amazon Inspector scans eligible instances every 24 hours. It also detects and scans newly eligible instances every hour.

For Linux-based EC2 instances with deep inspection enabled, scans are performed every 6 hours by default.

Regarding your patched EC2 hosts that don't show an updated status yet, it's important to note that the scan intervals mentioned above are the default settings. The scan results may not reflect immediate changes after patching, as it depends on when the last scan occurred and when the next one is scheduled.

As for triggering a scan manually, Amazon Inspector doesn't provide a direct way to initiate an on-demand scan for regular vulnerability assessments. However, for Center for Internet Security (CIS) scans, you can create a scan configuration to run a one-time scan immediately after completing the configuration.

If you need more frequent or immediate updates, you might consider adjusting the scan intervals. For Windows instances, you can customize the scan schedule using a cron or rate expression for the SSM association. For Linux instances with deep inspection, you can also adjust the scan interval using AWS Systems Manager commands.
Sources
Scanning Windows EC2 instances with Amazon Inspector - Amazon Inspector
Scanning Amazon EC2 instances with Amazon Inspector - Amazon Inspector
Amazon Inspector deep inspection for Linux-based Amazon EC2 instances - Amazon Inspector
Center for Internet Security (CIS) scans for Amazon EC2 instance operating systems - Amazon Inspector

answered 2 years ago

EXPERT

reviewed 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.