How to combat the long lives of zero-day vulnerabilities
We’ve all heard stories about advanced nation-states leveraging zero-days to exploit a previously unknown security vulnerability. Perhaps the most infamous example is Stuxnet (with its four zero-days) that survived for an estimated five years prior to being discovered. However, that does not mean the ability to develop exploits for zero-day vulnerabilities is reserved only for well-financed state-sponsored actors.
According to RAND Corporation research, “…any serious attacker can always get an affordable zero-day for almost any target.” Worse, the data suggests that the time between vulnerability discovery to public disclosure and patch availability is almost seven years, a big red flag indicating that companies are dramatically underestimating their exposure.
The term “zero-day vulnerability” is a bit of a misnomer, because it might convey that an attacker tries to quickly get in to victims’ computers, exfiltrate data or launch malware and get out. But just the opposite is the case, as some of the key findings from that RAND report illustrate:
- Long life: Zero-day exploits and their underlying vulnerabilities have a 6.9 year life expectancy, on average. That’s 2,521 days after the initial discovery. 25 percent of those zero-days will survive more than 9.5 years, according to the research.
- The bad guys work fast: When it comes to the time required to create a working exploit, almost a third are developed in a week or less, with the majority being developed in approximately 22 days from the point an exploitable vulnerability has been found.
- Bargain price: Although in certain cases for very unique targets and/or environments, the costs may reach millions (i.e., “unicorn exploits”), most zero-day exploits can be purchased for anywhere between $30,000 and $100,000 on the gray or black markets.
- Walking dead: Declaring a vulnerability as alive or dead can be too simplistic. There are vulnerabilities that are quasi-alive (like zombies) because due to code revisions they got removed from a product without being disclosed, but can still be exploited in older versions. There are also “immortal” vulnerabilities – those that will remain in a product in perpetuity because the vendor no longer maintains the code or issues updates.
A vulnerability’s long life span means that even organizations with industry-leading vulnerability management and patching processes are still exposed. This is true even if you go through the pain of immediately testing and rolling out all critical patches. If you have ever managed patch management tools and projects, you know how difficult it is to consider change control policies, rollback requirements, off-line and remote systems, rollout issues and more. Moreover, we are not talking about just patching Windows operating systems, but all third-party applications in use within an organization, firmware and all operating systems including those powering mobile devices.
The RAND report comes to a grim conclusion: “Defenders will always be vulnerable to zero-day vulnerabilities…” Chances are your organization may already have undetected malware leveraging zero-day vulnerabilities.
The security industry still hasn’t figured out an effective approach to patch management. And then all those pesky fileless attacks that exploit legitimate scripting and administration tools (e.g., PowerShell) have become popular in the last few years. In reality, the majority of commodity malware and opportunistic attacks rely on already known vulnerabilities.
Defending Against Zero-Days
It’s simply unrealistic to prevent all zero-days from gaining access to your system, but you can stop the damage they try to inflict by building a Defense-in-Depth system that combines the negative and positive security models.
Traditional solutions focus on identifying the “bad” and allows everything else. This model is commonly used in anti-virus, host intrusion prevention system, next-generation antivirus and data loss prevention products, among others. But these solutions struggle to identify fileless and unknown threats. The SANS 2018 Survey on Endpoint Protection and Response survey revealed that while antivirus is the most commonly-used tool for detecting the initial vector of attack, it only managed to detect about 47 prevent of attacks.
However, don’t believe the “AV is dead” hype. It remains an important component of detection and prevention against common threats, but because it cannot protect against today’s most advanced unknown threats, some enterprises are implementing or at least purchasing the next-generation antivirus solutions. Even though the efficacy of Machine Learning-powered NGAV solutions is higher, the fact is that they are still applying negative security models by looking for the “bad” and are trained on known malware samples, thus struggling to identify and block truly unknown, evasive and fileless malware.
If we keep focusing on “badness”, then indeed we’ll always be behind. There will always be another zero-day, another new attack vector (e.g., Spectre, Meltdown), another previously unimaginable way for the bad guys to break in. No machine learning model will be able to predict completely new attacks.
What if we turn things on its head and focus on the good instead? Then this constant cat-and-mouse game may actually turn in our favor. “Good” can come in a form of a list of applications (e.g. Whitelisting or Application Control) or in a form of behavior (whether user behavior or the OS behavior).
While the amount of “bad” is infinite (and the number of applications is nearly there as well), the valid and legitimate behavior is finite. From the OS perspective, it is possible to create a map of all legitimate OS behavior, because there are just a handful of operating systems out there, and they change infrequently, especially in the way they operate with the file system and networking.
Of course, no single solution on its own would be sufficient. That’s why defense-in depth has become the gold standard in security. It enables you to build a layered approach to better protect against zero-day exploits, even if attackers are able to bypass one or more layers. True defense-in-depth should not just rely on the “next-gen” version of a well-known technology that is slightly better than the original, but layer different types of protection technologies to create the strongest possible defense.
Nir Giast is the founder and CTO of Nyotron.