> For the complete documentation index, see [llms.txt](https://cortex-docs.paloaltonetworks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cortex-docs.paloaltonetworks.com/posture-rules/cloud-saas-active-directory-posture-rules/cortex-posture-query-based-rules/detection-rules-by-name/aws-iam-ssh-keys-for-aws-codecommit-have-aged-more-than-90-days-without-being-rotated.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# AWS IAM SSH keys for AWS CodeCommit have aged more than 90 days without being rotated

### Synopsis

| Field               | Value                                                                                 |
| ------------------- | ------------------------------------------------------------------------------------- |
| Rule Type           | Detection                                                                             |
| Finding Type        | AWS IAM SSH keys for AWS CodeCommit have aged more than 90 days without being rotated |
| Finding ID          | 60000182                                                                              |
| Generates a Finding | This detection rule also generates a finding                                          |
| Severity            | Low                                                                                   |
| Category            | CONFIGURATION                                                                         |
| Cloud Providers     | AWS                                                                                   |
| Platform Module     | CSPM                                                                                  |
| Asset Types         | AWS\_IAM\_SSH\_PUBLIC\_KEYS                                                           |
| ATT\&CK Tactic      | TA0001 (TA0001)                                                                       |
| ATT\&CK Technique   | T1133 (T1133)                                                                         |

### Description

AWS Identity and Access Management (IAM) SSH keys associated with AWS CodeCommit repositories that have not been rotated within the past 90 days represent a significant security risk. These keys provide access to sensitive code and repository data.

AWS CodeCommit utilizes IAM for authentication, and SSH keys are a common access method. Unrotated keys allow attackers who compromise an older key to maintain unauthorized access to the repositories, potentially leading to data breaches, intellectual property theft, or malicious code injection. Failing to rotate these keys increases the window of opportunity for exploitation.

The impact of this misconfiguration could be substantial, resulting in data loss, reputational damage, regulatory fines, and business disruption. Regular key rotation is a crucial security best practice, as it minimizes the impact of any compromised key. By limiting the effective lifespan of any single key, the potential damage from a breach is greatly reduced.

To mitigate this risk, implement automated key rotation for all IAM SSH keys associated with AWS CodeCommit. Establish a policy mandating rotation at least every 90 days, or more frequently depending on the sensitivity of the code. Utilize AWS's IAM features and tools to manage key rotation, ensuring proper logging and monitoring of these activities. Regularly review and audit access keys to identify and rotate any that are not actively in use.

### Remediation

**Manual steps:**

AWS IAM SSH Public Keys - Manual remediation steps:

1. Login to AWS Console
2. Goto IAM and select Users
3. Choose the reported user
4. Goto Security Credential
5. Delete the SSH Key ID and upload a new SSH Key

Key creation steps: <https://docs.aws.amazon.com/codecommit/latest/userguide/setting-up-ssh-unixes.html>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://cortex-docs.paloaltonetworks.com/posture-rules/cloud-saas-active-directory-posture-rules/cortex-posture-query-based-rules/detection-rules-by-name/aws-iam-ssh-keys-for-aws-codecommit-have-aged-more-than-90-days-without-being-rotated.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
