{
  "Provider": "aws",
  "CheckID": "iam_no_expired_server_certificates_stored",
  "CheckTitle": "Ensure that all the expired SSL/TLS certificates stored in AWS IAM are removed.",
  "CheckType": [
    "Software and Configuration Checks",
    "Industry and Regulatory Standards",
    "CIS AWS Foundations Benchmark"
  ],
  "ServiceName": "iam",
  "SubServiceName": "",
  "ResourceIdTemplate": "arn:partition:service:region:account-id:resource-id",
  "Severity": "critical",
  "ResourceType": "AwsIamUser",
  "Description": "Ensure that all the expired SSL/TLS certificates stored in AWS IAM are removed.",
  "Risk": "Removing expired SSL/TLS certificates eliminates the risk that an invalid certificate will be deployed accidentally to a resource such as AWS Elastic Load Balancer (ELB), which can damage the credibility of the application/website behind the ELB.",
  "RelatedUrl": "",
  "Remediation": {
    "Code": {
      "CLI": "aws iam delete-server-certificate --server-certificate-name <CERTIFICATE_NAME",
      "NativeIaC": "",
      "Other": "Removing expired certificates via AWS Management Console is not currently supported.",
      "Terraform": ""
    },
    "Recommendation": {
      "Text": "Deleting the certificate could have implications for your application if you are using an expired server certificate with Elastic Load Balancing, CloudFront, etc. One has to make configurations at respective services to ensure there is no interruption in application functionality.",
      "Url": "https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_server-certs.html"
    }
  },
  "Categories": [
    "encryption"
  ],
  "DependsOn": [],
  "RelatedTo": [],
  "Notes": "Data Protection"
}
