turbot/aws_compliance

Control: 1.12 Ensure credentials unused for 45 days or more are disabled

Description

AWS IAM users can access AWS resources using different types of credentials, such as passwords or access keys. It is recommended that all credentials that have been unused in 45 or greater days be deactivated or removed.

Disabling or removing unnecessary credentials will reduce the window of opportunity for credentials associated with a compromised or abandoned account to be used.

Remediation

From Console:

Perform the following to manage Unused Password (IAM user console access)

  1. Login to the AWS Management Console:
  2. Click Services.
  3. Click IAM.
  4. Click on Users.
  5. Click on Security Credentials.
  6. Select user whose Console last sign-in is greater than 45 days.
  7. Click Security credentials.
  8. In section Sign-incredentials, Console password click Manage.
  9. Under Console Access select Disable.
  10. Click Apply

Perform the following to deactivate Access Keys:

  1. Login to the AWS Management Console:
  2. Click Services.
  3. Click IAM.
  4. Click on Users.
  5. Click on Security Credentials.
  6. Select any access keys that are over 45 days old and that have been used and
  • Click on Make inactive.
  1. Select any access keys that are over 45 days old and that have not been used and
  • Click the X to Delete.

Usage

Run the control in your terminal:

powerpipe control run aws_compliance.control.cis_v400_1_12

Snapshot and share results via Turbot Pipes:

powerpipe login
powerpipe control run aws_compliance.control.cis_v400_1_12 --share

SQL

This control uses a named query:

iam_user_unused_credentials_45

Tags