<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Alanoud Alassaf</title>
    <description>The latest articles on DEV Community by Alanoud Alassaf (@alanoudalassaf).</description>
    <link>https://dev.to/alanoudalassaf</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F634150%2Fe3b7c73b-70c8-44ca-b416-c9e0878668f6.png</url>
      <title>DEV Community: Alanoud Alassaf</title>
      <link>https://dev.to/alanoudalassaf</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/alanoudalassaf"/>
    <language>en</language>
    <item>
      <title>Automate scanning for vulnerabilities, network exposures &amp; deviation from best practices in AWS</title>
      <dc:creator>Alanoud Alassaf</dc:creator>
      <pubDate>Tue, 28 Dec 2021 17:43:01 +0000</pubDate>
      <link>https://dev.to/aws-builders/automate-scanning-for-vulnerabilities-network-exposures-deviation-from-best-practices-in-aws-13ao</link>
      <guid>https://dev.to/aws-builders/automate-scanning-for-vulnerabilities-network-exposures-deviation-from-best-practices-in-aws-13ao</guid>
      <description>&lt;h4&gt;
  
  
  Amazon Inspector
&lt;/h4&gt;

&lt;p&gt;Is a vulnerability management service that continuously scans your AWS workloads for vulnerabilities, automatically discovers and scans Amazon EC2 instances and container images residing in Amazon Elastic Container Registry (Amazon ECR) for software vulnerabilities and unintended network exposure.&lt;/p&gt;

&lt;h4&gt;
  
  
  An Amazon Inspector assessment covers:
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Network Reachability.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Common vulnerabilities and exposures (CVE). &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Center for Internet Security (CIS) benchmarks – currently only with Amazon inspector classic.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Security best practices – currently only with Amazon inspector classic.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Source: &lt;a href="https://docs.aws.amazon.com/inspector/latest/user/what-is-inspector.html" rel="noopener noreferrer"&gt;Amazon Inspector&lt;/a&gt;      &lt;a href="https://docs.aws.amazon.com/inspector/latest/userguide/inspector_introduction.html" rel="noopener noreferrer"&gt;Amazon Inspector Classic&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;In this demo I will walk you through a step-by-step guide on creating Linux and Windows EC2 instances, installing Inspector agent on them, enabling and configuring Amazon Inspector classic and Amazon Inspector then downloading a full report of all findings, so let’s get started!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;First let’s create a new &lt;u&gt;Linux&lt;/u&gt; EC2 instance.&lt;/p&gt;

&lt;p&gt;Login to your AWS account, click &lt;em&gt;Services&lt;/em&gt; and you will find EC2 under &lt;em&gt;Compute section&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwzji0bcmbvak0zc66xuh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwzji0bcmbvak0zc66xuh.png" alt="EC2"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It will take you to EC2 dashboard page.&lt;/p&gt;

&lt;p&gt;On the left side of the screen you will find &lt;em&gt;instances&lt;/em&gt; click on it, then click &lt;em&gt;Launch instances&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fepdu2ailmuem8v3fi39j.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fepdu2ailmuem8v3fi39j.png" alt="Ec2 instances page"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;For this demo, you can select one of the free tier Amazon Linux AMI’s.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fv2krx2cykpxayna7f9gx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fv2krx2cykpxayna7f9gx.png" alt="Amazon Linux AMI"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;For the instance type, you can select the free tier t2.micro then click &lt;em&gt;Review and Launch&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Furqnax31peshykhb7k9z.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Furqnax31peshykhb7k9z.png" alt="Instance Type"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You will get this security warning message because we did not change the security group rules and it is now widely open. &lt;/p&gt;

&lt;p&gt;To change it click &lt;em&gt;Edit security groups&lt;/em&gt;. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fh97iywsl6qjhpjvgih88.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fh97iywsl6qjhpjvgih88.png" alt="security groups"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;For now, you can allow only your IP address then click &lt;em&gt;Review and Launch&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fujbprtc8arblfeuqazia.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fujbprtc8arblfeuqazia.png" alt="security groups"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Once you click &lt;em&gt;Launch&lt;/em&gt;, it will ask you to either create a new key pair or use an existing one - I will create a new key pair and name it Demo-KP.&lt;/p&gt;

