Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overly permissive policy for dataset environment roles #1524

Open
mourya-33 opened this issue Sep 10, 2024 · 0 comments
Open

Overly permissive policy for dataset environment roles #1524

mourya-33 opened this issue Sep 10, 2024 · 0 comments

Comments

@mourya-33
Copy link
Contributor

Describe the bug

The dataset environment admin policy contains overly permissive permissions that needs to be restricted only to the required resources. The following are flagged by CHECKOV

Check: CKV_AWS_109: "Ensure IAM policies does not allow permissions management without constraints"
Permissions to address:
"iam:CreatePolicy",
"iam:CreateServiceLinkedRole"
FAILED for resource: AWS::IAM::ManagedPolicy.dataalltestproducerenvadmin2m7oljdeservicespolicy1DD4CBB4
Guide: https://docs.prismacloud.io/en/enterprise-edition/policy-reference/aws-policies/aws-iam-policies/ensure-iam-policies-do-not-allow-permissions-management-resource-exposure-without-constraint

Check: CKV_AWS_111: "Ensure IAM policies does not allow write access without constraints"
Permissions to address:
"cloudformation:Cancel*",
"cloudformation:Continue*",
"cloudformation:CreateChangeSet",
"cloudformation:ExecuteChangeSet",
FAILED for resource: AWS::IAM::ManagedPolicy.dataalltestproducerenvadmin2m7oljdeservicespolicy11D6FB542
Guide: https://docs.prismacloud.io/en/enterprise-edition/policy-reference/aws-policies/aws-iam-policies/ensure-iam-policies-do-not-allow-write-access-without-constraint

Check: CKV_AWS_109: "Ensure IAM policies does not allow permissions management without constraints"
Permissions to address:
"glue:List*"
FAILED for resource: AWS::IAM::ManagedPolicy.dataalltestproducerenvadmin2m7oljdeservicespolicy34FD1AA7D
Guide: https://docs.prismacloud.io/en/enterprise-edition/policy-reference/aws-policies/aws-iam-policies/ensure-iam-policies-do-not-allow-permissions-management-resource-exposure-without-constraint

How to Reproduce

Create a dataset environment and run checkov against the environment stack cloudformation template to get the list of resources flagged for overly permissive permissions.

Expected behavior

The dataset environment role/policy should follow the least privileges principle that restricts permissions only to the required resources.

Your project

No response

Screenshots

No response

OS

Mac

Python version

3.10

AWS data.all version

2.6

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant