Overview
Overview
AWS Inspector is a security assessment service, used to assess applications for vulnerabilities or deviations from best practices. It is recommended to run AWS Inspector scans regularly.
Remediation guidance
AWS remediation
Console
- Open Amazon Inspector.
- Enable scanning for EC2 resources.
- Verify coverage for all required regions/accounts.
AWS CLI
aws inspector2 enable --resource-types EC2
aws inspector2 list-coverage --filter-criteria '{}'
References
- https://docs.aws.amazon.com/inspector/latest/user/inspector_introduction.html
- https://docs.aws.amazon.com/cli/latest/reference/inspector2/enable.html
Service-wide remediation
Recommended when many resources are affected: fix the platform baseline first so new resources inherit the secure setting, then remediate the existing flagged resources in batches.
AWS
Use AWS Organizations guardrails, AWS Config rules or conformance packs where they fit, approved account baselines, and IaC modules so new resources inherit the secure setting.
Operational rollout
- Fix the baseline first at the account, subscription, project, cluster, or tenant scope that owns this control.
- Remediate the currently affected resources in batches, starting with internet-exposed and production assets.
- Re-scan and track approved exceptions with an owner and expiry date.
Query logic
These are the stored checks tied to this control.
AWS Inspector is configured for EC2 Instances
Connectors
Covered asset types
Expected check: eq []
{vms(where:{inspectorEnabled:false}){...AssetFragment}}
AWS