&lt;p&gt;You must download the key pair first, then launch the instance.  &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Finhj5a4g26xu71fjry4i.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Finhj5a4g26xu71fjry4i.png" alt="Key pair"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now let’s create another instance with &lt;u&gt;Windows&lt;/u&gt; image. &lt;/p&gt;

&lt;p&gt;Click on &lt;em&gt;Launch instances&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Feuj6ruxwwkdrf14d96hz.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Feuj6ruxwwkdrf14d96hz.png" alt="EC2"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Search for Windows in the search bar, then select one of the free tier windows images.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F06947sqxpsnyb2njngc7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F06947sqxpsnyb2njngc7.png" alt="EC2 instance"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;For the instance type, you can select t2.micro as well.&lt;/p&gt;

&lt;p&gt;Then click &lt;em&gt;Review and Launch&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcxvamii598wc97d92n4x.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcxvamii598wc97d92n4x.png" alt="EC2 instance type"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Again, you will see the security warning message.&lt;/p&gt;

&lt;p&gt;Click &lt;em&gt;Edit security groups&lt;/em&gt; and change it to your IP address, then click &lt;em&gt;Launch&lt;/em&gt;. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3seadal783hq5lyj349x.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3seadal783hq5lyj349x.png" alt="EC2 instance"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It will ask you to create or use an existing key pair, you can use the one you created earlier.&lt;/p&gt;

&lt;p&gt;Then check the box below and click &lt;em&gt;Launch Instances&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3sq3rzt5mnbjfl5jkmmj.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3sq3rzt5mnbjfl5jkmmj.png" alt="EC2 instance key pair"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now we have two running EC2 instances; Linux and Windows.&lt;/p&gt;

&lt;p&gt;Let’s add new tag to each one of them.&lt;/p&gt;

&lt;p&gt;Select each instance and click &lt;em&gt;Tags&lt;/em&gt; then &lt;em&gt;Manage tags&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ff7z1j85b7ytc3t1dtuir.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ff7z1j85b7ytc3t1dtuir.png" alt="EC2 instance tags"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Add a new tag with the Key “Type” and Value “Production” then click &lt;em&gt;Save&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fd6mj05rahj2mltsod1dw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fd6mj05rahj2mltsod1dw.png" alt="EC2 instance tags"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8zl3d6lx7k0z8ezrvq7w.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8zl3d6lx7k0z8ezrvq7w.png" alt="EC2 instance tags"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Select the Linux instance and copy the &lt;u&gt;IP address&lt;/u&gt;. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjcfqdpyn93hmkd7ytnb2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjcfqdpyn93hmkd7ytnb2.png" alt="EC2 instances"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now let’s open the terminal, login to the Linux instance and install Amazon Inspector’s agent.&lt;/p&gt;

&lt;p&gt;To login, first you need to change the permissions for the Key file by running this command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;chmod 400 [your key file]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then login to the instance by running this command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ssh ec2-user@[Your EC2 instance IP address] -i  [your key file]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqkcs4mk7nqzuladpo0jw.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqkcs4mk7nqzuladpo0jw.jpg" alt="Linux EC2 instance"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You are now logged in.&lt;/p&gt;

&lt;p&gt;Next you will need to download Amazon Inspector’s agent script by running this command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;wget https://inspector-agent.amazonaws.com/linux/latest/install
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqmwm1dfp02mllzaci3x5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqmwm1dfp02mllzaci3x5.png" alt="Download inspector agent"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Once it’s completed, you can install the agent by running this command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo bash install 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcd6op7isp0inrabh2oky.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcd6op7isp0inrabh2oky.png" alt="install inspector agent"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Amazon Inspector’s agent has been installed in the &lt;u&gt;Linux&lt;/u&gt; instance.&lt;/p&gt;

&lt;p&gt;Now let’s go back to the console and connect to the &lt;u&gt;Windows&lt;/u&gt; instance.&lt;/p&gt;

