logo

Database

Aws Privilege Escalation By Attach Policy

Description

Detects IAM policies that could allow privilege escalation through the ability to attach new policies to users. This is a critical security risk since it enables users to elevate their own permissions by attaching more permissive policies to themselves.

Weakness:

005 - Privilege escalation

Category: Access Subversion

Detection Strategy

    Scans IAM policies for statements that allow 'iam:AttachUserPolicy' or 'iam:*' permissions

    Reports a vulnerability when an IAM policy contains an 'Allow' effect for these actions and includes a 'Resource' field

    Identifies each specific policy statement and action that grants these dangerous permissions