AWS Overview and Support
Rapid7 Cloud Security offers extensive support for Amazon Web Services, which can be enabled using custom IAM roles that securely allow Rapid7 access to your accounts and organizations. If you have questions related to AWS services and support, contact us through the Customer Support Portal. If you’re interested in the AWS China or GovCloud support for Cloud Security, review the China Cloud Support Reference or Government Cloud Support Reference for details instead.
Onboard and manage accounts
You can onboard AWS accounts and organizations using several different methods:
- Onboard AWS Accounts and Organizations with Temporary Delegation
- Onboard AWS Accounts and Organizations with a Python script
- Onboard an AWS Account with CloudFormation templates
- Onboard an AWS Organization with CloudFormation templates
After the accounts have been added to Cloud Security, you can manage, modify, or delete the configurations as necessary. See Clouds and Set up and manage cloud accounts for more details.
AWS policies
Cloud Security offers several different AWS policies for harvesting resource information found in your AWS accounts and enabling features such as Event-driven Harvesting (EDH), Least Privileged Access (LPA), and Cloud Vulnerability Management.
Cloud Security supports AWS services in all regions they are available. For details on which services are available by region, visit AWS Regional Product Services.
Useful Terminology
Some concepts and terminology you should be aware of while reviewing the policies:
| Term | Description |
|---|---|
| Consolidated |
Roles and Policies both use the naming convention |
| Access Types | The onboarding CloudFormation template creates different roles to collect various types of information from your AWS accounts:
|
New required permissions are announced in our release notes.
Onboarding and Harvesting Policies
The Consolidated Assume Role Policy (https://s3.amazonaws.com/get.divvycloud.com/policies/v2/AWS-rapid7-consolidated-assume-role-policy-document.json) is used to establish the trust relationship to the Authenticating Principal (your Cloud Security installation role).
Note: This link contains placeholder values for Cloud Security-specific account information.
The Standard Self-Referential Policy (https://s3.amazonaws.com/get.divvycloud.com/policies/v2/AWS-rapid7-standard-self-referential-policy.json) allows for the role to refer to itself, the account, and organization it exists within.
The Read-Only policy consists of three parts (the permissions have exceeded AWS’s limitation on policy size). These policies contain only read-only permissions, for example, List, Describe, and Get, and will need to be updated any time Cloud Security supports a new AWS Service.
Feature Enablement Policies
The Egress EventBridge Auto Provisioning Policy grants the Rapid7 IAM Role permission to create/manage EventBridge Rules/Targets and create/manage an SQS queue for consuming the Events. Review AWS Event-Driven Harvesting for more information.
The Egress LPA Auto Provisioning Policy grants the Rapid7 IAM Role permission to access CloudTrail, to create the necessary AWS Glue tables and to create/execute Athena queries with an S3 bucket for results. Review AWS Least-Privileged Access (LPA) for more information.
The Egress Host Vulnerability Assessment Via Role Policy grants the Rapid7 IAM Role permissions to create and download EBS snapshots for vulnerability scanning.
The Egress Container Vulnerability Assessment Via Role Policy grants the Rapid7 IAM Role ECR read permission to all ECR repositories in the AWS Account. This allows for pulling images and scanning for vulnerabilities. Some read permissions overlap with the Rapid7 Read-Only Policies, which are used for general visibility and discovery. This Policy duplicates those permissions because the Rapid7 IAM Role may need to access additional metadata before or after pulling an image to capture the most recent context when producing a finding. Review Vulnerability Management Overview for more information.
Example Deployment Policies
These IAM Policies can be used as a reference example for a dedicated IAM Role to be used via automation or CI/CD pipeline. These policies allow for programmatically deploying the onboarding CloudFormation template, but you’ll need to periodically update the CloudFormation template for new permissions. The statements scope the permissions to only IAM Roles and Policies related to Rapid7 using our naming conventions but could be expanded upon with more fine-grained conditions.
- Example Deployment Automation Role Assume Role Policy: https://s3.amazonaws.com/get.divvycloud.com/policies/v2/AWS-rapid7-role-deployment-automation-role-assume-role-policy-document.json
- Example IAM Roles and Policies Deployment Policy: https://s3.amazonaws.com/get.divvycloud.com/policies/v2/AWS-rapid7-minimum-iam-role-and-policy-deployment-permissions.json
- Example CloudFormation templates Update and Deployment Policy: https://s3.amazonaws.com/get.divvycloud.com/policies/v2/AWS-rapid7-minimum-iam-cft-deployment-permissions.json
Frequently Asked Questions (FAQ)
AWS is one of the leading public cloud service providers, and Cloud Security provides broad support for it.
To see your accounts in Cloud Security, Rapid7 relies on harvesting, which is the process of collecting data from a selected cloud service provider (CSP) and making it visible within Cloud Security. To understand the basics, check out our Harvesting documentation, where we also provide details on specific harvesting strategies.
After at least one AWS account is harvested by Cloud Security, you’re free to configure additional AWS services as necessary to enhance, optimize, or further secure your experience. You can also begin to view data insights like Layered Context, Attack Paths, Misconfigurations, and more.
To optimize harvesting, Cloud Security offers Event-Driven Harvesting, which requires additional configuration but only pulls in new data when certain AWS CloudWatch Events occur. Review our AWS Event-Driven Harvesting documentation for more information.