&lt;p&gt;In the EC2 instances page select the Windows instance then click &lt;em&gt;Connect&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5g5i8c17um1nxt5dh0sy.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5g5i8c17um1nxt5dh0sy.png" alt="Windows EC2 instance"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Select &lt;em&gt;RDP client&lt;/em&gt; then &lt;em&gt;Get password&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F72wimd15qwqxoefao180.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F72wimd15qwqxoefao180.png" alt="Connect to Windows EC2 instance"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Browse to your key pair then click &lt;em&gt;Decrypt password&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;Copy the password as you will need it to access your Windows instance.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmhvbp4cojtickarwmxh9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmhvbp4cojtickarwmxh9.png" alt="Decrypt password windows instance"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I will use Microsoft Remote Desktop to connect to the Windows instance.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fs34brx3bsdigrchi93kk.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fs34brx3bsdigrchi93kk.png" alt="Microsoft remote desktop"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now that you are logged in, you will need to download Amazon Inspector’s &lt;em&gt;agent&lt;/em&gt; using this URL:&lt;br&gt;
&lt;code&gt;https://inspector-agent.amazonaws.com/windows/installer/latest/AWSAgentInstall.exe&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fq7adoiys2hswr0ms7k6k.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fq7adoiys2hswr0ms7k6k.png" alt="Download inspector agent"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Once the download is completed, click on &lt;em&gt;Run&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fknx6k09f6ou0i8b2ac23.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fknx6k09f6ou0i8b2ac23.png" alt="Run inspector agent"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Check the box to agree to the license terms and conditions, then click &lt;em&gt;Install&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzey2aohy6k97iw31vm3t.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzey2aohy6k97iw31vm3t.png" alt="AWS inspector agent setup"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now that the installation is completed, let’s go back to the AWS console and enable Amazon Inspector.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmgmpbuqdyll44q1vrw1e.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmgmpbuqdyll44q1vrw1e.png" alt="AWS inspector agent installation"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You can find Inspector under the &lt;em&gt;Security, Identity &amp;amp; Compliance&lt;/em&gt; section.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8bnuus59qkpo2ed606sa.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8bnuus59qkpo2ed606sa.png" alt="Amazon Inspector"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It will take you to Amazon Inspector’s main page, click &lt;em&gt;Get Started&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F74u4wo99jhq3x385bnb2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F74u4wo99jhq3x385bnb2.png" alt="Amazon inspector main page"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Let’s start first with &lt;em&gt;Inspector Classic&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;You can click &lt;em&gt;Switch to Inspector Classic&lt;/em&gt; on the left side of the screen and it will open a new tab.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Foiniyzlz0oun0x7uesex.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Foiniyzlz0oun0x7uesex.png" alt="Amazon inspector classic"&gt;&lt;/a&gt;  &lt;/p&gt;

&lt;p&gt;Click on &lt;em&gt;Get started&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fluvqkyxo60oqqph60o8v.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fluvqkyxo60oqqph60o8v.png" alt="Amazon inspector classic main page"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It will ask you to setup your assessment; if you want to allow Network assessments, Host assessments or both, as well as the frequency of the scanning (weekly or once).&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzzf5k4p7pvd43e3yiyn3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzzf5k4p7pvd43e3yiyn3.png" alt="Amazon Inspector classic setup"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Once you chose the desired assessment runs, it will ask you to confirm it, click &lt;em&gt;OK&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fi397pfsb20pf9x0xjmx4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fi397pfsb20pf9x0xjmx4.png" alt="Amazon inspector classic assessment runs"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Then it will take you to Amazon Inspector classic dashboard.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fygfw8z1oxd8heyaa0hco.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fygfw8z1oxd8heyaa0hco.png" alt="Amazon inspector classic dashboard"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now let’s create a new &lt;u&gt;assessment target&lt;/u&gt;.&lt;/p&gt;

&lt;p&gt;Click &lt;em&gt;Assessment targets&lt;/em&gt; on the left side of the screen then click &lt;em&gt;Create&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F89k2v5k8fwol4gdilucy.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F89k2v5k8fwol4gdilucy.png" alt="Amazon inspector assessment targets"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Give it a name, then add the tag that is associated to the instances you want to run inspector on – you have the option to include all EC2 instances in your account and region as well - then &lt;em&gt;save it&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpahskkuu5wfw39yqk3dh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpahskkuu5wfw39yqk3dh.png" alt="Assesment target"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now let’s create a new &lt;u&gt;assessment template&lt;/u&gt;.&lt;/p&gt;

&lt;p&gt;Click &lt;em&gt;Assessment templates&lt;/em&gt; on the left side of the screen then &lt;em&gt;Create&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzzlkyeabxwfitjuh5pjl.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzzlkyeabxwfitjuh5pjl.png" alt="Amazon inspector assessment templates"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Name your assessment template, select the target that you created in the previous step, then add the rules packages that you want to include in this template and choose the duration to run the assessment (AWS recommends 1 hour) but for this demo I will choose 15 minutes.&lt;/p&gt;

