Amazon Inspector is a vulnerability management service that continuously scans AWS workloads for software vulnerabilities and unintended network exposure. This chapter covers what Inspector does, how it works, its key features, and how it fits into a broader security strategy—all essential knowledge for the CLF-C02 exam. Objective 2.3 (Security Compliance) makes up roughly 10-15% of the exam, and Inspector is a commonly tested service within that domain. You will need to understand when to use Inspector versus other security services like AWS Security Hub or Amazon GuardDuty.
Jump to a section
Imagine you own a large office building with hundreds of rooms, each containing valuable equipment. You hire a security inspector to walk through every room, check that doors are locked, windows are secure, fire alarms work, and no unauthorized devices are plugged in. The inspector gives you a detailed report of vulnerabilities, prioritized by risk. Amazon Inspector does the same for your AWS workloads. It automatically scans your EC2 instances, container images, and Lambda functions for software vulnerabilities and unintended network exposure. Inspector doesn't just check for known vulnerabilities; it also evaluates your network configurations to see if resources are inadvertently exposed to the internet. The service uses a knowledge base of common vulnerabilities and exposures (CVEs) and AWS security best practices. When Inspector finds a vulnerability, it assigns a severity score (Critical, High, Medium, Low) and provides remediation guidance. Crucially, Inspector is agentless for EC2 instances (using AWS Systems Manager) or you can optionally install an agent for deeper OS-level scans. The mechanism: Inspector performs a deep assessment of the software inventory, checks against CVE databases, and analyzes network reachability by simulating traffic. The result is a consolidated findings report that helps you prioritize patching and configuration changes, just like the building inspector's report helps you fix the most dangerous issues first.
What is Amazon Inspector and What Problem Does It Solve?
Amazon Inspector is a fully managed automated vulnerability management service that helps improve the security and compliance of applications deployed on AWS. It continuously scans EC2 instances, container images in Amazon ECR, and Lambda functions for software vulnerabilities (CVEs) and unintended network exposure. The core problem it solves is the challenge of manually tracking and patching vulnerabilities across a dynamic cloud environment. Without automation, security teams would need to individually assess each resource, check for known vulnerabilities, and review network configurations—a time-consuming and error-prone process. Inspector automates this by performing deep assessments and providing a prioritized list of findings.
How Does Amazon Inspector Work?
Amazon Inspector works through a combination of agentless scanning (for EC2 using AWS Systems Manager) and optional agent-based scanning (for deeper OS-level visibility). The service integrates with AWS Systems Manager to gather inventory data from EC2 instances without requiring an installed agent. For container images, Inspector scans images stored in Amazon ECR by analyzing the image layers and comparing them against known vulnerabilities. For Lambda functions, Inspector scans the function code and dependencies at deployment time.
The scanning process involves: - Software Inventory Collection: Inspector collects information about installed software, including operating system packages, libraries, and application dependencies. - Vulnerability Correlation: The collected inventory is compared against a continuously updated database of Common Vulnerabilities and Exposures (CVEs) and AWS security bulletins. - Network Reachability Analysis: Inspector analyzes network configurations (security groups, network ACLs, VPCs) to determine if resources are exposed to the internet or to other networks in a way that could be exploited. - Finding Generation: Each vulnerability or network exposure is recorded as a finding with a severity rating (Critical, High, Medium, Low) and remediation guidance.
Key Tiers and Configurations
Amazon Inspector offers two main tiers: Inspector Classic (legacy) and Inspector v2 (the current version). The CLF-C02 exam focuses on Inspector v2, which is the default and recommended version. Key features of Inspector v2 include: - Continuous Scanning: Unlike Classic which was scheduled, v2 scans continuously as new vulnerabilities are discovered. - Agentless Scanning: For EC2 instances, you can enable scanning without installing an agent by using AWS Systems Manager (SSM). This is the default and recommended approach. - Container Image Scanning: Automatically scans images pushed to Amazon ECR at the time of push and on a regular schedule. - Lambda Function Scanning: Scans function code and layers at deployment. - Findings Consolidation: Findings are sent to AWS Security Hub and Amazon EventBridge for centralized management. - Risk Scoring: Inspector uses the Common Vulnerability Scoring System (CVSS) and AWS-specific severity to prioritize findings.
Pricing for Inspector v2 is based on the number of EC2 instances, container images, and Lambda functions scanned. There is a free trial for 30 days. After that, you pay per instance-hour for EC2, per image scan for containers, and per function-month for Lambda. There are no upfront commitments.
Comparison to On-Premises or Competing Approaches
In an on-premises environment, vulnerability scanning typically requires dedicated hardware or virtual appliances, manual scheduling, and extensive configuration. Updates to vulnerability databases are often periodic. With Amazon Inspector, scanning is fully managed, continuous, and integrated with the AWS ecosystem. Inspector automatically discovers new resources as they are launched and begins scanning immediately. It also integrates with AWS Organizations, allowing you to enable scanning across multiple accounts with a single action.
Competing cloud-native services include third-party tools like Qualys or Tenable, which can also be deployed on AWS. However, Inspector is purpose-built for AWS and requires no additional licensing or infrastructure. It is also deeply integrated with AWS security services like Security Hub, GuardDuty, and AWS Config.
When to Use Amazon Inspector vs Alternatives
Use Amazon Inspector when you need automated, continuous vulnerability scanning for EC2, ECR, and Lambda within your AWS environment. It is ideal for organizations that want a low-maintenance, AWS-native solution. If you need compliance reporting for standards like PCI DSS or HIPAA, Inspector can help, but you may also need AWS Config rules and Security Hub for a complete compliance picture. For threat detection (e.g., finding malicious activity), use Amazon GuardDuty. For configuration compliance, use AWS Config. Inspector is specifically for vulnerabilities and network exposure.
How to Enable and Configure Amazon Inspector
Enabling Inspector v2 is straightforward: 1. Open the Amazon Inspector console. 2. Click "Get started" or enable scanning for the desired resource types. 3. For EC2, ensure instances have the SSM Agent installed and proper IAM permissions (AmazonSSMManagedInstanceCore policy). 4. For ECR, enable scanning on the repository level (scan on push or continuous scan). 5. For Lambda, Inspector automatically scans functions when you enable Lambda scanning. 6. Findings appear in the Inspector console and can be exported to Security Hub.
Important Limits and Defaults
Inspector v2 can scan up to 10,000 EC2 instances per account by default (soft limit, can be increased).
Container image scanning is limited to images in Amazon ECR (not third-party registries).
Lambda function scanning supports Node.js, Python, Java, Go, .NET, and Ruby runtimes.
Findings are retained for 30 days for the free tier, and up to 90 days with the paid tier (or longer if exported).
Exam-Relevant Details
The CLF-C02 exam tests your understanding of what Inspector does and when to use it. Key points:
Inspector is for vulnerability management, not threat detection (that's GuardDuty).
Inspector v2 is continuous, not scheduled.
It can scan EC2, ECR, and Lambda.
It uses agentless scanning via SSM by default.
Findings include CVEs and network reachability.
Inspector integrates with Security Hub and EventBridge.
Step-by-Step Configuration
Below is a step-by-step walkthrough for enabling Inspector v2 across an AWS account.
Prerequisites: - AWS account with appropriate permissions (AmazonInspector2FullAccess). - EC2 instances must have SSM Agent installed and be managed by Systems Manager. - For ECR, repositories must be created. - For Lambda, functions must exist.
Step 1: Enable Inspector v2 1. Go to the Amazon Inspector console at https://console.aws.amazon.com/inspector/v2/home. 2. Click "Get started" or "Enable Inspector". 3. Choose which resource types to scan: EC2, ECR, Lambda. You can enable all. 4. Click "Enable". AWS will automatically start scanning existing resources.
Step 2: Verify Scanning is Active 1. In the Inspector console, navigate to "Dashboard" to see an overview of findings. 2. Check that the number of scanned resources matches your expectations. 3. If EC2 instances are not being scanned, verify SSM Agent status and IAM role.
Step 3: Review Findings 1. Click "Findings" in the left navigation. 2. View the list of vulnerabilities and network exposures. 3. Filter by severity (Critical, High, etc.) or resource type. 4. Click on a finding to see details, including CVE ID, affected package, and remediation steps.
Step 4: Integrate with Security Hub 1. In the Security Hub console, enable the Inspector integration (usually automatic). 2. Findings from Inspector will appear in Security Hub alongside other security findings. 3. You can create automated response workflows using EventBridge rules.
Step 5: Set Up Notifications 1. In the Inspector console, go to "Settings" > "Notifications". 2. Create an SNS topic to receive alerts when new findings are generated. 3. Optionally, use EventBridge to trigger Lambda functions for automated remediation.
Step 6: Schedule Recurring Scans (Optional) Inspector v2 scans continuously; no scheduling needed. However, you can configure scan schedules for container images using ECR scan frequency settings (scan on push or continuous scan).
Enable Inspector v2
Navigate to the Amazon Inspector console and click "Get started". Select the resource types you want to scan: EC2 instances, container images in ECR, and Lambda functions. Click "Enable". AWS will begin scanning existing resources immediately. Behind the scenes, Inspector sets up the necessary service-linked roles and begins inventory collection. There is no upfront configuration needed for agentless scanning; Inspector uses AWS Systems Manager to gather software inventory from EC2 instances that have the SSM Agent installed. For ECR, Inspector automatically scans images that are pushed after enabling. For Lambda, scanning is enabled at the account level and applies to all functions.
Verify Resource Coverage
After enabling, go to the Dashboard to see the number of scanned resources. If EC2 instances show as "Not scanned", check that the instances have the SSM Agent installed and are associated with an IAM role that includes the AmazonSSMManagedInstanceCore policy. Inspector requires SSM to perform agentless scanning. If instances are missing, you can install the SSM Agent manually or use AWS Systems Manager to automate installation. For ECR, ensure that repositories are set to "Scan on push" or "Continuous scan" in the repository settings. For Lambda, ensure the function runtime is supported.
Review and Prioritize Findings
In the Findings page, you see a list of vulnerabilities and network exposures. Each finding includes a severity (Critical, High, Medium, Low), affected resource, CVE ID, and remediation guidance. Use filters to focus on critical findings. Click on a finding to see detailed information, including the affected package version and a link to the CVE database. Inspector also provides a risk score based on CVSS and AWS context (e.g., if the resource is internet-facing). Prioritize findings by severity and exploitability. For network findings, Inspector shows which security group rules allow unwanted access.
Integrate with Security Hub
To centralize security findings, enable AWS Security Hub and ensure the Inspector integration is active (usually automatic). Findings from Inspector will appear in Security Hub under the "Inspector" finding provider. Security Hub provides a consolidated view across multiple AWS security services and supports automated response via EventBridge. You can also set up custom actions in Security Hub to trigger remediation workflows. This integration is important for compliance and for teams that need a single pane of glass.
Automate Remediation with EventBridge
Use Amazon EventBridge to create rules that trigger automated responses to Inspector findings. For example, you can create a rule that matches findings with severity CRITICAL and then invoke a Lambda function that patches the vulnerable package or isolates the instance. EventBridge receives findings as events (via the Inspector finding event type). You can also send notifications to an SNS topic for email or SMS alerts. Automation helps reduce the mean time to remediation (MTTR).
Scenario 1: E-commerce Company with PCI DSS Compliance
An e-commerce company processes credit card transactions and must comply with PCI DSS. They use Amazon Inspector to continuously scan their EC2 instances and ECR container images for vulnerabilities. Inspector helps them meet the requirement for regular vulnerability scans (PCI DSS 11.2). The security team sets up Inspector to scan all resources and integrates findings with Security Hub. They configure EventBridge to send critical findings to a Slack channel via Lambda. When a critical CVE is found, the team patches the affected instances within the required timeframe. Cost: For 100 EC2 instances and 500 container images per month, the cost is approximately $200-300/month. Misconfiguration: If they forget to enable scanning on new instances (e.g., auto-scaling groups), they may miss vulnerabilities. To avoid this, they use AWS Config rules to ensure all instances have Inspector enabled.
Scenario 2: Startup with Serverless Architecture
A startup uses AWS Lambda heavily and wants to ensure their function dependencies are free of known vulnerabilities. They enable Lambda scanning in Inspector. Inspector automatically scans each function when it is deployed and continuously thereafter. The developers receive notifications when a new vulnerability is found in a package they use. They can quickly update the function code and redeploy. Cost: Lambda scanning is priced per function-month, which is very low for a startup with 50 functions. Misconfiguration: If the startup uses custom runtimes not supported by Inspector (e.g., Rust), those functions are not scanned. They need to use third-party tools for those runtimes.
Scenario 3: Large Enterprise with Multi-Account Strategy
A large enterprise uses AWS Organizations with hundreds of accounts. They enable Inspector at the organization level using the delegated administrator feature. This allows them to centrally manage scanning across all accounts and view findings from a single account. The security team uses the Inspector console in the delegated admin account to see aggregated findings. They use Security Hub cross-account aggregation to get a unified view. Cost: They negotiate a volume discount with AWS. Misconfiguration: If the delegated admin account is compromised, an attacker could disable Inspector across all accounts. To mitigate, they use least-privilege permissions and enable AWS CloudTrail to monitor changes to Inspector settings.
What CLF-C02 Tests on Amazon Inspector
The CLF-C02 exam objective 2.3 includes Amazon Inspector as a key service for security compliance. You must know:
Inspector is a vulnerability management service, not a threat detection service (that's GuardDuty).
Inspector v2 performs continuous scanning (not scheduled).
It scans EC2 instances, container images in ECR, and Lambda functions.
It uses agentless scanning via AWS Systems Manager by default.
Findings include software vulnerabilities (CVEs) and network reachability issues.
Inspector integrates with AWS Security Hub and Amazon EventBridge.
Common Wrong Answers and Why
"Amazon Inspector is used for threat detection." This is wrong because threat detection (finding malicious activity) is done by Amazon GuardDuty. Inspector focuses on vulnerabilities.
"Inspector requires an agent to be installed on all EC2 instances." While an agent is optional, the default and recommended approach is agentless via SSM. Many candidates think an agent is mandatory.
"Inspector only scans EC2 instances." Inspector v2 also scans ECR container images and Lambda functions. The exam may test that it covers more than just EC2.
"Inspector Classic is the current version." Inspector Classic is legacy; the exam focuses on Inspector v2. Watch for questions that mention "scheduled scans" — that's Classic, not v2.
Specific Terms and Values
CVE: Common Vulnerabilities and Exposures — the standard identifier for vulnerabilities.
CVSS: Common Vulnerability Scoring System — used for severity scoring.
SSM Agent: Required for agentless EC2 scanning.
Security Hub: Centralized security findings aggregation.
EventBridge: For automated responses to findings.
Findings: The output of Inspector, each with severity (Critical, High, Medium, Low).
Tricky Distinctions
Inspector vs GuardDuty: Inspector finds vulnerabilities; GuardDuty detects threats (e.g., unusual API calls, compromised instances).
Inspector vs AWS Config: Config checks resource configurations against rules (e.g., whether a security group allows SSH from anywhere). Inspector checks for vulnerabilities and network exposure, not configuration compliance.
Inspector vs Trusted Advisor: Trusted Advisor provides best-practice checks (e.g., security groups open to 0.0.0.0/0) but does not scan for CVEs.
Decision Rule for Multiple-Choice Questions
If a question describes a need to find software vulnerabilities or unintended network exposure, choose Amazon Inspector. If it describes monitoring for malicious activity or threat detection, choose GuardDuty. If it describes checking resource configurations against compliance rules, choose AWS Config. If it describes a general security assessment with best-practice recommendations, choose Trusted Advisor.
Amazon Inspector is a vulnerability management service that scans EC2, ECR, and Lambda for CVEs and network exposure.
Inspector v2 performs continuous scanning, not scheduled scans.
Agentless scanning for EC2 uses AWS Systems Manager (SSM Agent).
Findings are categorized as Critical, High, Medium, or Low severity.
Inspector integrates with AWS Security Hub and Amazon EventBridge.
Do not confuse Inspector with GuardDuty (threat detection) or AWS Config (configuration compliance).
Inspector v2 is the current version; Inspector Classic is legacy.
Container image scanning is for images stored in Amazon ECR only.
Lambda scanning supports specific runtimes: Node.js, Python, Java, Go, .NET, Ruby.
Inspector can be enabled at the organization level using a delegated administrator.
These come up on the exam all the time. Here's how to tell them apart.
Amazon Inspector
Scans for software vulnerabilities (CVEs) and network exposure.
Continuous scanning of EC2, ECR, Lambda.
Agentless via SSM or optional agent.
Output: findings with severity scores.
Integrates with Security Hub and EventBridge.
Amazon GuardDuty
Detects malicious activity and threats (e.g., unusual API calls, compromised instances).
Continuous monitoring of AWS accounts, workloads, and data sources (CloudTrail, VPC Flow Logs, DNS).
Agentless; uses data sources already available.
Output: findings with threat types (e.g., Backdoor, Trojan).
Integrates with Security Hub and EventBridge.
Amazon Inspector
Focuses on vulnerabilities and network exposure.
Scans software packages and network configurations.
Produces findings that require remediation (e.g., patching).
Does not evaluate resource configurations against rules.
Priced per instance-hour, image scan, function-month.
AWS Config
Focuses on resource configuration compliance.
Evaluates resources against rules (e.g., required tags, security group rules).
Produces compliance results (compliant/non-compliant).
Does not scan for CVEs.
Priced per configuration item recorded.
Mistake
Amazon Inspector requires an agent to be installed on all EC2 instances.
Correct
Inspector v2 supports agentless scanning via AWS Systems Manager (SSM). You only need the SSM Agent, which is pre-installed on many AMIs. No additional Inspector-specific agent is required for basic scans.
Mistake
Inspector only scans EC2 instances.
Correct
Inspector v2 also scans container images in Amazon ECR and AWS Lambda functions. It is not limited to EC2.
Mistake
Inspector performs scheduled scans (e.g., daily or weekly).
Correct
Inspector v2 performs continuous scanning. It automatically checks for new vulnerabilities as they are published. Scheduled scans were a feature of Inspector Classic, which is legacy.
Mistake
Inspector can scan resources in on-premises data centers.
Correct
Inspector is designed for AWS resources only. It cannot scan on-premises servers or resources outside AWS.
Mistake
Inspector and GuardDuty do the same thing.
Correct
Inspector focuses on vulnerabilities (CVEs and network exposure), while GuardDuty focuses on threat detection (e.g., compromised instances, malicious behavior). They are complementary but different.
Amazon Inspector is a vulnerability management service that scans for software vulnerabilities (CVEs) and unintended network exposure. Amazon GuardDuty is a threat detection service that monitors for malicious activity and unauthorized behavior. Inspector finds weaknesses that could be exploited; GuardDuty finds actual or potential threats in real time. They complement each other but serve different purposes. On the exam, if the question mentions 'vulnerabilities' or 'CVEs', choose Inspector. If it mentions 'threats' or 'malicious activity', choose GuardDuty.
For EC2 instances, Inspector v2 supports agentless scanning using AWS Systems Manager (SSM). You do not need to install a separate Inspector agent. However, the SSM Agent must be installed and the instance must have appropriate IAM permissions. Optionally, you can install the legacy Inspector agent for deeper OS-level scans, but agentless is the default and recommended approach. For container images and Lambda, no agent is needed.
No. Amazon Inspector is designed to scan AWS resources only. It cannot scan on-premises servers or resources in other cloud providers. For on-premises workloads, you would need a third-party vulnerability scanner or use AWS services like AWS Systems Manager Hybrid Activations to manage them, but Inspector itself does not extend to on-premises.
Inspector v2 can scan three types of resources: Amazon EC2 instances, container images stored in Amazon ECR, and AWS Lambda functions. It does not scan other services like Amazon RDS, S3, or DynamoDB. For those, you would use other security services like GuardDuty or AWS Config.
Pricing is based on the number of resources scanned: for EC2 instances, you pay per instance-hour; for container images, per image scan; for Lambda functions, per function-month. There is a 30-day free trial. After the trial, you pay only for what you scan. There are no upfront commitments. For exact pricing, see the AWS Pricing page as rates vary by region.
Findings can be viewed in the Amazon Inspector console under the 'Findings' tab. You can also integrate Inspector with AWS Security Hub to view findings alongside other security findings. Additionally, you can send findings to Amazon EventBridge to trigger automated responses or to an SNS topic for notifications.
Inspector Classic was the original version that performed scheduled scans and required an agent. Inspector v2 is the current version that performs continuous scans, supports agentless scanning, and covers EC2, ECR, and Lambda. The CLF-C02 exam focuses on Inspector v2. Classic is legacy and not recommended for new use.
You've just covered Amazon Inspector — now see how well it sticks with free CLF-C02 practice questions. Full explanations included, no account needed.
Done with this chapter?