Attackers hijack three ccTLDs to get certificates for Google
Key takeaways
- Attackers hijacked the .gh, .sl and .as country-code domains
- They changed DNS records to pass automated domain validation checks
- Google blocked the certificates it identified in Chrome, but warns it cannot guarantee it found every affected domain
- Domain owners should monitor Certificate Transparency logs and publish restrictive CAA records
Attackers hijacked three country code top-level domains and used their control to mint counterfeit TLS certificates for Google and other large organisations, Google said on Tuesday. The domains were .gh, .sl and .as. Google noted that the incident did not involve the compromise of the infrastructure of any of the affected domain owners.
How the trick works
TLS certificates are the cryptographic credentials that underpin authentication and encryption for websites, mail servers and other internet infrastructure. Each certificate uses a digital signature to bind a domain name such as google.com to a public key. When a connection shows that the keys match, the visitor knows it is connected to the authentic site rather than an impostor.
To get a certificate, an applicant must prove control of the domain through automated validation checks. After taking control of the three ccTLDs, the attackers changed the IP addresses of a selected list of websites. With the ability to send and receive traffic on those sites, they modified authoritative DNS records and nameserver delegations for selected domains. That let them pass the industry validation checks and obtain unauthorised certificates for "several Google domains" and "several leading global brands and widely used online services".
Google noted that certificate authorities followed all requirements. Possession of unauthorised certificates allows attackers to cryptographically impersonate the affected infrastructure.
What Google did
Google said it updated Chrome to block all certificates it identified as unauthorised, and worked with the issuing certification authorities to ensure the unauthorised certificates for Google properties were revoked. Official revocation is slow and cumbersome, so browser makers have devised quicker ways to block specific certificates at the browser level.
Google did not identify the affected domains it owns or name the other organisations involved. It also cautioned that "browser-side intervention should not be relied on to protect your users". In its words: "Due to the complexity of DNS hijacks, we cannot guarantee that our analysis identified every affected domain, nor do Chrome interventions reliably protect non-Chrome users."
With all known unauthorised certificates now blocked, the risk is mitigated. But as Google noted, any certificates that remain undiscovered pose a threat.
What domain owners can do
Chrome users do not need to take any action to be protected. Google is advising domain owners to:
- Monitor Certificate Transparency logs for unexpected certificate issuance across their domains.
- Publish restrictive Certification Authority Authorization DNS records, which prevent attackers from reusing cached validation data after DNS control is restored.
Not the first time
This is not the first time threat actors have obtained unauthorised certificates. A 2011 hack of the Dutch certificate authority DigiNotar allowed attackers to mint counterfeit certificates for Google.com and more than 200 other high-traffic domains. Those certificates were used against at least 300,000 people with ties to Iran as they browsed the impersonated sites. Many similar incidents have followed, most often through failures by certificate authorities but also by domain holders.