&lt;p&gt;You also have the option to connect it to SNS if you want to receive notifications. &lt;/p&gt;

&lt;p&gt;Add the desired tags and you can check the box below to set a schedule to automatically run the assessment.&lt;/p&gt;

&lt;p&gt;For this demo you can uncheck the box then click &lt;em&gt;Create and run&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4rtc4opamftg8d2xi0r5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4rtc4opamftg8d2xi0r5.png" alt="Amazon inspector assessment template"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It will start the analysis, once it's completed it will show you the number of findings. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhzkeqfd41uymgj4hvy7d.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhzkeqfd41uymgj4hvy7d.png" alt="Amazon inspector assessment run"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Click on &lt;em&gt;Download report&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;You can select whether you want only the findings report or the full report (the full report will also include the rules packages) then choose the desired format HTML or PDF.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhd7xjg06trbu4fowfwy3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhd7xjg06trbu4fowfwy3.png" alt="Download report"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You can see below some screenshots of the &lt;u&gt;full report&lt;/u&gt; in PDF format.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fl5fueslwd3xjoaqq6v10.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fl5fueslwd3xjoaqq6v10.png" alt="Screenshot of full report"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1la4id0h7mpumr52moa5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1la4id0h7mpumr52moa5.png" alt="Screenshot of full report"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fswl879tqev7zh2xvew7l.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fswl879tqev7zh2xvew7l.png" alt="Screenshot of full report"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Let’s go back to the console.&lt;/p&gt;

&lt;p&gt;Click on &lt;em&gt;Findings&lt;/em&gt; on the left side of the screen.&lt;/p&gt;

&lt;p&gt;You will see all findings with details and you have the option to filter them based on severity level.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F09hq6vih4j1xi36cl513.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F09hq6vih4j1xi36cl513.png" alt="Amazon inspector findings"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Lastly, let’s go back to the Inspector tab.&lt;/p&gt;

&lt;p&gt;Click &lt;em&gt;Enable Inspector&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmg29bmtizazik9084wgp.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmg29bmtizazik9084wgp.png" alt="Enable inspector"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You will see the dashboard which contains a summary, and on the left side of the screen you can check the findings based on vulnerability, instance, container image, repository, and all findings as well.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7z2chvlfxr5axu9riwdp.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7z2chvlfxr5axu9riwdp.png" alt="Amazon inspector"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Now we can manage vulnerabilities, network exposure and deviation from security best practices in a centralized automated way!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;We have configured both Amazon Inspector and Amazon Inspector classic, installed Inspector agents on Linux and Windows servers, and have a well-written organized full report with all details.&lt;/p&gt;

</description>
      <category>cloud</category>
      <category>security</category>
      <category>aws</category>
      <category>cloudskills</category>
    </item>
    <item>
      <title>Getting Started with AWS Config, CloudTrail, CloudWatch, S3, SNS</title>
      <dc:creator>Alanoud Alassaf</dc:creator>
      <pubDate>Fri, 16 Jul 2021 15:22:02 +0000</pubDate>
      <link>https://dev.to/aws-builders/setting-up-aws-config-cloudtrail-cloudwatch-s3-sns-1456</link>
      <guid>https://dev.to/aws-builders/setting-up-aws-config-cloudtrail-cloudwatch-s3-sns-1456</guid>
      <description>&lt;p&gt;Security is one of the major concerns in any environment, whether you are planning to run a start-up or having an enterprise, you should always consider security before anything and have a zero-trust model.&lt;/p&gt;

&lt;p&gt;It is better to be proactive and secure your resource than being a reactive and start implementing security after an incident, some of the reasons are:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  Save money.&lt;/li&gt;
&lt;li&gt;  Save efforts.&lt;/li&gt;
&lt;li&gt;  Availability of your services.&lt;/li&gt;
&lt;li&gt;  Business reputation.&lt;/li&gt;
&lt;li&gt;  And many more.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;code&gt;What is AWS Config?&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;AWS Config is a service that enables you to assess, audit, and evaluate the configurations of your AWS resources. Config continuously monitors and records your AWS resource configurations and allows you to automate the evaluation of recorded configurations against desired configurations. With Config, you can review changes in configurations and relationships between AWS resources, dive into detailed resource configuration histories, and determine your overall compliance against the configurations specified in your internal guidelines. This enables you to simplify compliance auditing, security analysis, change management, and operational troubleshooting.&lt;br&gt;
&lt;a href="https://aws.amazon.com/config/?nc1=h_ls" rel="noopener noreferrer"&gt;Source: AWS Config&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In this demo, we will set up AWS Config, assign a rule to it, set up AWS CloudTrail, enable CloudWatch to monitor CloudTrail, set up S3 bucket to store our log files, and set up Simple Notification Service to receive notifications through email.&lt;/p&gt;

