Skip to content

Commit

Permalink
Add additional action permissions for Glue and Shield Advanced checks @…
Browse files Browse the repository at this point in the history
…lazize

* Add extra shield action permission

Allows the shield:GetSubscriptionState action

* Add permission actions

Make sure all files where permission actions are necessary will have the same actions
  • Loading branch information
lazize authored Jan 20, 2022
1 parent d7b3606 commit ed558c8
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 7 deletions.
4 changes: 4 additions & 0 deletions iam/create_role_to_assume_cfn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,9 @@ Resources:
- 'tag:GetTagKeys'
- 'lambda:GetFunction'
- 'glue:GetConnections'
- 'glue:GetSecurityConfiguration'
- 'glue:SearchTables'
- 's3:GetAccountPublicAccessBlock'
- 'shield:GetSubscriptionState'
- 'shield:DescribeProtection'
Resource: '*'
3 changes: 2 additions & 1 deletion iam/prowler-additions-policy.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@
"ecr:Describe*",
"support:Describe*",
"tag:GetTagKeys",
"lambda:GetFunction",
"lambda:GetFunction",
"glue:GetConnections",
"glue:GetSecurityConfiguration",
"glue:SearchTables",
"s3:GetAccountPublicAccessBlock",
"shield:GetSubscriptionState",
Expand Down
7 changes: 4 additions & 3 deletions util/codebuild/codebuild-prowler-audit-account-cfn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -184,15 +184,16 @@ Resources:
Version: '2012-10-17'
Statement:
- Action:
- s3:GetAccountPublicAccessBlock
- glue:GetConnections
- glue:SearchTables
- ds:ListAuthorizedApplications
- ec2:GetEbsEncryptionByDefault
- ecr:Describe*
- support:Describe*
- tag:GetTagKeys
- lambda:GetFunction
- glue:GetConnections
- glue:GetSecurityConfiguration
- glue:SearchTables
- s3:GetAccountPublicAccessBlock
- shield:GetSubscriptionState
- shield:DescribeProtection
Effect: Allow
Expand Down
7 changes: 4 additions & 3 deletions util/terraform-kickstarter/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -311,15 +311,16 @@ resource "aws_iam_policy" "prowler_kickstarter_iam_policy" {
},
{
Action = [
"s3:GetAccountPublicAccessBlock",
"glue:GetConnections",
"glue:SearchTables",
"ds:ListAuthorizedApplications",
"ec2:GetEbsEncryptionByDefault",
"ecr:Describe*",
"support:Describe*",
"tag:GetTagKeys",
"lambda:GetFunction",
"glue:GetConnections",
"glue:GetSecurityConfiguration",
"glue:SearchTables",
"s3:GetAccountPublicAccessBlock",
"shield:GetSubscriptionState",
"shield:DescribeProtection"
]
Expand Down

0 comments on commit ed558c8

Please sign in to comment.