Onboard an Amazon Web Services (AWS) cloud account
A couple methods for onboarding your AWS Accounts are available depending on whether you're a non-admin or admin user.
Resuming cloud onboarding to InsightCloudSec
If you close the interface before completing Account onboarding, you can resume onboarding from the page you were on last.
Non-Admin User Instructions
Ask an admin for required information
As a non-admin user, you need to copy and send a message to the admin asking them to complete specific tasks and provide you with the information needed to complete onboarding.
First-time Users
- Login to InsightCloudSec using one of the methods below:
- In the Insight Platform, click InsightCloudSec to launch the onboarding wizard.
- Open a browser window to your unique InsightCloudSec URL and login. The onboarding wizard will appear automatically.
- On the Welcome screen, review key features and capabilities, then click Onboard a Cloud Account.
- On the Cloud Service Providers screen, select Amazon Web Services.
- Select No - Help me identify the details needed, then click Next.
- Click the Copy button in the Amazon Web Services Admin Instructions text box and share them with the admin.
Returning Users
- Login to InsightCloudSec using one of the methods below:
- In the Insight Platform, click the InsightCloudSec tile.
- Open a browser window to your unique InsightCloudSec URL and login.
- Navigate to Cloud > Cloud Accounts in the left-hand navigation menu.
- Click the + Add Cloud button in the top right corner.
- Click the Amazon Web Services button.
- Click Don't have admin access? in the bottom right corner of the window.
- Click the Copy button in the Amazon Web Services Admin Instructions text box and share them with the admin.
Connect the Account
When your admin has completed their steps and provided the information to you, you can now connect the Account.
First-time Users
- Return to InsightCloudSec using one of the methods below:
- In the Insight Platform, click InsightCloudSec to launch the onboarding wizard.
- Open a browser window to your unique InsightCloudSec URL and login. The onboarding wizard will appear automatically.
- The wizard should automatically return you to the Amazon Web Services Admin Instructions page.
- Enter the following information (provided by your admin):
- Select the AWS partition (Commercial, Government, China) in which the Account is located.
- Copy/paste the Role ARN.
- Copy/paste the Nickname for the Account. This is a unique value that will be used to search Accounts across the system based on an identifiable label.
- Select the authentication type.
- If you chose Instance Profile, proceed to the next step.
- If you chose IAM User via API Keys, copy/paste the Access Key and Secret Key.
- Optionally, adjust the Advanced Options:
- If your admin chose not to use the default Session Name, copy/paste the new value.
- If your admin chose not to use the default Duration, copy/paste the new value.
- Click Connect Account.
Returning Users
- Login to InsightCloudSec using one of the methods below:
- In the Insight Platform, click the InsightCloudSec tile.
- Open a browser window to your unique InsightCloudSec URL and login.
- Navigate to Cloud > Cloud Accounts in the left-hand navigation menu.
- Click the + Add Cloud button in the top right-hand corner.
- Click the Amazon Web Services button.
- Click Don't have admin access? in the bottom right-hand corner of the window.
- Enter the following information (provided by your admin):
- Select the AWS partition (Commercial, Government, China) in which the Account is located.
- Copy/paste the Role ARN.
- Copy/paste the Nickname for the Account. This is a unique value that will be used to search Accounts across the system based on an identifiable label.
- Select the authentication type.
- If you chose Instance Profile, proceed to the next step.
- If you chose IAM User via API Keys, copy/paste the Access Key and Secret Key.
- Optionally, adjust the Advanced Options:
- If your admin chose not to use the default Session Name, copy/paste the new value.
- If your admin chose not to use the default Duration, copy/paste the new value.
- Click Connect Account.
Admin User Instructions
As an admin, you must prepare your Account(s) for the connection with InsightCloudSec by deploying a custom role within AWS using a CloudFormation Template (CFT). For more information on the custom roles that InsightCloudSec provides, review AWS Overview & Support.
Providing details to a non-admin user?
If you are providing details to a non-admin user to onboard the Account, ensure that the credentials you share with the non-admin user will include the appropriate access and enable them to connect your AWS Account with InsightCloudSec successfully. We recommend using a secure file sharing system to provide credentials to your non-admin user.
AWS Admin Onboarding Prerequisites
- Domain Admin permissions within InsightCloudSec
- You'll need these permissions to set-up additional InsightCloudSec features. See Additional AWS-related InsightCloudSec Features for more information
- Appropriate permissions in AWS to create roles and deploy CFTs
- See CloudFormation Templates for more information on the CFTs that InsightCloudSec uses for onboarding
CloudFormation Templates
All InsightCloudSec configuration parameters, users, roles, and policies are managed using CloudFormation Templates (CFTs). We use up to two CFTs in the onboarding process (depending on your selected AWS partition):
- Rapid7 AWS IAM Roles CFT (All Partitions) -- We provide a standard CFT that is hosted and maintained with the latest permissions necessary for a full-featured experience. The CFT can be deployed to an Account as a single Stack.
- Rapid7 AWS Authenticating Principal CFT (GovCloud/China Partitions Only) -- Authenticating across AWS Partitions (i.e., your InsightCloudSec instance in AWS commercial and your account in GovCloud/China) require that you create an IAM User once for the entire Partition. For your convenience, we provide a standard CloudFormation Template to deploy the IAM User and optionally create an AccessKey stored in Secrets Manager.
All the latest CFTs can be downloaded from the onboarding wizard. Proceed with the instructions below to find out how.
Additional AWS-related InsightCloudSec Features
InsightCloudSec offers some features that require additional permissions/roles within AWS. It is easiest to perform this configuration while onboarding an account/organization, so our provided CFT can automatically do so (optionally) during general account onboarding. Review the links below to determine which features you'd like to use and we'll provide a reminder to select the relevant options later.
Prepare AWS for Onboarding
To onboard a single Account for AWS you need to complete the following set of instructions:
Multiple Browser Tabs/Windows Recommended
InsightCloudSec onboarding can proceed much more quickly and easily if you have both your InsightCloudSec instance and the relevant AWS console (Commercial, Government, China) open side-by-side in your preferred browser's windows/tabs. At this point, we highly recommend ensuring you're logged into AWS.
Manual Onboarding using the AWS console
Step 1: Setup an Authenticating Principal
InsightCloudSec utilizes an authenticating principal to securely harvest information from an Account. Because InsightCloudSec is often deployed in AWS Commercial, AWS GovCloud/China users will need to create an IAM user using an auto-generated CFT to facilitate this harvesting across partitions. AWS Commercial users will only need to copy their InsightCloudSec account's existing authenticating principal ID for later use.
In the InsightCloudSec Cloud Onboarding interface:
- Login to your InsightCloudSec instance and open the Cloud Onboarding interface.
- First-time Users:
- On the Welcome screen, review key features and capabilities, then click Onboard a Cloud Account.
- On the Cloud Service Providers screen, select Amazon Web Services.
- Select Yes - I have sufficient permissions, then click Next.
- Returning Users:
- Navigate to Cloud > Cloud Accounts in the left navigation menu.
- Click the + Add Cloud button in the top right corner.
- Click the Amazon Web Services button.
- First-time Users:
- Select Manual Steps for the connection journey.
- For 1. Authentication:
- Select the AWS Partition the account(s) you are trying to onboard are in (Commercial, Government, China).
- Select if your InsightCloudSec instance is deployed in the same AWS Partition as the accounts to be onboarded (yes/no).
- If you are a SaaS customer, InsightCloudSec is deployed in AWS Commercial.
- If you are self-hosted customer and you are unsure where InsightCloudSec is deployed, contact your Admin for this information.
- Select how to authenticate to the account (IAM Role/IAM User).
- IAM Role is the default authentication method and should be used when possible.
- If InsightCloudSec is in a different partition than the account you're attempting to onboard, you will have to authenticate using an IAM User.
IAM Role Authentication
In the InsightCloudSec Cloud Onboarding interface:
- Click Next to skip to 2. Roles.
IAM User Authentication
If you have not already, in a separate browser tab or window, login as an Admin to the relevant console (AWS Commercial, Government, China) for the Account you want to harvest.
In the InsightCloudSec Cloud Onboarding interface:
- If you have the appropriate permissions, click Deploy CFT (we recommend opening it in a new tab/window) to be taken directly to the CFT console inside AWS with the Rapid7 AWS Authenticating Principal CFT already loaded.
Additional CFT Information Available
Expand the What's included in the CloudFormation Template? drop-down to review details on what is inside the CFT and what it does. To review the CFT before deploying it, click Download CFT.
In the AWS GovCloud/China Console:
- Only update the default CFT parameter values if absolutely necessary. Review Getting Support if you have questions/concerns or need assistance.
- Select the I acknowledge that AWS CloudFormation might create IAM resources with custom names checkbox.
- Click Create Stack.
- Copy and save the Access Key and Secret Key for the IAM user in a secure place.
In the InsightCloudSec Cloud Onboarding interface:
- Copy and paste the Access Key and Secret Key.
- Click Next to proceed to 2. Roles.
Step 2: Deploy an IAM Role
InsightCloudSec utilizes an IAM role containing only the necessary permissions to harvest supported AWS services. Assuming this role is governed by an External ID. An External ID is generated for your specific InsightCloudSec organization when you initiate the process to add an AWS Account within InsightCloudSec. The External ID will be the same for every individual cloud account.
This process obeys AWS best practices and prevents the confused deputy problem from occurring. The confused deputy problem is a security issue where an entity that doesn't have permission to perform an action can coerce a more-privileged entity to perform the action.
In the InsightCloudSec Cloud Onboarding interface:
- For 2. Roles:
- Select Individual for Account selection.
- Click Deploy CFT as single Stack. This will open a new tab to the CloudFormation section of the Console for the AWS partition you selected earlier.
In the AWS Commercial/GovCloud/China Console:
- Only update the default CFT parameter values if absolutely necessary. Review Getting Support if you have questions/concerns or need assistance.
Additional AWS-related InsightCloudSec Features
By default, the CFT will configure the roles and policies necessary for the following features: AWS Event-Driven Harvesting, Cloud Vulnerability Management, AWS Least-Privileged Access (LPA). See those pages for additional configuration requirements; otherwise, disable the feature config by updating the corresponding drop-down menu to No.
- Select the I acknowledge that AWS CloudFormation might create IAM resources with custom names checkbox.
- Click Create Stack.
- Copy and save the ARN for the IAM role in a secure place.
In the InsightCloudSec Cloud Onboarding interface:
- Click Next to skip to 3. Finalize Connection.
Manual Onboarding instructions complete!
After completing these steps, you have completed the manual onboarding instructions for AWS. Jump to the Connect the Account in InsightCloudSec instructions.
Automated Onboarding using AWS CloudShell
The AWS onboarding process can be performed using a script that you can generate for your specific environment inside InsightCloudSec.
In the InsightCloudSec Cloud Onboarding interface:
- Login to your InsightCloudSec instance and open the Cloud Onboarding interface.
- First-time Users:
- On the Welcome screen, review key features and capabilities, then click Onboard a Cloud Account.
- On the Cloud Service Providers screen, select Amazon Web Services.
- Select Yes - I have sufficient permissions, then click Next.
- Returning Users:
- Navigate to Cloud > Cloud Accounts in the left navigation menu.
- Click the + Add Cloud button in the top right corner.
- Click the Amazon Web Services button.
- First-time Users:
- Select the AWS Partition the account(s) you are trying to onboard are in (Commercial, Government, China).
- Select if your InsightCloudSec instance is deployed in the same AWS Partition as the accounts to be onboarded (yes/no).
- If you are a SaaS customer, InsightCloudSec is deployed in AWS Commercial.
- If you are self-hosted customer and you are unsure where InsightCloudSec is deployed, contact your Admin for this information.
- Select how to authenticate to the account (IAM Role/IAM User).
- IAM Role is the default authentication method and should be used when possible.
- If InsightCloudSec is in a different partition than the account you're attempting to onboard, you will have to authenticate using an IAM User.
- Select Individual to denote you are only onboarding a single account.
- Update the Advanced Options as necessary:
- Allow Eventbridge to Assume Egress Role -- Appends an IAM statement to the Rapid7 IAM Role's
AssumeRolePolicyDocument
allowing the EventBridge service to assume the Rapid7 role to publish events to target event buses. This avoids needing a dedicated IAM Role for Event Driven Harvesting (EDH) in each producer Account. Review the Event-Driven Harvesting Overview for more information. - Enable Automation Full Access Policy -- Enables the full access policy, which includes full wildcard permissions for relevant AWS services. This is useful for testing, and as such, is off by default.
- Enable Container Vulnerability Assessment -- Enables the Container Vulnerability Assessment feature. Review Container Vulnerability Assessment for more information.
- Enable Eventbridge Auto Provisioning -- Grants the Rapid7 IAM Role permission to create/manage EventBridge Rules/Targets and create/manage an SQS queue for consuming the Events. This is for Event-Driven Harvesting.
- Enable Host Vulnerability Assessment -- Enables the Host Vulnerability Assessment feature. Review Host Vulnerability Assessment for more information.
- Enable LPA Auto Provisioning -- Grants the Rapid7 IAM Role permission to access CloudTrail to create the necessary AWS Glue tables and to create/execute Athena queries with a s3 bucket for results. Review the AWS Least-Privileged Access (LPA) Overview for more information.
- LPA Working Bucket -- If LPA is enabled, this is the name of the S3 bucket used for storing the results of the Athena query.
- IAM Automation Policy Name -- If there is an existing automation policy in your account and you wish to grant Rapid7 access to it (for Bot Factory, Resource Management, etc.), this is the name of the policy. An IAM Policy with the provided name MUST exist within each Account the Stack is deployed to; otherwise, the deployment will fail.
- Allow Eventbridge to Assume Egress Role -- Appends an IAM statement to the Rapid7 IAM Role's
- Click Generate & Download Script.
- In a separate browser tab or window, login as an Admin to the AWS Console for the primary account you want to onboard.
In the AWS Commercial/GovCloud/China Console:
- Click CloudShell in the top right corner of the AWS Console.
- Once the environment is finished loading, click the Actions drop-down menu, then click Upload File.
- Select the onboarding script from its downloaded location. The file will be uploaded to
/home/cloudshell-user
by default. - Run the script (
python3 onboard.py
) and follow the prompts to create everything needed to onboard the Account. The script will not run with Python 2.- Provide a CFT stack name (or press Enter to use the default).
- The configuration is complete. The necessary values are displayed.
- Copy the configuration information to a secure location.
IAM Role Authentication
In the InsightCloudSec Cloud Onboarding interface:
- Proceed to the next section of the documentation.
IAM User Authentication
In the InsightCloudSec Cloud Onboarding interface:
- Copy and paste the Access Key and Secret Key.
Automated Onboarding instructions complete!
After completing these steps, you have completed the automated onboarding instructions for AWS. Jump to the Connect the Account in InsightCloudSec instructions.
Connect the Account in InsightCloudSec
The AWS onboarding process is nearly complete; all that remains is to setup an account nickname and provide authentication information (and advanced options).
In the InsightCloudSec Cloud Onboarding interface:
- Provide the Role ARN for the new IAM role inside the Account.
- Provide the Nickname for the Account. This is a unique value that will be used to search Accounts across the system based on an identifiable label.
- Optionally, update the Advanced Options:
- Role Session Name
- Duration
- Click Connect Account.
Post-onboarding information for Organization accounts
If you followed the instructions above and onboarded an AWS Organization, you should have at least your Organization account with full visibility in InsightCloudSec. Review the following sections for more information on augmenting your Organization onboarding experience or managing the Organization within InsightCloudSec.
Enable account discovery
Once an Organization is onboarded to InsightCloudSec, we automatically detect the Organization and prompt you to enable Account Discovery. If you clicked the "Enable Auto Discovery" button within the onboarding wizard, you'll be taken to the Edit Organization Config window for the new Organization.
- From the Edit Organization Config window, select Auto-Sync Accounts.
- Click UPDATE.
Once enabled, accounts are discovered via the API dynamically and configured with defaults you provide.
Modify an organization
After onboarding an AWS Organization, you can edit configuration information at any time.
- From InsightCloudSec, go to Cloud > Cloud Accounts > Organizations.
- Next to the desired Organization, click the options button (hamburger icon), then click Edit Organization.
- Adjust the nickname or credentials values as necessary.
- Adjust the scope/badging options as necessary:
- Member Accounts to Skip: Enter details for member accounts (ID’s or Names) to be skipped (e.g., you have a group of development accounts you are not interested in tracking)
- Auto-Sync Accounts: Select this box to add all accounts associated with the organization. If not checked, each account must be added manually.
- Auto-remove suspended accounts: Select this box to automatically remove suspended AWS accounts from InsightCloudSec. As soon as this checkbox is enabled, a background process will begin running and remove the accounts automatically as they are found
- Auto-Badge Accounts: Select this box to allow InsightCloudSec to automatically badge your incoming accounts based on AWS account tags
- Limit import scope: Select this box and provide Organizational Unit (OU) ID(s) to only include nested accounts and OUs associated with a given ID (or set of IDs)
- Click UPDATE.
Associate badges with accounts
Accounts added via an AWS Organization will have a few Badges automatically associated to them:
cloud_org_path
: shows the location of the account in the Organization tree- All tags associated with accounts are added as badges
Despite not being listed explicitly, the system.cloud_organization:<cloud_org_id>
badge is associated with all accounts in an Organization.
Changes to Credential Management
Because all accounts within the AWS Organization use the same credential configuration, they are considered as "managed" by the organization. This is reflected on the cloud settings page where the option to edit credentials and delete the account are not available.
Auto-badging
As an enhancement to support for provider-based organizations InsightCloudSec includes auto badging capabilities. The purpose of auto-badging is to create a 1:1 map of AWS account-level tags to Badges in InsightCloudSec. This allows Clouds to be scoped to a badge that maps to the account tag.
Note: Once the tags and labels are harvested into InsightCloudSec as badges - you cannot delete them in InsightCloudSec - they must be deleted in AWS and the changes will propagate to InsightCloudSec.
Auto-badging takes place in two stages.
Stage | Description |
---|---|
Retrieves tags and labels from each account and project and compares them with ResourceTags associate with the cloud account in the InsightCloudSec database. | If there are any changes detected, the ResourceTags in the database are overwritten with the values from the account/project. This means that Cloud Account tags should not be locally modified since any local changes will be overwritten the next time the process runs. Additionally, any local changes that are made to Cloud Account tags are not pushed back up to the cloud provider. |
Retrieves all ResourceTags from the local database that are associated with the accounts managed by an organization. | For each cloud the list of tags for that cloud is compared with the current list of Badges and for each Key/Value pair of tags:
|