Skip to main content
Version: 3.5.1

How to Find AWS IAM Policies with Full Administrative Privileges

IAM policies are the means by which privileges are granted to users, groups, or roles. It is recommended and considered a standard security advice to grant only the permissions required.

Determine what users need to do and then craft policies for them that let the users perform only those tasks instead of allowing full administrative privileges. Providing full administrative privileges instead of restricting to the minimum set of permissions that the user is required to do exposes the resources to potentially unwanted actions.

info

This security check is part of the CIS Amazon Web Services Benchmarks and is rated severity medium.

Prerequisites‚Äč

This guide assumes that you have already installed and configured Resoto to collect your AWS resources.

Directions‚Äč

  1. Execute the following search command in Resoto Shell or Resoto UI:

    > search is(aws_iam_policy) and policy_document.document.Statement[*].{Effect=Allow and (Action="*" and Resource="*")} and policy_attachment_count>0
    ‚Äčkind=aws_iam_policy, ..., region=resoto-poweruser
    ‚Äčkind=aws_iam_policy, ..., account=poweruser-team
  2. Pipe the search command into the dump command:

    > search is(aws_iam_policy) and policy_document.document.Statement[*].{Effect=Allow and (Action="*" and Resource="*")} and policy_attachment_count>0 | dump
    ‚Äčreported:
    ‚Äč id: /aws/iam/123
    ‚Äč name: some-name
    ‚Äč ctime: '2022-12-05T22:53:14Z'
    ‚Äč kind: aws_iam_policy
    ‚Äč age: 2mo28d

    The command output will list the details of all non-compliant aws_iam_policy resources.

Remediation‚Äč

  • Start with a minimum set of permissions and grant additional permissions as necessary, rather than starting with permissions that are too lenient and then trying to tighten them later.
  • List policies to analyze if permissions are the least possible to conduct business activities.
note

Please refer to the AWS IAM documentation for details.

Further Reading‚Äč

Contact Us

 

 

 

Some Engineering Inc.