> 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-has-expired-ssl-tls-certificates.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# AWS IAM has expired SSL/TLS certificates

### Synopsis

| Field               | Value                                        |
| ------------------- | -------------------------------------------- |
| Rule Type           | Detection                                    |
| Finding Type        | AWS IAM has expired SSL/TLS certificates     |
| Finding ID          | 60000123                                     |
| Generates a Finding | This detection rule also generates a finding |
| Severity            | Low                                          |
| Category            | CONFIGURATION                                |
| Cloud Providers     | AWS                                          |
| Platform Module     | CSPM                                         |
| Asset Types         | AWS\_IAM\_SERVER\_CERTIFICATE                |
| ATT\&CK Tactic      | TA0112 (TA0112)                              |
| ATT\&CK Technique   | T1600 (T1600)                                |

### Description

AWS IAM has expired SSL/TLS certificates stored in AWS IAM pose a significant security risk, potentially leading to application outages and compromised communication security.

AWS IAM manages server certificates used for HTTPS connections to applications and websites. Improper certificate management, specifically the failure to remove expired certificates, allows attackers to potentially intercept sensitive data during communication or exploit vulnerabilities related to outdated cryptographic algorithms. This could lead to data breaches, service disruptions, and reputational damage.

The impact of this misconfiguration is the compromise of application security and potential unauthorized access. Maintaining up-to-date certificates is crucial for ensuring secure communication channels and preventing man-in-the-middle attacks. Expired certificates cause application unavailability and undermine user trust.

To mitigate this risk, regularly review and revoke expired SSL/TLS certificates stored in AWS IAM. Implement automated certificate renewal processes to prevent expiration. Configure monitoring and alerting to promptly identify and address certificate expiration issues before they impact application availability or security.

### Remediation

**Manual steps:**

AWS IAM Server Certificate - Manual remediation steps:

Removing invalid certificates via AWS Management Console is not currently supported. To delete SSL/TLS certificates stored in IAM via the AWS API use the Command Line Interface (CLI).

Remediation CLI:

1. Run describe-load-balancers command to make sure that the expired server certificate is not currently used by any active load balancer.

   ```
   aws elb describe-load-balancers --region <COMPUTE_REGION> --load-balancer-names <ELB_NAME> --query 'LoadBalancerDescriptions[*].ListenerDescriptions[*].Listener.SSLCertificateId'
   ```

   This command output will return the Amazon Resource Name (ARN) for the SSL certificate currently used by the selected ELB:

   ```
   [
   [
   "arn:aws:iam::1234567890:server-certificate/MyCertificate"
   ]
   ]
   ```
2. If the load balancer listener using the reported expired certificate is not removed before the certificate, the ELB may continue to use the same certificate and work improperly. To delete the ELB listener that is using the expired SSL certificate, run following command:

   ```
   aws elb delete-load-balancer-listeners --region <COMPUTE_REGION> --load-balancer-name <ELB_NAME> --load-balancer-ports 443
   ```
3. Now that is safe to remove the expired SSL/TLS certificate from AWS IAM, To delete it run:

   ```
   aws iam delete-server-certificate --server-certificate-name <CERTIFICATE_NAME>
   ```


---

# 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-has-expired-ssl-tls-certificates.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.
