Zero-day explained simply is this: a flaw in software that nobody knew about, including the people who made it, until an attacker found it and started using it. The central question is how to defend against a weakness you do not know exists, and the short answer is that you cannot fix what you cannot see, but you can make your systems hard to break even when a flaw is found, and you can patch fast when the flaw finally comes to light.
Software is written by people, and people make mistakes. Most mistakes are found and fixed before they cause harm. A zero-day is the exception: a mistake that stays hidden, sometimes for years, until someone with bad intentions discovers it. The name comes from the fact that the vendor has had zero days to fix it, because they did not know it existed. This guide explains what zero-days are, who finds them, and how to live with them.
Key takeaways
- A zero-day is a software flaw nobody knew about until it was used or disclosed.
- Attackers, researchers and governments all hunt for zero-days, for very different reasons.
- Patching fast is the most important defence once a zero-day becomes known.
- Layered defences limit the damage a single flaw can cause.
- You cannot prevent zero-days, but you can make them expensive and hard to exploit.
What a zero-day actually is
A zero-day vulnerability is a security flaw in software or hardware that is unknown to the vendor and to the public. Because nobody knows about it, there is no patch, no fix and no warning. An attack that uses one is called a zero-day exploit, and it can succeed against systems that are fully patched and carefully maintained, because the defences were built against known flaws, not this one.
The flaw itself is usually an ordinary programming mistake: a check that was missed, a boundary that was not enforced, or a piece of data that was trusted when it should not have been. What makes it a zero-day is not that it is special, but that it is secret. The moment it is disclosed and a patch is released, it stops being a zero-day and becomes an ordinary vulnerability, and the race begins to patch it before attackers use it widely.
Who finds zero-days, and why
Security researchers are the first group. They hunt for flaws to report them, earn rewards through bug bounty programmes, and improve the security of software everyone uses. Google’s Project Zero, founded in 2014, is the best-known team of this kind: it finds flaws, reports them to vendors, and gives them a fixed deadline to fix the problem before it is disclosed publicly. That deadline is what turns a secret flaw into a patched one.
Criminals are the second group. They find zero-days to use them, selling access to the highest bidder or using the flaw themselves to steal data, install ransomware or spy on a target. A zero-day that affects widely used software can be worth a great deal on the criminal market, because it works against systems that are otherwise well defended.
Governments and brokers are the third group. Some governments buy zero-days to use for intelligence or military purposes, and brokers act as middlemen, buying flaws from researchers and selling them to governments. That market is controversial, because a flaw sold to one government is a flaw left unpatched for everyone else, and the same flaw can later be stolen or resold and used against the people it was meant to protect.

