This repository has been archived by the owner on Jan 23, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 119
filter iam pass role in policy document to prevent privilege escalations #1259
Merged
giorod3
merged 14 commits into
aquasecurity:master
from
realwebdev:aws/iampass_role_policy
Apr 14, 2023
Merged
filter iam pass role in policy document to prevent privilege escalations #1259
giorod3
merged 14 commits into
aquasecurity:master
from
realwebdev:aws/iampass_role_policy
Apr 14, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
can you run |
I have added these. |
updating feature branch
updating featuring branch
giorod3
approved these changes
Apr 14, 2023
policy := role.policies[_] | ||
action := policy.document[_] | ||
contains(action, "iam:PassRole") | ||
res = result.new("Warning: 'iam:PassRole' action is present in role", role.name) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggested change
res = result.new("Warning: 'iam:PassRole' action is present in role", role.name) | |
res = result.new("iam:PassRole action is present in role", role.name) |
aisha-als
pushed a commit
to aisha-als/defsec
that referenced
this pull request
Apr 17, 2023
…ons (aquasecurity#1259) * filter iam pass role in policy document to prevent privilege escalations * fix: metadata fix * fix * add: Iam Pass role rule registered with unit test * fix * fix * test case added for iam pass role policy in rego * fix * rego fmt error removed * removed go rules * rego rule modified
aisha-als
pushed a commit
to aisha-als/defsec
that referenced
this pull request
Apr 17, 2023
…ons (aquasecurity#1259) * filter iam pass role in policy document to prevent privilege escalations * fix: metadata fix * fix * add: Iam Pass role rule registered with unit test * fix * fix * test case added for iam pass role policy in rego * fix * rego fmt error removed * removed go rules * rego rule modified
simar7
added a commit
that referenced
this pull request
May 7, 2023
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
prevent privilege escalation.