A zero-day is a software vulnerability that is unknown to the vendor or has no available fix when it is first exploited. The name refers to the number of days the vendor has had to fix it: zero. A zero-day exploit is code that abuses such a flaw, and a zero-day attack is its use against real targets. Because no patch exists, defence relies on layered controls and on detecting the attacker's behaviour rather than the vulnerability itself.
What is a zero-day?
A zero-day (also written 0-day) is a vulnerability that attackers can exploit while the vendor either does not know about it or has not yet released a fix. From the defender's point of view, there have been zero days to prepare: no patch, often no advisory, and no signature that a scanner could match.
Three terms are often mixed up:
- Zero-day vulnerability: the flaw itself, for example a memory corruption bug in a VPN appliance or a deserialisation bug in a library.
- Zero-day exploit: working code or a technique that abuses the flaw.
- Zero-day attack: the actual use of the exploit against targets.
Once the vulnerability is public and a fix exists, it is no longer a zero-day. It usually receives a CVE identifier and a CVSS score. Vulnerabilities that are known and patched but still exploited because systems were not updated are sometimes called n-days. In practice, n-days cause a large share of real-world compromises, because patching takes time.
The lifecycle of a zero-day
- Introduction: a bug enters the code, often years before anyone notices it.
- Discovery: a researcher, the vendor, a criminal group or a state actor finds it.
- Exploitation: if attackers find it first, they may use it quietly against selected targets or widely as soon as possible.
- Disclosure: the vendor learns about it, ideally through coordinated disclosure, sometimes only from an attack in progress.
- Fix and advisory: the vendor ships a patch or a workaround and publishes details, often together with indicators of compromise.
- Patch adoption: organisations update. Until they do, the flaw remains exploitable as an n-day, and public proof-of-concept code often increases attack volume.
The most dangerous phase for defenders is the window between first exploitation and patch adoption. It can be days for a well-run fleet and months for forgotten systems.
Well-known examples
| Case | Year | What happened |
|---|---|---|
| Stuxnet | 2010 | Malware aimed at industrial control systems that used several previously unknown Windows vulnerabilities to spread. |
| Log4Shell (CVE-2021-44228) | 2021 | Remote code execution in the Java logging library Log4j. Exploitation started around public disclosure, and because Log4j is embedded in countless products, many teams first had to find out where they used it. |
| MOVEit Transfer (CVE-2023-34362) | 2023 | An SQL injection in a file transfer product was exploited as a zero-day to steal data from many organisations before a patch was available. |
| WannaCry and EternalBlue | 2017 | Not a zero-day: Microsoft had released the fix (MS17-010) about two months earlier. It shows how much damage an unpatched n-day can still do. |
Log4Shell is also a lesson in supply-chain risk: the flaw was not in the application code but in a transitive dependency. Teams with an up-to-date SBOM could answer "are we affected?" in minutes instead of days.
Why zero-days are hard to detect
Classic defences depend on knowledge of the threat. Vulnerability scanners compare versions with known CVEs, antivirus engines match signatures, and intrusion detection rules look for known exploit patterns. A zero-day has none of these yet. Exploits are often also targeted at a few victims, which keeps them below the radar of threat feeds.
What the attacker cannot avoid is what comes after the exploit. Once inside, they need to run code, move, persist and usually reach data or other systems. That behaviour leaves traces: a web server that suddenly starts a shell, a process that has never run on that host before, outbound connections to unusual destinations, new administrator accounts or audit logs that disappear. Detection of zero-day attacks is therefore mostly detection of post-exploitation behaviour.
Defence strategies
- Reduce the attack surface: expose fewer services to the internet, remove unused components and keep admin interfaces off public networks.
- Limit blast radius: apply least privilege and zero trust principles so that one exploited service cannot reach everything.
- Behaviour-based detection: alert on suspicious actions on hosts and in applications rather than only on known signatures.
- Know your inventory: SBOMs and dependency scans let you find affected components as soon as an advisory appears.
- Patch fast once a fix exists: watch sources such as the CISA Known Exploited Vulnerabilities (KEV) catalogue and prioritise vulnerabilities that are actively exploited.
- Temporary mitigations: vendor workarounds, configuration changes or WAF rules (sometimes called virtual patching) can buy time until the patch is rolled out.
- Keep enough log history: indicators of compromise are often published days after exploitation started, so you need data from before the disclosure to check whether you were hit.
Common mistakes
- Calling every critical CVE a zero-day. The term is about the timing of exploitation relative to the fix, not about severity.
- Relying only on vulnerability scanning. Scanners find what is known; they cannot find what is not yet documented.
- Short log retention. If security logs are kept for only a few days, you cannot check retroactively whether a newly published indicator of compromise appeared in your environment.
- No owner for emergency patching. When a zero-day becomes public, it must be clear who decides, who patches and who verifies.
- Ignoring appliances. VPN gateways, firewalls and file transfer servers are frequent zero-day targets and are often monitored less well than applications.
The observability perspective
Observability data does not reveal the vulnerability, but it shows its effects. Host logs and process data show new processes and shells, access logs show unusual requests against a specific endpoint, traces show a service suddenly calling a destination it has never called before, and metrics show unexpected CPU load from a cryptominer. After disclosure, the same data supports threat hunting: you search the published indicators and behaviours across the retention window and build a timeline of what happened. A SIEM that correlates these signals per host and user makes the step from a single odd event to a confirmed incident faster.
How Obseria helps
No tool can promise to catch every zero-day, and Obseria does not. It helps you see post-exploitation behaviour and react quickly once a flaw is known. Workload threat detection recognises suspicious activity on hosts from host logs and process data, such as new processes, root shells, cryptominers and cleared audit logs; it detects only and blocks nothing. Cloud SIEM applies ready-made detection rules mapped to MITRE ATT&CK and adds up risk per IP, host and user. Threat intelligence matches indicators from public feeds against your events, and the Security Investigator lets you search all security data with free text and field filters within your retention period. Software composition analysis shows which dependencies you use, which helps answer whether a newly disclosed library flaw affects you. The central vulnerability list is currently filled from a fixed rule set, not evaluated from your live telemetry.