Skip to content

Certificate Transparency (CT)

Introduction

Certificate Transparency (CT) is a system designed to provide an open and verifiable way to track the issuance and revocation of SSL/TLS certificates. The purpose of CT is to increase the transparency and accountability of certificate authorities (CAs) and reduce the risk of fraudulent certificates being issued. CT works by requiring CAs to publicly disclose all certificates they issue in a log that can be audited by anyone. The logs are monitored by auditors and web browsers to ensure that certificates are valid and have not been tampered with.

In recent years, CT has become increasingly important for cybersecurity. The widespread adoption of HTTPS has made it more difficult for attackers to intercept and manipulate web traffic, but it has also made it easier for attackers to impersonate websites by obtaining fraudulent SSL/TLS certificates. CT helps to address this risk by providing an independent record of all certificates issued by CAs, allowing website owners to detect and respond to fraudulent certificates more quickly.

While CT is an important development for cybersecurity, it is not without its challenges. The sheer volume of certificate data generated by CT logs can make it difficult to identify and track fraudulent certificates. Additionally, some certificate authorities may not comply with CT requirements, potentially allowing fraudulent certificates to be issued without detection. Despite these challenges, CT remains an important tool for securing the web and protecting against fraud.

How CT Enumeration Works

Certificate Transparency (CT) is a framework designed to improve the security of the SSL/TLS certificate system, which is used to secure website connections. The main purpose of CT is to detect and prevent the issuance of fraudulent or unauthorized certificates. It achieves this by providing a public log of SSL/TLS certificates, which allows anyone to verify the authenticity of a certificate.

CT works by requiring certificate authorities (CAs) to log all certificates they issue into public logs, which are essentially append-only databases. These logs can be queried by anyone, including web browsers, to obtain a list of all certificates that have been issued for a specific domain name.

When a CA issues a certificate, it must submit the certificate to at least two CT logs, one of which must be operated by a third-party. The logs then issue Signed Certificate Timestamps (SCTs), which are cryptographic proofs of the inclusion of the certificate in the log. These SCTs are included in the certificate and are verified by the web browser during the SSL/TLS handshake.

To enumerate certificates using CT logs, one can use a variety of tools and services that query the logs for a specific domain name. Some popular CT logs include Google’s Certificate Transparency log, DigiCert CT log, and Let’s Encrypt CT log.

One common method of CT enumeration is to query the logs for a domain name and obtain a list of all certificates issued for that domain. This can be done using command-line tools like Certigo or online services like crt.sh. Once a list of certificates is obtained, fingerprinting techniques can be used to identify any new or unauthorized certificates that may be present.

Fingerprinting is a technique used to calculate a unique value or hash of a certificate, which can then be used to identify the certificate in the future. The most common fingerprinting technique used in CT enumeration is SHA-256 hashing, which is a widely-used cryptographic hashing algorithm. By calculating the SHA-256 hash of each certificate in the list, an analyst can compare it to the hashes of previously known certificates for the same domain to identify any new or unauthorized certificates that may be present.

In conclusion, CT enumeration is an important technique for identifying unauthorized SSL/TLS certificates and detecting potential man-in-the-middle attacks. By querying CT logs and using fingerprinting techniques, analysts can obtain a list of all certificates issued for a domain and identify any new or unauthorized certificates that may be present. This helps to improve the overall security of SSL/TLS certificate system and protect against potential attacks.

Tools for CT Enumeration

Certificate transparency enumeration can be a daunting task if done manually, but fortunately, there are many tools available that can make the process easier and more efficient. In this section, we will look at some of the most popular tools for CT enumeration.

  1. CTFR (Certificate Transparency Log checking, Monitoring, and Auditing)

CTFR is a Python-based tool that allows users to query CT logs for SSL/TLS certificates. It supports domain-based, organization-based, and certificate-based searches, and also has features for monitoring and auditing CT logs. CTFR can be run from the command line and is available for Windows, Linux, and macOS.

  1. CertStream

CertStream is a real-time certificate transparency log monitoring tool that provides notifications when new SSL/TLS certificates are issued for a specific domain. It can be used to monitor CT logs for multiple domains simultaneously and supports webhooks, which can be used to trigger automated actions in response to new certificate issuances.

  1. CT-Exposer

CT-Exposer is a web-based tool that allows users to search CT logs for SSL/TLS certificates. It supports domain-based, organization-based, and fingerprint-based searches, and also has features for monitoring and auditing CT logs. CT-Exposer can be run from any modern web browser and is available for free.

  1. crt.sh

crt.sh is a web-based search tool that allows users to query CT logs for SSL/TLS certificates. It supports domain-based, organization-based, and certificate-based searches, and also has features for monitoring and auditing CT logs. crt.sh can be accessed from any modern web browser and is available for free.

There are also other CT enumeration tools available, including CT-Log and CTgrep. The choice of tool will depend on the specific needs of the user and the task at hand.

CT Enumeration in Penetration Testing

CT enumeration can be a valuable tool for penetration testing, particularly in identifying SSL/TLS certificate issues. By enumerating certificates for a target domain or organization, testers can identify misconfigured or outdated certificates that could leave the target vulnerable to attacks such as man-in-the-middle attacks.

One real-world example of CT enumeration being used to identify SSL/TLS certificate issues was in the case of the Equifax data breach in 2017. It was found that Equifax had failed to renew an SSL/TLS certificate for one of its domains, leaving it vulnerable to a vulnerability in the Apache Struts framework.

Incorporating CT enumeration into penetration testing methodologies involves several best practices, including:

  1. Identifying target domains and organizations for CT enumeration based on the scope of the engagement and the potential impact of SSL/TLS certificate issues.
  2. Using a combination of domain-based, wildcard-based, subdomain-based, and organization-based enumeration techniques to ensure comprehensive coverage.
  3. Verifying any potential issues identified through CT enumeration through further testing and exploitation.
  4. Communicating any identified issues to the client or organization being tested, along with recommendations for remediation.

Overall, CT enumeration can be a powerful tool for penetration testing teams looking to identify SSL/TLS certificate issues and improve the security posture of their clients or organizations. By incorporating CT enumeration into their methodologies and following best practices, testers can help ensure that their clients are better protected against potential attacks.