You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: prowler/providers/aws/services/iam/iam_inline_policy_allows_privilege_escalation/iam_inline_policy_allows_privilege_escalation.py
report.status_extended=f"Inline Policy '{report.resource_id}'{' attached to '+resource_type_str+' '+report.resource_arnifpolicy.attachedelse''} does not allow privilege escalation."
24
+
report.status_extended=f"{policy.type} policy {policy.name}{' attached to '+resource_type_str+' '+resource_attachedifpolicy.attachedelse''} does not allow privilege escalation."
f"Inline Policy '{report.resource_id}'{' attached to '+resource_type_str+' '+report.resource_arnifpolicy.attachedelse''} allows privilege escalation using the following actions: {policies_affected}".rstrip()
34
+
f"{policy.type} policy {policy.name}{' attached to '+resource_type_str+' '+resource_attachedifpolicy.attachedelse''} allows privilege escalation using the following actions: {policies_affected}".rstrip()
Copy file name to clipboardexpand all lines: prowler/providers/aws/services/iam/iam_inline_policy_no_administrative_privileges/iam_inline_policy_no_administrative_privileges.py
report.status_extended=f"{policy.type} policy {policy.name} attached to {resource_type_str}{report.resource_arn} does not allow '*:*' administrative privileges."
20
+
report.status_extended=f"{policy.type} policy {policy.name} attached to {resource_type_str}{resource_attached} does not allow '*:*' administrative privileges."
27
21
ifpolicy.document:
28
22
# Check the statements, if one includes *:* stop iterating over the rest
Copy file name to clipboardexpand all lines: prowler/providers/aws/services/iam/iam_inline_policy_no_full_access_to_cloudtrail/iam_inline_policy_no_full_access_to_cloudtrail.py
report.status_extended=f"{policy.type} policy {policy.name}{' attached to '+resource_type_str+' '+resource_attachedifpolicy.attachedelse''} does not allow '{critical_service}:*' privileges."
22
26
23
27
ifpolicy.documentandcheck_full_service_access(
24
28
critical_service, policy.document
25
29
):
26
30
report.status="FAIL"
27
-
report.status_extended=f"Inline Policy{policy.name} allows '{critical_service}:*' privileges to all resources."
31
+
report.status_extended=f"{policy.type} policy{policy.name}{' attached to '+resource_type_str+' '+resource_attachedifpolicy.attachedelse''} allows '{critical_service}:*' privileges to all resources."
Copy file name to clipboardexpand all lines: prowler/providers/aws/services/iam/iam_inline_policy_no_full_access_to_kms/iam_inline_policy_no_full_access_to_kms.py
report.status_extended=f"{policy.type} policy {policy.name}{' attached to '+resource_type_str+' '+resource_attachedifpolicy.attachedelse''} does not allow '{critical_service}:*' privileges."
Copy file name to clipboardexpand all lines: tests/providers/aws/services/iam/iam_inline_policy_allows_privilege_escalation/iam_inline_policy_allows_privilege_escalation_test.py
Copy file name to clipboardexpand all lines: tests/providers/aws/services/iam/iam_inline_policy_no_administrative_privileges/iam_inline_policy_no_administrative_privileges_test.py
0 commit comments