logo

Database

Aws Open Passrole

Description

Detects dangerous IAM policies that allow unrestricted PassRole permissions (iam:PassRole) on all AWS resources. This misconfiguration could enable privilege escalation by allowing users to pass any IAM role to AWS services, potentially granting unauthorized access to sensitive resources.

Weakness:

031 - Excessive privileges - AWS

Category: Access Subversion

Detection Strategy

    Examines IAM policies for statements that include iam:PassRole permissions

    Alerts when an IAM policy statement contains 'Effect: Allow' with iam:PassRole action

    Triggers when the resource scope is set to '*' (all resources) rather than being restricted to specific role ARNs

    Evaluates each policy statement individually, checking the combination of Effect, Action, and Resource fields