Skip to main content
Sumo Logic

Collect Data for Amazon Inspector

Configure Collection in Sumo Logic

 

To collect Amazon Inspector data, configure:

  1. A Hosted Collector.
  2. An HTTP Source.

Configure Amazon Inspector

On the Amazon Inspector, perform these tasks under the same AWS region:

  1. Create an Amazon SNS topic to receive assessment template events.
  2. Configure the Amazon Inspector to send findings to the SNS topic.
  3. Create an appropriate role to execute a Lambda function and read Inspector data.
  4. Set up a Lambda function to fetch data and send to the Sumo Logic HTTP Source endpoint.

Details are provided in the following sections. 

Create an Amazon SNS Topic

  1. Log into the Amazon Console.
  2. Go to Mobile Services > SNS.
  3. On the SNS Dashboard, select Create topic.
  4. Enter a Topic name and a Display name, and click Create topic.
  5. To assign the following policy to this topic, select the topic, then under Advanced view, click Actions/Edit topic policy.
  6. Replace the existing text with the following:

{
 "Version": "2008-10-17",
 "Id": "inspector-sns-publish-policy",
 "Statement": [
   {
     "Sid": "inspector-sns-publish-statement",
     "Effect": "Allow",
     "Principal": {
       "Service": "inspector.amazonaws.com"
     },
     "Action": "SNS:Publish",
     "Resource": "arn:aws:sns:*"
   }
 ]
}
  1. Click Update policy.

Configure Amazon Inspector

  1. In the Amazon Console, go to Security & Identity > Inspector.
  2. Select each assessment template you want to monitor.
  3. Expand each row and find the section called SNS topics.
  4. Click the Edit icon and select the SNS topic you created in the previous section.
  5. Click Save.

Create a Role

  1. In the Amazon Console, go to Security & Identity > Identity & Access Management.
  2. Create a new role called Lambda-Inspector.

Create a Lambda Function

  1. In the Amazon Console, go to Compute > Lambda.
  2. Create a new function.
  3. On the Select blueprint page, select a Blank function.
  4. Select the SNS topic you created in Create an Amazon SNS Topic as trigger.
  5. Click Next.
  6. On the Configure function page, enter a name for the function.
  7. Go to https://github.com/SumoLogic/sumologic-aws-lambda/blob/master/inspector/python/inspector.py and copy and paste the sumologic-aws-lambda code into the field. 
  8. Edit the code to enter the URL of the Sumo Logic endpoint that will receive data from the HTTP Source.
  9. Scroll down and configure the rest of the settings as follows:
    1. Memory (MB). 128.
    2. Timeout. 5 min.
    3. VPC. No VCP.
  10. Click Next.
  11. On the Review page, you should see something like this:
  12. Click Create function.