Skip to content
mexsic

AI · Oct 27, 2026

Offensive AI versus defensive AI: why attackers are ahead

← Research6 min read

Exploitation now arrives before the patch, and intruders stay hidden longer. With verified data: how fast offensive AI is moving, why defenders trail and how to close the gap.

Seven years ago, an average of 63 days passed between a vulnerability's patch and its first exploitation. In 2025, by Mandiant's estimate, that number was negative: −7 days. On average, exploitation now happens before a patch exists.

Over the same period, defenders did not speed up. The time an intruder spends inside a network before being detected fell to 10 days in 2023 and has risen since, to 14 days in 2025. This article puts numbers on that gap, explains why artificial intelligence is widening it, and what a defense team can do today.

The gap

Both series come from the same source, Mandiant (now part of Google Threat Intelligence), which makes them comparable.

The gap, according to Mandiant

Attacker

Days between the patch's release and first exploitation (average); negative: before the patch

  • 2018–1963 d
  • 2020–2144 d
  • 2021–2232 d
  • 20235 d
  • 2025−7 dbefore the patch (estimated)

Defender

Days an intruder stays inside before being detected (global median)

  • 202121 d
  • 202216 d
  • 202310 d
  • 202411 d
  • 202514 d
Sources: Google Threat Intelligence, “Time-to-Exploit Trends 2023” (2024) and M-Trends 2022–2026. The 2023 figure excludes 15 outliers (47 days with them); 2025 is an estimate. The 2021 median covers October 2020 to December 2021.

Volume follows speed. CISA's catalog of actively exploited vulnerabilities (KEV) added 274 entries between January 1 and October 26, 2026, against 210 in the same window of 2025: 30% more. Google reports that monthly vulnerability disclosures went from 5,045 in January 2026 to 10,740 in August.

What AI already does on offense

Two years ago, AI models solved few real security tasks. The measurements look different now.

How fast offensive capability is moving

Apprentice-level cyber tasks solved by the best models

<9% · late 202350% · late 2025

UK AISI

Reproducing real vulnerabilities (CyberGym)

66.6% · Claude Opus 4.683.1% · Claude Mythos Preview

Anthropic, April 2026

How many months it takes for the length of tasks an agent completes alone to double

  • METR, long-run trend7 months
  • AISI, cyber tasks (upper bound)8 months
Sources: AISI, “Frontier AI Trends Report” (December 2025); anthropic.com/glasswing; METR, eval-analysis-public. Fewer months is faster.

The jump already shows outside benchmarks. Anthropic reports that organizations in its Project Glasswing program found at least 129,000 verified vulnerabilities between April and July 2026 with its models; together with another 5,500 that Anthropic found in open-source code, more than 33,000 were rated critical or high. Google found that 50% of AI-discovered vulnerabilities allow remote code execution, against 26% across the CVE ecosystem.

It pays not to overstate it: only 0.23% of the vulnerabilities disclosed in 2026 have been seen exploited in the wild, and Google calls the exploitation of AI-found flaws an early indicator rather than an established trend. But capability is moving fast: the length of tasks an agent completes on its own doubles roughly every 7 to 8 months, depending on the source.

Why attackers are ahead

The same AI is available to both sides. The difference is the conditions each one works under.

The asymmetry
Rules
Attacker · None: tries any target, asks no one
Defender · May only test what it owns or is authorized to, under privacy rules
Cost of a mistake
Attacker · Can fail almost every time: one hit is enough
Defender · A false positive that blocks a service is an incident of its own
Access to models
Attacker · If a frontier model refuses, it uses an open one: they trail by 4 to 8 months
Defender · Model safeguards hold it back too, unless it has verified access
Scale
Attacker · Many agents in parallel, around the clock
Defender · Human shifts; every agent action waits for approval
Knowledge of the terrain
Attacker · Has to discover the network
Defender · Already has the code, telemetry and architecture: its natural edge
Open-model lag: AISI, “Frontier AI Trends Report” (December 2025), “between four and eight months”.

The model-access row deserves detail. Frontier labs block risky offensive tasks, and those safeguards hold defenders back too: in the test Anthropic published in October 2026, the defenders' access tier blocked 46 of 50 attempts at some point, while the verified red-team tier completed 34 of 50. Meanwhile, open models without those safeguards trail the frontier by four to eight months, according to the UK AI Security Institute. Safeguards delay a determined attacker; they do not stop one. That is why labs have started to offer verified access to defenders.

Where defenders win

Defenders have something attackers lack: they know their own terrain. They have the source code, the telemetry and the architecture, and they can look for flaws before anyone else. Glasswing's 129,000 vulnerabilities are exactly that: flaws defenders found in their own systems.

AI also speeds up daily work. In an internal Microsoft study with 167 analysts, those using a triage agent found malicious emails up to 550% faster. It is the vendor's own study, a controlled trial with a queue of 25 emails.

One sign of improvement: in 2025, organizations detected 52% of intrusions themselves, up from 43% the year before.

What AI costs defenders

AI does not only help. It also creates noise: the curl project, one of the most widely used libraries in the world, ended its bug bounty in January 2026. Its documentation says bounties gave people “too strong incentives to find and make up problems in bad faith”, and its policy asks reporters not to paste massive AI-generated explanations.

And a defensive agent with broad permissions is a new attack surface: it can receive hidden instructions in the data it processes, or act on wrong information. The defense tool must not become the weak point.

How we close the gap at Mexsic

  • We use offensive AI for defense: we attack the systems of those who hire us, with authorization and continuously, before anyone else does.
  • A person validates every finding before it is reported. A false positive costs trust.
  • Agents run with minimal permissions and a log of every action.
  • In each engagement we report results (confirmed findings, discarded false positives), not impressions, and publish what we learn.

What we recommend today

  • Assume exploitation arrives before the patch: prioritize by exposure and by the KEV catalog, not by publication date.
  • Measure your own time to detect and contain, and compare it with the 14-day global median.
  • Use AI first where mistakes are cheap: alert triage, code review, hunting for variants of known flaws.
  • Give every agent minimal permissions and human review for any action that changes a system.
  • Test your own systems with the same tools an attacker would use, with authorization and continuously.

What we expect by October 2027

We publish forecasts with probabilities so we can score them a year from now:

  • 93%: the KEV catalog ends 2026 with 300 or more vulnerabilities.
  • 92%: 60,000 or more CVEs are published in 2026.
  • 75%: a lab reports 90% or more on CyberGym.
  • 60%: M-Trends 2027 estimates a time to exploit of −7 days or less.
  • 50%: the median time an intruder stays undetected rises above 14 days.

A year from now we will review how many we got right and publish it here.

Next step

One call to understand your case.

You tell us what you want to protect and what you are being asked for. We tell you which service applies, what scope makes sense and whether we are not the right fit. Then you receive a written proposal.