logo

Database

Aws Negative Statement

Description

Identifies AWS IAM policies that contain explicit deny statements in their policy documents. While deny statements can be used for exceptions, they increase policy complexity and can lead to difficult-to-maintain access controls that may result in unintended access patterns or security gaps.

Weakness:

031 - Excessive privileges - AWS

Category: Access Subversion

Detection Strategy

    Retrieves all IAM policies in the AWS account

    For each policy, fetches its current policy version document

    Analyzes each statement in the policy document

    Reports a vulnerability if a policy statement contains an explicit 'Deny' effect