Skip to main content

More Info:

Your AWS account has too many admins.

Risk Level

Low

Address

Operational Maturity, Security

Compliance Standards

  • APRA CPS 234 (Australia)
  • BSI C5 (Germany)
  • Brazil LGPD
  • CCPA / CPRA (California)
  • CIS Critical Security Controls v8
  • CMMC 2.0
  • CSA Cloud Controls Matrix v4
  • Cloudanix Best Practice
  • DPDPA
  • Digital Operational Resilience Act (EU)
  • Essential 8
  • ISO/IEC 27017
  • ISO/IEC 27018
  • ISO/IEC 27701
  • KSA PDPL
  • MAS Technology Risk Management (Singapore)
  • MITRE ATT&CK (Cloud)
  • NIS2 Directive
  • NIST SP 800-171
  • NYDFS 23 NYCRR 500
  • SWIFT Customer Security Controls Framework
  • Sarbanes-Oxley IT General Controls
  • UK NCSC Cyber Assessment Framework

Triage and Remediation

How to Prevent

Using Console

To prevent having too many administrators in AWS IAM using the AWS Management Console, follow these steps:
  1. Review IAM Users and Groups:
    • Navigate to the IAM Dashboard in the AWS Management Console.
    • Click on “Users” to review the list of IAM users.
    • Click on “Groups” to review the list of IAM groups.
  2. Identify Admin Privileges:
    • For each user and group, check the attached policies.
    • Look for policies that grant administrative privileges, such as AdministratorAccess.
  3. Limit Admin Access:
    • Reduce the number of users and groups with the AdministratorAccess policy.
    • Assign more restrictive policies that grant only the necessary permissions for specific tasks.
  4. Implement Least Privilege Principle:
    • Create custom policies that provide only the permissions required for users to perform their job functions.
    • Regularly review and update these policies to ensure they align with current needs and security best practices.
By following these steps, you can effectively manage and limit the number of administrators in your AWS account, thereby enhancing security.
To prevent having too many administrators in AWS IAM using the AWS CLI, you can follow these steps:
  1. List Current IAM Users and Their Policies: First, identify all IAM users and their attached policies to understand who has administrative privileges.
  2. Identify Users with Admin Access: Check which users have policies that grant administrative access. Look for policies like AdministratorAccess.
  3. Create a Least Privilege Policy: Create a custom policy that grants only the necessary permissions instead of full administrative access.
  4. Attach the Least Privilege Policy and Detach Admin Policy: Attach the newly created least privilege policy to the necessary users and detach the AdministratorAccess policy.
By following these steps, you can ensure that only necessary permissions are granted to IAM users, thereby reducing the number of administrators in your AWS account.
To prevent having too many administrators in AWS IAM using Python scripts, you can follow these steps:
  1. List All IAM Users and Their Policies: Use the boto3 library to list all IAM users and their attached policies. This will help you identify users with administrative privileges.
  2. Identify Admin Policies: Check if the policies attached to users grant administrative privileges. Typically, the AdministratorAccess policy is used for admin privileges.
  3. Set a Limit on the Number of Admins: Define a threshold for the maximum number of admin users allowed. If the number of admin users exceeds this threshold, log a warning or take appropriate action.
  4. Automate the Monitoring Process: Schedule this script to run periodically using AWS Lambda and CloudWatch Events to ensure continuous monitoring and compliance.
By following these steps, you can effectively monitor and prevent having too many administrators in your AWS IAM setup using Python scripts.

Additional Reading: