---
updatedAt: 2025-09-16T00:13:41.000Z
agentTools:
  projectIndex: https://docs.cgn.portal.checkpoint.com/llms.txt
---

# Ensure inactive user for 30 days or greater are disabled

It is recommended that all AWS IAM users that have been inactive for 30 or greater days be Disabled or removed. Disabling or removing unnecessary IAM users will reduce the window of opportunity of malicious actor to gain access to resources

**Risk Level:** <span style={{ color: "#ffd546" }}>Low</span>\
**Cloud Entity:** <span><i><a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_users.html" target="_blank">IAM User</a></i></span>\
**CloudGuard Rule ID:** <span><i>D9.AWS.IAM.80</i></span>\
**Category:** <span><i>Security, Identity, & Compliance</i></span>

### **GSL LOGIC**

```
IamUser where firstAccessKey.isActive=true or secondAccessKey.isActive=true or passwordEnabled=true should have firstAccessKey.lastUsedDate after('-30', 'days') or secondAccessKey.lastUsedDate after('-30', 'days') or passwordLastUsed after('-30', 'days')
```

## REMEDIATION

**From Portal**\
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 30 days old and that have been used and click on Make Inactive.
7. Select any access keys that are over 30 days old and that have not been used and click the X to Delete.

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. In section Sign-in credentials, Console password click Manage.
7. Under Console Access select Disable.
8. Click Apply.

**References**

1. <https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html#remove-credentials>
2. <https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_finding-unused.html>
3. <https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_passwords_admin-change-user.html>
4. <https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_access-keys.html>
5. <https://workbench.cisecurity.org/sections/615823/recommendations/1009530>

## IAM User

An IAM user is an entity that you create in AWS to represent the person or service that uses it to interact with AWS. A user in AWS consists of a name and credentials.

## Compliance Frameworks

* AWS CloudGuard Best Practices
* AWS CloudGuard SOC2 based on AICPA TSC 2017
* AWS HITRUST v11.0.0
* AWS MITRE ATT\&CK Framework v11.3
* AWS NIST 800-53 Rev 5
* AWS PCI-DSS 4.0