Famous zero-days and what they taught us
Stuxnet is the most famous zero-day attack. Discovered in 2010, it used several zero-day flaws to target industrial control systems, and it showed that software flaws could damage physical equipment, not just steal data. Stuxnet changed how governments and companies thought about security, because it proved that the most sophisticated attacks could reach systems that were not even connected to the internet.
Log4Shell is the best-known recent example. Discovered in December 2021, it was a flaw in Log4j, a logging library used in millions of Java applications. Because the library was everywhere, the flaw was everywhere too, and organisations spent weeks finding every system that used it. Log4Shell taught the industry that a flaw in a small, widely used component can be more dangerous than a flaw in a famous product, because the component is hidden inside so many other systems.
The lesson of both is that zero-days are not rare or theoretical. They are a normal part of the security landscape, and any organisation that depends on software should assume that zero-days exist in the software it uses, and plan accordingly.
Comparing zero-days with other vulnerabilities
| Type | Known to vendor? | Patch available? | Main defence |
|---|---|---|---|
| Zero-day | No | No | Layered defences, fast patching once known |
| Known vulnerability | Yes | Yes | Patch promptly, before attackers use it |
| Unpatched known flaw | Yes | Yes, but not applied | Patch management and asset inventory |
| Configuration error | Not a software flaw | Fix the setting | Automatic checks and reviews |
| Social engineering | Not a software flaw | Training and verification | Verify unusual requests, report phishing |
Defending against the unknown
Layered defence is the first principle. No single control can stop a zero-day, so systems should be built in layers: if one layer fails, the next one catches the attack. That means network segmentation, so a compromised system cannot reach everything; least-privilege access, so a compromised account cannot do much; and monitoring, so unusual behaviour is noticed even when the attack itself is invisible. Our guide to zero trust explains how this thinking applies to a whole organisation.
Patching fast is the second principle, and it matters most the moment a zero-day becomes known. The time between disclosure and widespread exploitation is now measured in hours, not weeks, so teams need to know what software they run, where it is, and how to patch it quickly. An inventory of systems and software is not paperwork; it is the list that tells you what to patch when the alarm sounds. Our ransomware recovery playbook explains what to do when a patch arrives too late.
Reducing attack surface is the third principle. Every service, port and feature that is enabled is a place where a zero-day can hide, so systems should run only what they need. Turning off unused services, removing software that is not needed, and keeping systems simple all make zero-days harder to find and harder to use. Simplicity is a security control, and it is one of the cheapest.
What good practice looks like
Good practice starts with knowing what you have. Keep an inventory of systems, software and versions, so that when a zero-day is disclosed you can answer the first question in minutes: are we affected, and where. Without that inventory, the answer takes days, and days are what attackers use.
Patching is the second pillar. Patch promptly, test patches quickly, and have a process for emergency patches that skips the normal schedule when the risk demands it. A patch that sits unapplied for a month is not a fix, and the time between a patch being released and being installed is the window attackers exploit most.
Monitoring is the third pillar. Watch for unusual behaviour, not just known attacks: a system connecting somewhere new, a process running that has never run before, or data moving in an unusual direction. Zero-days are invisible to signature-based tools, but their effects are often visible to a team that knows what normal looks like.
Zero-day checklist
- Keep an inventory of every system, software package and version you run.
- Patch promptly, and have a fast process for emergency patches.
- Layer defences so no single flaw can compromise everything.
- Segment networks and limit access, so a breach stays contained.
- Run only the services and software you need, and switch the rest off.
- Monitor for unusual behaviour, not just known attack signatures.
- Subscribe to vendor security alerts, and act on them the same day.
- Have an incident response plan, and practise it before you need it.
- Back up important data, and test restores, so a successful attack is recoverable.
Frequently asked questions
What is a zero-day?
It is a flaw in software that nobody knew about, including the vendor, until it was used or disclosed. Because there is no patch, it can succeed against systems that are fully updated, which is why zero-days are so valuable to attackers.
How are zero-days found?
By security researchers, criminals and governments, using a mix of code review, automated testing and careful experimentation. Researchers usually report what they find so it can be fixed; criminals and some governments keep what they find to use it.
Can antivirus stop a zero-day?
Not reliably. Antivirus tools recognise known attacks, and a zero-day is by definition unknown. Behavioural detection, which watches for unusual activity rather than known signatures, can catch some zero-days, but no tool can catch all of them.
What should I do when a zero-day is announced?
Check whether you are affected, using your inventory of systems and software, and apply the patch or the vendor’s workaround as fast as you safely can. The window between disclosure and widespread exploitation is short, so speed matters more than perfection.
Are zero-days common?
More common than most people think. Researchers and vendors disclose new ones regularly, and many more are found and used quietly. Any widely used software should be assumed to contain flaws that have not been found yet.
Can I protect myself completely against zero-days?
No, but you can make them far less dangerous. Layered defences, fast patching, a small attack surface and good monitoring mean that a single flaw is unlikely to cause serious damage, and that an attack will be noticed quickly.
The bottom line
Zero-day explained in one line is this: a flaw nobody knew about is the most dangerous kind of weakness, because there is no patch and no warning, and the only defence is to build systems that survive a flaw, patch the moment one is known, and watch for the unusual behaviour that gives an invisible attack away.