&lt;p&gt;With all that being said, let’s open the console and start setting up AWS Config:&lt;/p&gt;

&lt;p&gt;Login to your AWS account&lt;/p&gt;

&lt;p&gt;Click on &lt;em&gt;all services&lt;/em&gt;, then you will find Config under &lt;em&gt;Management &amp;amp; Governance&lt;/em&gt; Section, click it:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8spjru3rdpwx9n6zdxux.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8spjru3rdpwx9n6zdxux.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It will take you to AWS Config’s dashboard. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5zhp1uv8fa05z1qjyfit.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5zhp1uv8fa05z1qjyfit.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Click &lt;em&gt;Get started&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;Now you can start setting up your Config, &lt;br&gt;
For the resource type; you can choose &lt;em&gt;Record all resources in this region&lt;/em&gt;, this will allow config to record all your resources in the region you’re currently using, and you can check the box below which says “&lt;em&gt;include global resources&lt;/em&gt;” this will also get the resources that operates in a global basis such as IAM.&lt;/p&gt;

&lt;p&gt;Now you will need an &lt;em&gt;S3 bucket&lt;/em&gt; to store your config log files, &lt;br&gt;
you have the option to choose an existing one or create a new one directly from Config’s settings, and it will suggest a name for your S3 bucket as you can see in the screenshot below.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fusj78nmqirijuxk75xns.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fusj78nmqirijuxk75xns.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;By checking the box for SNS topic you will set up a &lt;em&gt;Simple Notification Service (SNS)&lt;/em&gt; topic to provide you with notifications related to your Config. &lt;br&gt;
You have the option to create a new SNS topic or choose an existing one whether it’s from your account or another account.&lt;/p&gt;

&lt;p&gt;For this demo, I will create a new SNS topic and give the topic a name: config-topic.&lt;/p&gt;

&lt;p&gt;Then you can click &lt;em&gt;next&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffb2cfhf7ykcvfcf76hiw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffb2cfhf7ykcvfcf76hiw.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It will take you to &lt;em&gt;step 2&lt;/em&gt;: to assign rules. &lt;br&gt;
As you can see below there are more than 150 rules ready to use, provided and managed by AWS,&lt;br&gt;
but of course, you have the option to create your own rules.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F99rf4m6bn1py4cki4oew.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F99rf4m6bn1py4cki4oew.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;For this demo, I will choose an AWS managed rule.&lt;br&gt;
Cloudtrail-enabled: this rule will periodically check whether AWS cloudtrail is enabled in your account or not.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkb4brdmoff5ic3d0lj24.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkb4brdmoff5ic3d0lj24.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Then click &lt;em&gt;next&lt;/em&gt; and review your configurations then click &lt;em&gt;confirm&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F71lzv7yr5o7w04erk1ag.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F71lzv7yr5o7w04erk1ag.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Your AWS Config Dashboard will open, this is where you can add/edit/delete rules, check compliances and basically manage everything.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbsemcx91g50m4jrsxnf7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbsemcx91g50m4jrsxnf7.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now let’s set up a CloudTrail, you can find it under &lt;em&gt;Management and Governance&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fadskg96y3mi93b7xo9ng.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fadskg96y3mi93b7xo9ng.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Once you’re in the dashboard, click &lt;em&gt;create trail&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F837es56qggqgb4kwgri3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F837es56qggqgb4kwgri3.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Give it a name and select where do you want to store the logs;&lt;br&gt;
You can use one of your existing S3 buckets, or create a new one directly from here,&lt;br&gt;
I will create a new one and it will automatically provide a name for it (you can change it) you also have the option to encrypt log files using KMS, for this demo I will keep it as it is.&lt;/p&gt;

