Remove Expired SSL/TLS Certificates in AWS IAM
ID: iam-expired-ssl
Severity: high
Author: princechaddha
Tags: cloud,devops,aws,amazon,iam,ssl,aws-cloud-config
Description
Section titled “Description”Checks for expired SSL/TLS certificates from AWS IAM
YAML Source
Section titled “YAML Source”id: iam-expired-sslinfo: name: Remove Expired SSL/TLS Certificates in AWS IAM author: princechaddha severity: high description: | Checks for expired SSL/TLS certificates from AWS IAM reference: - https://docs.aws.amazon.com/cli/latest/reference/iam/list-server-certificates.html tags: cloud,devops,aws,amazon,iam,ssl,aws-cloud-config
self-contained: truecode: - engine: - sh - bash source: | aws iam list-server-certificates | jq -r '.ServerCertificateMetadataList[] | select(.Expiration | fromdateiso8601 < now) | .ServerCertificateName'
extractors: - type: regex name: certificate internal: true regex: - '\b[a-zA-Z0-9]+\b'
- type: dsl dsl: - 'certificate + " Certificate is expired in your AWS account"'# digest: 490a00463044022059ac4f9219e64810790d41ca393d51de01a079833df0edebb382504c04e4bf4a022000f7b6d93b12090a69721751a99fd93d116dd9604d349e9883d9c7c819b66a82:922c64590222798bb761d5b6d8e72950Guide to check the vulnerabilities
Section titled “Guide to check the vulnerabilities”This template is used to detect vulnerabilities in web applications. It can be used with the Nuclei tool to scan for specific patterns or behaviors.
$ nuclei -u "URL" -t "cloud/aws/iam/iam-expired-ssl.yaml"