Despite many cyber-security advances over the last 20 years, well-known cyber-criminal exploits like phishing still pose pervasive threats. Verizon Enterprise’s 2018 Data Breach Investigations Report (DBIR) has found this to be so. Of the 53,000 incidents it received in the reporting period, Verizon Enterprise found phishing to be the third most widely used incident action variety at 1,192 events. Phishing also registered as the top social attack method observed by Verizon Enterprise, a finding which indicates that bad actors continue to abuse technology in order to prey on human weakness.
The misuse of technology can even contribute to the effectiveness of phishing attacks. In this article, I will be focusing on one such technology: wildcard certificates. I will give a few real-world examples of how cyber-criminals exploit the trust organizations have in such certificates, and I will provide some recommendations for protecting your resources from phishing scams.
What are wildcard certificates and why are they risky?
Using a wildcard certificate on a publicly facing web server increases the risk that cyber-criminals will use the web server to host malicious websites in phishing campaigns.
To understand why you must understand a bit about wildcard certificate security. A wildcard certificate is a public key certificate used by all subdomains within a larger domain. Using wildcard certificates reduces the overall burden on system administrators. However, from a security standpoint, these certificates open up a can of worms.
Any subdomain created for the domain on a web server that uses a wildcard certificate will use the same certificate. For example, a web server with a wildcard certificate is hosting the domain https://example.com. Anyone with access to the web server can set up a subdomain, https://phishing.example.com, on the web server using the wildcard certificate. Visitors to the phishing site do not realize that they are on the phishing site because their browsers establish an HTTPS connection using the legitimate wildcard certificate.
SSL/TLS Certificates and Their Prevalence on the Dark Web
Compromised web servers and wildcard certificates
You’re probably asking yourself, “Who would fall for something so simple? Surely anyone would recognize the illegitimate website.” But that’s not always true.
According to recent research from Venafi, attackers commonly outfit their phishing sites with lookalike domains that are differentiated by just a few characters or even homoglyphs designed to look like the legitimate domain. Most phishing sites also use long URLs to take advantage of the fact that a user is not likely to scroll through the entire URL. Additionally, the browser truncates the long URL, only showing, for example, the green highlighted part and not the malicious site:
Setting up a subdomain is exactly how cyber-criminals exploited a wildcard certificate security issue on the Malaysian Police portal in the summer of 2013 and used the portal for a phishing attack.
Wildcards and stolen private keys
In the last five years, malware designed to steal keys and certificates has proliferated, and a thriving marketplace for stolen certificates has sprung up. The work of BlackTech and its use of PLEAD and DRIGO to steal D-Link certificates for signing malware presents yet another example of how cybercriminals stage attacks to steal organizations’ encryption assets. Like compromising a web server, gaining access to a wildcard certificate’s private key provides an attacker with the ability to impersonate any domain that is using a wildcard certificate (*.example.com).
When cyber-criminals compromised DigiNotar back in 2011, the attackers were able to steal a Google wildcard certificate(*.google.com). Using the stolen wildcard certificate, an attacker would be able to set up a fake website for any Google service and then direct victims to the fake service by poisoning DNS services. Because the attacker is using a stolen wildcard certificate, the victim receives no warning when visiting the fake Google website.
In addition to compromising a certificate authority like DigiNotar, attackers can prey upon users with the help of digital certificates in other ways. Illustrating this fact is the March 2015 case of someone having obtained a privileged email account for Microsoft’s live.fi domain and abused that access to register a bogus SSL certificate, which bad actors could have leveraged to conduct phishing and/or man-in-the-middle (MitM) attacks. The security industry has also at times spotted vulnerabilities that could allow bad actors to spoof SSL servers via wildcard certificates.
Wildcards and fake certificates
A simpler option than compromising a CA is to trick a CA into issuing a wildcard certificate for a fictitious company. Once a hacker has the fictitious company’s wildcard certificate, the hacker can create subdomains and establish phishing sites that masquerade as belonging to any organization.
Digital attackers are specifically turning to Let’s Encrypt to obtain certificates for fictitious companies. They’re doing so as a matter of ease and cost. On the one hand, certificates obtainable from Let’s Encrypt are free, which lowers the costs of conducting phishing attacks. At the same time, Let’s Encrypt is automated, making it less difficult to obtain certificates in the first place.
Given the advantages explained above, it’s not surprising Venafi found that Let’s Encrypt accounted for 84 percent of the digital certificates issued to lookalike domains. The service issued 15,000 certificates containing the word “PayPal” between January 1, 2016 and March 6, 2017, for example. Of those issued certificates, 95 percent of them were used for phishing sites.
Should you still use wildcard certificates?
Clearly, attackers are comfortable with using wildcard certificates for phishing email attacks and other attacks. Fortunately, security controls and solutions can help block an attack. By putting these defenses in place, you increase the effort that a malicious actor must take to compromise your network. Your goal is to make compromising your network so expensive that cyber-criminals would rather focus their attention on someone else. As the saying goes: When a lion chases you, you don’t need to be the fastest runner; you just have to be faster than the person behind you.
You can make your organization more costly to exploit by avoiding wildcard certificates. Although wildcard certificates make business operations simpler, they provide a tremendous opportunity to any cyber-criminal who compromises your web server or steals a wildcard certificate’s private key.
Don’t let cyber-criminals use your wildcard certificate security in malicious campaigns. Avoid using wildcard certificates on production systems, especially public-facing ones. Instead, you should use subdomain-specific certificates that are rotated often. Compromised wildcard certificate security can lead to serious repercussions, but, by using short-lived, non-wildcard certificates, you significantly mitigate the impact of an attack.
(This post has been updated. It was originally published on March 18, 2014 by Gavin Hill.)