&lt;p&gt;You can also enable Simple Notification Service (SNS) and associate it with this Trail. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzu1jqqmexgb2y8lay0q7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzu1jqqmexgb2y8lay0q7.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;And you have the option to enable CloudWatch logs; which will monitor your CloudTrail logs. &lt;br&gt;
I will enable it and choose a new log group then give it a name (It will provide it automatically, but you can change it).&lt;/p&gt;

&lt;p&gt;Then you will need to assign an IAM Role to enable communication between CloudTrail and CloudWatch, I will choose a new role and give it a name.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fm4w3ucc5m6lhjiah878z.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fm4w3ucc5m6lhjiah878z.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You will select the type of events that you want CloudTrail to log, I will select them all. &lt;br&gt;
It will ask you to specify the kind of API activities to log for the management events, I will choose the read and write activates.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvtml8j32bsijjum6ofsh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvtml8j32bsijjum6ofsh.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;For the data events, it will ask you to select the source of data, I will keep it S3; you can select a specific S3 bucket, or all current and future S3 buckets, I will keep it for &lt;em&gt;all S3 buckets&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;In insights events, you can enable the API Call rate to measure any unusual activities.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fllcjezq2mu0tnosrfr2o.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fllcjezq2mu0tnosrfr2o.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Click &lt;em&gt;next&lt;/em&gt;, review your settings, and click &lt;em&gt;create trail&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;Now you can see our trail “CloudTrail-test” is &lt;em&gt;enabled&lt;/em&gt; and the status is &lt;em&gt;Logging&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhwg9kiun57g81to2oui5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhwg9kiun57g81to2oui5.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Let’s go to &lt;em&gt;S3&lt;/em&gt;, you can find it under &lt;em&gt;Storage&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fijlm249lkd17bxg4kyh7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fijlm249lkd17bxg4kyh7.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You can see our S3 bucket has been created, and we can find all CloudTrail logs inside it&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fuw3lsx0wpr2w8cu0q2hi.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fuw3lsx0wpr2w8cu0q2hi.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;When you click on it you will find our folders that contains logs from CloudTrail.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fix2w0t53b142ygb36g74.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fix2w0t53b142ygb36g74.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now let’s go to &lt;em&gt;Simple Notification Service (SNS)&lt;/em&gt;, you can find it under &lt;em&gt;Application Integration&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flf7z985qm1h6tg5og4hc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flf7z985qm1h6tg5og4hc.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You will find the Topic that we created earlier (while setting up Config) here -you will need the ARN in the next step-. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fixjwg82ml62q8ot9iuw3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fixjwg82ml62q8ot9iuw3.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Let’s connect it to our email to receive notifications there.&lt;/p&gt;

&lt;p&gt;Click on &lt;em&gt;subscriptions&lt;/em&gt; (you can find it on your left-hand side of the screen) click &lt;em&gt;create subscription&lt;/em&gt; and fill the necessary details.&lt;/p&gt;

&lt;p&gt;Select the Topic that you want to connect to your email (your topic's ARN), and in the protocol section, select email.&lt;/p&gt;

&lt;p&gt;For the endpoint, add your email address then create the subscription.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhsgnlkcm2cf41eqdui6y.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhsgnlkcm2cf41eqdui6y.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You will receive an email to confirm the subscription, click on the link that says “&lt;em&gt;Confirm Subscription&lt;/em&gt;”.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5tjoix6ian8byo8icivn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5tjoix6ian8byo8icivn.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It will open a new web page that confirms your subscription, with your subscription ID and an option to remove the subscription.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fd3kzvz7eda80f91orn68.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fd3kzvz7eda80f91orn68.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you go back to SNS Subscriptions, you will find your subscription ID, your email address and the status is &lt;em&gt;confirmed&lt;/em&gt;.  &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhj1thjf2hogc2x1rqd0e.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhj1thjf2hogc2x1rqd0e.jpg" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you go back to AWS Config, you will find your cloudtrail-enabled rule compliant now.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3g18lrz1t7d1nwsz2vzo.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3g18lrz1t7d1nwsz2vzo.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Voila!
&lt;/h3&gt;

&lt;p&gt;We now have a centralized configuration dashboard associated with chosen rules to evaluate our security, CloudTrail to audit API calls, S3 bucket to store all log files and receive notifications via email.&lt;/p&gt;

</description>
      <category>aws</category>
      <category>security</category>
      <category>cloud</category>
    </item>
  </channel>
</rss>
