Setup: AWS
Give the Cloud scan read-only access to an AWS account by creating a policy and a role, then pasting the role ARN in Stoïk Protect.
Prerequisites
An administrator account on the AWS account to scan.
If you use AWS Organizations, your Service Control Policies (SCPs) must not block the read-only permissions below. SCPs are the most common cause of setup failures, see Troubleshooting.
A technical advisor is required for ongoing supervision and vulnerability remediation.
One person does the whole setup, from start to finish: a Stoïk Protect user allowed to edit prevention tools, who is also an administrator of the AWS account.
Setup
Create a new policy

Configure the policy
Go to the AWS policy creator and log in with your administrator account.
Click the
JSONtab and paste the following policy into the editor:{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "ecr:BatchGetRepositoryScanningConfiguration", "ecr:DescribeImageScanFindings", "ecr:DescribeImages", "dynamodb:ListTagsOfResource", "ecr:ListTagsForResource", "inspector2:BatchGet*", "inspector2:Get*", "inspector2:Describe*", "inspector2:List*", "sqs:ListQueueTags", "sso:Describe*", "sso:List*" ], "Resource": "*" }, { "Effect": "Deny", "Action": [ "datapipeline:EvaluateExpression", "datapipeline:QueryObjects", "rds:DownloadDBLogFilePortion" ], "Resource": "*" } ] }Click
Next.

Save the policy
Name the policy
StoikAdditionalPermissions.Click
Create policy.


Create a new role

Configure the role trust
Go to the AWS role creator.
Click
AWS account, thenAnother AWS account, and enter the following account ID:436578779424Select
Require external IDand copy the value displayed in the Stoïk Protect console.Click
Next.

Assign permissions and finalize
Select
StoikAdditionalPermissionsandSecurityAuditas permissions.Click
Next.Enter
stoik-auditoras the role name.Click
Create role.



AWS Organizations
With AWS Organizations, create the stoik-auditor role in each member account you want scanned, not only in the management account. All the permissions requested are read-only: the AWS-managed SecurityAudit policy plus StoikAdditionalPermissions. There is no smaller set.
Troubleshooting
Last updated





