Allowing an IAM role the action iam:AttachUserPolicy with a wildcard resource (Resource = "*") grants broad privileges, enabling the role to attach any managed policy to any user in the AWS account. This constitutes a significant privilege escalation risk, as it allows users or roles with this permission to grant themselves or others additional permissions, potentially escalating to administrative access. To mitigate this risk, restrict the Resource attribute to specific ARNs and only grant necessary actions, as in the following secure example: