Subchapter 41.7
references/inspector-configuration.mdMarkdown4 KBView on GitHub
Assesses Amazon Inspector configuration completeness by checking scan type enablement, coverage, suppression rules, and organization member status. Results are presented as a configuration state summary.
Works from both standalone accounts and delegated administrator accounts.
| User intent | Workflow |
|---|---|
| Check Inspector config in this account | A: Review Single Account |
| Audit Inspector scanning enabled | A: Review Single Account |
| Review organization coverage | B: Review Organization Coverage |
| Check which members have Inspector | B: Review Organization Coverage |
Get account status for all scan types:
aws inspector2 batch-get-account-statusReport ALL scan types and their status (ENABLED/DISABLED/SUSPENDED). Do not hardcode a scan type list; report whatever the API returns.
For reference on available scan types, see: https://docs.aws.amazon.com/inspector/latest/user/scanning-resources.html (opens in a new tab)
Check coverage statistics:
aws inspector2 list-coverage-statistics --filter-criteria {} --group-by RESOURCE_TYPEList coverage to identify unscanned resources:
aws inspector2 list-coverage --filter-criteria '{"scanStatusCode":[{"comparison":"EQUALS","value":"INACTIVE"}]}'Check suppression rules:
aws inspector2 list-filtersCheck CIS scan configurations:
aws inspector2 list-cis-scan-configurationsCheck EC2 deep inspection:
aws inspector2 get-ec2-deep-inspection-configurationPresent results:
Security check: Verify CloudTrail is enabled and logging Inspector API calls (inspector2:* events) for audit purposes.
| Check | Status |
|---|---|
| Each scan type from API response | Enabled / Disabled / Suspended |
| EC2 deep inspection configured | Configured / Not Configured |
| CIS benchmarks configured | Configured / Not Configured |
| Coverage status (inactive resources) | None / Count |
| Suppression rules present | Count |
Identify delegated admin:
aws inspector2 list-delegated-admin-accountsCheck organization configuration:
aws inspector2 get-configurationReport ALL scan types and their auto-enable status.
For organization-level Inspector policies (INSPECTOR_POLICY), see
references/organization-policies.md.
Get org-wide coverage statistics:
aws inspector2 list-coverage-statistics --filter-criteria {} --group-by RESOURCE_TYPE(ONLY if user explicitly requests per-account detail):
aws inspector2 list-members
aws inspector2 batch-get-account-status --account-ids <ACCOUNT_IDS>MAY batch up to 100 account IDs per call.
Present results:
| Check | Status |
|---|---|
| Delegated admin configured | Enabled / Not Enabled |
| Auto-enable per scan type | Enabled / Not Enabled |
| Member accounts | Enrolled (details on request) |
| Coverage statistics by resource type | See details |
| Symptom | Resolution |
|---|---|
| batch-get-account-status returns DISABLED | Inspector not enabled — report as not configured |
| Access denied on list-members | Not a delegated admin — run Workflow A instead |
| list-coverage returns empty | No supported resources in account |
| SUSPENDED status | Account suspended from Inspector — report with note |
Configuration output reveals account structure (member account IDs), scan type enablement, resource coverage details (EC2 instance IDs, Lambda ARNs, ECR repositories), and suppression rules. Present configuration summary first; offer raw API responses on request.