Notice: Trying to get property 'post_excerpt' of non-object in /home/n3svtp4r09fz/technet.vn/wp-content/themes/darknews/single.php on line 43
Lab Details
- This lab walks you through the steps to launch the EC2 instance and configure an Inspector with an Assessment target and template.
- You will practice using Amazon Inspector target as EC2 Instance having AWS Agent installed. Once the Assessment target and template are created, you will run the template to find the vulnerabilities on the configured instance.
- Duration: 45 minutes
- AWS Region: US East (N. Virginia) us-east-1
Introduction
What is Amazon Inspector
- Amazon Inspector allows us to find vulnerabilities on configured EC2 instances.
- There are 2 types of assessment runs are performed, Network assessment and Host assessment
- Network assessment has Network Reachability package rule while Host assessment has three types of package rule i.e. Common vulnerabilities and exposures, Center for Internet Security (CIS) Benchmarks, Security best practices for Amazon Inspector.
- There are mainly three types of Severity levels for rules in Amazon Inspector i.e. High, Medium, and Low.
- Informational severity of findings is just best practices recommended by Amazon Inspector.
Architecture Diagram

Task Details
- Launching Lab Environment
- Launching an EC2 Instance
- SSH into EC2 Instance
- Install an AWS Agent
- Create an assessment target
- Create an assessment template
- Run the assessment template
- Download the assessment run report
- Validation of the Lab
Lab Steps
Task 1: Launching Lab Environment
- Launch the lab environment by clicking on
. Please wait until the lab environment is provisioned. It will take less than 2 minutes to provision the lab environment.
- Once the Lab is started, you will be provided with IAM user name, Password, AccessKey and Secret Access Key.
- Click on the
, AWS Management Console will open in a new tab.
- In the AWS sign in page, the Account ID will be present by default.
- Leave the Account ID as default. Do not remove or change the Account ID otherwise you cannot proceed with the lab.
- Copy and paste the IAM user name and Password into AWS Console. Click on Sign in to log into the AWS Console.?
Note : If you face any issues, please go through FAQs and Troubleshooting for Labs.
Task 2 : Launching an EC2 Instance
- Make sure you are in US East (N. Virginia) us-east-1 Region.
- Navigate to EC2 by clicking on the
menu in the top, then click on
in the
section.
- Navigate to
on the left panel and click on
- Choose an Amazon Machine Image (AMI): Search for Amazon Linux 2 AMI in the search box and click on the select button.
- Choose an Instance Type: select
and then click on the
- Configure Instance Details: No need to change anything in this step, click on
- Add Storage: No need to change anything in this step, click on
- Add Tags: Click on
- Key : Name
- Value : Inspector-EC2
- Click on
- Configure Security Group:
- Assign a security group: Create a new security group
- Security group name: Inspector-SG
- Description: Security group for Inspector EC2
- To add All traffic,
- Choose Type: SSH
- Source: Custom (Allow specific IP address) or Anywhere (From ALL IP addresses accessible).
- To add another rule, click on the
button.
- Choose type: Custom TCP Rule
- Port Range: 20
- Source: Custom and 0.0.0.0/0
- To add another rule, click on the
button.
- Choose type: Custom TCP Rule
- Port Range: 21
- Source: Custom and 0.0.0.0/0
- To add another rule, click on the
button.
- Choose type: Custom TCP Rule
- Port Range: 23
- Source: Custom and 0.0.0.0/0
- After that, click on
- Review and Launch: Review all settings and click on
.
- Key Pair : Create a new key pair, enter MyEC2Key, click on
, and store it on your local machine, Click on
.
- Launch Status: Your instance is now launching, Click on the instance ID and wait for complete initialization of instance till status change to
.
- Note down the sample IPv4 Public IP Address of the EC2 instance. A sample is shown in the screenshot below.
Task 3 : SSH into EC2 Instance
- Please follow the steps in SSH into EC2 Instance.
Task 4: Install an AWS Agent
- Switch to root user: sudo su
- Download the agent installation script by running one of the following commands:
- wget https://inspector-agent.amazonaws.com/linux/latest/install
- curl -O https://inspector-agent.amazonaws.com/linux/latest/install
- To install the agent, run the following command:
- sudo bash install
Task 5: Create an assessment target
- Navigate to Inspector by clicking on the
menu in the top, then click on
in the
section.
- On the home page, click on the Get started button.
- Click on the Cancel button present on the right bottom corner, to see the options. Run weekly, Run once and Advanced setup is for quick setup.
- On the Leftside bar, click on the Assessment targets.
- Click on the button.
- Fill in the details, Name: Demo
- All instances: Select Include all EC2 instances in this AWS account and region.
- Install Agents: Selected by Default
- Click on the Save button, to create an Assessment Target.
- The assessment target is now created.
Task 6: Create an assessment template
- On the Leftside bar, click on the Assessment templates.
- Click on the button.
- Fill in the below details, as follows:
- Name: Whiz
- Target Name: Select Demo
- Rules packages: Select all four rules, one-by-one
- Duration: 1 Hour (Recommended)
- Keep all other options as default.
- Click on the Create button.
- Assessment template Whiz is now getting created.
- It’s created, in the next step. You will run the template to find the vulnerabilities on the created EC2 instance.
Task 7: Run the assessment template
- Select Assessment templates Whiz, and click on the Run button.
- The assessment run has started.
- To see the Assessment Run and its result, click on the Assessment runs present on the left sidebar.
- Click on the number of findings to know about the vulnerabilities found by Inspector on the EC2 instance.
- There are currently 5 findings.
- Click on the expand button for the first finding, to see the details.
- The description field has details about the finding, while the Recommendation field has the message to solve the issue and avoid this finding.
Task 8: Download the assessment run report
- Click on the Assessment runs, present on the left sidebar.
- Choose the Download report button.
- After you click on the Download report option, you will be prompted with a screen to select the report type and format.
- Keep the option default, Report type as Findings report, and report format as PDF. Click on the Generate Report button.
- It would take a couple of seconds to generate the report.
- Once ready, it will open in the new tab of your browser.
- Note: Vulnerabilities of Informational severity will not be shown in the report. To see that regenerate the report with the Full report option.
- If there are more than 3 vulnerabilities found, it is recommended to generate the report the check the issue.
Task 9: Validation of the lab
- Once the lab steps are completed, please click on the
button on the right-side panel.
- This will validate the resources in the AWS account and displays whether you have completed this lab successfully or not.
- Sample output :

Completion and Conclusion
- You have successfully created and launched Amazon EC2 Instance.
- You have successfully created an Inspector assessment target and template.
- You have successfully found the vulnerabilities on the configured EC2 instance.