Overview
Overview
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.
Remediation guidance
Perform the following to manage Unused Password (IAM user console access):
- Login to the AWS Management Console:
- Click
Services - Click
IAM - Click on
Users - Click on
Security Credentials - Select user whose
Console last sign-inis greater than 45 days - Click
Security credentials - In section
Sign-in credentials, Console passwordclickManage - Under Console Access select
Disable - Click
Apply
Perform the following to deactivate Access Keys:
- Login to the AWS Management Console:
- Click
Services - Click
IAM - Click on
Users - Click on
Security Credentials - Select any access keys that are over 45 days old and that have been used and
- Click on
Make Inactive
- Select any access keys that are over 45 days old and that have not been used and
- Click the X to
Delete
References
- CCE-78900-8
- https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html#remove-credentials
- https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_finding-unused.html
- https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_passwords_admin-change-user.html
- https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_access-keys.html
Service-wide remediation
Recommended when many resources are affected: fix the platform baseline first so new resources inherit the secure setting, then remediate the existing flagged resources in batches.
AWS
Use AWS Organizations guardrails, AWS Config rules or conformance packs where they fit, approved account baselines, and IaC modules so new resources inherit the secure setting.
Operational rollout
- Fix the baseline first at the account, subscription, project, cluster, or tenant scope that owns this control.
- Remediate the currently affected resources in batches, starting with internet-exposed and production assets.
- Re-scan and track approved exceptions with an owner and expiry date.
Query logic
These are the stored checks tied to this control.
Credentials unused for 45 days or greater are disabled
Connectors
Covered asset types
Expected check: eq []
AWSIAM3(days: 45){...AssetFragment}
AWS