- Newest
- Most votes
- Most comments
Hello.
As far as I know, you can prevent scanning of specific EC2 instances, but there is no way to exclude specific directories or files within the EC2 instance from being scanned.
In other words, as of February 2026, the only options available will be to either scan EC2 or not.
https://repost.aws/knowledge-center/exclude-inspector-scans
With agentless scanning, Amazon Inspector takes a snapshot of the EBS and performs the scan from that snapshot, so it may be possible to perform the scan without putting a load on the NAS.
However, there are some EC2 OS and file systems that cannot be used with agentless scanning, so it may not be possible to use it depending on the environment you have created.
https://docs.aws.amazon.com/inspector/latest/user/scanning-ec2.html
Hello, thank you for you quick response, but as highlighted in the answer of your own comment, we're talking here about the on-demand CIS scans, not the live EC2 ones. As far as we know, we cannot perform those CIS scans on EBS snapshots, we have to do them on running SSM managed EC2s.
Is there a chance that excluding folders/paths could be part of an upcoming Inspector version ?
Dylan.
Update: Seems to be only happening when doing CIS scan for LEVEL_2. We don't see this behavior when doing LEVEL_1 scans.
Relevant content
- asked 3 years ago
- asked 7 months ago
- AWS OFFICIALUpdated 9 months ago

Thank you for your prompt answer. The spikes we've seen were observed while doing CIS scans and as far as we understood it for a CIS scan the instance needs to be SSM Managed. While the spike is understandable while the scan is running, we don't understand why the load on CPU and network activity continues even when the scan is complete. Do you have maybe an idea about why would that be?
Thanks in advance, Laura.