---
title: Access keys should be rotated every 90 days or less
description: Datadog, the leading service for cloud-scale monitoring.
breadcrumbs: >-
  Docs > Datadog Security > OOTB Rules > Access keys should be rotated every 90
  days or less
---

> For the complete documentation index, see [llms.txt](https://docs.datadoghq.com/llms.txt).

# Access keys should be rotated every 90 days or less
 
## Description{% #description %}

AWS IAM users should have every active access key rotated within the last 90 days. The rule reads the IAM credential report fields `access_key_1_last_rotated` and `access_key_2_last_rotated` for each key whose status is active; inactive keys are not evaluated. Long-lived access keys increase the risk of unauthorized access if compromised, because they can remain valid indefinitely without detection. Users without a matching collected credential report currently pass; this is a collection limitation and does not establish that they have no active access keys.

## Remediation{% #remediation %}

1. In the IAM console, create a second access key for the user, and update all applications and tools to use the new key.
1. Confirm the old key is no longer used, then deactivate and delete it. See [Update access keys](https://docs.aws.amazon.com/IAM/latest/UserGuide/id-credentials-access-keys-update.html).

## References{% #references %}

- [Update access keys](https://docs.aws.amazon.com/IAM/latest/UserGuide/id-credentials-access-keys-update.html)
- [Getting credential reports for your AWS account](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_getting-report.html)
- [CIS Amazon Web Services Benchmarks](https://www.cisecurity.org/benchmark/amazon_web_services)
