In this article you will find:
- How to create relevant policies in AWS
- How to configure AWS connector
Vulcan supports the following services of AWS:
- AWS EC2
- AWS Inspector
- AWS ECR
- AWS ECS
Each of these services required of permission set. To apply those services to Vulcan, first, create a policy and attach it to a user.
Note: For AWS Inspector additional permissions needed: inspector:ListAssessmentTemplates, inspector:PreviewAgents
Note: if you are using multiple AWS instances, please follow the manual of how to define AWS Cross Account user guide.
1. How to create relevant policies in AWS
- Open the Amazon IAM and go to Policies
- Click on Create Policy
- Select the service you wish to create a policy to
- Create a policy and specify actions for each one of the following:
- EC2 - DescribeInstances, DescribeSecurityGroups
- Inspector - ListFindings, ListAssessmentRuns, DescribeFindings, DescribeAssessmentRuns
- Elastic Container Registry - DescribeRepositories, ListImages, DescribeImages, ListTagsForResource.
- Elastic Container Service - ListClusters, DescribeClusters, ListContainerInstances, DescribeContainerInstances
How to create a user in AWS
Create a user in AWS IAM and attach the relevant policy.
- Open the Amazon IAM and go to Users
- Click on Add user
- Set user name - It is recommended to give indicative name (For example 'Vulcan_user')
- Set access type Programmatic access
- Under Set permission, click on Attach existing policies directly
- Set the policies you've created in advance. Click Next
- Set any tags you might want to use. Click Next
- Review and click Create user
- The Access Key ID and Secret access key are required fields when defining the connector in Vulcan. It is extremely important to keep those credentials.
10. You're all set from AWS - Now all we need is to define connector in Vulcan.
2. Defining AWS Connector
In the Connectors page, click on Add a Connector.
Click on AWS connector.
Fill in the following credentials:
Account ID - AWS account number.
API Key - The Access key ID generated when user Vulcan with relevant policies was created
Secret Key - The Secret access key generated when user Vulcan with relevant policies was created
Regions - Select regions you want to pull data from
AWS services checkboxes - Check the relevant AWS services you want to pull data from. Note that it is required that the API Key and Secret Key you've entered are expected to be with the permissions to that product (as aforementioned in the first section)
Click Create, and that's it! AWS connector is all set up.
Inspector Findings Logic
In order to display the inspector findings in Vulcan, the connector would iterate over all of the ARN scan templates. From each template it will pull the latest run result, and grab the findings from there. every finding that appeared in the past, but does not come up in the recent scan, will be automatically moved to the "Fixed" status in Vulcan.