chore(iam): add IAM privilege escalation cases (#2921)

This commit is contained in:
Sergio Garcia
2023-10-10 12:41:02 +02:00
committed by GitHub
parent 236dea9d26
commit 08b2ea01ab
2 changed files with 110 additions and 0 deletions

View File

@@ -20,6 +20,8 @@ from prowler.providers.aws.services.iam.iam_client import iam_client
class iam_policy_allows_privilege_escalation(Check):
def execute(self) -> Check_Report_AWS:
privilege_escalation_policies_combination = {
"OverPermissiveIAM": {"iam:*"},
"IAMPut": {"iam:Put*"},
"CreatePolicyVersion": {"iam:CreatePolicyVersion"},
"SetDefaultPolicyVersion": {"iam:SetDefaultPolicyVersion"},
"iam:PassRole": {"iam:PassRole"},